diff --git a/.buildkite/pull_requests.json b/.buildkite/pull_requests.json index 94c9ce2a0e2722..d54f637b8f6d1a 100644 --- a/.buildkite/pull_requests.json +++ b/.buildkite/pull_requests.json @@ -16,7 +16,7 @@ "trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))", "always_trigger_comment_regex": "^(?:(?:buildkite\\W+)?(?:build|test)\\W+(?:this|it))", "skip_ci_labels": ["skip-ci", "jenkins-ci"], - "skip_target_branches": ["6.8"] + "skip_target_branches": ["6.8", "7.11", "7.12"] } ] } diff --git a/.buildkite/scripts/common/env.sh b/.buildkite/scripts/common/env.sh index 1f7c289c80fd40..5d2ccda66285b1 100755 --- a/.buildkite/scripts/common/env.sh +++ b/.buildkite/scripts/common/env.sh @@ -98,12 +98,3 @@ fi export BUILD_TS_REFS_DISABLE=true export DISABLE_BOOTSTRAP_VALIDATION=true - -export TEST_KIBANA_HOST=localhost -export TEST_KIBANA_PORT=6101 -export TEST_KIBANA_URL="http://elastic:changeme@localhost:6101" -export TEST_ES_URL="http://elastic:changeme@localhost:6102" -export TEST_ES_TRANSPORT_PORT=6301-6309 -export TEST_CORS_SERVER_PORT=6106 -export ALERTING_PROXY_PORT=6105 -export TEST_PROXY_SERVER_PORT=6107 diff --git a/.buildkite/scripts/lifecycle/pre_command.sh b/.buildkite/scripts/lifecycle/pre_command.sh index ec2b55ecb2a7d2..700abf84fb7d58 100755 --- a/.buildkite/scripts/lifecycle/pre_command.sh +++ b/.buildkite/scripts/lifecycle/pre_command.sh @@ -101,6 +101,15 @@ export SYNTHETICS_SERVICE_PASSWORD SYNTHETICS_SERVICE_MANIFEST="$(retry 5 5 vault read -field=manifest secret/kibana-issues/dev/kibana-ci-synthetics-credentials)" export SYNTHETICS_SERVICE_MANIFEST +SYNTHETICS_REMOTE_KIBANA_USERNAME="$(retry 5 5 vault read -field=username secret/kibana-issues/dev/kibana-ci-synthetics-remote-credentials)" +export SYNTHETICS_REMOTE_KIBANA_USERNAME + +SYNTHETICS_REMOTE_KIBANA_PASSWORD="$(retry 5 5 vault read -field=password secret/kibana-issues/dev/kibana-ci-synthetics-remote-credentials)" +export SYNTHETICS_REMOTE_KIBANA_PASSWORD + +SYNTHETICS_REMOTE_KIBANA_URL="$(retry 5 5 vault read -field=url secret/kibana-issues/dev/kibana-ci-synthetics-remote-credentials)" +export SYNTHETICS_REMOTE_KIBANA_URL + # Setup Failed Test Reporter Elasticsearch credentials { TEST_FAILURES_ES_CLOUD_ID=$(retry 5 5 vault read -field=cloud_id secret/kibana-issues/dev/failed_tests_reporter_es) diff --git a/.buildkite/scripts/steps/functional/synthetics.sh b/.buildkite/scripts/steps/functional/synthetics.sh new file mode 100644 index 00000000000000..76d355d99c2e31 --- /dev/null +++ b/.buildkite/scripts/steps/functional/synthetics.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +set -euo pipefail + +source .buildkite/scripts/common/util.sh + +.buildkite/scripts/bootstrap.sh +.buildkite/scripts/download_build_artifacts.sh + +export JOB=kibana-uptime-playwright + +echo "--- Uptime @elastic/synthetics Tests" + +cd "$XPACK_DIR" + +checks-reporter-with-killswitch "Uptime @elastic/synthetics Tests" \ + node plugins/uptime/scripts/e2e.js --kibana-install-dir "$KIBANA_BUILD_LOCATION" --grep "MonitorManagement*" \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index f3d3e700fec30c..b21ad1f520a083 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1070,6 +1070,13 @@ module.exports = { '@typescript-eslint/no-duplicate-imports': ['error'], }, }, + { + files: ['x-pack/plugins/cases/public/**/*.{js,mjs,ts,tsx}'], + excludedFiles: ['x-pack/plugins/cases/**/*.{test,mock,test_helper}.{ts,tsx}'], + rules: { + 'react/display-name': ['error', { ignoreTranspilerName: true }], + }, + }, /** * Lists overrides. These rules below are maintained and owned by diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f218cffe032b88..dee16cf2fa94c3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -184,6 +184,8 @@ /x-pack/test/functional_with_es_ssl/apps/ml/ @elastic/ml-ui /x-pack/test/alerting_api_integration/spaces_only/tests/alerting/ml_rule_types/ @elastic/ml-ui /x-pack/test/alerting_api_integration/spaces_only/tests/alerting/transform_rule_types/ @elastic/ml-ui +/x-pack/test/screenshot_creation/apps/ml_docs @elastic/ml-ui +/x-pack/test/screenshot_creation/services/ml_screenshots.ts @elastic/ml-ui # ML team owns and maintains the transform plugin despite it living in the Data management section. /x-pack/plugins/transform/ @elastic/ml-ui diff --git a/.github/workflows/dev-docs-builder.yml b/.github/workflows/dev-docs-builder.yml deleted file mode 100644 index 418df8bd7d8ac0..00000000000000 --- a/.github/workflows/dev-docs-builder.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: Elastic Builder -on: - pull_request_target: - paths: - - '**.mdx' - - '**.docnav.json' - - '**.png' - - '**.gif' - types: [closed, opened, synchronize, reopened] - -jobs: - preview: - name: Do the magic - runs-on: ubuntu-latest - steps: - - name: Setup workspace - uses: actions/checkout@v2 - - - name: Checkout current branch into temp - if: github.event.pull_request.merged == false - uses: actions/checkout@v2 - with: - path: 'temp' - fetch-depth: 2 - ref: refs/pull/${{ github.event.pull_request.number }}/merge - - - name: Checkout current branch into temp - if: github.event.pull_request.merged == true - uses: actions/checkout@v2 - with: - path: 'temp' - - - name: Checkout essential repos - uses: actions/checkout@v2 - with: - repository: elastic/docs.elastic.dev - token: ${{ secrets.VERCEL_GITHUB_TOKEN }} - path: ${{ github.workspace }}/docs.elastic.dev - - - name: Checkout Wordlake - uses: actions/checkout@v2 - with: - repository: elastic/wordlake-dev - token: ${{ secrets.VERCEL_GITHUB_TOKEN }} - path: ${{ github.workspace }}/wordlake-dev - - - name: Temp sources override - shell: bash - run: cp -f ${{ github.workspace }}/wordlake-dev/.scaffold/sources.json ${{ github.workspace }}/docs.elastic.dev/. - - - name: Show workspace - shell: bash - run: ls -lat ${{ github.workspace }} - - - name: Portal - shell: bash - run: | - mkdir -p ${{ github.workspace }}/wordlake-dev/${{ github.event.repository.name }} - rsync --ignore-missing-args -zavpm --include='*.docnav.json' --include='*.mdx' --include='*.png' --include='*.gif' --include='*/' --exclude='*' ${{ github.workspace }}/temp/ ${{ github.workspace }}/wordlake-dev/${{ github.event.repository.name }}/ - - - name: Generate preview - if: github.event.pull_request.merged == false - uses: elastic/builder@v21.1.0 - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required - vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} #Required - vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_DOCS_DEV}} #Required - vercel-project-name: docs-elastic-dev - github-token: ${{ secrets.VERCEL_GITHUB_TOKEN }} #Optional - working-directory: ./ - - - name: Portal for deploy - if: github.event.pull_request.merged == true - shell: bash - run: | - cd ${{ github.workspace }}/wordlake-dev - git config user.name count-docula - git config user.email github-actions@github.com - git add . - git commit -m "New content from https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}" - git push diff --git a/api_docs/actions.json b/api_docs/actions.devdocs.json similarity index 99% rename from api_docs/actions.json rename to api_docs/actions.devdocs.json index 01f15db6c0893a..29a799f020c22c 100644 --- a/api_docs/actions.json +++ b/api_docs/actions.devdocs.json @@ -709,7 +709,7 @@ "label": "ActionParamsType", "description": [], "signature": [ - "{ readonly message: string; readonly level: \"error\" | \"info\" | \"trace\" | \"debug\" | \"warn\" | \"fatal\"; }" + "{ readonly message: string; readonly level: \"error\" | \"info\" | \"debug\" | \"trace\" | \"warn\" | \"fatal\"; }" ], "path": "x-pack/plugins/actions/server/builtin_action_types/server_log.ts", "deprecated": false, diff --git a/api_docs/actions.mdx b/api_docs/actions.mdx index dc7d971d016d4b..ca0c4b4e91795b 100644 --- a/api_docs/actions.mdx +++ b/api_docs/actions.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import actionsObj from './actions.json'; +import actionsObj from './actions.devdocs.json'; diff --git a/api_docs/advanced_settings.json b/api_docs/advanced_settings.devdocs.json similarity index 100% rename from api_docs/advanced_settings.json rename to api_docs/advanced_settings.devdocs.json diff --git a/api_docs/advanced_settings.mdx b/api_docs/advanced_settings.mdx index bfad2205ddfd29..a60b799dce6c97 100644 --- a/api_docs/advanced_settings.mdx +++ b/api_docs/advanced_settings.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import advancedSettingsObj from './advanced_settings.json'; +import advancedSettingsObj from './advanced_settings.devdocs.json'; diff --git a/api_docs/alerting.json b/api_docs/alerting.devdocs.json similarity index 97% rename from api_docs/alerting.json rename to api_docs/alerting.devdocs.json index dd236a0e391108..871a2886848a5b 100644 --- a/api_docs/alerting.json +++ b/api_docs/alerting.devdocs.json @@ -41,7 +41,15 @@ "label": "alert", "description": [], "signature": [ - "{ id: string; name: string; tags: string[]; enabled: boolean; params: never; actions: ", + "{ id: string; monitoring?: ", + { + "pluginId": "alerting", + "scope": "common", + "docId": "kibAlertingPluginApi", + "section": "def-common.RuleMonitoring", + "text": "RuleMonitoring" + }, + " | undefined; name: string; tags: string[]; enabled: boolean; params: never; actions: ", { "pluginId": "alerting", "scope": "common", @@ -770,6 +778,63 @@ } ], "functions": [ + { + "parentPluginId": "alerting", + "id": "def-server.createAbortableEsClientFactory", + "type": "Function", + "tags": [], + "label": "createAbortableEsClientFactory", + "description": [], + "signature": [ + "(opts: ", + "CreateAbortableEsClientFactoryOpts", + ") => { asInternalUser: { search: >(query: ", + "SearchRequest", + " | ", + "SearchRequest", + ", options?: ", + "TransportRequestOptions", + " | undefined) => Promise<", + "TransportResult", + "<", + "SearchResponse", + ", unknown>>; }; asCurrentUser: { search: >(query: ", + "SearchRequest", + " | ", + "SearchRequest", + ", options?: ", + "TransportRequestOptions", + " | undefined) => Promise<", + "TransportResult", + "<", + "SearchResponse", + ", unknown>>; }; }" + ], + "path": "x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "alerting", + "id": "def-server.createAbortableEsClientFactory.$1", + "type": "Object", + "tags": [], + "label": "opts", + "description": [], + "signature": [ + "CreateAbortableEsClientFactoryOpts" + ], + "path": "x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "alerting", "id": "def-server.getEsErrorMessage", @@ -912,6 +977,16 @@ "path": "x-pack/plugins/alerting/server/types.ts", "deprecated": false }, + { + "parentPluginId": "alerting", + "id": "def-server.AlertExecutorOptions.executionId", + "type": "string", + "tags": [], + "label": "executionId", + "description": [], + "path": "x-pack/plugins/alerting/server/types.ts", + "deprecated": false + }, { "parentPluginId": "alerting", "id": "def-server.AlertExecutorOptions.startedAt", @@ -2484,7 +2559,7 @@ "section": "def-server.PartialAlert", "text": "PartialAlert" }, - ">; enable: ({ id }: { id: string; }) => Promise; disable: ({ id }: { id: string; }) => Promise; muteAll: ({ id }: { id: string; }) => Promise; getAlertState: ({ id }: { id: string; }) => Promise; getAlertSummary: ({ id, dateStart }: ", + ">; enable: ({ id }: { id: string; }) => Promise; disable: ({ id }: { id: string; }) => Promise; muteAll: ({ id }: { id: string; }) => Promise; getAlertState: ({ id }: { id: string; }) => Promise; getAlertSummary: ({ id, dateStart, numberOfExecutions, }: ", "GetAlertSummaryParams", ") => Promise<", { @@ -3205,6 +3280,26 @@ ], "path": "x-pack/plugins/alerting/common/alert.ts", "deprecated": false + }, + { + "parentPluginId": "alerting", + "id": "def-common.Alert.monitoring", + "type": "Object", + "tags": [], + "label": "monitoring", + "description": [], + "signature": [ + { + "pluginId": "alerting", + "scope": "common", + "docId": "kibAlertingPluginApi", + "section": "def-common.RuleMonitoring", + "text": "RuleMonitoring" + }, + " | undefined" + ], + "path": "x-pack/plugins/alerting/common/alert.ts", + "deprecated": false } ], "initialIsOpen": false @@ -3910,6 +4005,43 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "alerting", + "id": "def-common.RuleMonitoring", + "type": "Interface", + "tags": [], + "label": "RuleMonitoring", + "description": [], + "signature": [ + { + "pluginId": "alerting", + "scope": "common", + "docId": "kibAlertingPluginApi", + "section": "def-common.RuleMonitoring", + "text": "RuleMonitoring" + }, + " extends ", + "SavedObjectAttributes" + ], + "path": "x-pack/plugins/alerting/common/alert.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "alerting", + "id": "def-common.RuleMonitoring.execution", + "type": "Object", + "tags": [], + "label": "execution", + "description": [], + "signature": [ + "{ history: { success: boolean; timestamp: number; }[]; calculated_metrics: { success_ratio: number; }; }" + ], + "path": "x-pack/plugins/alerting/common/alert.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "alerting", "id": "def-common.RuleType", @@ -4532,7 +4664,15 @@ "label": "SanitizedAlert", "description": [], "signature": [ - "{ id: string; name: string; tags: string[]; enabled: boolean; params: Params; actions: ", + "{ id: string; monitoring?: ", + { + "pluginId": "alerting", + "scope": "common", + "docId": "kibAlertingPluginApi", + "section": "def-common.RuleMonitoring", + "text": "RuleMonitoring" + }, + " | undefined; name: string; tags: string[]; enabled: boolean; params: Params; actions: ", { "pluginId": "alerting", "scope": "common", diff --git a/api_docs/alerting.mdx b/api_docs/alerting.mdx index b1a48fb8b1656a..a4c78c12498323 100644 --- a/api_docs/alerting.mdx +++ b/api_docs/alerting.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import alertingObj from './alerting.json'; +import alertingObj from './alerting.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting- | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 277 | 0 | 269 | 18 | +| 283 | 0 | 275 | 19 | ## Client diff --git a/api_docs/apm.json b/api_docs/apm.devdocs.json similarity index 93% rename from api_docs/apm.json rename to api_docs/apm.devdocs.json index a6e2b5f8c82161..5059a88c10b7d6 100644 --- a/api_docs/apm.json +++ b/api_docs/apm.devdocs.json @@ -489,7 +489,37 @@ "section": "def-server.LicensingPluginStart", "text": "LicensingPluginStart" }, - ">; }; observability: { setup: { getScopedAnnotationsClient: (...args: unknown[]) => Promise; }; start: () => Promise; }; ruleRegistry: { setup: ", + ">; }; observability: { setup: { getScopedAnnotationsClient: (requestContext: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.RequestHandlerContext", + "text": "RequestHandlerContext" + }, + " & { licensing: ", + { + "pluginId": "licensing", + "scope": "server", + "docId": "kibLicensingPluginApi", + "section": "def-server.LicensingApiRequestHandlerContext", + "text": "LicensingApiRequestHandlerContext" + }, + "; }, request: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreHttpPluginApi", + "section": "def-server.KibanaRequest", + "text": "KibanaRequest" + }, + ") => Promise<{ readonly index: string; create: (createParams: { annotation: { type: string; }; '@timestamp': string; message: string; } & { tags?: string[] | undefined; service?: { name?: string | undefined; environment?: string | undefined; version?: string | undefined; } | undefined; }) => Promise<{ _id: string; _index: string; _source: ", + "Annotation", + "; }>; getById: (getByIdParams: { id: string; }) => Promise<", + "GetResponse", + ">; delete: (deleteParams: { id: string; }) => Promise<", + "DeleteResponse", + ">; } | undefined>; }; start: () => Promise; }; ruleRegistry: { setup: ", { "pluginId": "ruleRegistry", "scope": "server", @@ -765,8 +795,31 @@ "label": "APMServerRouteRepository", "description": [], "signature": [ - "ServerRouteRepository", + "{ \"POST /api/apm/agent_keys\": ", + "ServerRoute", + "<\"POST /api/apm/agent_keys\", ", + "TypeC", + "<{ body: ", + "TypeC", + "<{ name: ", + "StringC", + "; privileges: ", + "ArrayC", + "<", + "UnionC", + "<[", + "LiteralC", + "<", + "PrivilegeType", + ".SOURCEMAP>, ", + "LiteralC", + "<", + "PrivilegeType", + ".EVENT>, ", + "LiteralC", "<", + "PrivilegeType", + ".AGENT_CONFIG>]>>; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -774,11 +827,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", ", + ", { agentKey: ", + "SecurityCreateApiKeyResponse", + "; }, ", "APMRouteCreateOptions", - ", { \"POST /internal/apm/data_view/static\": ", + ">; \"POST /internal/apm/api_key/invalidate\": ", "ServerRoute", - "<\"POST /internal/apm/data_view/static\", undefined, ", + "<\"POST /internal/apm/api_key/invalidate\", ", + "TypeC", + "<{ body: ", + "TypeC", + "<{ id: ", + "StringC", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -786,11 +847,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { created: boolean; }, ", + ", { invalidatedAgentKeys: string[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/data_view/dynamic\": ", + ">; \"GET /internal/apm/agent_keys/privileges\": ", "ServerRoute", - "<\"GET /internal/apm/data_view/dynamic\", undefined, ", + "<\"GET /internal/apm/agent_keys/privileges\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -798,27 +859,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { dynamicDataView: ", - "DataViewTitleAndFields", - " | undefined; }, ", + ", { areApiKeysEnabled: boolean; isAdmin: boolean; canManage: boolean; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/environments\": ", + ">; \"GET /internal/apm/agent_keys\": ", "ServerRoute", - "<\"GET /internal/apm/environments\", ", - "TypeC", - "<{ query: ", - "IntersectionC", - "<[", - "PartialC", - "<{ serviceName: ", - "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>]>; }>, ", + "<\"GET /internal/apm/agent_keys\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -826,61 +871,85 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { environments: (\"ENVIRONMENT_NOT_DEFINED\" | \"ENVIRONMENT_ALL\" | ", - "Branded", - ")[]; }, ", + ", { agentKeys: ", + { + "pluginId": "security", + "scope": "common", + "docId": "kibSecurityPluginApi", + "section": "def-common.ApiKey", + "text": "ApiKey" + }, + "[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/errors/groups/main_statistics\": ", + ">; \"GET /internal/apm/event_metadata/{processorEvent}/{id}\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/errors/groups/main_statistics\", ", + "<\"GET /internal/apm/event_metadata/{processorEvent}/{id}\", ", "TypeC", "<{ path: ", "TypeC", - "<{ serviceName: ", - "StringC", - "; }>; query: ", - "IntersectionC", - "<[", - "PartialC", - "<{ sortField: ", - "StringC", - "; sortDirection: ", + "<{ processorEvent: ", "UnionC", "<[", "LiteralC", - "<\"asc\">, ", + "<", + "ProcessorEvent", + ".transaction>, ", "LiteralC", - "<\"desc\">]>; }>, ", - "TypeC", - "<{ environment: ", - "UnionC", - "<[", + "<", + "ProcessorEvent", + ".error>, ", "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "<", + "ProcessorEvent", + ".metric>, ", + "LiteralC", + "<", + "ProcessorEvent", + ".span>, ", "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", "<", + "ProcessorEvent", + ".profile>]>; id: ", "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", + "; }>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { metadata: Partial>; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/has_data\": ", + "ServerRoute", + "<\"GET /internal/apm/has_data\", undefined, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { hasData: boolean; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/fallback_to_transactions\": ", + "ServerRoute", + "<\"GET /internal/apm/fallback_to_transactions\", ", + "PartialC", + "<{ query: ", + "IntersectionC", + "<[", "TypeC", "<{ kuery: ", "StringC", "; }>, ", - "TypeC", + "PartialC", "<{ start: ", "Type", "; end: ", "Type", - "; }>, ", - "TypeC", - "<{ transactionType: ", - "StringC", - "; }>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -888,19 +957,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { errorGroups: { groupId: string; name: string; lastSeen: number; occurrences: number; culprit: string | undefined; handled: boolean | undefined; type: string | undefined; }[]; }, ", + ", { fallbackToTransactions: boolean; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/errors/groups/detailed_statistics\": ", + ">; \"POST /internal/apm/correlations/significant_correlations\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/errors/groups/detailed_statistics\", ", - "TypeC", - "<{ path: ", + "<\"POST /internal/apm/correlations/significant_correlations\", ", "TypeC", - "<{ serviceName: ", - "StringC", - "; }>; query: ", + "<{ body: ", "IntersectionC", "<[", + "PartialC", + "<{ serviceName: ", + "StringC", + "; transactionName: ", + "StringC", + "; transactionType: ", + "StringC", + "; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -925,20 +998,20 @@ "; end: ", "Type", "; }>, ", - "PartialC", - "<{ comparisonStart: ", - "Type", - "; comparisonEnd: ", - "Type", - "; }>, ", "TypeC", - "<{ numBuckets: ", - "Type", - "; transactionType: ", + "<{ fieldValuePairs: ", + "ArrayC", + "<", + "TypeC", + "<{ fieldName: ", "StringC", - "; groupIds: ", + "; fieldValue: ", + "UnionC", + "<[", + "StringC", + ", ", "Type", - "; }>]>; }>, ", + "]>; }>>; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -946,25 +1019,25 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: _.Dictionary<{ groupId: string; timeseries: ", - "Coordinate", - "[]; }>; previousPeriod: _.Dictionary<{ timeseries: { x: number; y: ", - "Maybe", - "; }[]; groupId: string; }>; }, ", + ", { latencyCorrelations: ", + "LatencyCorrelation", + "[]; ccsWarning: boolean; totalDocCount: number; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/errors/{groupId}\": ", + ">; \"POST /internal/apm/correlations/field_value_pairs\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/errors/{groupId}\", ", - "TypeC", - "<{ path: ", + "<\"POST /internal/apm/correlations/field_value_pairs\", ", "TypeC", + "<{ body: ", + "IntersectionC", + "<[", + "PartialC", "<{ serviceName: ", "StringC", - "; groupId: ", + "; transactionName: ", "StringC", - "; }>; query: ", - "IntersectionC", - "<[", + "; transactionType: ", + "StringC", + "; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -988,7 +1061,13 @@ "Type", "; end: ", "Type", - "; }>]>; }>, ", + "; }>, ", + "TypeC", + "<{ fieldCandidates: ", + "ArrayC", + "<", + "StringC", + ">; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -996,25 +1075,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { transaction: ", - "Transaction", - " | undefined; error: ", - "APMError", - "; occurrencesCount: number; }, ", + ", { fieldValuePairs: ", + "FieldValuePair", + "[]; errors: any[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/errors/distribution\": ", + ">; \"GET /internal/apm/correlations/field_value_stats\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/errors/distribution\", ", - "TypeC", - "<{ path: ", + "<\"GET /internal/apm/correlations/field_value_stats\", ", "TypeC", - "<{ serviceName: ", - "StringC", - "; }>; query: ", + "<{ query: ", "IntersectionC", "<[", "PartialC", - "<{ groupId: ", + "<{ serviceName: ", + "StringC", + "; transactionName: ", + "StringC", + "; transactionType: ", "StringC", "; }>, ", "TypeC", @@ -1041,12 +1118,16 @@ "; end: ", "Type", "; }>, ", - "PartialC", - "<{ comparisonStart: ", - "Type", - "; comparisonEnd: ", - "Type", - "; }>]>; }>, ", + "TypeC", + "<{ fieldName: ", + "StringC", + "; fieldValue: ", + "UnionC", + "<[", + "StringC", + ", ", + "NumberC", + "]>; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1054,13 +1135,13 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: { x: number; y: number; }[]; previousPeriod: { x: number; y: ", - "Maybe", - "; }[]; bucketSize: number; }, ", + ", ", + "TopValuesStats", + ", ", "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/latency/overall_distribution\": ", + ">; \"POST /internal/apm/correlations/field_stats\": ", "ServerRoute", - "<\"POST /internal/apm/latency/overall_distribution\", ", + "<\"POST /internal/apm/correlations/field_stats\", ", "TypeC", "<{ body: ", "IntersectionC", @@ -1072,19 +1153,13 @@ "StringC", "; transactionType: ", "StringC", - "; termFilters: ", + "; }>, ", + "TypeC", + "<{ fieldsToSample: ", "ArrayC", "<", - "TypeC", - "<{ fieldName: ", - "StringC", - "; fieldValue: ", - "UnionC", - "<[", "StringC", - ", ", - "Type", - "]>; }>>; }>, ", + ">; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -1108,11 +1183,7 @@ "Type", "; end: ", "Type", - "; }>, ", - "TypeC", - "<{ percentileThreshold: ", - "Type", - "; }>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1120,27 +1191,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", ", - "OverallLatencyDistributionResponse", - ", ", + ", { stats: ", + "FieldStats", + "[]; errors: any[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/metrics/charts\": ", + ">; \"GET /internal/apm/correlations/field_candidates\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/metrics/charts\", ", - "TypeC", - "<{ path: ", + "<\"GET /internal/apm/correlations/field_candidates\", ", "TypeC", - "<{ serviceName: ", - "StringC", - "; }>; query: ", + "<{ query: ", "IntersectionC", "<[", - "TypeC", - "<{ agentName: ", - "StringC", - "; }>, ", "PartialC", - "<{ serviceNodeName: ", + "<{ serviceName: ", + "StringC", + "; transactionName: ", + "StringC", + "; transactionType: ", "StringC", "; }>, ", "TypeC", @@ -1174,59 +1241,39 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { charts: any[]; }, ", + ", { fieldCandidates: string[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/observability_overview\": ", + ">; \"POST /internal/apm/correlations/p_values\": ", "ServerRoute", - "<\"GET /internal/apm/observability_overview\", ", + "<\"POST /internal/apm/correlations/p_values\", ", "TypeC", - "<{ query: ", + "<{ body: ", "IntersectionC", "<[", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", - "TypeC", - "<{ bucketSize: ", - "Type", - "; intervalString: ", + "PartialC", + "<{ serviceName: ", "StringC", - "; }>]>; }>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { serviceCount: number; transactionPerMinute: { value: undefined; timeseries: never[]; } | { value: number; timeseries: { x: number; y: number | null; }[]; }; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/observability_overview/has_data\": ", - "ServerRoute", - "<\"GET /internal/apm/observability_overview/has_data\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { hasData: boolean; indices: ", - "ApmIndicesConfig", - "; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/client-metrics\": ", - "ServerRoute", - "<\"GET /internal/apm/ux/client-metrics\", ", + "; transactionName: ", + "StringC", + "; transactionType: ", + "StringC", + "; }>, ", "TypeC", - "<{ query: ", - "IntersectionC", + "<{ environment: ", + "UnionC", "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", + "StringC", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", "TypeC", - "<{ uiFilters: ", + "<{ kuery: ", "StringC", "; }>, ", "TypeC", @@ -1235,12 +1282,12 @@ "; end: ", "Type", "; }>, ", - "PartialC", - "<{ urlQuery: ", - "StringC", - "; percentile: ", + "TypeC", + "<{ fieldCandidates: ", + "ArrayC", + "<", "StringC", - "; }>]>; }>, ", + ">; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1248,19 +1295,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { pageViews: { value: number; }; totalPageLoadDuration: { value: number; }; backEnd: { value: number; }; frontEnd: { value: number; }; }, ", + ", { failedTransactionsCorrelations: ", + "FailedTransactionsCorrelation", + "[]; ccsWarning: boolean; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/page-load-distribution\": ", + ">; \"GET /internal/apm/backends/charts/error_rate\": ", "ServerRoute", - "<\"GET /internal/apm/ux/page-load-distribution\", ", + "<\"GET /internal/apm/backends/charts/error_rate\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", - "IntersectionC", - "<[", "TypeC", - "<{ uiFilters: ", + "<{ backendName: ", "StringC", "; }>, ", "TypeC", @@ -1269,16 +1316,26 @@ "; end: ", "Type", "; }>, ", - "PartialC", - "<{ urlQuery: ", + "TypeC", + "<{ kuery: ", "StringC", - "; percentile: ", + "; }>, ", + "TypeC", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", "StringC", - "; }>]>, ", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", "PartialC", - "<{ minPercentile: ", - "StringC", - "; maxPercentile: ", + "<{ offset: ", "StringC", "; }>]>; }>, ", { @@ -1288,19 +1345,17 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { pageLoadDistribution: { pageLoadDistribution: { x: number; y: number; }[]; percentiles: Record | undefined; minDuration: number; maxDuration: number; } | null; }, ", + ", { currentTimeseries: { x: number; y: number; }[]; comparisonTimeseries: { x: number; y: number; }[] | null; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/page-load-distribution/breakdown\": ", + ">; \"GET /internal/apm/backends/charts/throughput\": ", "ServerRoute", - "<\"GET /internal/apm/ux/page-load-distribution/breakdown\", ", + "<\"GET /internal/apm/backends/charts/throughput\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", - "IntersectionC", - "<[", "TypeC", - "<{ uiFilters: ", + "<{ backendName: ", "StringC", "; }>, ", "TypeC", @@ -1309,20 +1364,26 @@ "; end: ", "Type", "; }>, ", - "PartialC", - "<{ urlQuery: ", - "StringC", - "; percentile: ", - "StringC", - "; }>]>, ", - "PartialC", - "<{ minPercentile: ", - "StringC", - "; maxPercentile: ", + "TypeC", + "<{ kuery: ", "StringC", "; }>, ", "TypeC", - "<{ breakdown: ", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", + "StringC", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", + "PartialC", + "<{ offset: ", "StringC", "; }>]>; }>, ", { @@ -1332,19 +1393,17 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { pageLoadDistBreakdown: { name: string; data: { x: number; y: number; }[]; }[] | undefined; }, ", + ", { currentTimeseries: { x: number; y: number | null; }[]; comparisonTimeseries: { x: number; y: number | null; }[] | null; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/page-view-trends\": ", + ">; \"GET /internal/apm/backends/charts/latency\": ", "ServerRoute", - "<\"GET /internal/apm/ux/page-view-trends\", ", + "<\"GET /internal/apm/backends/charts/latency\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", - "IntersectionC", - "<[", "TypeC", - "<{ uiFilters: ", + "<{ backendName: ", "StringC", "; }>, ", "TypeC", @@ -1353,14 +1412,26 @@ "; end: ", "Type", "; }>, ", - "PartialC", - "<{ urlQuery: ", + "TypeC", + "<{ kuery: ", "StringC", - "; percentile: ", + "; }>, ", + "TypeC", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", "StringC", - "; }>]>, ", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", "PartialC", - "<{ breakdowns: ", + "<{ offset: ", "StringC", "; }>]>; }>, ", { @@ -1370,17 +1441,17 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { topItems: string[]; items: Record[]; }, ", + ", { currentTimeseries: { x: number; y: number; }[]; comparisonTimeseries: { x: number; y: number; }[] | null; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/services\": ", + ">; \"GET /internal/apm/backends/metadata\": ", "ServerRoute", - "<\"GET /internal/apm/ux/services\", ", + "<\"GET /internal/apm/backends/metadata\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", "TypeC", - "<{ uiFilters: ", + "<{ backendName: ", "StringC", "; }>, ", "TypeC", @@ -1396,17 +1467,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { rumServices: string[]; }, ", + ", { metadata: { spanType: string | undefined; spanSubtype: string | undefined; }; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/visitor-breakdown\": ", + ">; \"GET /internal/apm/backends/upstream_services\": ", "ServerRoute", - "<\"GET /internal/apm/ux/visitor-breakdown\", ", + "<\"GET /internal/apm/backends/upstream_services\", ", + "IntersectionC", + "<[", "TypeC", "<{ query: ", "IntersectionC", "<[", "TypeC", - "<{ uiFilters: ", + "<{ backendName: ", "StringC", "; }>, ", "TypeC", @@ -1415,44 +1488,36 @@ "; end: ", "Type", "; }>, ", - "PartialC", - "<{ urlQuery: ", - "StringC", - "; percentile: ", - "StringC", - "; }>]>; }>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { os: { count: number; name: string; }[]; browsers: { count: number; name: string; }[]; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/web-core-vitals\": ", - "ServerRoute", - "<\"GET /internal/apm/ux/web-core-vitals\", ", "TypeC", + "<{ numBuckets: ", + "Type", + "; }>]>; }>, ", + "PartialC", "<{ query: ", "IntersectionC", "<[", "TypeC", - "<{ uiFilters: ", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", "PartialC", - "<{ urlQuery: ", + "<{ offset: ", "StringC", - "; percentile: ", + "; }>, ", + "TypeC", + "<{ kuery: ", "StringC", - "; }>]>; }>, ", + "; }>]>; }>]>, ", { "pluginId": "apm", "scope": "server", @@ -1460,31 +1525,69 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { coreVitalPages: number; cls: number | null; fid: number | null | undefined; lcp: number | null | undefined; tbt: number; fcp: number | null | undefined; lcpRanks: number[]; fidRanks: number[]; clsRanks: number[]; }, ", + ", { services: { currentStats: { latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; totalTime: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }; previousStats: ({ latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; totalTime: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }) | null; location: ", + "Node", + "; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/long-task-metrics\": ", + ">; \"GET /internal/apm/backends/top_backends\": ", "ServerRoute", - "<\"GET /internal/apm/ux/long-task-metrics\", ", + "<\"GET /internal/apm/backends/top_backends\", ", + "IntersectionC", + "<[", "TypeC", "<{ query: ", "IntersectionC", "<[", "TypeC", - "<{ uiFilters: ", - "StringC", - "; }>, ", - "TypeC", "<{ start: ", "Type", "; end: ", "Type", "; }>, ", - "PartialC", - "<{ urlQuery: ", + "TypeC", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", "StringC", - "; percentile: ", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", + "TypeC", + "<{ kuery: ", "StringC", - "; }>]>; }>, ", + "; }>, ", + "TypeC", + "<{ numBuckets: ", + "Type", + "; }>]>; }>, ", + "PartialC", + "<{ query: ", + "PartialC", + "<{ offset: ", + "StringC", + "; }>; }>]>, ", { "pluginId": "apm", "scope": "server", @@ -1492,31 +1595,29 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { noOfLongTasks: number; sumOfLongTasks: number; longestLongTask: number; }, ", + ", { backends: { currentStats: { latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; totalTime: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }; previousStats: ({ latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; totalTime: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }) | null; location: ", + "Node", + "; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/url-search\": ", + ">; \"POST /internal/apm/fleet/cloud_apm_package_policy\": ", "ServerRoute", - "<\"GET /internal/apm/ux/url-search\", ", - "TypeC", - "<{ query: ", - "IntersectionC", - "<[", - "TypeC", - "<{ uiFilters: ", - "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", - "PartialC", - "<{ urlQuery: ", - "StringC", - "; percentile: ", - "StringC", - "; }>]>; }>, ", + "<\"POST /internal/apm/fleet/cloud_apm_package_policy\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -1524,35 +1625,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { total: number; items: { url: string; count: number; pld: number; }[]; }, ", + ", { cloudApmPackagePolicy: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" + }, + "; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/ux/js-errors\": ", + ">; \"GET /internal/apm/fleet/migration_check\": ", "ServerRoute", - "<\"GET /internal/apm/ux/js-errors\", ", - "TypeC", - "<{ query: ", - "IntersectionC", - "<[", - "TypeC", - "<{ uiFilters: ", - "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", - "TypeC", - "<{ pageSize: ", - "StringC", - "; pageIndex: ", - "StringC", - "; }>, ", - "PartialC", - "<{ urlQuery: ", - "StringC", - "; }>]>; }>, ", + "<\"GET /internal/apm/fleet/migration_check\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -1560,21 +1645,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { totalErrorPages: number; totalErrors: number; totalErrorGroups: number; items: { count: number; errorGroupId: string | number; errorMessage: string; }[] | undefined; }, ", + ", { has_cloud_agent_policy: boolean; has_cloud_apm_package_policy: boolean; cloud_apm_migration_enabled: boolean; has_required_role: boolean | undefined; cloud_apm_package_policy: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackagePolicy", + "text": "PackagePolicy" + }, + " | undefined; has_apm_integrations: boolean; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /api/apm/observability_overview/has_rum_data\": ", + ">; \"GET /internal/apm/fleet/apm_server_schema/unsupported\": ", "ServerRoute", - "<\"GET /api/apm/observability_overview/has_rum_data\", ", - "PartialC", - "<{ query: ", - "PartialC", - "<{ uiFilters: ", - "StringC", - "; start: ", - "Type", - "; end: ", - "Type", - "; }>; }>, ", + "<\"GET /internal/apm/fleet/apm_server_schema/unsupported\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -1582,39 +1665,21 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { indices: string; hasData: boolean; serviceName: string | number | undefined; }, ", + ", { unsupported: { key: string; value: any; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/service-map\": ", + ">; \"POST /api/apm/fleet/apm_server_schema\": ", "ServerRoute", - "<\"GET /internal/apm/service-map\", ", + "<\"POST /api/apm/fleet/apm_server_schema\", ", "TypeC", - "<{ query: ", - "IntersectionC", - "<[", - "PartialC", - "<{ serviceName: ", - "StringC", - "; }>, ", + "<{ body: ", "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", + "<{ schema: ", + "RecordC", "<", "StringC", ", ", - "NonEmptyStringBrand", - ">]>; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>]>; }>, ", + "UnknownC", + ">; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1622,47 +1687,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { elements: (", - "ConnectionElement", - " | { data: { id: string; 'span.type': string; label: string; groupedConnections: ({ 'service.name': string; 'service.environment': string | null; 'agent.name': string; serviceAnomalyStats?: ", - "ServiceAnomalyStats", - " | undefined; label: string | undefined; id?: string | undefined; parent?: string | undefined; position?: cytoscape.Position | undefined; } | { 'span.destination.service.resource': string; 'span.type': string; 'span.subtype': string; label: string | undefined; id?: string | undefined; parent?: string | undefined; position?: cytoscape.Position | undefined; } | { id: string; source: string | undefined; target: string | undefined; label: string | undefined; bidirectional?: boolean | undefined; isInverseEdge?: boolean | undefined; } | undefined)[]; }; } | { data: { id: string; source: string; target: string; }; })[]; }, ", + ", void, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/service-map/service/{serviceName}\": ", + ">; \"GET /internal/apm/fleet/agents\": ", "ServerRoute", - "<\"GET /internal/apm/service-map/service/{serviceName}\", ", - "TypeC", - "<{ path: ", - "TypeC", - "<{ serviceName: ", - "StringC", - "; }>; query: ", - "IntersectionC", - "<[", - "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", - "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", - "PartialC", - "<{ offset: ", - "StringC", - "; }>]>; }>, ", + "<\"GET /internal/apm/fleet/agents\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -1670,47 +1699,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: ", - "NodeStats", - "; previousPeriod: ", - "NodeStats", - " | undefined; }, ", + ", { cloudStandaloneSetup: { apmServerUrl: string | undefined; secretToken: string | undefined; } | undefined; fleetAgents: never[]; isFleetEnabled: false; } | { cloudStandaloneSetup: { apmServerUrl: string | undefined; secretToken: string | undefined; } | undefined; isFleetEnabled: true; fleetAgents: { id: string; name: string; apmServerUrl: any; secretToken: any; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/service-map/backend\": ", + ">; \"GET /internal/apm/fleet/has_data\": ", "ServerRoute", - "<\"GET /internal/apm/service-map/backend\", ", - "TypeC", - "<{ query: ", - "IntersectionC", - "<[", - "TypeC", - "<{ backendName: ", - "StringC", - "; }>, ", - "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", - "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", - "PartialC", - "<{ offset: ", - "StringC", - "; }>]>; }>, ", + "<\"GET /internal/apm/fleet/has_data\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -1718,47 +1711,17 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: ", - "NodeStats", - "; previousPeriod: ", - "NodeStats", - " | undefined; }, ", + ", { hasData: boolean; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/serviceNodes\": ", + ">; \"DELETE /api/apm/sourcemaps/{id}\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/serviceNodes\", ", + "<\"DELETE /api/apm/sourcemaps/{id}\", ", "TypeC", "<{ path: ", "TypeC", - "<{ serviceName: ", - "StringC", - "; }>; query: ", - "IntersectionC", - "<[", - "TypeC", - "<{ kuery: ", - "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", - "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", + "<{ id: ", "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>]>; }>, ", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1766,39 +1729,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { serviceNodes: { name: string; cpu: number | null; heapMemory: number | null; hostName: string | null | undefined; nonHeapMemory: number | null; threadCount: number | null; }[]; }, ", + ", void, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services\": ", + ">; \"POST /api/apm/sourcemaps\": ", "ServerRoute", - "<\"GET /internal/apm/services\", ", + "<\"POST /api/apm/sourcemaps\", ", "TypeC", - "<{ query: ", - "IntersectionC", - "<[", + "<{ body: ", "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", + "<{ service_name: ", "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", - "TypeC", - "<{ kuery: ", + "; service_version: ", "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", + "; bundle_filepath: ", + "StringC", + "; sourcemap: ", "Type", - "; }>]>; }>, ", + "<{ version: number; sources: string[]; mappings: string; } & { names?: string[] | undefined; file?: string | undefined; sourceRoot?: string | undefined; sourcesContent?: string[] | undefined; }, string | Buffer, unknown>; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1806,47 +1753,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { items: JoinedReturnType; hasLegacyData: boolean; }, ", + ", ", + { + "pluginId": "fleet", + "scope": "server", + "docId": "kibFleetPluginApi", + "section": "def-server.Artifact", + "text": "Artifact" + }, + " | undefined, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/detailed_statistics\": ", + ">; \"GET /api/apm/sourcemaps\": ", "ServerRoute", - "<\"GET /internal/apm/services/detailed_statistics\", ", - "TypeC", - "<{ query: ", - "IntersectionC", - "<[", - "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", - "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", - "TypeC", - "<{ kuery: ", - "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", - "PartialC", - "<{ offset: ", - "StringC", - "; }>, ", - "TypeC", - "<{ serviceNames: ", - "Type", - "; }>]>; }>, ", + "<\"GET /api/apm/sourcemaps\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -1854,23 +1773,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: _.Dictionary<{ serviceName: string; latency: { x: number; y: number | null; }[]; transactionErrorRate: { x: number; y: number; }[]; throughput: { x: number; y: number; }[]; }>; previousPeriod: _.Dictionary<{ serviceName: string; latency: { x: number; y: number | null; }[]; transactionErrorRate: { x: number; y: number; }[]; throughput: { x: number; y: number; }[]; }>; }, ", + ", { artifacts: ", + "ArtifactSourceMap", + "[]; } | undefined, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/metadata/details\": ", + ">; \"DELETE /internal/apm/settings/custom_links/{id}\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/metadata/details\", ", + "<\"DELETE /internal/apm/settings/custom_links/{id}\", ", "TypeC", "<{ path: ", "TypeC", - "<{ serviceName: ", + "<{ id: ", "StringC", - "; }>; query: ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>; }>, ", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1878,25 +1793,49 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", ", - "ServiceMetadataDetails", - ", ", + ", { result: string; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/metadata/icons\": ", + ">; \"PUT /internal/apm/settings/custom_links/{id}\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/metadata/icons\", ", + "<\"PUT /internal/apm/settings/custom_links/{id}\", ", "TypeC", "<{ path: ", "TypeC", - "<{ serviceName: ", + "<{ id: ", "StringC", - "; }>; query: ", + "; }>; body: ", + "IntersectionC", + "<[", "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>; }>, ", + "<{ label: ", + "StringC", + "; url: ", + "StringC", + "; }>, ", + "PartialC", + "<{ id: ", + "StringC", + "; filters: ", + "ArrayC", + "<", + "TypeC", + "<{ key: ", + "UnionC", + "<[", + "LiteralC", + "<\"\">, ", + "KeyofC", + "<{ 'service.name': ", + "StringC", + "; 'service.environment': ", + "StringC", + "; 'transaction.name': ", + "StringC", + "; 'transaction.type': ", + "StringC", + "; }>]>; value: ", + "StringC", + "; }>>; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1904,25 +1843,45 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", ", - "ServiceMetadataIcons", - ", ", + ", void, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/agent\": ", + ">; \"POST /internal/apm/settings/custom_links\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/agent\", ", + "<\"POST /internal/apm/settings/custom_links\", ", "TypeC", - "<{ path: ", + "<{ body: ", + "IntersectionC", + "<[", "TypeC", - "<{ serviceName: ", + "<{ label: ", "StringC", - "; }>; query: ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>; }>, ", + "; url: ", + "StringC", + "; }>, ", + "PartialC", + "<{ id: ", + "StringC", + "; filters: ", + "ArrayC", + "<", + "TypeC", + "<{ key: ", + "UnionC", + "<[", + "LiteralC", + "<\"\">, ", + "KeyofC", + "<{ 'service.name': ", + "StringC", + "; 'service.environment': ", + "StringC", + "; 'transaction.name': ", + "StringC", + "; 'transaction.type': ", + "StringC", + "; }>]>; value: ", + "StringC", + "; }>>; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1930,23 +1889,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { agentName?: undefined; runtimeName?: undefined; } | { agentName: string | undefined; runtimeName: string | undefined; }, ", + ", void, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/transaction_types\": ", + ">; \"GET /internal/apm/settings/custom_links\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/transaction_types\", ", - "TypeC", - "<{ path: ", - "TypeC", - "<{ serviceName: ", + "<\"GET /internal/apm/settings/custom_links\", ", + "PartialC", + "<{ query: ", + "PartialC", + "<{ 'service.name': ", "StringC", - "; }>; query: ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>; }>, ", + "; 'service.environment': ", + "StringC", + "; 'transaction.name': ", + "StringC", + "; 'transaction.type': ", + "StringC", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1954,31 +1913,25 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { transactionTypes: string[]; }, ", + ", { customLinks: ", + "CustomLink", + "[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/node/{serviceNodeName}/metadata\": ", + ">; \"GET /internal/apm/settings/custom_links/transaction\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/node/{serviceNodeName}/metadata\", ", - "TypeC", - "<{ path: ", - "TypeC", - "<{ serviceName: ", + "<\"GET /internal/apm/settings/custom_links/transaction\", ", + "PartialC", + "<{ query: ", + "PartialC", + "<{ 'service.name': ", "StringC", - "; serviceNodeName: ", + "; 'service.environment': ", "StringC", - "; }>; query: ", - "IntersectionC", - "<[", - "TypeC", - "<{ kuery: ", + "; 'transaction.name': ", "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>]>; }>, ", + "; 'transaction.type': ", + "StringC", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -1986,21 +1939,87 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { host: string | number; containerId: string | number; }, ", + ", ", + "Transaction", + ", ", "APMRouteCreateOptions", - ">; } & { \"GET /api/apm/services/{serviceName}/annotation/search\": ", + ">; \"POST /internal/apm/settings/apm-indices/save\": ", "ServerRoute", - "<\"GET /api/apm/services/{serviceName}/annotation/search\", ", + "<\"POST /internal/apm/settings/apm-indices/save\", ", "TypeC", - "<{ path: ", + "<{ body: ", + "PartialC", + "; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", ", + "SavedObject", + "<{}>, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/settings/apm-indices\": ", + "ServerRoute", + "<\"GET /internal/apm/settings/apm-indices\", undefined, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", ", + "ApmIndicesConfig", + ", ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/settings/apm-index-settings\": ", + "ServerRoute", + "<\"GET /internal/apm/settings/apm-index-settings\", undefined, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { apmIndexSettings: { configurationName: \"error\" | \"span\" | \"metric\" | \"transaction\" | \"sourcemap\" | \"onboarding\"; defaultValue: string; savedValue: string | undefined; }[]; }, ", + "APMRouteCreateOptions", + ">; \"POST /internal/apm/settings/anomaly-detection/update_to_v3\": ", + "ServerRoute", + "<\"POST /internal/apm/settings/anomaly-detection/update_to_v3\", undefined, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { update: boolean; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/settings/anomaly-detection/environments\": ", + "ServerRoute", + "<\"GET /internal/apm/settings/anomaly-detection/environments\", undefined, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { environments: string[]; }, ", + "APMRouteCreateOptions", + ">; \"POST /internal/apm/settings/anomaly-detection/jobs\": ", + "ServerRoute", + "<\"POST /internal/apm/settings/anomaly-detection/jobs\", ", "TypeC", - "<{ serviceName: ", - "StringC", - "; }>; query: ", - "IntersectionC", - "<[", + "<{ body: ", "TypeC", - "<{ environment: ", + "<{ environments: ", + "ArrayC", + "<", "UnionC", "<[", "LiteralC", @@ -2012,13 +2031,7 @@ "StringC", ", ", "NonEmptyStringBrand", - ">]>; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>]>; }>, ", + ">]>>; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2026,43 +2039,49 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { annotations: ", - "Annotation", - "[]; }, ", + ", { jobCreated: true; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /api/apm/services/{serviceName}/annotation\": ", + ">; \"GET /internal/apm/settings/anomaly-detection/jobs\": ", "ServerRoute", - "<\"POST /api/apm/services/{serviceName}/annotation\", ", + "<\"GET /internal/apm/settings/anomaly-detection/jobs\", undefined, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { jobs: ", + "ApmMlJob", + "[]; hasLegacyJobs: boolean; }, ", + "APMRouteCreateOptions", + ">; \"GET /api/apm/settings/agent-configuration/agent_name\": ", + "ServerRoute", + "<\"GET /api/apm/settings/agent-configuration/agent_name\", ", "TypeC", - "<{ path: ", + "<{ query: ", "TypeC", "<{ serviceName: ", "StringC", - "; }>; body: ", - "IntersectionC", - "<[", - "TypeC", - "<{ '@timestamp': ", - "Type", - "; service: ", - "IntersectionC", - "<[", - "TypeC", - "<{ version: ", - "StringC", - "; }>, ", + "; }>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { agentName: string | undefined; }, ", + "APMRouteCreateOptions", + ">; \"GET /api/apm/settings/agent-configuration/environments\": ", + "ServerRoute", + "<\"GET /api/apm/settings/agent-configuration/environments\", ", "PartialC", - "<{ environment: ", - "StringC", - "; }>]>; }>, ", + "<{ query: ", "PartialC", - "<{ message: ", - "StringC", - "; tags: ", - "ArrayC", - "<", + "<{ serviceName: ", "StringC", - ">; }>]>; }>, ", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2070,25 +2089,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", unknown, ", + ", { environments: { name: string; alreadyConfigured: boolean; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/service_overview_instances/details/{serviceNodeName}\": ", + ">; \"GET /api/apm/settings/agent-configuration/services\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/service_overview_instances/details/{serviceNodeName}\", ", - "TypeC", - "<{ path: ", - "TypeC", - "<{ serviceName: ", - "StringC", - "; serviceNodeName: ", - "StringC", - "; }>; query: ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>; }>, ", + "<\"GET /api/apm/settings/agent-configuration/services\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -2096,81 +2101,81 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { '@timestamp': string; agent: (", - "Agent", - " & { name: string; version: string; }) | ({ name: string; version: string; } & ", - "Agent", - "); service: ", - "Service", - " | (", - "Service", - " & { name: string; node?: { name: string; } | undefined; environment?: string | undefined; version?: string | undefined; }) | (", - "Service", - " & { node?: { name: string; } | undefined; }) | (", - "Service", - " & { name: string; node?: { name: string; } | undefined; environment?: string | undefined; version?: string | undefined; } & { node?: { name: string; } | undefined; }) | (", - "Service", - " & { node?: { name: string; } | undefined; } & { name: string; node?: { name: string; } | undefined; environment?: string | undefined; version?: string | undefined; }); container: ", - "Container", - " | undefined; kubernetes: ", - "Kubernetes", - " | undefined; host: ", - "Host", - " | undefined; cloud: ", - "Cloud", - " | undefined; }, ", + ", { serviceNames: string[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/throughput\": ", + ">; \"POST /api/apm/settings/agent-configuration/search\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/throughput\", ", + "<\"POST /api/apm/settings/agent-configuration/search\", ", "TypeC", - "<{ path: ", + "<{ body: ", + "IntersectionC", + "<[", "TypeC", - "<{ serviceName: ", + "<{ service: ", + "PartialC", + "<{ name: ", "StringC", - "; }>; query: ", + "; environment: ", + "StringC", + "; }>; }>, ", + "PartialC", + "<{ etag: ", + "StringC", + "; mark_as_applied_by_agent: ", + "BooleanC", + "; }>]>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", ", + "SearchHit", + "<", + "AgentConfiguration", + ", undefined, undefined> | null, ", + "APMRouteCreateOptions", + ">; \"PUT /api/apm/settings/agent-configuration\": ", + "ServerRoute", + "<\"PUT /api/apm/settings/agent-configuration\", ", "IntersectionC", "<[", + "PartialC", + "<{ query: ", + "PartialC", + "<{ overwrite: ", + "Type", + "; }>; }>, ", "TypeC", - "<{ transactionType: ", + "<{ body: ", + "IntersectionC", + "<[", + "PartialC", + "<{ agent_name: ", "StringC", "; }>, ", + "TypeC", + "<{ service: ", "PartialC", - "<{ transactionName: ", + "<{ name: ", "StringC", - "; }>, ", + "; environment: ", + "StringC", + "; }>; settings: ", "IntersectionC", "<[", - "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", + "RecordC", "<", "StringC", ", ", - "NonEmptyStringBrand", - ">]>; }>, ", - "TypeC", - "<{ kuery: ", "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", + ">, ", "PartialC", - "<{ comparisonStart: ", - "Type", - "; comparisonEnd: ", - "Type", - "; }>]>]>; }>, ", + ">]>; }>]>; }>]>, ", { "pluginId": "apm", "scope": "server", @@ -2178,45 +2183,87 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: { x: number; y: number | null; }[]; previousPeriod: { x: number; y: ", - "Maybe", - "; }[]; }, ", + ", void, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/service_overview_instances/main_statistics\": ", + ">; \"DELETE /api/apm/settings/agent-configuration\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/service_overview_instances/main_statistics\", ", + "<\"DELETE /api/apm/settings/agent-configuration\", ", "TypeC", - "<{ path: ", + "<{ body: ", "TypeC", - "<{ serviceName: ", + "<{ service: ", + "PartialC", + "<{ name: ", "StringC", - "; }>; query: ", + "; environment: ", + "StringC", + "; }>; }>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { result: string; }, ", + "APMRouteCreateOptions", + ">; \"GET /api/apm/settings/agent-configuration/view\": ", + "ServerRoute", + "<\"GET /api/apm/settings/agent-configuration/view\", ", + "PartialC", + "<{ query: ", + "PartialC", + "<{ name: ", + "StringC", + "; environment: ", + "StringC", + "; }>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", ", + "AgentConfiguration", + ", ", + "APMRouteCreateOptions", + ">; \"GET /api/apm/settings/agent-configuration\": ", + "ServerRoute", + "<\"GET /api/apm/settings/agent-configuration\", undefined, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { configurations: ", + "AgentConfiguration", + "[]; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/alerts/chart_preview/transaction_duration\": ", + "ServerRoute", + "<\"GET /internal/apm/alerts/chart_preview/transaction_duration\", ", + "TypeC", + "<{ query: ", "IntersectionC", "<[", - "TypeC", - "<{ latencyAggregationType: ", + "PartialC", + "<{ aggregationType: ", "UnionC", "<[", "LiteralC", - "<", - "LatencyAggregationType", - ".avg>, ", + "<\"avg\">, ", "LiteralC", - "<", - "LatencyAggregationType", - ".p95>, ", + "<\"95th\">, ", "LiteralC", - "<", - "LatencyAggregationType", - ".p99>]>; transactionType: ", + "<\"99th\">]>; serviceName: ", + "StringC", + "; transactionType: ", "StringC", "; }>, ", - "PartialC", - "<{ comparisonStart: ", - "Type", - "; comparisonEnd: ", - "Type", - "; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -2232,15 +2279,15 @@ "NonEmptyStringBrand", ">]>; }>, ", "TypeC", - "<{ kuery: ", - "StringC", - "; }>, ", - "TypeC", "<{ start: ", "Type", "; end: ", "Type", - "; }>]>; }>, ", + "; }>, ", + "TypeC", + "<{ interval: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2248,41 +2295,29 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: { serviceNodeName: string; errorRate?: number | undefined; latency?: number | undefined; throughput?: number | undefined; cpuUsage?: number | null | undefined; memoryUsage?: number | null | undefined; }[]; previousPeriod: { serviceNodeName: string; errorRate?: number | undefined; latency?: number | undefined; throughput?: number | undefined; cpuUsage?: number | null | undefined; memoryUsage?: number | null | undefined; }[]; }, ", + ", { latencyChartPreview: { x: number; y: number | null; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/service_overview_instances/detailed_statistics\": ", + ">; \"GET /internal/apm/alerts/chart_preview/transaction_error_count\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/service_overview_instances/detailed_statistics\", ", - "TypeC", - "<{ path: ", + "<\"GET /internal/apm/alerts/chart_preview/transaction_error_count\", ", "TypeC", - "<{ serviceName: ", - "StringC", - "; }>; query: ", + "<{ query: ", "IntersectionC", "<[", - "TypeC", - "<{ latencyAggregationType: ", + "PartialC", + "<{ aggregationType: ", "UnionC", "<[", "LiteralC", - "<", - "LatencyAggregationType", - ".avg>, ", + "<\"avg\">, ", "LiteralC", - "<", - "LatencyAggregationType", - ".p95>, ", + "<\"95th\">, ", "LiteralC", - "<", - "LatencyAggregationType", - ".p99>]>; transactionType: ", + "<\"99th\">]>; serviceName: ", "StringC", - "; serviceNodeIds: ", - "Type", - "; numBuckets: ", - "Type", - "; }>, ", + "; transactionType: ", + "StringC", + "; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -2298,21 +2333,15 @@ "NonEmptyStringBrand", ">]>; }>, ", "TypeC", - "<{ kuery: ", - "StringC", - "; }>, ", - "TypeC", "<{ start: ", "Type", "; end: ", "Type", "; }>, ", - "PartialC", - "<{ comparisonStart: ", - "Type", - "; comparisonEnd: ", - "Type", - "; }>]>; }>, ", + "TypeC", + "<{ interval: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2320,43 +2349,29 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: _.Dictionary<{ serviceNodeName: string; errorRate?: ", - "Coordinate", - "[] | undefined; latency?: ", - "Coordinate", - "[] | undefined; throughput?: ", - "Coordinate", - "[] | undefined; cpuUsage?: ", - "Coordinate", - "[] | undefined; memoryUsage?: ", - "Coordinate", - "[] | undefined; }>; previousPeriod: _.Dictionary<{ cpuUsage: { x: number; y: ", - "Maybe", - "; }[]; errorRate: { x: number; y: ", - "Maybe", - "; }[]; latency: { x: number; y: ", - "Maybe", - "; }[]; memoryUsage: { x: number; y: ", - "Maybe", - "; }[]; throughput: { x: number; y: ", - "Maybe", - "; }[]; serviceNodeName: string; }>; }, ", + ", { errorCountChartPreview: { x: number; y: number; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/dependencies\": ", + ">; \"GET /internal/apm/alerts/chart_preview/transaction_error_rate\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/dependencies\", ", - "TypeC", - "<{ path: ", + "<\"GET /internal/apm/alerts/chart_preview/transaction_error_rate\", ", "TypeC", - "<{ serviceName: ", - "StringC", - "; }>; query: ", + "<{ query: ", "IntersectionC", "<[", - "TypeC", - "<{ numBuckets: ", - "Type", - "; }>, ", + "PartialC", + "<{ aggregationType: ", + "UnionC", + "<[", + "LiteralC", + "<\"avg\">, ", + "LiteralC", + "<\"95th\">, ", + "LiteralC", + "<\"99th\">]>; serviceName: ", + "StringC", + "; transactionType: ", + "StringC", + "; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -2377,8 +2392,8 @@ "; end: ", "Type", "; }>, ", - "PartialC", - "<{ offset: ", + "TypeC", + "<{ interval: ", "StringC", "; }>]>; }>, ", { @@ -2388,29 +2403,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { serviceDependencies: { currentStats: { latency: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; throughput: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; errorRate: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; totalTime: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; } & { impact: number; }; previousStats: ({ latency: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; throughput: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; errorRate: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; totalTime: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; } & { impact: number; }) | null; location: ", - "Node", - "; }[]; }, ", + ", { errorRateChartPreview: { x: number; y: number; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/dependencies/breakdown\": ", + ">; \"GET /internal/apm/services/{serviceName}/transactions/charts/error_rate\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/dependencies/breakdown\", ", + "<\"GET /internal/apm/services/{serviceName}/transactions/charts/error_rate\", ", "TypeC", "<{ path: ", "TypeC", @@ -2420,6 +2417,16 @@ "IntersectionC", "<[", "TypeC", + "<{ transactionType: ", + "StringC", + "; }>, ", + "PartialC", + "<{ transactionName: ", + "StringC", + "; }>, ", + "IntersectionC", + "<[", + "TypeC", "<{ environment: ", "UnionC", "<[", @@ -2434,15 +2441,21 @@ "NonEmptyStringBrand", ">]>; }>, ", "TypeC", + "<{ kuery: ", + "StringC", + "; }>, ", + "TypeC", "<{ start: ", "Type", "; end: ", "Type", "; }>, ", - "TypeC", - "<{ kuery: ", - "StringC", - "; }>]>; }>, ", + "PartialC", + "<{ comparisonStart: ", + "Type", + "; comparisonEnd: ", + "Type", + "; }>]>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2450,11 +2463,17 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { breakdown: { title: string; data: { x: number; y: number; }[]; }[]; }, ", + ", { currentPeriod: { timeseries: ", + "Coordinate", + "[]; average: number | null; }; previousPeriod: { timeseries: { x: number; y: ", + "Maybe", + "; }[]; average: number | null; } | { timeseries: { x: number; y: ", + "Maybe", + "; }[]; average: null; }; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/profiling/timeline\": ", + ">; \"GET /internal/apm/services/{serviceName}/transaction/charts/breakdown\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/profiling/timeline\", ", + "<\"GET /internal/apm/services/{serviceName}/transaction/charts/breakdown\", ", "TypeC", "<{ path: ", "TypeC", @@ -2464,6 +2483,14 @@ "IntersectionC", "<[", "TypeC", + "<{ transactionType: ", + "StringC", + "; }>, ", + "PartialC", + "<{ transactionName: ", + "StringC", + "; }>, ", + "TypeC", "<{ environment: ", "UnionC", "<[", @@ -2494,11 +2521,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { profilingTimeline: { x: number; valueTypes: { wall_time: number; cpu_time: number; samples: number; alloc_objects: number; alloc_space: number; inuse_objects: number; inuse_space: number; unknown: number; }; }[]; }, ", + ", { timeseries: { title: string; color: string; type: string; data: { x: number; y: number | null; }[]; hideLegend: boolean; legendValue: string; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/profiling/statistics\": ", + ">; \"GET /internal/apm/services/{serviceName}/transactions/traces/samples\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/profiling/statistics\", ", + "<\"GET /internal/apm/services/{serviceName}/transactions/traces/samples\", ", "TypeC", "<{ path: ", "TypeC", @@ -2508,6 +2535,22 @@ "IntersectionC", "<[", "TypeC", + "<{ transactionType: ", + "StringC", + "; transactionName: ", + "StringC", + "; }>, ", + "PartialC", + "<{ transactionId: ", + "StringC", + "; traceId: ", + "StringC", + "; sampleRangeFrom: ", + "Type", + "; sampleRangeTo: ", + "Type", + "; }>, ", + "TypeC", "<{ environment: ", "UnionC", "<[", @@ -2530,39 +2573,7 @@ "Type", "; end: ", "Type", - "; }>, ", - "TypeC", - "<{ valueType: ", - "UnionC", - "<[", - "LiteralC", - "<", - "ProfilingValueType", - ".wallTime>, ", - "LiteralC", - "<", - "ProfilingValueType", - ".cpuTime>, ", - "LiteralC", - "<", - "ProfilingValueType", - ".samples>, ", - "LiteralC", - "<", - "ProfilingValueType", - ".allocObjects>, ", - "LiteralC", - "<", - "ProfilingValueType", - ".allocSpace>, ", - "LiteralC", - "<", - "ProfilingValueType", - ".inuseObjects>, ", - "LiteralC", - "<", - "ProfilingValueType", - ".inuseSpace>]>; }>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2570,13 +2581,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { nodes: Record; rootNodes: string[]; }, ", + ", { traceSamples: { transactionId: string; traceId: string; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/alerts\": ", + ">; \"GET /internal/apm/services/{serviceName}/transactions/charts/latency\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/alerts\", ", + "<\"GET /internal/apm/services/{serviceName}/transactions/charts/latency\", ", "TypeC", "<{ path: ", "TypeC", @@ -2586,11 +2595,29 @@ "IntersectionC", "<[", "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", + "<{ transactionType: ", + "StringC", + "; latencyAggregationType: ", + "UnionC", + "<[", + "LiteralC", + "<", + "LatencyAggregationType", + ".avg>, ", + "LiteralC", + "<", + "LatencyAggregationType", + ".p95>, ", + "LiteralC", + "<", + "LatencyAggregationType", + ".p99>]>; }>, ", + "PartialC", + "<{ transactionName: ", + "StringC", + "; }>, ", + "IntersectionC", + "<[", "TypeC", "<{ environment: ", "UnionC", @@ -2606,9 +2633,21 @@ "NonEmptyStringBrand", ">]>; }>, ", "TypeC", - "<{ transactionType: ", + "<{ kuery: ", "StringC", - "; }>]>; }>, ", + "; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "PartialC", + "<{ comparisonStart: ", + "Type", + "; comparisonEnd: ", + "Type", + "; }>]>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2616,11 +2655,15 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { alerts: Partial>[]; }, ", + ", { currentPeriod: { overallAvgDuration: number | null; latencyTimeseries: { x: number; y: number | null; }[]; }; previousPeriod: { latencyTimeseries: { x: number; y: ", + "Maybe", + "; }[]; overallAvgDuration: number | null; } | { latencyTimeseries: { x: number; y: ", + "Maybe", + "; }[]; overallAvgDuration: null; }; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/infrastructure\": ", + ">; \"GET /internal/apm/services/{serviceName}/transactions/groups/detailed_statistics\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/infrastructure\", ", + "<\"GET /internal/apm/services/{serviceName}/transactions/groups/detailed_statistics\", ", "TypeC", "<{ path: ", "TypeC", @@ -2630,16 +2673,6 @@ "IntersectionC", "<[", "TypeC", - "<{ kuery: ", - "StringC", - "; }>, ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>, ", - "TypeC", "<{ environment: ", "UnionC", "<[", @@ -2652,37 +2685,45 @@ "StringC", ", ", "NonEmptyStringBrand", - ">]>; }>]>; }>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { serviceInfrastructure: { containerIds: string[]; hostNames: string[]; }; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/anomaly_charts\": ", - "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/anomaly_charts\", ", - "TypeC", - "<{ path: ", + ">]>; }>, ", "TypeC", - "<{ serviceName: ", + "<{ kuery: ", "StringC", - "; }>; query: ", - "IntersectionC", - "<[", + "; }>, ", "TypeC", "<{ start: ", "Type", "; end: ", "Type", "; }>, ", + "PartialC", + "<{ comparisonStart: ", + "Type", + "; comparisonEnd: ", + "Type", + "; }>, ", "TypeC", - "<{ transactionType: ", - "StringC", - "; }>]>; }>, ", + "<{ transactionNames: ", + "Type", + "; numBuckets: ", + "Type", + "; transactionType: ", + "StringC", + "; latencyAggregationType: ", + "UnionC", + "<[", + "LiteralC", + "<", + "LatencyAggregationType", + ".avg>, ", + "LiteralC", + "<", + "LatencyAggregationType", + ".p95>, ", + "LiteralC", + "<", + "LatencyAggregationType", + ".p99>]>; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2690,19 +2731,89 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { allAnomalyTimeseries: ", - "ServiceAnomalyTimeseries", - "[]; }, ", + ", { currentPeriod: _.Dictionary<{ transactionName: string; latency: ", + "Coordinate", + "[]; throughput: ", + "Coordinate", + "[]; errorRate: ", + "Coordinate", + "[]; impact: number; }>; previousPeriod: _.Dictionary<{ errorRate: { x: number; y: ", + "Maybe", + "; }[]; throughput: { x: number; y: ", + "Maybe", + "; }[]; latency: { x: number; y: ", + "Maybe", + "; }[]; transactionName: string; impact: number; }>; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/suggestions\": ", + ">; \"GET /internal/apm/services/{serviceName}/transactions/groups/main_statistics\": ", "ServerRoute", - "<\"GET /internal/apm/suggestions\", ", - "PartialC", - "<{ query: ", + "<\"GET /internal/apm/services/{serviceName}/transactions/groups/main_statistics\", ", "TypeC", - "<{ field: ", + "<{ path: ", + "TypeC", + "<{ serviceName: ", "StringC", - "; string: ", + "; }>; query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", + "StringC", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", + "TypeC", + "<{ kuery: ", + "StringC", + "; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "TypeC", + "<{ transactionType: ", + "StringC", + "; latencyAggregationType: ", + "UnionC", + "<[", + "LiteralC", + "<", + "LatencyAggregationType", + ".avg>, ", + "LiteralC", + "<", + "LatencyAggregationType", + ".p95>, ", + "LiteralC", + "<", + "LatencyAggregationType", + ".p99>]>; }>]>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { transactionGroups: { transactionType: string; name: string; latency: number | null; throughput: number; errorRate: number; impact: number; }[]; isAggregationAccurate: boolean; bucketSize: number; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/transactions/{transactionId}\": ", + "ServerRoute", + "<\"GET /internal/apm/transactions/{transactionId}\", ", + "TypeC", + "<{ path: ", + "TypeC", + "<{ transactionId: ", "StringC", "; }>; }>, ", { @@ -2712,23 +2823,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { terms: string[]; }, ", + ", { transaction: ", + "Transaction", + "; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/traces/{traceId}\": ", + ">; \"GET /internal/apm/traces/{traceId}/root_transaction\": ", "ServerRoute", - "<\"GET /internal/apm/traces/{traceId}\", ", + "<\"GET /internal/apm/traces/{traceId}/root_transaction\", ", "TypeC", "<{ path: ", "TypeC", "<{ traceId: ", "StringC", - "; }>; query: ", - "TypeC", - "<{ start: ", - "Type", - "; end: ", - "Type", - "; }>; }>, ", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2736,15 +2843,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { exceedsMax: boolean; traceDocs: (", + ", { transaction: ", "Transaction", - " | ", - "Span", - ")[]; errorDocs: ", - "APMError", - "[]; }, ", + "; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/traces\": ", + ">; \"GET /internal/apm/traces\": ", "ServerRoute", "<\"GET /internal/apm/traces\", ", "TypeC", @@ -2788,15 +2891,21 @@ "AgentName", "; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/traces/{traceId}/root_transaction\": ", + ">; \"GET /internal/apm/traces/{traceId}\": ", "ServerRoute", - "<\"GET /internal/apm/traces/{traceId}/root_transaction\", ", + "<\"GET /internal/apm/traces/{traceId}\", ", "TypeC", "<{ path: ", "TypeC", "<{ traceId: ", "StringC", - "; }>; }>, ", + "; }>; query: ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2804,19 +2913,55 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { transaction: ", + ", { exceedsMax: boolean; traceDocs: (", "Transaction", - "; }, ", + " | ", + "Span", + ")[]; errorDocs: ", + "APMError", + "[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/transactions/{transactionId}\": ", + ">; \"GET /internal/apm/suggestions\": ", "ServerRoute", - "<\"GET /internal/apm/transactions/{transactionId}\", ", + "<\"GET /internal/apm/suggestions\", ", + "PartialC", + "<{ query: ", + "TypeC", + "<{ field: ", + "StringC", + "; string: ", + "StringC", + "; }>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { terms: string[]; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/services/{serviceName}/anomaly_charts\": ", + "ServerRoute", + "<\"GET /internal/apm/services/{serviceName}/anomaly_charts\", ", "TypeC", "<{ path: ", "TypeC", - "<{ transactionId: ", + "<{ serviceName: ", "StringC", - "; }>; }>, ", + "; }>; query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "TypeC", + "<{ transactionType: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2824,13 +2969,13 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { transaction: ", - "Transaction", - "; }, ", + ", { allAnomalyTimeseries: ", + "ServiceAnomalyTimeseries", + "[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/transactions/groups/main_statistics\": ", + ">; \"GET /internal/apm/services/{serviceName}/infrastructure\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/transactions/groups/main_statistics\", ", + "<\"GET /internal/apm/services/{serviceName}/infrastructure\", ", "TypeC", "<{ path: ", "TypeC", @@ -2840,6 +2985,16 @@ "IntersectionC", "<[", "TypeC", + "<{ kuery: ", + "StringC", + "; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "TypeC", "<{ environment: ", "UnionC", "<[", @@ -2852,11 +3007,27 @@ "StringC", ", ", "NonEmptyStringBrand", - ">]>; }>, ", + ">]>; }>]>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { serviceInfrastructure: { containerIds: string[]; hostNames: string[]; }; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/services/{serviceName}/alerts\": ", + "ServerRoute", + "<\"GET /internal/apm/services/{serviceName}/alerts\", ", "TypeC", - "<{ kuery: ", + "<{ path: ", + "TypeC", + "<{ serviceName: ", "StringC", - "; }>, ", + "; }>; query: ", + "IntersectionC", + "<[", "TypeC", "<{ start: ", "Type", @@ -2864,23 +3035,23 @@ "Type", "; }>, ", "TypeC", - "<{ transactionType: ", - "StringC", - "; latencyAggregationType: ", + "<{ environment: ", "UnionC", "<[", "LiteralC", - "<", - "LatencyAggregationType", - ".avg>, ", - "LiteralC", - "<", - "LatencyAggregationType", - ".p95>, ", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", "<", - "LatencyAggregationType", - ".p99>]>; }>]>; }>, ", + "StringC", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", + "TypeC", + "<{ transactionType: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2888,11 +3059,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { transactionGroups: { transactionType: string; name: string; latency: number | null; throughput: number; errorRate: number; impact: number; }[]; isAggregationAccurate: boolean; bucketSize: number; }, ", + ", { alerts: Partial>[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/transactions/groups/detailed_statistics\": ", + ">; \"GET /internal/apm/services/{serviceName}/profiling/statistics\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/transactions/groups/detailed_statistics\", ", + "<\"GET /internal/apm/services/{serviceName}/profiling/statistics\", ", "TypeC", "<{ path: ", "TypeC", @@ -2925,34 +3096,38 @@ "; end: ", "Type", "; }>, ", - "PartialC", - "<{ comparisonStart: ", - "Type", - "; comparisonEnd: ", - "Type", - "; }>, ", "TypeC", - "<{ transactionNames: ", - "Type", - "; numBuckets: ", - "Type", - "; transactionType: ", - "StringC", - "; latencyAggregationType: ", + "<{ valueType: ", "UnionC", "<[", "LiteralC", "<", - "LatencyAggregationType", - ".avg>, ", + "ProfilingValueType", + ".wallTime>, ", "LiteralC", "<", - "LatencyAggregationType", - ".p95>, ", + "ProfilingValueType", + ".cpuTime>, ", "LiteralC", "<", - "LatencyAggregationType", - ".p99>]>; }>]>; }>, ", + "ProfilingValueType", + ".samples>, ", + "LiteralC", + "<", + "ProfilingValueType", + ".allocObjects>, ", + "LiteralC", + "<", + "ProfilingValueType", + ".allocSpace>, ", + "LiteralC", + "<", + "ProfilingValueType", + ".inuseObjects>, ", + "LiteralC", + "<", + "ProfilingValueType", + ".inuseSpace>]>; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -2960,23 +3135,13 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: _.Dictionary<{ transactionName: string; latency: ", - "Coordinate", - "[]; throughput: ", - "Coordinate", - "[]; errorRate: ", - "Coordinate", - "[]; impact: number; }>; previousPeriod: _.Dictionary<{ errorRate: { x: number; y: ", - "Maybe", - "; }[]; throughput: { x: number; y: ", - "Maybe", - "; }[]; latency: { x: number; y: ", - "Maybe", - "; }[]; transactionName: string; impact: number; }>; }, ", + ", { nodes: Record; rootNodes: string[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/transactions/charts/latency\": ", + ">; \"GET /internal/apm/services/{serviceName}/profiling/timeline\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/transactions/charts/latency\", ", + "<\"GET /internal/apm/services/{serviceName}/profiling/timeline\", ", "TypeC", "<{ path: ", "TypeC", @@ -2986,30 +3151,6 @@ "IntersectionC", "<[", "TypeC", - "<{ transactionType: ", - "StringC", - "; latencyAggregationType: ", - "UnionC", - "<[", - "LiteralC", - "<", - "LatencyAggregationType", - ".avg>, ", - "LiteralC", - "<", - "LatencyAggregationType", - ".p95>, ", - "LiteralC", - "<", - "LatencyAggregationType", - ".p99>]>; }>, ", - "PartialC", - "<{ transactionName: ", - "StringC", - "; }>, ", - "IntersectionC", - "<[", - "TypeC", "<{ environment: ", "UnionC", "<[", @@ -3032,13 +3173,7 @@ "Type", "; end: ", "Type", - "; }>, ", - "PartialC", - "<{ comparisonStart: ", - "Type", - "; comparisonEnd: ", - "Type", - "; }>]>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3046,13 +3181,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: { overallAvgDuration: number | null; latencyTimeseries: { x: number; y: number | null; }[]; }; previousPeriod: { latencyTimeseries: { x: number; y: ", - "Maybe", - "; }[]; overallAvgDuration: number | null; }; }, ", + ", { profilingTimeline: { x: number; valueTypes: { wall_time: number; cpu_time: number; samples: number; alloc_objects: number; alloc_space: number; inuse_objects: number; inuse_space: number; unknown: number; }; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/transactions/traces/samples\": ", + ">; \"GET /internal/apm/services/{serviceName}/dependencies/breakdown\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/transactions/traces/samples\", ", + "<\"GET /internal/apm/services/{serviceName}/dependencies/breakdown\", ", "TypeC", "<{ path: ", "TypeC", @@ -3062,22 +3195,6 @@ "IntersectionC", "<[", "TypeC", - "<{ transactionType: ", - "StringC", - "; transactionName: ", - "StringC", - "; }>, ", - "PartialC", - "<{ transactionId: ", - "StringC", - "; traceId: ", - "StringC", - "; sampleRangeFrom: ", - "Type", - "; sampleRangeTo: ", - "Type", - "; }>, ", - "TypeC", "<{ environment: ", "UnionC", "<[", @@ -3092,15 +3209,15 @@ "NonEmptyStringBrand", ">]>; }>, ", "TypeC", - "<{ kuery: ", - "StringC", - "; }>, ", - "TypeC", "<{ start: ", "Type", "; end: ", "Type", - "; }>]>; }>, ", + "; }>, ", + "TypeC", + "<{ kuery: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3108,11 +3225,11 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { traceSamples: { transactionId: string; traceId: string; }[]; }, ", + ", { breakdown: { title: string; data: { x: number; y: number; }[]; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/transaction/charts/breakdown\": ", + ">; \"GET /internal/apm/services/{serviceName}/dependencies\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/transaction/charts/breakdown\", ", + "<\"GET /internal/apm/services/{serviceName}/dependencies\", ", "TypeC", "<{ path: ", "TypeC", @@ -3122,13 +3239,9 @@ "IntersectionC", "<[", "TypeC", - "<{ transactionType: ", - "StringC", - "; }>, ", - "PartialC", - "<{ transactionName: ", - "StringC", - "; }>, ", + "<{ numBuckets: ", + "Type", + "; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -3144,15 +3257,15 @@ "NonEmptyStringBrand", ">]>; }>, ", "TypeC", - "<{ kuery: ", - "StringC", - "; }>, ", - "TypeC", "<{ start: ", "Type", "; end: ", "Type", - "; }>]>; }>, ", + "; }>, ", + "PartialC", + "<{ offset: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3160,11 +3273,29 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { timeseries: { title: string; color: string; type: string; data: { x: number; y: number | null; }[]; hideLegend: boolean; legendValue: string; }[]; }, ", + ", { serviceDependencies: { currentStats: { latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; totalTime: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }; previousStats: ({ latency: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; throughput: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; errorRate: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; totalTime: { value: number | null; timeseries: ", + "Coordinate", + "[]; }; } & { impact: number; }) | null; location: ", + "Node", + "; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/services/{serviceName}/transactions/charts/error_rate\": ", + ">; \"GET /internal/apm/services/{serviceName}/service_overview_instances/detailed_statistics\": ", "ServerRoute", - "<\"GET /internal/apm/services/{serviceName}/transactions/charts/error_rate\", ", + "<\"GET /internal/apm/services/{serviceName}/service_overview_instances/detailed_statistics\", ", "TypeC", "<{ path: ", "TypeC", @@ -3174,15 +3305,27 @@ "IntersectionC", "<[", "TypeC", - "<{ transactionType: ", - "StringC", - "; }>, ", - "PartialC", - "<{ transactionName: ", - "StringC", - "; }>, ", - "IntersectionC", + "<{ latencyAggregationType: ", + "UnionC", "<[", + "LiteralC", + "<", + "LatencyAggregationType", + ".avg>, ", + "LiteralC", + "<", + "LatencyAggregationType", + ".p95>, ", + "LiteralC", + "<", + "LatencyAggregationType", + ".p99>]>; transactionType: ", + "StringC", + "; serviceNodeIds: ", + "Type", + "; numBuckets: ", + "Type", + "; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -3212,7 +3355,7 @@ "Type", "; comparisonEnd: ", "Type", - "; }>]>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3220,33 +3363,63 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentPeriod: { timeseries: ", + ", { currentPeriod: _.Dictionary<{ serviceNodeName: string; errorRate?: ", "Coordinate", - "[]; average: number | null; }; previousPeriod: { timeseries: { x: number; y: ", + "[] | undefined; latency?: ", + "Coordinate", + "[] | undefined; throughput?: ", + "Coordinate", + "[] | undefined; cpuUsage?: ", + "Coordinate", + "[] | undefined; memoryUsage?: ", + "Coordinate", + "[] | undefined; }>; previousPeriod: _.Dictionary<{ cpuUsage: { x: number; y: ", + "Maybe", + "; }[]; errorRate: { x: number; y: ", + "Maybe", + "; }[]; latency: { x: number; y: ", + "Maybe", + "; }[]; memoryUsage: { x: number; y: ", + "Maybe", + "; }[]; throughput: { x: number; y: ", "Maybe", - "; }[]; average: number | null; }; }, ", + "; }[]; serviceNodeName: string; }>; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/alerts/chart_preview/transaction_error_rate\": ", + ">; \"GET /internal/apm/services/{serviceName}/service_overview_instances/main_statistics\": ", "ServerRoute", - "<\"GET /internal/apm/alerts/chart_preview/transaction_error_rate\", ", + "<\"GET /internal/apm/services/{serviceName}/service_overview_instances/main_statistics\", ", "TypeC", - "<{ query: ", + "<{ path: ", + "TypeC", + "<{ serviceName: ", + "StringC", + "; }>; query: ", "IntersectionC", "<[", - "PartialC", - "<{ aggregationType: ", + "TypeC", + "<{ latencyAggregationType: ", "UnionC", "<[", "LiteralC", - "<\"avg\">, ", + "<", + "LatencyAggregationType", + ".avg>, ", "LiteralC", - "<\"95th\">, ", + "<", + "LatencyAggregationType", + ".p95>, ", "LiteralC", - "<\"99th\">]>; serviceName: ", - "StringC", - "; transactionType: ", + "<", + "LatencyAggregationType", + ".p99>]>; transactionType: ", "StringC", "; }>, ", + "PartialC", + "<{ comparisonStart: ", + "Type", + "; comparisonEnd: ", + "Type", + "; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -3262,15 +3435,15 @@ "NonEmptyStringBrand", ">]>; }>, ", "TypeC", + "<{ kuery: ", + "StringC", + "; }>, ", + "TypeC", "<{ start: ", "Type", "; end: ", "Type", - "; }>, ", - "TypeC", - "<{ interval: ", - "StringC", - "; }>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3278,29 +3451,29 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { errorRateChartPreview: { x: number; y: number; }[]; }, ", + ", { currentPeriod: { serviceNodeName: string; errorRate?: number | undefined; latency?: number | undefined; throughput?: number | undefined; cpuUsage?: number | null | undefined; memoryUsage?: number | null | undefined; }[]; previousPeriod: { serviceNodeName: string; errorRate?: number | undefined; latency?: number | undefined; throughput?: number | undefined; cpuUsage?: number | null | undefined; memoryUsage?: number | null | undefined; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/alerts/chart_preview/transaction_duration\": ", + ">; \"GET /internal/apm/services/{serviceName}/throughput\": ", "ServerRoute", - "<\"GET /internal/apm/alerts/chart_preview/transaction_duration\", ", + "<\"GET /internal/apm/services/{serviceName}/throughput\", ", "TypeC", - "<{ query: ", + "<{ path: ", + "TypeC", + "<{ serviceName: ", + "StringC", + "; }>; query: ", "IntersectionC", "<[", - "PartialC", - "<{ aggregationType: ", - "UnionC", - "<[", - "LiteralC", - "<\"avg\">, ", - "LiteralC", - "<\"95th\">, ", - "LiteralC", - "<\"99th\">]>; serviceName: ", + "TypeC", + "<{ transactionType: ", "StringC", - "; transactionType: ", + "; }>, ", + "PartialC", + "<{ transactionName: ", "StringC", "; }>, ", + "IntersectionC", + "<[", "TypeC", "<{ environment: ", "UnionC", @@ -3316,15 +3489,21 @@ "NonEmptyStringBrand", ">]>; }>, ", "TypeC", + "<{ kuery: ", + "StringC", + "; }>, ", + "TypeC", "<{ start: ", "Type", "; end: ", "Type", "; }>, ", - "TypeC", - "<{ interval: ", - "StringC", - "; }>]>; }>, ", + "PartialC", + "<{ comparisonStart: ", + "Type", + "; comparisonEnd: ", + "Type", + "; }>]>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3332,87 +3511,27 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { latencyChartPreview: { x: number; y: number | null; }[]; }, ", + ", { currentPeriod: { x: number; y: number | null; }[]; previousPeriod: { x: number; y: ", + "Maybe", + "; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/alerts/chart_preview/transaction_error_count\": ", + ">; \"GET /internal/apm/services/{serviceName}/service_overview_instances/details/{serviceNodeName}\": ", "ServerRoute", - "<\"GET /internal/apm/alerts/chart_preview/transaction_error_count\", ", + "<\"GET /internal/apm/services/{serviceName}/service_overview_instances/details/{serviceNodeName}\", ", "TypeC", - "<{ query: ", - "IntersectionC", - "<[", - "PartialC", - "<{ aggregationType: ", - "UnionC", - "<[", - "LiteralC", - "<\"avg\">, ", - "LiteralC", - "<\"95th\">, ", - "LiteralC", - "<\"99th\">]>; serviceName: ", - "StringC", - "; transactionType: ", - "StringC", - "; }>, ", + "<{ path: ", "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", + "<{ serviceName: ", "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", + "; serviceNodeName: ", + "StringC", + "; }>; query: ", "TypeC", "<{ start: ", "Type", "; end: ", "Type", - "; }>, ", - "TypeC", - "<{ interval: ", - "StringC", - "; }>]>; }>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { errorCountChartPreview: { x: number; y: number; }[]; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /api/apm/settings/agent-configuration\": ", - "ServerRoute", - "<\"GET /api/apm/settings/agent-configuration\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { configurations: ", - "AgentConfiguration", - "[]; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /api/apm/settings/agent-configuration/view\": ", - "ServerRoute", - "<\"GET /api/apm/settings/agent-configuration/view\", ", - "PartialC", - "<{ query: ", - "PartialC", - "<{ name: ", - "StringC", - "; environment: ", - "StringC", - "; }>; }>, ", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3420,135 +3539,63 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", ", - "AgentConfiguration", - ", ", + ", { '@timestamp': string; agent: (", + "Agent", + " & { name: string; version: string; }) | ({ name: string; version: string; } & ", + "Agent", + "); service: ", + "Service", + " | (", + "Service", + " & { name: string; node?: { name: string; } | undefined; environment?: string | undefined; version?: string | undefined; }) | (", + "Service", + " & { node?: { name: string; } | undefined; }) | (", + "Service", + " & { name: string; node?: { name: string; } | undefined; environment?: string | undefined; version?: string | undefined; } & { node?: { name: string; } | undefined; }) | (", + "Service", + " & { node?: { name: string; } | undefined; } & { name: string; node?: { name: string; } | undefined; environment?: string | undefined; version?: string | undefined; }); container: ", + "Container", + " | undefined; kubernetes: ", + "Kubernetes", + " | undefined; host: ", + "Host", + " | undefined; cloud: ", + "Cloud", + " | undefined; }, ", "APMRouteCreateOptions", - ">; } & { \"DELETE /api/apm/settings/agent-configuration\": ", + ">; \"POST /api/apm/services/{serviceName}/annotation\": ", "ServerRoute", - "<\"DELETE /api/apm/settings/agent-configuration\", ", + "<\"POST /api/apm/services/{serviceName}/annotation\", ", "TypeC", - "<{ body: ", + "<{ path: ", "TypeC", - "<{ service: ", - "PartialC", - "<{ name: ", - "StringC", - "; environment: ", + "<{ serviceName: ", "StringC", - "; }>; }>; }>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { result: string; }, ", - "APMRouteCreateOptions", - ">; } & { \"PUT /api/apm/settings/agent-configuration\": ", - "ServerRoute", - "<\"PUT /api/apm/settings/agent-configuration\", ", + "; }>; body: ", "IntersectionC", "<[", - "PartialC", - "<{ query: ", - "PartialC", - "<{ overwrite: ", - "Type", - "; }>; }>, ", "TypeC", - "<{ body: ", + "<{ '@timestamp': ", + "Type", + "; service: ", "IntersectionC", "<[", - "PartialC", - "<{ agent_name: ", - "StringC", - "; }>, ", "TypeC", - "<{ service: ", - "PartialC", - "<{ name: ", - "StringC", - "; environment: ", - "StringC", - "; }>; settings: ", - "IntersectionC", - "<[", - "RecordC", - "<", - "StringC", - ", ", + "<{ version: ", "StringC", - ">, ", - "PartialC", - ">]>; }>]>; }>]>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", void, ", - "APMRouteCreateOptions", - ">; } & { \"POST /api/apm/settings/agent-configuration/search\": ", - "ServerRoute", - "<\"POST /api/apm/settings/agent-configuration/search\", ", - "TypeC", - "<{ body: ", - "IntersectionC", - "<[", - "TypeC", - "<{ service: ", + "; }>, ", "PartialC", - "<{ name: ", - "StringC", - "; environment: ", + "<{ environment: ", "StringC", - "; }>; }>, ", + "; }>]>; }>, ", "PartialC", - "<{ etag: ", + "<{ message: ", "StringC", - "; mark_as_applied_by_agent: ", - "BooleanC", - "; }>]>; }>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", ", - "SearchHit", + "; tags: ", + "ArrayC", "<", - "AgentConfiguration", - ", undefined, undefined> | null, ", - "APMRouteCreateOptions", - ">; } & { \"GET /api/apm/settings/agent-configuration/services\": ", - "ServerRoute", - "<\"GET /api/apm/settings/agent-configuration/services\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { serviceNames: string[]; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /api/apm/settings/agent-configuration/environments\": ", - "ServerRoute", - "<\"GET /api/apm/settings/agent-configuration/environments\", ", - "PartialC", - "<{ query: ", - "PartialC", - "<{ serviceName: ", "StringC", - "; }>; }>, ", + ">; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3556,49 +3603,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { environments: { name: string; alreadyConfigured: boolean; }[]; }, ", + ", { _id: string; _index: string; _source: ", + "Annotation", + "; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /api/apm/settings/agent-configuration/agent_name\": ", + ">; \"GET /api/apm/services/{serviceName}/annotation/search\": ", "ServerRoute", - "<\"GET /api/apm/settings/agent-configuration/agent_name\", ", + "<\"GET /api/apm/services/{serviceName}/annotation/search\", ", "TypeC", - "<{ query: ", + "<{ path: ", "TypeC", "<{ serviceName: ", "StringC", - "; }>; }>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { agentName: string | undefined; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/settings/anomaly-detection/jobs\": ", - "ServerRoute", - "<\"GET /internal/apm/settings/anomaly-detection/jobs\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { jobs: ", - "ApmMlJob", - "[]; hasLegacyJobs: boolean; }, ", - "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/settings/anomaly-detection/jobs\": ", - "ServerRoute", - "<\"POST /internal/apm/settings/anomaly-detection/jobs\", ", - "TypeC", - "<{ body: ", + "; }>; query: ", + "IntersectionC", + "<[", "TypeC", - "<{ environments: ", - "ArrayC", - "<", + "<{ environment: ", "UnionC", "<[", "LiteralC", @@ -3610,73 +3631,13 @@ "StringC", ", ", "NonEmptyStringBrand", - ">]>>; }>; }>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { jobCreated: boolean; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/settings/anomaly-detection/environments\": ", - "ServerRoute", - "<\"GET /internal/apm/settings/anomaly-detection/environments\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { environments: string[]; }, ", - "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/settings/anomaly-detection/update_to_v3\": ", - "ServerRoute", - "<\"POST /internal/apm/settings/anomaly-detection/update_to_v3\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { update: boolean; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/settings/apm-index-settings\": ", - "ServerRoute", - "<\"GET /internal/apm/settings/apm-index-settings\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { apmIndexSettings: { configurationName: \"error\" | \"span\" | \"metric\" | \"transaction\" | \"sourcemap\" | \"onboarding\"; defaultValue: string; savedValue: any; }[]; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/settings/apm-indices\": ", - "ServerRoute", - "<\"GET /internal/apm/settings/apm-indices\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", ", - "ApmIndicesConfig", - ", ", - "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/settings/apm-indices/save\": ", - "ServerRoute", - "<\"POST /internal/apm/settings/apm-indices/save\", ", + ">]>; }>, ", "TypeC", - "<{ body: ", - "PartialC", - "; }>, ", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3684,25 +3645,33 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", ", - "SavedObject", - "<{}>, ", + ", { annotations: ", + "Annotation", + "[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/settings/custom_links/transaction\": ", + ">; \"GET /internal/apm/services/{serviceName}/node/{serviceNodeName}/metadata\": ", "ServerRoute", - "<\"GET /internal/apm/settings/custom_links/transaction\", ", - "PartialC", - "<{ query: ", - "PartialC", - "<{ 'service.name': ", - "StringC", - "; 'service.environment': ", + "<\"GET /internal/apm/services/{serviceName}/node/{serviceNodeName}/metadata\", ", + "TypeC", + "<{ path: ", + "TypeC", + "<{ serviceName: ", "StringC", - "; 'transaction.name': ", + "; serviceNodeName: ", "StringC", - "; 'transaction.type': ", + "; }>; query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ kuery: ", "StringC", - "; }>; }>, ", + "; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3710,25 +3679,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", ", - "Transaction", - ", ", + ", { host: string | number; containerId: string | number; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/settings/custom_links\": ", + ">; \"GET /internal/apm/services/{serviceName}/transaction_types\": ", "ServerRoute", - "<\"GET /internal/apm/settings/custom_links\", ", - "PartialC", - "<{ query: ", - "PartialC", - "<{ 'service.name': ", - "StringC", - "; 'service.environment': ", - "StringC", - "; 'transaction.name': ", - "StringC", - "; 'transaction.type': ", + "<\"GET /internal/apm/services/{serviceName}/transaction_types\", ", + "TypeC", + "<{ path: ", + "TypeC", + "<{ serviceName: ", "StringC", - "; }>; }>, ", + "; }>; query: ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3736,47 +3703,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { customLinks: ", - "CustomLink", - "[]; }, ", + ", { transactionTypes: string[]; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/settings/custom_links\": ", + ">; \"GET /internal/apm/services/{serviceName}/agent\": ", "ServerRoute", - "<\"POST /internal/apm/settings/custom_links\", ", + "<\"GET /internal/apm/services/{serviceName}/agent\", ", "TypeC", - "<{ body: ", - "IntersectionC", - "<[", + "<{ path: ", "TypeC", - "<{ label: ", - "StringC", - "; url: ", - "StringC", - "; }>, ", - "PartialC", - "<{ id: ", + "<{ serviceName: ", "StringC", - "; filters: ", - "ArrayC", - "<", + "; }>; query: ", "TypeC", - "<{ key: ", - "UnionC", - "<[", - "LiteralC", - "<\"\">, ", - "KeyofC", - "<{ 'service.name': ", - "StringC", - "; 'service.environment': ", - "StringC", - "; 'transaction.name': ", - "StringC", - "; 'transaction.type': ", - "StringC", - "; }>]>; value: ", - "StringC", - "; }>>; }>]>; }>, ", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3784,49 +3727,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", void, ", + ", { agentName?: undefined; runtimeName?: undefined; } | { agentName: string | undefined; runtimeName: string | undefined; }, ", "APMRouteCreateOptions", - ">; } & { \"PUT /internal/apm/settings/custom_links/{id}\": ", + ">; \"GET /internal/apm/services/{serviceName}/metadata/icons\": ", "ServerRoute", - "<\"PUT /internal/apm/settings/custom_links/{id}\", ", + "<\"GET /internal/apm/services/{serviceName}/metadata/icons\", ", "TypeC", "<{ path: ", "TypeC", - "<{ id: ", - "StringC", - "; }>; body: ", - "IntersectionC", - "<[", - "TypeC", - "<{ label: ", - "StringC", - "; url: ", - "StringC", - "; }>, ", - "PartialC", - "<{ id: ", + "<{ serviceName: ", "StringC", - "; filters: ", - "ArrayC", - "<", + "; }>; query: ", "TypeC", - "<{ key: ", - "UnionC", - "<[", - "LiteralC", - "<\"\">, ", - "KeyofC", - "<{ 'service.name': ", - "StringC", - "; 'service.environment': ", - "StringC", - "; 'transaction.name': ", - "StringC", - "; 'transaction.type': ", - "StringC", - "; }>]>; value: ", - "StringC", - "; }>>; }>]>; }>, ", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3834,17 +3751,25 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", void, ", + ", ", + "ServiceMetadataIcons", + ", ", "APMRouteCreateOptions", - ">; } & { \"DELETE /internal/apm/settings/custom_links/{id}\": ", + ">; \"GET /internal/apm/services/{serviceName}/metadata/details\": ", "ServerRoute", - "<\"DELETE /internal/apm/settings/custom_links/{id}\", ", + "<\"GET /internal/apm/services/{serviceName}/metadata/details\", ", "TypeC", "<{ path: ", "TypeC", - "<{ id: ", + "<{ serviceName: ", "StringC", - "; }>; }>, ", + "; }>; query: ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3852,11 +3777,49 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { result: string; }, ", + ", ", + "ServiceMetadataDetails", + ", ", "APMRouteCreateOptions", - ">; } & { \"GET /api/apm/sourcemaps\": ", + ">; \"GET /internal/apm/services/detailed_statistics\": ", "ServerRoute", - "<\"GET /api/apm/sourcemaps\", undefined, ", + "<\"GET /internal/apm/services/detailed_statistics\", ", + "TypeC", + "<{ query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", + "StringC", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", + "TypeC", + "<{ kuery: ", + "StringC", + "; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "PartialC", + "<{ offset: ", + "StringC", + "; }>, ", + "TypeC", + "<{ serviceNames: ", + "Type", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3864,25 +3827,39 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { artifacts: ", - "ArtifactSourceMap", - "[]; } | undefined, ", + ", { currentPeriod: _.Dictionary<{ serviceName: string; latency: { x: number; y: number | null; }[]; transactionErrorRate: { x: number; y: number; }[]; throughput: { x: number; y: number; }[]; }>; previousPeriod: _.Dictionary<{ serviceName: string; latency: { x: number; y: number | null; }[]; transactionErrorRate: { x: number; y: number; }[]; throughput: { x: number; y: number; }[]; }>; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /api/apm/sourcemaps\": ", + ">; \"GET /internal/apm/services\": ", "ServerRoute", - "<\"POST /api/apm/sourcemaps\", ", + "<\"GET /internal/apm/services\", ", "TypeC", - "<{ body: ", + "<{ query: ", + "IntersectionC", + "<[", "TypeC", - "<{ service_name: ", - "StringC", - "; service_version: ", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", "StringC", - "; bundle_filepath: ", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", + "TypeC", + "<{ kuery: ", "StringC", - "; sourcemap: ", + "; }>, ", + "TypeC", + "<{ start: ", "Type", - "<{ version: number; sources: string[]; mappings: string; } & { names?: string[] | undefined; file?: string | undefined; sourceRoot?: string | undefined; sourcesContent?: string[] | undefined; }, string | Buffer, unknown>; }>; }>, ", + "; end: ", + "Type", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3890,25 +3867,57 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", ", - { - "pluginId": "fleet", - "scope": "server", - "docId": "kibFleetPluginApi", - "section": "def-server.Artifact", - "text": "Artifact" - }, - " | undefined, ", + ", { items: ", + "JoinedReturnType", + "<{ serviceName: string; transactionType: string; environments: string[]; agentName: ", + "AgentName", + "; latency: number | null; transactionErrorRate: number; throughput: number; } | { serviceName: string; environments: string[]; agentName: ", + "AgentName", + "; } | { serviceName: string; healthStatus: ", + "ServiceHealthStatus", + "; }, { serviceName: string; transactionType: string; environments: string[]; agentName: ", + "AgentName", + "; latency: number | null; transactionErrorRate: number; throughput: number; } & { serviceName: string; environments: string[]; agentName: ", + "AgentName", + "; } & { serviceName: string; healthStatus: ", + "ServiceHealthStatus", + "; }>; hasLegacyData: boolean; }, ", "APMRouteCreateOptions", - ">; } & { \"DELETE /api/apm/sourcemaps/{id}\": ", + ">; \"GET /internal/apm/services/{serviceName}/serviceNodes\": ", "ServerRoute", - "<\"DELETE /api/apm/sourcemaps/{id}\", ", + "<\"GET /internal/apm/services/{serviceName}/serviceNodes\", ", "TypeC", "<{ path: ", "TypeC", - "<{ id: ", + "<{ serviceName: ", "StringC", - "; }>; }>, ", + "; }>; query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ kuery: ", + "StringC", + "; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "TypeC", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", + "StringC", + ", ", + "NonEmptyStringBrand", + ">]>; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3916,11 +3925,43 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", void, ", + ", { serviceNodes: { name: string; cpu: number | null; heapMemory: number | null; hostName: string | null | undefined; nonHeapMemory: number | null; threadCount: number | null; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/fleet/has_data\": ", + ">; \"GET /internal/apm/service-map/backend\": ", "ServerRoute", - "<\"GET /internal/apm/fleet/has_data\", undefined, ", + "<\"GET /internal/apm/service-map/backend\", ", + "TypeC", + "<{ query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ backendName: ", + "StringC", + "; }>, ", + "TypeC", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", + "StringC", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "PartialC", + "<{ offset: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3928,11 +3969,47 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { hasData: boolean; }, ", + ", { currentPeriod: ", + "NodeStats", + "; previousPeriod: ", + "NodeStats", + " | undefined; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/fleet/agents\": ", + ">; \"GET /internal/apm/service-map/service/{serviceName}\": ", "ServerRoute", - "<\"GET /internal/apm/fleet/agents\", undefined, ", + "<\"GET /internal/apm/service-map/service/{serviceName}\", ", + "TypeC", + "<{ path: ", + "TypeC", + "<{ serviceName: ", + "StringC", + "; }>; query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", + "<", + "StringC", + ", ", + "NonEmptyStringBrand", + ">]>; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "PartialC", + "<{ offset: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3940,21 +4017,43 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { cloudStandaloneSetup: { apmServerUrl: string | undefined; secretToken: string | undefined; } | undefined; isFleetEnabled: boolean; fleetAgents: { id: string; name: string; apmServerUrl: any; secretToken: any; }[]; }, ", + ", { currentPeriod: ", + "NodeStats", + "; previousPeriod: ", + "NodeStats", + " | undefined; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /api/apm/fleet/apm_server_schema\": ", + ">; \"GET /internal/apm/service-map\": ", "ServerRoute", - "<\"POST /api/apm/fleet/apm_server_schema\", ", + "<\"GET /internal/apm/service-map\", ", "TypeC", - "<{ body: ", + "<{ query: ", + "IntersectionC", + "<[", + "PartialC", + "<{ serviceName: ", + "StringC", + "; }>, ", "TypeC", - "<{ schema: ", - "RecordC", + "<{ environment: ", + "UnionC", + "<[", + "LiteralC", + "<\"ENVIRONMENT_NOT_DEFINED\">, ", + "LiteralC", + "<\"ENVIRONMENT_ALL\">, ", + "BrandC", "<", "StringC", ", ", - "UnknownC", - ">; }>; }>, ", + "NonEmptyStringBrand", + ">]>; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3962,11 +4061,25 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", void, ", + ", { elements: (", + "ConnectionElement", + " | { data: { id: string; 'span.type': string; label: string; groupedConnections: ({ 'service.name': string; 'service.environment': string | null; 'agent.name': string; serviceAnomalyStats?: ", + "ServiceAnomalyStats", + " | undefined; label: string | undefined; id?: string | undefined; parent?: string | undefined; position?: cytoscape.Position | undefined; } | { 'span.destination.service.resource': string; 'span.type': string; 'span.subtype': string; label: string | undefined; id?: string | undefined; parent?: string | undefined; position?: cytoscape.Position | undefined; } | { id: string; source: string | undefined; target: string | undefined; label: string | undefined; bidirectional?: boolean | undefined; isInverseEdge?: boolean | undefined; } | undefined)[]; }; } | { data: { id: string; source: string; target: string; }; })[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/fleet/apm_server_schema/unsupported\": ", + ">; \"GET /api/apm/observability_overview/has_rum_data\": ", "ServerRoute", - "<\"GET /internal/apm/fleet/apm_server_schema/unsupported\", undefined, ", + "<\"GET /api/apm/observability_overview/has_rum_data\", ", + "PartialC", + "<{ query: ", + "PartialC", + "<{ uiFilters: ", + "StringC", + "; start: ", + "Type", + "; end: ", + "Type", + "; }>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3974,11 +4087,35 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { unsupported: { key: string; value: any; }[]; }, ", + ", { indices: string; hasData: boolean; serviceName: string | number | undefined; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/fleet/migration_check\": ", + ">; \"GET /internal/apm/ux/js-errors\": ", "ServerRoute", - "<\"GET /internal/apm/fleet/migration_check\", undefined, ", + "<\"GET /internal/apm/ux/js-errors\", ", + "TypeC", + "<{ query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ uiFilters: ", + "StringC", + "; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "TypeC", + "<{ pageSize: ", + "StringC", + "; pageIndex: ", + "StringC", + "; }>, ", + "PartialC", + "<{ urlQuery: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -3986,19 +4123,31 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { has_cloud_agent_policy: boolean; has_cloud_apm_package_policy: boolean; cloud_apm_migration_enabled: boolean; has_required_role: boolean | undefined; cloud_apm_package_policy: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicy", - "text": "PackagePolicy" - }, - " | undefined; has_apm_integrations: boolean; }, ", + ", { totalErrorPages: number; totalErrors: number; totalErrorGroups: number; items: { count: number; errorGroupId: string | number; errorMessage: string; }[] | undefined; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/fleet/cloud_apm_package_policy\": ", + ">; \"GET /internal/apm/ux/url-search\": ", "ServerRoute", - "<\"POST /internal/apm/fleet/cloud_apm_package_policy\", undefined, ", + "<\"GET /internal/apm/ux/url-search\", ", + "TypeC", + "<{ query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ uiFilters: ", + "StringC", + "; }>, ", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "PartialC", + "<{ urlQuery: ", + "StringC", + "; percentile: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -4006,59 +4155,63 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { cloudApmPackagePolicy: ", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.PackagePolicy", - "text": "PackagePolicy" - }, - "; }, ", + ", { total: number; items: { url: string; count: number; pld: number; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/backends/top_backends\": ", + ">; \"GET /internal/apm/ux/long-task-metrics\": ", "ServerRoute", - "<\"GET /internal/apm/backends/top_backends\", ", - "IntersectionC", - "<[", + "<\"GET /internal/apm/ux/long-task-metrics\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", "TypeC", + "<{ uiFilters: ", + "StringC", + "; }>, ", + "TypeC", "<{ start: ", "Type", "; end: ", "Type", "; }>, ", + "PartialC", + "<{ urlQuery: ", + "StringC", + "; percentile: ", + "StringC", + "; }>]>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { noOfLongTasks: number; sumOfLongTasks: number; longestLongTask: number; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/ux/web-core-vitals\": ", + "ServerRoute", + "<\"GET /internal/apm/ux/web-core-vitals\", ", "TypeC", - "<{ environment: ", - "UnionC", + "<{ query: ", + "IntersectionC", "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", - "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", "TypeC", - "<{ kuery: ", + "<{ uiFilters: ", "StringC", "; }>, ", "TypeC", - "<{ numBuckets: ", + "<{ start: ", "Type", - "; }>]>; }>, ", - "PartialC", - "<{ query: ", + "; end: ", + "Type", + "; }>, ", "PartialC", - "<{ offset: ", + "<{ urlQuery: ", "StringC", - "; }>; }>]>, ", + "; percentile: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -4066,37 +4219,17 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { backends: { currentStats: { latency: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; throughput: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; errorRate: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; totalTime: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; } & { impact: number; }; previousStats: ({ latency: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; throughput: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; errorRate: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; totalTime: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; } & { impact: number; }) | null; location: ", - "Node", - "; }[]; }, ", + ", { coreVitalPages: number; cls: number | null; fid: number | null | undefined; lcp: number | null | undefined; tbt: number; fcp: number | null | undefined; lcpRanks: number[]; fidRanks: number[]; clsRanks: number[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/backends/upstream_services\": ", + ">; \"GET /internal/apm/ux/visitor-breakdown\": ", "ServerRoute", - "<\"GET /internal/apm/backends/upstream_services\", ", - "IntersectionC", - "<[", + "<\"GET /internal/apm/ux/visitor-breakdown\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", "TypeC", - "<{ backendName: ", + "<{ uiFilters: ", "StringC", "; }>, ", "TypeC", @@ -4105,36 +4238,38 @@ "; end: ", "Type", "; }>, ", - "TypeC", - "<{ numBuckets: ", - "Type", - "; }>]>; }>, ", "PartialC", + "<{ urlQuery: ", + "StringC", + "; percentile: ", + "StringC", + "; }>]>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { os: { count: number; name: string; }[]; browsers: { count: number; name: string; }[]; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/ux/services\": ", + "ServerRoute", + "<\"GET /internal/apm/ux/services\", ", + "TypeC", "<{ query: ", "IntersectionC", "<[", "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", - "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", - "PartialC", - "<{ offset: ", + "<{ uiFilters: ", "StringC", "; }>, ", "TypeC", - "<{ kuery: ", - "StringC", - "; }>]>; }>]>, ", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -4142,35 +4277,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { services: { currentStats: { latency: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; throughput: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; errorRate: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; totalTime: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; } & { impact: number; }; previousStats: ({ latency: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; throughput: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; errorRate: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; totalTime: { value: number | null; timeseries: ", - "Coordinate", - "[]; }; } & { impact: number; }) | null; location: ", - "Node", - "; }[]; }, ", + ", { rumServices: string[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/backends/metadata\": ", + ">; \"GET /internal/apm/ux/page-view-trends\": ", "ServerRoute", - "<\"GET /internal/apm/backends/metadata\", ", + "<\"GET /internal/apm/ux/page-view-trends\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", + "IntersectionC", + "<[", "TypeC", - "<{ backendName: ", + "<{ uiFilters: ", "StringC", "; }>, ", "TypeC", @@ -4178,7 +4297,17 @@ "Type", "; end: ", "Type", - "; }>]>; }>, ", + "; }>, ", + "PartialC", + "<{ urlQuery: ", + "StringC", + "; percentile: ", + "StringC", + "; }>]>, ", + "PartialC", + "<{ breakdowns: ", + "StringC", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -4186,17 +4315,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { metadata: { spanType: string | undefined; spanSubtype: string | undefined; }; }, ", + ", { topItems: string[]; items: Record[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/backends/charts/latency\": ", + ">; \"GET /internal/apm/ux/page-load-distribution/breakdown\": ", "ServerRoute", - "<\"GET /internal/apm/backends/charts/latency\", ", + "<\"GET /internal/apm/ux/page-load-distribution/breakdown\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", + "IntersectionC", + "<[", "TypeC", - "<{ backendName: ", + "<{ uiFilters: ", "StringC", "; }>, ", "TypeC", @@ -4205,26 +4336,20 @@ "; end: ", "Type", "; }>, ", - "TypeC", - "<{ kuery: ", + "PartialC", + "<{ urlQuery: ", "StringC", - "; }>, ", - "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", + "; percentile: ", "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", + "; }>]>, ", "PartialC", - "<{ offset: ", + "<{ minPercentile: ", + "StringC", + "; maxPercentile: ", + "StringC", + "; }>, ", + "TypeC", + "<{ breakdown: ", "StringC", "; }>]>; }>, ", { @@ -4234,17 +4359,19 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentTimeseries: { x: number; y: number; }[]; comparisonTimeseries: { x: number; y: number; }[] | null; }, ", + ", { pageLoadDistBreakdown: { name: string; data: { x: number; y: number; }[]; }[] | undefined; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/backends/charts/throughput\": ", + ">; \"GET /internal/apm/ux/page-load-distribution\": ", "ServerRoute", - "<\"GET /internal/apm/backends/charts/throughput\", ", + "<\"GET /internal/apm/ux/page-load-distribution\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", + "IntersectionC", + "<[", "TypeC", - "<{ backendName: ", + "<{ uiFilters: ", "StringC", "; }>, ", "TypeC", @@ -4253,26 +4380,16 @@ "; end: ", "Type", "; }>, ", - "TypeC", - "<{ kuery: ", + "PartialC", + "<{ urlQuery: ", "StringC", - "; }>, ", - "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", + "; percentile: ", "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", + "; }>]>, ", "PartialC", - "<{ offset: ", + "<{ minPercentile: ", + "StringC", + "; maxPercentile: ", "StringC", "; }>]>; }>, ", { @@ -4282,17 +4399,17 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentTimeseries: { x: number; y: number | null; }[]; comparisonTimeseries: { x: number; y: number | null; }[] | null; }, ", + ", { pageLoadDistribution: { pageLoadDistribution: { x: number; y: number; }[]; percentiles: Record | undefined; minDuration: number; maxDuration: number; } | null; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/backends/charts/error_rate\": ", + ">; \"GET /internal/apm/ux/client-metrics\": ", "ServerRoute", - "<\"GET /internal/apm/backends/charts/error_rate\", ", + "<\"GET /internal/apm/ux/client-metrics\", ", "TypeC", "<{ query: ", "IntersectionC", "<[", "TypeC", - "<{ backendName: ", + "<{ uiFilters: ", "StringC", "; }>, ", "TypeC", @@ -4301,26 +4418,10 @@ "; end: ", "Type", "; }>, ", - "TypeC", - "<{ kuery: ", - "StringC", - "; }>, ", - "TypeC", - "<{ environment: ", - "UnionC", - "<[", - "LiteralC", - "<\"ENVIRONMENT_NOT_DEFINED\">, ", - "LiteralC", - "<\"ENVIRONMENT_ALL\">, ", - "BrandC", - "<", - "StringC", - ", ", - "NonEmptyStringBrand", - ">]>; }>, ", "PartialC", - "<{ offset: ", + "<{ urlQuery: ", + "StringC", + "; percentile: ", "StringC", "; }>]>; }>, ", { @@ -4330,21 +4431,67 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { currentTimeseries: { x: number; y: number; }[]; comparisonTimeseries: { x: number; y: number; }[] | null; }, ", + ", { pageViews: { value: number; }; totalPageLoadDuration: { value: number; }; backEnd: { value: number; }; frontEnd: { value: number; }; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/correlations/p_values\": ", + ">; \"GET /internal/apm/observability_overview/has_data\": ", "ServerRoute", - "<\"POST /internal/apm/correlations/p_values\", ", + "<\"GET /internal/apm/observability_overview/has_data\", undefined, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { hasData: boolean; indices: ", + "ApmIndicesConfig", + "; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/observability_overview\": ", + "ServerRoute", + "<\"GET /internal/apm/observability_overview\", ", "TypeC", - "<{ body: ", + "<{ query: ", "IntersectionC", "<[", - "PartialC", + "TypeC", + "<{ start: ", + "Type", + "; end: ", + "Type", + "; }>, ", + "TypeC", + "<{ bucketSize: ", + "Type", + "; intervalString: ", + "StringC", + "; }>]>; }>, ", + { + "pluginId": "apm", + "scope": "server", + "docId": "kibApmPluginApi", + "section": "def-server.APMRouteHandlerResources", + "text": "APMRouteHandlerResources" + }, + ", { serviceCount: number; transactionPerMinute: { value: undefined; timeseries: never[]; } | { value: number; timeseries: { x: number; y: number | null; }[]; }; }, ", + "APMRouteCreateOptions", + ">; \"GET /internal/apm/services/{serviceName}/metrics/charts\": ", + "ServerRoute", + "<\"GET /internal/apm/services/{serviceName}/metrics/charts\", ", + "TypeC", + "<{ path: ", + "TypeC", "<{ serviceName: ", "StringC", - "; transactionName: ", + "; }>; query: ", + "IntersectionC", + "<[", + "TypeC", + "<{ agentName: ", "StringC", - "; transactionType: ", + "; }>, ", + "PartialC", + "<{ serviceNodeName: ", "StringC", "; }>, ", "TypeC", @@ -4370,13 +4517,7 @@ "Type", "; end: ", "Type", - "; }>, ", - "TypeC", - "<{ fieldCandidates: ", - "ArrayC", - "<", - "StringC", - ">; }>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -4384,15 +4525,17 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { failedTransactionsCorrelations: ", - "FailedTransactionsCorrelation", - "[]; ccsWarning: boolean; }, ", + ", { charts: { title: string; key: string; yUnit: ", + "YUnit", + "; series: { title: string; key: string; type: ", + "ChartType", + "; color: string; overallValue: number; data: { x: number; y: number | null; }[]; }[]; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/correlations/field_candidates\": ", + ">; \"POST /internal/apm/latency/overall_distribution\": ", "ServerRoute", - "<\"GET /internal/apm/correlations/field_candidates\", ", + "<\"POST /internal/apm/latency/overall_distribution\", ", "TypeC", - "<{ query: ", + "<{ body: ", "IntersectionC", "<[", "PartialC", @@ -4402,7 +4545,19 @@ "StringC", "; transactionType: ", "StringC", - "; }>, ", + "; termFilters: ", + "ArrayC", + "<", + "TypeC", + "<{ fieldName: ", + "StringC", + "; fieldValue: ", + "UnionC", + "<[", + "StringC", + ", ", + "Type", + "]>; }>>; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -4426,7 +4581,11 @@ "Type", "; end: ", "Type", - "; }>]>; }>, ", + "; }>, ", + "TypeC", + "<{ percentileThreshold: ", + "Type", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -4434,30 +4593,26 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { fieldCandidates: string[]; }, ", + ", ", + "OverallLatencyDistributionResponse", + ", ", "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/correlations/field_stats\": ", + ">; \"GET /internal/apm/services/{serviceName}/errors/distribution\": ", "ServerRoute", - "<\"POST /internal/apm/correlations/field_stats\", ", + "<\"GET /internal/apm/services/{serviceName}/errors/distribution\", ", "TypeC", - "<{ body: ", + "<{ path: ", + "TypeC", + "<{ serviceName: ", + "StringC", + "; }>; query: ", "IntersectionC", "<[", "PartialC", - "<{ serviceName: ", - "StringC", - "; transactionName: ", - "StringC", - "; transactionType: ", + "<{ groupId: ", "StringC", "; }>, ", "TypeC", - "<{ fieldsToSample: ", - "ArrayC", - "<", - "StringC", - ">; }>, ", - "TypeC", "<{ environment: ", "UnionC", "<[", @@ -4480,6 +4635,12 @@ "Type", "; end: ", "Type", + "; }>, ", + "PartialC", + "<{ comparisonStart: ", + "Type", + "; comparisonEnd: ", + "Type", "; }>]>; }>, ", { "pluginId": "apm", @@ -4488,25 +4649,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { stats: ", - "FieldStats", - "[]; errors: any[]; }, ", + ", { currentPeriod: { x: number; y: number; }[]; previousPeriod: { x: number; y: ", + "Maybe", + "; }[]; bucketSize: number; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/correlations/field_value_stats\": ", + ">; \"GET /internal/apm/services/{serviceName}/errors/{groupId}\": ", "ServerRoute", - "<\"GET /internal/apm/correlations/field_value_stats\", ", + "<\"GET /internal/apm/services/{serviceName}/errors/{groupId}\", ", + "TypeC", + "<{ path: ", "TypeC", - "<{ query: ", - "IntersectionC", - "<[", - "PartialC", "<{ serviceName: ", "StringC", - "; transactionName: ", - "StringC", - "; transactionType: ", + "; groupId: ", "StringC", - "; }>, ", + "; }>; query: ", + "IntersectionC", + "<[", "TypeC", "<{ environment: ", "UnionC", @@ -4530,17 +4689,7 @@ "Type", "; end: ", "Type", - "; }>, ", - "TypeC", - "<{ fieldName: ", - "StringC", - "; fieldValue: ", - "UnionC", - "<[", - "StringC", - ", ", - "NumberC", - "]>; }>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -4548,25 +4697,23 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", ", - "TopValuesStats", - ", ", + ", { transaction: ", + "Transaction", + " | undefined; error: ", + "APMError", + "; occurrencesCount: number; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/correlations/field_value_pairs\": ", + ">; \"GET /internal/apm/services/{serviceName}/errors/groups/detailed_statistics\": ", "ServerRoute", - "<\"POST /internal/apm/correlations/field_value_pairs\", ", + "<\"GET /internal/apm/services/{serviceName}/errors/groups/detailed_statistics\", ", + "TypeC", + "<{ path: ", "TypeC", - "<{ body: ", - "IntersectionC", - "<[", - "PartialC", "<{ serviceName: ", "StringC", - "; transactionName: ", - "StringC", - "; transactionType: ", - "StringC", - "; }>, ", + "; }>; query: ", + "IntersectionC", + "<[", "TypeC", "<{ environment: ", "UnionC", @@ -4591,12 +4738,20 @@ "; end: ", "Type", "; }>, ", + "PartialC", + "<{ comparisonStart: ", + "Type", + "; comparisonEnd: ", + "Type", + "; }>, ", "TypeC", - "<{ fieldCandidates: ", - "ArrayC", - "<", + "<{ numBuckets: ", + "Type", + "; transactionType: ", "StringC", - ">; }>]>; }>, ", + "; groupIds: ", + "Type", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -4604,25 +4759,33 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { fieldValuePairs: ", - "FieldValuePair", - "[]; errors: any[]; }, ", + ", { currentPeriod: _.Dictionary<{ groupId: string; timeseries: ", + "Coordinate", + "[]; }>; previousPeriod: _.Dictionary<{ timeseries: { x: number; y: ", + "Maybe", + "; }[]; groupId: string; }>; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/correlations/significant_correlations\": ", + ">; \"GET /internal/apm/services/{serviceName}/errors/groups/main_statistics\": ", "ServerRoute", - "<\"POST /internal/apm/correlations/significant_correlations\", ", + "<\"GET /internal/apm/services/{serviceName}/errors/groups/main_statistics\", ", "TypeC", - "<{ body: ", + "<{ path: ", + "TypeC", + "<{ serviceName: ", + "StringC", + "; }>; query: ", "IntersectionC", "<[", "PartialC", - "<{ serviceName: ", - "StringC", - "; transactionName: ", - "StringC", - "; transactionType: ", + "<{ sortField: ", "StringC", - "; }>, ", + "; sortDirection: ", + "UnionC", + "<[", + "LiteralC", + "<\"asc\">, ", + "LiteralC", + "<\"desc\">]>; }>, ", "TypeC", "<{ environment: ", "UnionC", @@ -4648,19 +4811,9 @@ "Type", "; }>, ", "TypeC", - "<{ fieldValuePairs: ", - "ArrayC", - "<", - "TypeC", - "<{ fieldName: ", - "StringC", - "; fieldValue: ", - "UnionC", - "<[", + "<{ transactionType: ", "StringC", - ", ", - "Type", - "]>; }>>; }>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", @@ -4668,22 +4821,20 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { latencyCorrelations: ", - "LatencyCorrelation", - "[]; ccsWarning: boolean; totalDocCount: number; }, ", + ", { errorGroups: { groupId: string; name: string; lastSeen: number; occurrences: number; culprit: string | undefined; handled: boolean | undefined; type: string | undefined; }[]; }, ", "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/fallback_to_transactions\": ", + ">; \"GET /internal/apm/environments\": ", "ServerRoute", - "<\"GET /internal/apm/fallback_to_transactions\", ", - "PartialC", + "<\"GET /internal/apm/environments\", ", + "TypeC", "<{ query: ", "IntersectionC", "<[", - "TypeC", - "<{ kuery: ", + "PartialC", + "<{ serviceName: ", "StringC", "; }>, ", - "PartialC", + "TypeC", "<{ start: ", "Type", "; end: ", @@ -4696,101 +4847,15 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { fallbackToTransactions: boolean; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/has_data\": ", - "ServerRoute", - "<\"GET /internal/apm/has_data\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { hasData: boolean; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/event_metadata/{processorEvent}/{id}\": ", - "ServerRoute", - "<\"GET /internal/apm/event_metadata/{processorEvent}/{id}\", ", - "TypeC", - "<{ path: ", - "TypeC", - "<{ processorEvent: ", - "UnionC", - "<[", - "LiteralC", - "<", - "ProcessorEvent", - ".transaction>, ", - "LiteralC", - "<", - "ProcessorEvent", - ".error>, ", - "LiteralC", - "<", - "ProcessorEvent", - ".metric>, ", - "LiteralC", - "<", - "ProcessorEvent", - ".span>, ", - "LiteralC", - "<", - "ProcessorEvent", - ".profile>]>; id: ", - "StringC", - "; }>; }>, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { metadata: Partial>; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/agent_keys\": ", - "ServerRoute", - "<\"GET /internal/apm/agent_keys\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { agentKeys: ", - { - "pluginId": "security", - "scope": "common", - "docId": "kibSecurityPluginApi", - "section": "def-common.ApiKey", - "text": "ApiKey" - }, - "[]; }, ", - "APMRouteCreateOptions", - ">; } & { \"GET /internal/apm/agent_keys/privileges\": ", - "ServerRoute", - "<\"GET /internal/apm/agent_keys/privileges\", undefined, ", - { - "pluginId": "apm", - "scope": "server", - "docId": "kibApmPluginApi", - "section": "def-server.APMRouteHandlerResources", - "text": "APMRouteHandlerResources" - }, - ", { areApiKeysEnabled: boolean; isAdmin: boolean; canManage: boolean; }, ", + ", { environments: (", + "Branded", + " | \"ENVIRONMENT_NOT_DEFINED\" | \"ENVIRONMENT_ALL\")[]; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /internal/apm/api_key/invalidate\": ", + ">; \"GET /internal/apm/data_view/dynamic\": ", "ServerRoute", - "<\"POST /internal/apm/api_key/invalidate\", ", - "TypeC", - "<{ body: ", - "TypeC", - "<{ id: ", - "StringC", - "; }>; }>, ", + "<\"GET /internal/apm/data_view/dynamic\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -4798,33 +4863,13 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { invalidatedAgentKeys: string[]; }, ", + ", { dynamicDataView: ", + "DataViewTitleAndFields", + " | undefined; }, ", "APMRouteCreateOptions", - ">; } & { \"POST /api/apm/agent_keys\": ", + ">; \"POST /internal/apm/data_view/static\": ", "ServerRoute", - "<\"POST /api/apm/agent_keys\", ", - "TypeC", - "<{ body: ", - "TypeC", - "<{ name: ", - "StringC", - "; privileges: ", - "ArrayC", - "<", - "UnionC", - "<[", - "LiteralC", - "<", - "PrivilegeType", - ".SOURCEMAP>, ", - "LiteralC", - "<", - "PrivilegeType", - ".EVENT>, ", - "LiteralC", - "<", - "PrivilegeType", - ".AGENT_CONFIG>]>>; }>; }>, ", + "<\"POST /internal/apm/data_view/static\", undefined, ", { "pluginId": "apm", "scope": "server", @@ -4832,11 +4877,9 @@ "section": "def-server.APMRouteHandlerResources", "text": "APMRouteHandlerResources" }, - ", { agentKey: ", - "SecurityCreateApiKeyResponse", - "; }, ", + ", { created: boolean; }, ", "APMRouteCreateOptions", - ">; }>" + ">; }" ], "path": "x-pack/plugins/apm/server/routes/apm_routes/get_global_apm_server_route_repository.ts", "deprecated": false, diff --git a/api_docs/apm.mdx b/api_docs/apm.mdx index 118cc005d2290e..b3a77bd237b873 100644 --- a/api_docs/apm.mdx +++ b/api_docs/apm.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import apmObj from './apm.json'; +import apmObj from './apm.devdocs.json'; The user interface for Elastic APM @@ -18,7 +18,7 @@ Contact [APM UI](https://github.com/orgs/elastic/teams/apm-ui) for questions reg | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 40 | 0 | 40 | 45 | +| 40 | 0 | 40 | 49 | ## Client diff --git a/api_docs/banners.json b/api_docs/banners.devdocs.json similarity index 100% rename from api_docs/banners.json rename to api_docs/banners.devdocs.json diff --git a/api_docs/banners.mdx b/api_docs/banners.mdx index 403d6671aad18c..8b4afe1b8cf6a8 100644 --- a/api_docs/banners.mdx +++ b/api_docs/banners.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'banners'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import bannersObj from './banners.json'; +import bannersObj from './banners.devdocs.json'; diff --git a/api_docs/bfetch.json b/api_docs/bfetch.devdocs.json similarity index 100% rename from api_docs/bfetch.json rename to api_docs/bfetch.devdocs.json diff --git a/api_docs/bfetch.mdx b/api_docs/bfetch.mdx index 9203b5e6113397..00ba4298f1238e 100644 --- a/api_docs/bfetch.mdx +++ b/api_docs/bfetch.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'bfetch'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import bfetchObj from './bfetch.json'; +import bfetchObj from './bfetch.devdocs.json'; Considering using bfetch capabilities when fetching large amounts of data. This services supports batching HTTP requests and streaming responses back. diff --git a/api_docs/canvas.json b/api_docs/canvas.devdocs.json similarity index 100% rename from api_docs/canvas.json rename to api_docs/canvas.devdocs.json diff --git a/api_docs/canvas.mdx b/api_docs/canvas.mdx index 18f7c86e644fd3..bae6975abdd42f 100644 --- a/api_docs/canvas.mdx +++ b/api_docs/canvas.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'canvas'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import canvasObj from './canvas.json'; +import canvasObj from './canvas.devdocs.json'; Adds Canvas application to Kibana diff --git a/api_docs/cases.json b/api_docs/cases.devdocs.json similarity index 100% rename from api_docs/cases.json rename to api_docs/cases.devdocs.json diff --git a/api_docs/cases.mdx b/api_docs/cases.mdx index c2f0322f6d6805..0c0cbd84cc3fb8 100644 --- a/api_docs/cases.mdx +++ b/api_docs/cases.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cases'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import casesObj from './cases.json'; +import casesObj from './cases.devdocs.json'; The Case management system in Kibana @@ -16,9 +16,9 @@ Contact [ResponseOps](https://github.com/orgs/elastic/teams/response-ops) for qu **Code health stats** -| Public API count | Any count | Items lacking comments | Missing exports | -| ---------------- | --------- | ---------------------- | --------------- | -| 83 | 0 | 57 | 23 | +| Public API count | Any count | Items lacking comments | Missing exports | +|-------------------|-----------|------------------------|-----------------| +| 83 | 0 | 57 | 23 | ## Client diff --git a/api_docs/charts.json b/api_docs/charts.devdocs.json similarity index 96% rename from api_docs/charts.json rename to api_docs/charts.devdocs.json index 1892cdac8c0ee1..96c915f5997ed2 100644 --- a/api_docs/charts.json +++ b/api_docs/charts.devdocs.json @@ -1220,7 +1220,14 @@ "label": "continuity", "description": [], "signature": [ - "\"above\" | \"below\" | \"all\" | \"none\" | undefined" + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined" ], "path": "src/plugins/charts/common/palette.ts", "deprecated": false @@ -1315,7 +1322,14 @@ "label": "continuity", "description": [], "signature": [ - "\"above\" | \"below\" | \"all\" | \"none\" | undefined" + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined" ], "path": "src/plugins/charts/common/palette.ts", "deprecated": false @@ -2954,7 +2968,14 @@ "label": "continuity", "description": [], "signature": [ - "\"above\" | \"below\" | \"all\" | \"none\" | undefined" + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined" ], "path": "src/plugins/charts/common/palette.ts", "deprecated": false @@ -3049,7 +3070,14 @@ "label": "continuity", "description": [], "signature": [ - "\"above\" | \"below\" | \"all\" | \"none\" | undefined" + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined" ], "path": "src/plugins/charts/common/palette.ts", "deprecated": false @@ -3162,6 +3190,98 @@ "common": { "classes": [], "functions": [ + { + "parentPluginId": "charts", + "id": "def-common.checkIsMaxContinuity", + "type": "Function", + "tags": [], + "label": "checkIsMaxContinuity", + "description": [], + "signature": [ + "(continuity: ", + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined) => boolean" + ], + "path": "src/plugins/charts/common/static/palette/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "charts", + "id": "def-common.checkIsMaxContinuity.$1", + "type": "CompoundType", + "tags": [], + "label": "continuity", + "description": [], + "signature": [ + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined" + ], + "path": "src/plugins/charts/common/static/palette/index.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "charts", + "id": "def-common.checkIsMinContinuity", + "type": "Function", + "tags": [], + "label": "checkIsMinContinuity", + "description": [], + "signature": [ + "(continuity: ", + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined) => boolean" + ], + "path": "src/plugins/charts/common/static/palette/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "charts", + "id": "def-common.checkIsMinContinuity.$1", + "type": "CompoundType", + "tags": [], + "label": "continuity", + "description": [], + "signature": [ + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined" + ], + "path": "src/plugins/charts/common/static/palette/index.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "charts", "id": "def-common.getHeatmapColors", @@ -3556,7 +3676,14 @@ "label": "continuity", "description": [], "signature": [ - "\"above\" | \"below\" | \"all\" | \"none\" | undefined" + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined" ], "path": "src/plugins/charts/common/palette.ts", "deprecated": false @@ -3651,7 +3778,14 @@ "label": "continuity", "description": [], "signature": [ - "\"above\" | \"below\" | \"all\" | \"none\" | undefined" + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined" ], "path": "src/plugins/charts/common/palette.ts", "deprecated": false @@ -4067,6 +4201,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "charts", + "id": "def-common.PaletteContinuity", + "type": "Type", + "tags": [], + "label": "PaletteContinuity", + "description": [], + "signature": [ + "\"above\" | \"below\" | \"none\" | \"all\"" + ], + "path": "src/plugins/charts/common/types.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "charts", "id": "def-common.paletteIds", diff --git a/api_docs/charts.mdx b/api_docs/charts.mdx index efa090cff2994c..c14a971309e1c6 100644 --- a/api_docs/charts.mdx +++ b/api_docs/charts.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'charts'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import chartsObj from './charts.json'; +import chartsObj from './charts.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 314 | 2 | 281 | 4 | +| 319 | 2 | 286 | 4 | ## Client diff --git a/api_docs/cloud.json b/api_docs/cloud.devdocs.json similarity index 100% rename from api_docs/cloud.json rename to api_docs/cloud.devdocs.json diff --git a/api_docs/cloud.mdx b/api_docs/cloud.mdx index d86fd08d0f09a4..6c483ae1dd3908 100644 --- a/api_docs/cloud.mdx +++ b/api_docs/cloud.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloud'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import cloudObj from './cloud.json'; +import cloudObj from './cloud.devdocs.json'; diff --git a/api_docs/console.json b/api_docs/console.devdocs.json similarity index 100% rename from api_docs/console.json rename to api_docs/console.devdocs.json diff --git a/api_docs/console.mdx b/api_docs/console.mdx index f97c82618c74f6..d7301cbcf62582 100644 --- a/api_docs/console.mdx +++ b/api_docs/console.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'console'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import consoleObj from './console.json'; +import consoleObj from './console.devdocs.json'; diff --git a/api_docs/controls.json b/api_docs/controls.devdocs.json similarity index 100% rename from api_docs/controls.json rename to api_docs/controls.devdocs.json diff --git a/api_docs/controls.mdx b/api_docs/controls.mdx index db618e32862a00..f8539c484752fc 100644 --- a/api_docs/controls.mdx +++ b/api_docs/controls.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'controls'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import controlsObj from './controls.json'; +import controlsObj from './controls.devdocs.json'; The Controls Plugin contains embeddable components intended to create a simple query interface for end users, and a powerful editing suite that allows dashboard authors to build controls diff --git a/api_docs/core.json b/api_docs/core.devdocs.json similarity index 96% rename from api_docs/core.json rename to api_docs/core.devdocs.json index 882a450230f544..57243eaf987ddc 100644 --- a/api_docs/core.json +++ b/api_docs/core.devdocs.json @@ -1671,7 +1671,7 @@ "label": "links", "description": [], "signature": [ - "{ readonly settings: string; readonly elasticStackGetStarted: string; readonly upgrade: { readonly upgradingElasticStack: string; }; readonly apm: { readonly kibanaSettings: string; readonly supportedServiceMaps: string; readonly customLinks: string; readonly droppedTransactionSpans: string; readonly upgrading: string; readonly metaData: string; }; readonly canvas: { readonly guide: string; }; readonly cloud: { readonly indexManagement: string; }; readonly console: { readonly guide: string; }; readonly dashboard: { readonly guide: string; readonly drilldowns: string; readonly drilldownsTriggerPicker: string; readonly urlDrilldownTemplateSyntax: string; readonly urlDrilldownVariables: string; }; readonly discover: Record; readonly filebeat: { readonly base: string; readonly installation: string; readonly configuration: string; readonly elasticsearchOutput: string; readonly elasticsearchModule: string; readonly startup: string; readonly exportedFields: string; readonly suricataModule: string; readonly zeekModule: string; }; readonly auditbeat: { readonly base: string; readonly auditdModule: string; readonly systemModule: string; }; readonly metricbeat: { readonly base: string; readonly configure: string; readonly httpEndpoint: string; readonly install: string; readonly start: string; }; readonly appSearch: { readonly apiRef: string; readonly apiClients: string; readonly apiKeys: string; readonly authentication: string; readonly crawlRules: string; readonly curations: string; readonly duplicateDocuments: string; readonly entryPoints: string; readonly guide: string; readonly indexingDocuments: string; readonly indexingDocumentsSchema: string; readonly logSettings: string; readonly metaEngines: string; readonly precisionTuning: string; readonly relevanceTuning: string; readonly resultSettings: string; readonly searchUI: string; readonly security: string; readonly synonyms: string; readonly webCrawler: string; readonly webCrawlerEventLogs: string; }; readonly enterpriseSearch: { readonly configuration: string; readonly licenseManagement: string; readonly mailService: string; readonly usersAccess: string; }; readonly workplaceSearch: { readonly apiKeys: string; readonly box: string; readonly confluenceCloud: string; readonly confluenceServer: string; readonly customSources: string; readonly customSourcePermissions: string; readonly documentPermissions: string; readonly dropbox: string; readonly externalIdentities: string; readonly gitHub: string; readonly gettingStarted: string; readonly gmail: string; readonly googleDrive: string; readonly indexingSchedule: string; readonly jiraCloud: string; readonly jiraServer: string; readonly oneDrive: string; readonly permissions: string; readonly salesforce: string; readonly security: string; readonly serviceNow: string; readonly sharePoint: string; readonly slack: string; readonly synch: string; readonly zendesk: string; }; readonly heartbeat: { readonly base: string; }; readonly libbeat: { readonly getStarted: string; }; readonly logstash: { readonly base: string; }; readonly functionbeat: { readonly base: string; }; readonly winlogbeat: { readonly base: string; }; readonly aggs: { readonly composite: string; readonly composite_missing_bucket: string; readonly date_histogram: string; readonly date_range: string; readonly date_format_pattern: string; readonly filter: string; readonly filters: string; readonly geohash_grid: string; readonly histogram: string; readonly ip_range: string; readonly range: string; readonly significant_terms: string; readonly terms: string; readonly terms_doc_count_error: string; readonly avg: string; readonly avg_bucket: string; readonly max_bucket: string; readonly min_bucket: string; readonly sum_bucket: string; readonly cardinality: string; readonly count: string; readonly cumulative_sum: string; readonly derivative: string; readonly geo_bounds: string; readonly geo_centroid: string; readonly max: string; readonly median: string; readonly min: string; readonly moving_avg: string; readonly percentile_ranks: string; readonly serial_diff: string; readonly std_dev: string; readonly sum: string; readonly top_hits: string; }; readonly runtimeFields: { readonly overview: string; readonly mapping: string; }; readonly scriptedFields: { readonly scriptFields: string; readonly scriptAggs: string; readonly painless: string; readonly painlessApi: string; readonly painlessLangSpec: string; readonly painlessSyntax: string; readonly painlessWalkthrough: string; readonly luceneExpressions: string; }; readonly search: { readonly sessions: string; readonly sessionLimits: string; }; readonly indexPatterns: { readonly introduction: string; readonly fieldFormattersNumber: string; readonly fieldFormattersString: string; readonly runtimeFields: string; }; readonly addData: string; readonly kibana: string; readonly upgradeAssistant: { readonly overview: string; readonly batchReindex: string; readonly remoteReindex: string; }; readonly rollupJobs: string; readonly elasticsearch: Record; readonly siem: { readonly privileges: string; readonly guide: string; readonly gettingStarted: string; readonly ml: string; readonly ruleChangeLog: string; readonly detectionsReq: string; readonly networkMap: string; readonly troubleshootGaps: string; }; readonly securitySolution: { readonly trustedApps: string; readonly eventFilters: string; }; readonly query: { readonly eql: string; readonly kueryQuerySyntax: string; readonly luceneQuerySyntax: string; readonly percolate: string; readonly queryDsl: string; }; readonly date: { readonly dateMath: string; readonly dateMathIndexNames: string; }; readonly management: Record; readonly ml: Record; readonly transforms: Record; readonly visualize: Record; readonly apis: Readonly<{ bulkIndexAlias: string; byteSizeUnits: string; createAutoFollowPattern: string; createFollower: string; createIndex: string; createSnapshotLifecyclePolicy: string; createRoleMapping: string; createRoleMappingTemplates: string; createRollupJobsRequest: string; createApiKey: string; createPipeline: string; createTransformRequest: string; cronExpressions: string; executeWatchActionModes: string; indexExists: string; openIndex: string; putComponentTemplate: string; painlessExecute: string; painlessExecuteAPIContexts: string; putComponentTemplateMetadata: string; putSnapshotLifecyclePolicy: string; putIndexTemplateV1: string; putWatch: string; simulatePipeline: string; timeUnits: string; updateTransform: string; }>; readonly observability: Readonly<{ guide: string; infrastructureThreshold: string; logsThreshold: string; metricsThreshold: string; monitorStatus: string; monitorUptime: string; tlsCertificate: string; uptimeDurationAnomaly: string; }>; readonly alerting: Record; readonly maps: Readonly<{ guide: string; importGeospatialPrivileges: string; gdalTutorial: string; }>; readonly monitoring: Record; readonly security: Readonly<{ apiKeyServiceSettings: string; clusterPrivileges: string; elasticsearchSettings: string; elasticsearchEnableSecurity: string; elasticsearchEnableApiKeys: string; indicesPrivileges: string; kibanaTLS: string; kibanaPrivileges: string; mappingRoles: string; mappingRolesFieldRules: string; runAsPrivilege: string; }>; readonly spaces: Readonly<{ kibanaLegacyUrlAliases: string; kibanaDisableLegacyUrlAliasesApi: string; }>; readonly watcher: Record; readonly ccs: Record; readonly plugins: { azureRepo: string; gcsRepo: string; hdfsRepo: string; s3Repo: string; snapshotRestoreRepos: string; mapperSize: string; }; readonly snapshotRestore: Record; readonly ingest: Record; readonly fleet: Readonly<{ beatsAgentComparison: string; guide: string; fleetServer: string; fleetServerAddFleetServer: string; settings: string; settingsFleetServerHostSettings: string; settingsFleetServerProxySettings: string; troubleshooting: string; elasticAgent: string; datastreams: string; datastreamsNamingScheme: string; installElasticAgent: string; installElasticAgentStandalone: string; upgradeElasticAgent: string; upgradeElasticAgent712lower: string; learnMoreBlog: string; apiKeysLearnMore: string; onPremRegistry: string; }>; readonly ecs: { readonly guide: string; }; readonly clients: { readonly guide: string; readonly goOverview: string; readonly javaIndex: string; readonly jsIntro: string; readonly netGuide: string; readonly perlGuide: string; readonly phpGuide: string; readonly pythonGuide: string; readonly rubyOverview: string; readonly rustGuide: string; }; readonly endpoints: { readonly troubleshooting: string; }; }" + "{ readonly settings: string; readonly elasticStackGetStarted: string; readonly upgrade: { readonly upgradingElasticStack: string; }; readonly apm: { readonly kibanaSettings: string; readonly supportedServiceMaps: string; readonly customLinks: string; readonly droppedTransactionSpans: string; readonly upgrading: string; readonly metaData: string; }; readonly canvas: { readonly guide: string; }; readonly cloud: { readonly indexManagement: string; }; readonly console: { readonly guide: string; }; readonly dashboard: { readonly guide: string; readonly drilldowns: string; readonly drilldownsTriggerPicker: string; readonly urlDrilldownTemplateSyntax: string; readonly urlDrilldownVariables: string; }; readonly discover: Record; readonly filebeat: { readonly base: string; readonly installation: string; readonly configuration: string; readonly elasticsearchOutput: string; readonly elasticsearchModule: string; readonly startup: string; readonly exportedFields: string; readonly suricataModule: string; readonly zeekModule: string; }; readonly auditbeat: { readonly base: string; readonly auditdModule: string; readonly systemModule: string; }; readonly metricbeat: { readonly base: string; readonly configure: string; readonly httpEndpoint: string; readonly install: string; readonly start: string; }; readonly appSearch: { readonly apiRef: string; readonly apiClients: string; readonly apiKeys: string; readonly authentication: string; readonly crawlRules: string; readonly curations: string; readonly duplicateDocuments: string; readonly entryPoints: string; readonly guide: string; readonly indexingDocuments: string; readonly indexingDocumentsSchema: string; readonly logSettings: string; readonly metaEngines: string; readonly precisionTuning: string; readonly relevanceTuning: string; readonly resultSettings: string; readonly searchUI: string; readonly security: string; readonly synonyms: string; readonly webCrawler: string; readonly webCrawlerEventLogs: string; }; readonly enterpriseSearch: { readonly configuration: string; readonly licenseManagement: string; readonly mailService: string; readonly usersAccess: string; }; readonly workplaceSearch: { readonly apiKeys: string; readonly box: string; readonly confluenceCloud: string; readonly confluenceServer: string; readonly customSources: string; readonly customSourcePermissions: string; readonly documentPermissions: string; readonly dropbox: string; readonly externalIdentities: string; readonly gitHub: string; readonly gettingStarted: string; readonly gmail: string; readonly googleDrive: string; readonly indexingSchedule: string; readonly jiraCloud: string; readonly jiraServer: string; readonly oneDrive: string; readonly permissions: string; readonly salesforce: string; readonly security: string; readonly serviceNow: string; readonly sharePoint: string; readonly slack: string; readonly synch: string; readonly zendesk: string; }; readonly heartbeat: { readonly base: string; }; readonly libbeat: { readonly getStarted: string; }; readonly logstash: { readonly base: string; }; readonly functionbeat: { readonly base: string; }; readonly winlogbeat: { readonly base: string; }; readonly aggs: { readonly composite: string; readonly composite_missing_bucket: string; readonly date_histogram: string; readonly date_range: string; readonly date_format_pattern: string; readonly filter: string; readonly filters: string; readonly geohash_grid: string; readonly histogram: string; readonly ip_range: string; readonly range: string; readonly significant_terms: string; readonly terms: string; readonly terms_doc_count_error: string; readonly rare_terms: string; readonly avg: string; readonly avg_bucket: string; readonly max_bucket: string; readonly min_bucket: string; readonly sum_bucket: string; readonly cardinality: string; readonly count: string; readonly cumulative_sum: string; readonly derivative: string; readonly geo_bounds: string; readonly geo_centroid: string; readonly max: string; readonly median: string; readonly min: string; readonly moving_avg: string; readonly percentile_ranks: string; readonly serial_diff: string; readonly std_dev: string; readonly sum: string; readonly top_hits: string; }; readonly runtimeFields: { readonly overview: string; readonly mapping: string; }; readonly scriptedFields: { readonly scriptFields: string; readonly scriptAggs: string; readonly painless: string; readonly painlessApi: string; readonly painlessLangSpec: string; readonly painlessSyntax: string; readonly painlessWalkthrough: string; readonly luceneExpressions: string; }; readonly search: { readonly sessions: string; readonly sessionLimits: string; }; readonly indexPatterns: { readonly introduction: string; readonly fieldFormattersNumber: string; readonly fieldFormattersString: string; readonly runtimeFields: string; }; readonly addData: string; readonly kibana: { readonly guide: string; readonly autocompleteSuggestions: string; }; readonly upgradeAssistant: { readonly overview: string; readonly batchReindex: string; readonly remoteReindex: string; }; readonly rollupJobs: string; readonly elasticsearch: Record; readonly siem: { readonly privileges: string; readonly guide: string; readonly gettingStarted: string; readonly ml: string; readonly ruleChangeLog: string; readonly detectionsReq: string; readonly networkMap: string; readonly troubleshootGaps: string; }; readonly securitySolution: { readonly trustedApps: string; readonly eventFilters: string; }; readonly query: { readonly eql: string; readonly kueryQuerySyntax: string; readonly luceneQuery: string; readonly luceneQuerySyntax: string; readonly percolate: string; readonly queryDsl: string; }; readonly date: { readonly dateMath: string; readonly dateMathIndexNames: string; }; readonly management: Record; readonly ml: Record; readonly transforms: Record; readonly visualize: Record; readonly apis: Readonly<{ bulkIndexAlias: string; byteSizeUnits: string; createAutoFollowPattern: string; createFollower: string; createIndex: string; createSnapshotLifecyclePolicy: string; createRoleMapping: string; createRoleMappingTemplates: string; createRollupJobsRequest: string; createApiKey: string; createPipeline: string; createTransformRequest: string; cronExpressions: string; executeWatchActionModes: string; indexExists: string; multiSearch: string; openIndex: string; putComponentTemplate: string; painlessExecute: string; painlessExecuteAPIContexts: string; putComponentTemplateMetadata: string; putSnapshotLifecyclePolicy: string; putIndexTemplateV1: string; putWatch: string; searchPreference: string; simulatePipeline: string; timeUnits: string; unfreezeIndex: string; updateTransform: string; }>; readonly observability: Readonly<{ guide: string; infrastructureThreshold: string; logsThreshold: string; metricsThreshold: string; monitorStatus: string; monitorUptime: string; tlsCertificate: string; uptimeDurationAnomaly: string; }>; readonly alerting: Record; readonly maps: Readonly<{ guide: string; importGeospatialPrivileges: string; gdalTutorial: string; }>; readonly monitoring: Record; readonly security: Readonly<{ apiKeyServiceSettings: string; clusterPrivileges: string; elasticsearchSettings: string; elasticsearchEnableSecurity: string; elasticsearchEnableApiKeys: string; indicesPrivileges: string; kibanaTLS: string; kibanaPrivileges: string; mappingRoles: string; mappingRolesFieldRules: string; runAsPrivilege: string; }>; readonly spaces: Readonly<{ kibanaLegacyUrlAliases: string; kibanaDisableLegacyUrlAliasesApi: string; }>; readonly watcher: Record; readonly ccs: Record; readonly plugins: { azureRepo: string; gcsRepo: string; hdfsRepo: string; s3Repo: string; snapshotRestoreRepos: string; mapperSize: string; }; readonly snapshotRestore: Record; readonly ingest: Record; readonly fleet: Readonly<{ beatsAgentComparison: string; guide: string; fleetServer: string; fleetServerAddFleetServer: string; settings: string; settingsFleetServerHostSettings: string; settingsFleetServerProxySettings: string; troubleshooting: string; elasticAgent: string; datastreams: string; datastreamsNamingScheme: string; installElasticAgent: string; installElasticAgentStandalone: string; upgradeElasticAgent: string; upgradeElasticAgent712lower: string; learnMoreBlog: string; apiKeysLearnMore: string; onPremRegistry: string; }>; readonly ecs: { readonly guide: string; }; readonly clients: { readonly guide: string; readonly goOverview: string; readonly javaIndex: string; readonly jsIntro: string; readonly netGuide: string; readonly perlGuide: string; readonly phpGuide: string; readonly pythonGuide: string; readonly rubyOverview: string; readonly rustGuide: string; }; readonly endpoints: { readonly troubleshooting: string; }; }" ], "path": "src/core/public/doc_links/doc_links_service.ts", "deprecated": false @@ -7705,7 +7705,7 @@ "\nSet of settings configure SSL connection between Kibana and Elasticsearch that\nare required when `xpack.ssl.verification_mode` in Elasticsearch is set to\neither `certificate` or `full`." ], "signature": [ - "Pick; truststore: Readonly<{ path?: string | undefined; password?: string | undefined; } & {}>; alwaysPresentCertificate: boolean; }>, \"key\" | \"certificate\" | \"verificationMode\" | \"keyPassphrase\" | \"alwaysPresentCertificate\"> & { certificateAuthorities?: string[] | undefined; }" + "Pick; truststore: Readonly<{ path?: string | undefined; password?: string | undefined; } & {}>; alwaysPresentCertificate: boolean; }>, \"key\" | \"verificationMode\" | \"certificate\" | \"keyPassphrase\" | \"alwaysPresentCertificate\"> & { certificateAuthorities?: string[] | undefined; }" ], "path": "src/core/server/elasticsearch/elasticsearch_config.ts", "deprecated": false @@ -7746,7 +7746,7 @@ "label": "rawConfig", "description": [], "signature": [ - "Readonly<{ password?: string | undefined; username?: string | undefined; serviceAccountToken?: string | undefined; } & { ssl: Readonly<{ key?: string | undefined; certificate?: string | undefined; certificateAuthorities?: string | string[] | undefined; keyPassphrase?: string | undefined; } & { verificationMode: \"none\" | \"full\" | \"certificate\"; keystore: Readonly<{ path?: string | undefined; password?: string | undefined; } & {}>; truststore: Readonly<{ path?: string | undefined; password?: string | undefined; } & {}>; alwaysPresentCertificate: boolean; }>; hosts: string | string[]; requestTimeout: moment.Duration; sniffOnStart: boolean; sniffInterval: false | moment.Duration; sniffOnConnectionFault: boolean; requestHeadersWhitelist: string | string[]; customHeaders: Record; shardTimeout: moment.Duration; pingTimeout: moment.Duration; logQueries: boolean; apiVersion: string; healthCheck: Readonly<{} & { delay: moment.Duration; }>; ignoreVersionMismatch: boolean; skipStartupConnectionCheck: boolean; }>" + "Readonly<{ username?: string | undefined; password?: string | undefined; serviceAccountToken?: string | undefined; } & { ssl: Readonly<{ key?: string | undefined; certificateAuthorities?: string | string[] | undefined; certificate?: string | undefined; keyPassphrase?: string | undefined; } & { verificationMode: \"none\" | \"full\" | \"certificate\"; keystore: Readonly<{ path?: string | undefined; password?: string | undefined; } & {}>; truststore: Readonly<{ path?: string | undefined; password?: string | undefined; } & {}>; alwaysPresentCertificate: boolean; }>; hosts: string | string[]; sniffOnStart: boolean; sniffInterval: false | moment.Duration; sniffOnConnectionFault: boolean; requestHeadersWhitelist: string | string[]; customHeaders: Record; shardTimeout: moment.Duration; requestTimeout: moment.Duration; pingTimeout: moment.Duration; logQueries: boolean; apiVersion: string; healthCheck: Readonly<{} & { delay: moment.Duration; }>; ignoreVersionMismatch: boolean; skipStartupConnectionCheck: boolean; }>" ], "path": "src/core/server/elasticsearch/elasticsearch_config.ts", "deprecated": false, @@ -8669,7 +8669,7 @@ "\r\nDeprecate a configuration property from inside a plugin's configuration path.\r\nWill log a deprecation warning if the deprecatedKey was found.\r\n" ], "signature": [ - "(deprecatedKey: string, removeBy: string, details?: Partial | undefined) => ", + "(deprecatedKey: string, removeBy: string, details: FactoryConfigDeprecationDetails) => ", "ConfigDeprecation" ], "path": "node_modules/@types/kbn__config/index.d.ts", @@ -8706,16 +8706,16 @@ { "parentPluginId": "core", "id": "def-server.ConfigDeprecationFactory.deprecate.$3", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial | undefined" + "FactoryConfigDeprecationDetails" ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -8730,7 +8730,7 @@ "\r\nDeprecate a configuration property from the root configuration.\r\nWill log a deprecation warning if the deprecatedKey was found.\r\n\r\nThis should be only used when deprecating properties from different configuration's path.\r\nTo deprecate properties from inside a plugin's configuration, use 'deprecate' instead.\r\n" ], "signature": [ - "(deprecatedKey: string, removeBy: string, details?: Partial | undefined) => ", + "(deprecatedKey: string, removeBy: string, details: FactoryConfigDeprecationDetails) => ", "ConfigDeprecation" ], "path": "node_modules/@types/kbn__config/index.d.ts", @@ -8767,16 +8767,16 @@ { "parentPluginId": "core", "id": "def-server.ConfigDeprecationFactory.deprecateFromRoot.$3", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial | undefined" + "FactoryConfigDeprecationDetails" ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -8791,7 +8791,7 @@ "\r\nRename a configuration property from inside a plugin's configuration path.\r\nWill log a deprecation warning if the oldKey was found and deprecation applied.\r\n" ], "signature": [ - "(oldKey: string, newKey: string, details?: Partial | undefined) => ", + "(oldKey: string, newKey: string, details: FactoryConfigDeprecationDetails) => ", "ConfigDeprecation" ], "path": "node_modules/@types/kbn__config/index.d.ts", @@ -8828,16 +8828,16 @@ { "parentPluginId": "core", "id": "def-server.ConfigDeprecationFactory.rename.$3", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial | undefined" + "FactoryConfigDeprecationDetails" ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -8852,7 +8852,7 @@ "\r\nRename a configuration property from the root configuration.\r\nWill log a deprecation warning if the oldKey was found and deprecation applied.\r\n\r\nThis should be only used when renaming properties from different configuration's path.\r\nTo rename properties from inside a plugin's configuration, use 'rename' instead.\r\n" ], "signature": [ - "(oldKey: string, newKey: string, details?: Partial | undefined) => ", + "(oldKey: string, newKey: string, details: FactoryConfigDeprecationDetails) => ", "ConfigDeprecation" ], "path": "node_modules/@types/kbn__config/index.d.ts", @@ -8889,16 +8889,16 @@ { "parentPluginId": "core", "id": "def-server.ConfigDeprecationFactory.renameFromRoot.$3", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial | undefined" + "FactoryConfigDeprecationDetails" ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -8913,7 +8913,7 @@ "\r\nRemove a configuration property from inside a plugin's configuration path.\r\nWill log a deprecation warning if the unused key was found and deprecation applied.\r\n" ], "signature": [ - "(unusedKey: string, details?: Partial | undefined) => ", + "(unusedKey: string, details: FactoryConfigDeprecationDetails) => ", "ConfigDeprecation" ], "path": "node_modules/@types/kbn__config/index.d.ts", @@ -8936,16 +8936,16 @@ { "parentPluginId": "core", "id": "def-server.ConfigDeprecationFactory.unused.$2", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial | undefined" + "FactoryConfigDeprecationDetails" ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -8960,7 +8960,7 @@ "\r\nRemove a configuration property from the root configuration.\r\nWill log a deprecation warning if the unused key was found and deprecation applied.\r\n\r\nThis should be only used when removing properties from outside of a plugin's configuration.\r\nTo remove properties from inside a plugin's configuration, use 'unused' instead.\r\n" ], "signature": [ - "(unusedKey: string, details?: Partial | undefined) => ", + "(unusedKey: string, details: FactoryConfigDeprecationDetails) => ", "ConfigDeprecation" ], "path": "node_modules/@types/kbn__config/index.d.ts", @@ -8983,16 +8983,16 @@ { "parentPluginId": "core", "id": "def-server.ConfigDeprecationFactory.unusedFromRoot.$2", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial | undefined" + "FactoryConfigDeprecationDetails" ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -10209,6 +10209,52 @@ "path": "src/core/server/elasticsearch/types.ts", "deprecated": false, "children": [ + { + "parentPluginId": "core", + "id": "def-server.ElasticsearchServiceSetup.setUnauthorizedErrorHandler", + "type": "Function", + "tags": [], + "label": "setUnauthorizedErrorHandler", + "description": [ + "\nRegister a handler that will be called when unauthorized (401) errors are returned from any API\ncall to elasticsearch performed on behalf of a user via a {@link IScopedClusterClient | scoped cluster client}.\n" + ], + "signature": [ + "(handler: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandler", + "text": "UnauthorizedErrorHandler" + }, + ") => void" + ], + "path": "src/core/server/elasticsearch/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "core", + "id": "def-server.ElasticsearchServiceSetup.setUnauthorizedErrorHandler.$1", + "type": "Function", + "tags": [], + "label": "handler", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandler", + "text": "UnauthorizedErrorHandler" + } + ], + "path": "src/core/server/elasticsearch/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, { "parentPluginId": "core", "id": "def-server.ElasticsearchServiceSetup.legacy", @@ -10558,7 +10604,7 @@ "Headers used for authentication against Elasticsearch" ], "signature": [ - "{ from?: string | string[] | undefined; date?: string | string[] | undefined; origin?: string | string[] | undefined; range?: string | string[] | undefined; warning?: string | string[] | undefined; location?: string | string[] | undefined; allow?: string | string[] | undefined; accept?: string | string[] | undefined; \"accept-language\"?: string | string[] | undefined; \"accept-patch\"?: string | string[] | undefined; \"accept-ranges\"?: string | string[] | undefined; \"access-control-allow-credentials\"?: string | string[] | undefined; \"access-control-allow-headers\"?: string | string[] | undefined; \"access-control-allow-methods\"?: string | string[] | undefined; \"access-control-allow-origin\"?: string | string[] | undefined; \"access-control-expose-headers\"?: string | string[] | undefined; \"access-control-max-age\"?: string | string[] | undefined; \"access-control-request-headers\"?: string | string[] | undefined; \"access-control-request-method\"?: string | string[] | undefined; age?: string | string[] | undefined; \"alt-svc\"?: string | string[] | undefined; authorization?: string | string[] | undefined; \"cache-control\"?: string | string[] | undefined; connection?: string | string[] | undefined; \"content-disposition\"?: string | string[] | undefined; \"content-encoding\"?: string | string[] | undefined; \"content-language\"?: string | string[] | undefined; \"content-length\"?: string | string[] | undefined; \"content-location\"?: string | string[] | undefined; \"content-range\"?: string | string[] | undefined; \"content-type\"?: string | string[] | undefined; cookie?: string | string[] | undefined; etag?: string | string[] | undefined; expect?: string | string[] | undefined; expires?: string | string[] | undefined; forwarded?: string | string[] | undefined; host?: string | string[] | undefined; \"if-match\"?: string | string[] | undefined; \"if-modified-since\"?: string | string[] | undefined; \"if-none-match\"?: string | string[] | undefined; \"if-unmodified-since\"?: string | string[] | undefined; \"last-modified\"?: string | string[] | undefined; pragma?: string | string[] | undefined; \"proxy-authenticate\"?: string | string[] | undefined; \"proxy-authorization\"?: string | string[] | undefined; \"public-key-pins\"?: string | string[] | undefined; referer?: string | string[] | undefined; \"retry-after\"?: string | string[] | undefined; \"sec-websocket-accept\"?: string | string[] | undefined; \"sec-websocket-extensions\"?: string | string[] | undefined; \"sec-websocket-key\"?: string | string[] | undefined; \"sec-websocket-protocol\"?: string | string[] | undefined; \"sec-websocket-version\"?: string | string[] | undefined; \"set-cookie\"?: string | string[] | undefined; \"strict-transport-security\"?: string | string[] | undefined; tk?: string | string[] | undefined; trailer?: string | string[] | undefined; \"transfer-encoding\"?: string | string[] | undefined; upgrade?: string | string[] | undefined; \"user-agent\"?: string | string[] | undefined; vary?: string | string[] | undefined; via?: string | string[] | undefined; \"www-authenticate\"?: string | string[] | undefined; } & { [header: string]: string | string[] | undefined; }" + "{ from?: string | string[] | undefined; date?: string | string[] | undefined; origin?: string | string[] | undefined; range?: string | string[] | undefined; warning?: string | string[] | undefined; location?: string | string[] | undefined; allow?: string | string[] | undefined; accept?: string | string[] | undefined; host?: string | string[] | undefined; \"accept-language\"?: string | string[] | undefined; \"accept-patch\"?: string | string[] | undefined; \"accept-ranges\"?: string | string[] | undefined; \"access-control-allow-credentials\"?: string | string[] | undefined; \"access-control-allow-headers\"?: string | string[] | undefined; \"access-control-allow-methods\"?: string | string[] | undefined; \"access-control-allow-origin\"?: string | string[] | undefined; \"access-control-expose-headers\"?: string | string[] | undefined; \"access-control-max-age\"?: string | string[] | undefined; \"access-control-request-headers\"?: string | string[] | undefined; \"access-control-request-method\"?: string | string[] | undefined; age?: string | string[] | undefined; \"alt-svc\"?: string | string[] | undefined; authorization?: string | string[] | undefined; \"cache-control\"?: string | string[] | undefined; connection?: string | string[] | undefined; \"content-disposition\"?: string | string[] | undefined; \"content-encoding\"?: string | string[] | undefined; \"content-language\"?: string | string[] | undefined; \"content-length\"?: string | string[] | undefined; \"content-location\"?: string | string[] | undefined; \"content-range\"?: string | string[] | undefined; \"content-type\"?: string | string[] | undefined; cookie?: string | string[] | undefined; etag?: string | string[] | undefined; expect?: string | string[] | undefined; expires?: string | string[] | undefined; forwarded?: string | string[] | undefined; \"if-match\"?: string | string[] | undefined; \"if-modified-since\"?: string | string[] | undefined; \"if-none-match\"?: string | string[] | undefined; \"if-unmodified-since\"?: string | string[] | undefined; \"last-modified\"?: string | string[] | undefined; pragma?: string | string[] | undefined; \"proxy-authenticate\"?: string | string[] | undefined; \"proxy-authorization\"?: string | string[] | undefined; \"public-key-pins\"?: string | string[] | undefined; referer?: string | string[] | undefined; \"retry-after\"?: string | string[] | undefined; \"sec-websocket-accept\"?: string | string[] | undefined; \"sec-websocket-extensions\"?: string | string[] | undefined; \"sec-websocket-key\"?: string | string[] | undefined; \"sec-websocket-protocol\"?: string | string[] | undefined; \"sec-websocket-version\"?: string | string[] | undefined; \"set-cookie\"?: string | string[] | undefined; \"strict-transport-security\"?: string | string[] | undefined; tk?: string | string[] | undefined; trailer?: string | string[] | undefined; \"transfer-encoding\"?: string | string[] | undefined; upgrade?: string | string[] | undefined; \"user-agent\"?: string | string[] | undefined; vary?: string | string[] | undefined; via?: string | string[] | undefined; \"www-authenticate\"?: string | string[] | undefined; } & { [header: string]: string | string[] | undefined; }" ], "path": "src/core/server/elasticsearch/types.ts", "deprecated": false @@ -13606,7 +13652,7 @@ "label": "loggers", "description": [], "signature": [ - "Readonly<{} & { name: string; level: \"all\" | \"error\" | \"info\" | \"off\" | \"trace\" | \"debug\" | \"warn\" | \"fatal\"; appenders: string[]; }>[] | undefined" + "Readonly<{} & { name: string; level: \"all\" | \"error\" | \"info\" | \"off\" | \"debug\" | \"trace\" | \"warn\" | \"fatal\"; appenders: string[]; }>[] | undefined" ], "path": "src/core/server/logging/logging_config.ts", "deprecated": false @@ -14710,13 +14756,13 @@ "signature": [ "{ legacy: { globalConfig$: ", "Observable", - " moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly shardTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly pingTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; }>; path: Readonly<{ readonly data: string; }>; savedObjects: Readonly<{ readonly maxImportPayloadBytes: Readonly<{ isGreaterThan: (other: ", + " moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly requestTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly pingTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; }>; path: Readonly<{ readonly data: string; }>; savedObjects: Readonly<{ readonly maxImportPayloadBytes: Readonly<{ isGreaterThan: (other: ", "ByteSizeValue", ") => boolean; isLessThan: (other: ", "ByteSizeValue", ") => boolean; isEqualTo: (other: ", "ByteSizeValue", - ") => boolean; getValueInBytes: () => number; toString: (returnUnit?: ByteSizeValueUnit | undefined) => string; }>; }>; }>>; get: () => Readonly<{ elasticsearch: Readonly<{ readonly requestTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly shardTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly pingTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; }>; path: Readonly<{ readonly data: string; }>; savedObjects: Readonly<{ readonly maxImportPayloadBytes: Readonly<{ isGreaterThan: (other: ", + ") => boolean; getValueInBytes: () => number; toString: (returnUnit?: ByteSizeValueUnit | undefined) => string; }>; }>; }>>; get: () => Readonly<{ elasticsearch: Readonly<{ readonly shardTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly requestTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly pingTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; }>; path: Readonly<{ readonly data: string; }>; savedObjects: Readonly<{ readonly maxImportPayloadBytes: Readonly<{ isGreaterThan: (other: ", "ByteSizeValue", ") => boolean; isLessThan: (other: ", "ByteSizeValue", @@ -16568,6 +16614,240 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerNotHandledResult", + "type": "Interface", + "tags": [], + "label": "UnauthorizedErrorHandlerNotHandledResult", + "description": [], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerNotHandledResult.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"notHandled\"" + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerOptions", + "type": "Interface", + "tags": [], + "label": "UnauthorizedErrorHandlerOptions", + "description": [], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerOptions.error", + "type": "CompoundType", + "tags": [], + "label": "error", + "description": [], + "signature": [ + "ResponseError", + " & { statusCode: 401; }" + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerOptions.request", + "type": "Object", + "tags": [], + "label": "request", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreHttpPluginApi", + "section": "def-server.KibanaRequest", + "text": "KibanaRequest" + }, + "" + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerResultRetryParams", + "type": "Interface", + "tags": [], + "label": "UnauthorizedErrorHandlerResultRetryParams", + "description": [], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerResultRetryParams.authHeaders", + "type": "Object", + "tags": [], + "label": "authHeaders", + "description": [], + "signature": [ + "{ [x: string]: string | string[]; }" + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerRetryResult", + "type": "Interface", + "tags": [], + "label": "UnauthorizedErrorHandlerRetryResult", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerRetryResult", + "text": "UnauthorizedErrorHandlerRetryResult" + }, + " extends ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerResultRetryParams", + "text": "UnauthorizedErrorHandlerResultRetryParams" + } + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerRetryResult.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"retry\"" + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerToolkit", + "type": "Interface", + "tags": [], + "label": "UnauthorizedErrorHandlerToolkit", + "description": [ + "\nToolkit passed to a {@link UnauthorizedErrorHandler} used to generate responses from the handler" + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerToolkit.notHandled", + "type": "Function", + "tags": [], + "label": "notHandled", + "description": [ + "\nThe handler cannot handle the error, or was not able to authenticate." + ], + "signature": [ + "() => ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerNotHandledResult", + "text": "UnauthorizedErrorHandlerNotHandledResult" + } + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerToolkit.retry", + "type": "Function", + "tags": [], + "label": "retry", + "description": [ + "\nThe handler was able to authenticate. Will retry the failed request with new auth headers" + ], + "signature": [ + "(params: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerResultRetryParams", + "text": "UnauthorizedErrorHandlerResultRetryParams" + }, + ") => ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerRetryResult", + "text": "UnauthorizedErrorHandlerRetryResult" + } + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerToolkit.retry.$1", + "type": "Object", + "tags": [], + "label": "params", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerResultRetryParams", + "text": "UnauthorizedErrorHandlerResultRetryParams" + } + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, { "parentPluginId": "core", "id": "def-server.UserProvidedValues", @@ -17056,7 +17336,7 @@ "label": "EcsEventCategory", "description": [], "signature": [ - "\"database\" | \"package\" | \"network\" | \"web\" | \"host\" | \"session\" | \"file\" | \"process\" | \"registry\" | \"authentication\" | \"configuration\" | \"driver\" | \"iam\" | \"intrusion_detection\" | \"malware\"" + "\"database\" | \"package\" | \"network\" | \"web\" | \"host\" | \"session\" | \"file\" | \"registry\" | \"process\" | \"authentication\" | \"configuration\" | \"driver\" | \"iam\" | \"intrusion_detection\" | \"malware\"" ], "path": "node_modules/@kbn/logging/target_types/ecs/event.d.ts", "deprecated": false, @@ -17098,7 +17378,7 @@ "label": "EcsEventType", "description": [], "signature": [ - "\"start\" | \"user\" | \"error\" | \"end\" | \"info\" | \"group\" | \"connection\" | \"protocol\" | \"access\" | \"admin\" | \"allowed\" | \"change\" | \"creation\" | \"deletion\" | \"denied\" | \"installation\"" + "\"start\" | \"user\" | \"error\" | \"end\" | \"info\" | \"group\" | \"protocol\" | \"connection\" | \"access\" | \"admin\" | \"allowed\" | \"change\" | \"creation\" | \"deletion\" | \"denied\" | \"installation\"" ], "path": "node_modules/@kbn/logging/target_types/ecs/event.d.ts", "deprecated": false, @@ -17146,7 +17426,7 @@ "section": "def-server.ElasticsearchConfig", "text": "ElasticsearchConfig" }, - ", \"hosts\" | \"password\" | \"username\" | \"sniffOnStart\" | \"sniffInterval\" | \"sniffOnConnectionFault\" | \"serviceAccountToken\" | \"requestHeadersWhitelist\" | \"customHeaders\"> & { pingTimeout?: number | moment.Duration | undefined; requestTimeout?: number | moment.Duration | undefined; ssl?: Partial; truststore: Readonly<{ path?: string | undefined; password?: string | undefined; } & {}>; alwaysPresentCertificate: boolean; }>, \"key\" | \"certificate\" | \"verificationMode\" | \"keyPassphrase\" | \"alwaysPresentCertificate\"> & { certificateAuthorities?: string[] | undefined; }> | undefined; keepAlive?: boolean | undefined; caFingerprint?: string | undefined; }" + ", \"username\" | \"hosts\" | \"password\" | \"sniffOnStart\" | \"sniffInterval\" | \"sniffOnConnectionFault\" | \"serviceAccountToken\" | \"requestHeadersWhitelist\" | \"customHeaders\"> & { pingTimeout?: number | moment.Duration | undefined; requestTimeout?: number | moment.Duration | undefined; ssl?: Partial; truststore: Readonly<{ path?: string | undefined; password?: string | undefined; } & {}>; alwaysPresentCertificate: boolean; }>, \"key\" | \"verificationMode\" | \"certificate\" | \"keyPassphrase\" | \"alwaysPresentCertificate\"> & { certificateAuthorities?: string[] | undefined; }> | undefined; keepAlive?: boolean | undefined; caFingerprint?: string | undefined; }" ], "path": "src/core/server/elasticsearch/client/client_config.ts", "deprecated": false, @@ -18019,7 +18299,7 @@ "label": "LoggerConfigType", "description": [], "signature": [ - "{ readonly name: string; readonly level: \"all\" | \"error\" | \"info\" | \"off\" | \"trace\" | \"debug\" | \"warn\" | \"fatal\"; readonly appenders: string[]; }" + "{ readonly name: string; readonly level: \"all\" | \"error\" | \"info\" | \"off\" | \"debug\" | \"trace\" | \"warn\" | \"fatal\"; readonly appenders: string[]; }" ], "path": "src/core/server/logging/logging_config.ts", "deprecated": false, @@ -18343,18 +18623,19 @@ { "pluginId": "core", "scope": "server", - "docId": "kibCoreHttpPluginApi", - "section": "def-server.KibanaRequest", - "text": "KibanaRequest" + "docId": "kibCorePluginApi", + "section": "def-server.FakeRequest", + "text": "FakeRequest" }, - " | ", + " | ", { "pluginId": "core", "scope": "server", - "docId": "kibCorePluginApi", - "section": "def-server.FakeRequest", - "text": "FakeRequest" - } + "docId": "kibCoreHttpPluginApi", + "section": "def-server.KibanaRequest", + "text": "KibanaRequest" + }, + "" ], "path": "src/core/server/elasticsearch/types.ts", "deprecated": false, @@ -18384,7 +18665,7 @@ "label": "SharedGlobalConfig", "description": [], "signature": [ - "{ readonly elasticsearch: Readonly<{ readonly requestTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly shardTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly pingTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; }>; readonly path: Readonly<{ readonly data: string; }>; readonly savedObjects: Readonly<{ readonly maxImportPayloadBytes: Readonly<{ isGreaterThan: (other: ", + "{ readonly elasticsearch: Readonly<{ readonly shardTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly requestTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; readonly pingTimeout: Readonly<{ clone: () => moment.Duration; humanize: { (argWithSuffix?: boolean | undefined, argThresholds?: moment.argThresholdOpts | undefined): string; (argThresholds?: moment.argThresholdOpts | undefined): string; }; abs: () => moment.Duration; as: (units: moment.unitOfTime.Base) => number; get: (units: moment.unitOfTime.Base) => number; milliseconds: () => number; asMilliseconds: () => number; seconds: () => number; asSeconds: () => number; minutes: () => number; asMinutes: () => number; hours: () => number; asHours: () => number; days: () => number; asDays: () => number; weeks: () => number; asWeeks: () => number; months: () => number; asMonths: () => number; years: () => number; asYears: () => number; add: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; subtract: (inp?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor | undefined) => moment.Duration; locale: { (): string; (locale: moment.LocaleSpecifier): moment.Duration; }; localeData: () => moment.Locale; toISOString: () => string; toJSON: () => string; isValid: () => boolean; lang: { (locale: moment.LocaleSpecifier): moment.Moment; (): moment.Locale; }; toIsoString: () => string; format: moment.Format; }>; }>; readonly path: Readonly<{ readonly data: string; }>; readonly savedObjects: Readonly<{ readonly maxImportPayloadBytes: Readonly<{ isGreaterThan: (other: ", "ByteSizeValue", ") => boolean; isLessThan: (other: ", "ByteSizeValue", @@ -18437,6 +18718,132 @@ "path": "src/core/types/ui_settings.ts", "deprecated": false, "initialIsOpen": false + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedError", + "type": "Type", + "tags": [], + "label": "UnauthorizedError", + "description": [], + "signature": [ + "ResponseError", + " & { statusCode: 401; }" + ], + "path": "src/core/server/elasticsearch/client/errors.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandler", + "type": "Type", + "tags": [], + "label": "UnauthorizedErrorHandler", + "description": [ + "\nA handler used to handle unauthorized error returned by elasticsearch\n" + ], + "signature": [ + "(options: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerOptions", + "text": "UnauthorizedErrorHandlerOptions" + }, + ", toolkit: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerToolkit", + "text": "UnauthorizedErrorHandlerToolkit" + }, + ") => ", + "MaybePromise", + "<", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerResult", + "text": "UnauthorizedErrorHandlerResult" + }, + ">" + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandler.$1", + "type": "Object", + "tags": [], + "label": "options", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerOptions", + "text": "UnauthorizedErrorHandlerOptions" + } + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandler.$2", + "type": "Object", + "tags": [], + "label": "toolkit", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerToolkit", + "text": "UnauthorizedErrorHandlerToolkit" + } + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "core", + "id": "def-server.UnauthorizedErrorHandlerResult", + "type": "Type", + "tags": [], + "label": "UnauthorizedErrorHandlerResult", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerRetryResult", + "text": "UnauthorizedErrorHandlerRetryResult" + }, + " | ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.UnauthorizedErrorHandlerNotHandledResult", + "text": "UnauthorizedErrorHandlerNotHandledResult" + } + ], + "path": "src/core/server/elasticsearch/client/retry_unauthorized.ts", + "deprecated": false, + "initialIsOpen": false } ], "objects": [ diff --git a/api_docs/core.mdx b/api_docs/core.mdx index 9edf7bbb1393f5..321438d49b0352 100644 --- a/api_docs/core.mdx +++ b/api_docs/core.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import coreObj from './core.json'; +import coreObj from './core.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2333 | 15 | 953 | 32 | +| 2353 | 15 | 968 | 32 | ## Client diff --git a/api_docs/core_application.json b/api_docs/core_application.devdocs.json similarity index 98% rename from api_docs/core_application.json rename to api_docs/core_application.devdocs.json index 30a26761208ecd..193b728e1c088a 100644 --- a/api_docs/core_application.json +++ b/api_docs/core_application.devdocs.json @@ -1404,6 +1404,22 @@ "path": "src/core/public/application/types.ts", "deprecated": true, "references": [ + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_editor_common.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/app.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/index.tsx" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/types.ts" @@ -1464,41 +1480,25 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_editor_common.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/app.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/index.tsx" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/target/types/public/types.d.ts" }, { - "plugin": "visualize", - "path": "src/plugins/visualize/target/types/public/application/app.d.ts" + "plugin": "visualizations", + "path": "src/plugins/visualizations/target/types/public/visualize_app/app.d.ts" }, { - "plugin": "visualize", - "path": "src/plugins/visualize/target/types/public/application/index.d.ts" + "plugin": "visualizations", + "path": "src/plugins/visualizations/target/types/public/visualize_app/index.d.ts" }, { - "plugin": "visualize", - "path": "src/plugins/visualize/target/types/public/application/components/visualize_editor_common.d.ts" + "plugin": "visualizations", + "path": "src/plugins/visualizations/target/types/public/visualize_app/components/visualize_editor_common.d.ts" }, { - "plugin": "visualize", - "path": "src/plugins/visualize/target/types/public/application/components/visualize_top_nav.d.ts" + "plugin": "visualizations", + "path": "src/plugins/visualizations/target/types/public/visualize_app/components/visualize_top_nav.d.ts" } ], "children": [ @@ -2098,7 +2098,7 @@ "section": "def-public.AppStatus", "text": "AppStatus" }, - " | undefined; deepLinks?: ", + " | undefined; searchable?: boolean | undefined; deepLinks?: ", { "pluginId": "core", "scope": "public", @@ -2106,7 +2106,7 @@ "section": "def-public.AppDeepLink", "text": "AppDeepLink" }, - "[] | undefined; searchable?: boolean | undefined; navLinkStatus?: ", + "[] | undefined; navLinkStatus?: ", { "pluginId": "core", "scope": "public", @@ -2193,7 +2193,7 @@ "section": "def-public.AppDeepLink", "text": "AppDeepLink" }, - ", \"keywords\" | \"deepLinks\" | \"searchable\" | \"navLinkStatus\"> & { deepLinks: ", + ", \"searchable\" | \"keywords\" | \"deepLinks\" | \"navLinkStatus\"> & { deepLinks: ", { "pluginId": "core", "scope": "public", @@ -2233,7 +2233,7 @@ "section": "def-public.App", "text": "App" }, - ", \"mount\" | \"updater$\" | \"keywords\" | \"deepLinks\" | \"searchable\"> & { status: ", + ", \"searchable\" | \"mount\" | \"updater$\" | \"keywords\" | \"deepLinks\"> & { status: ", { "pluginId": "core", "scope": "public", diff --git a/api_docs/core_application.mdx b/api_docs/core_application.mdx index 25a75888d0d150..56599e1c869381 100644 --- a/api_docs/core_application.mdx +++ b/api_docs/core_application.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core.application'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import coreApplicationObj from './core_application.json'; +import coreApplicationObj from './core_application.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2333 | 15 | 953 | 32 | +| 2353 | 15 | 968 | 32 | ## Client diff --git a/api_docs/core_chrome.json b/api_docs/core_chrome.devdocs.json similarity index 100% rename from api_docs/core_chrome.json rename to api_docs/core_chrome.devdocs.json diff --git a/api_docs/core_chrome.mdx b/api_docs/core_chrome.mdx index 446ae5f2f6415a..4ed582a92dd172 100644 --- a/api_docs/core_chrome.mdx +++ b/api_docs/core_chrome.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core.chrome'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import coreChromeObj from './core_chrome.json'; +import coreChromeObj from './core_chrome.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2333 | 15 | 953 | 32 | +| 2353 | 15 | 968 | 32 | ## Client diff --git a/api_docs/core_http.json b/api_docs/core_http.devdocs.json similarity index 98% rename from api_docs/core_http.json rename to api_docs/core_http.devdocs.json index e7a3f7dc985a1f..da58151d20c5bf 100644 --- a/api_docs/core_http.json +++ b/api_docs/core_http.devdocs.json @@ -765,7 +765,7 @@ "label": "request", "description": [], "signature": [ - "{ readonly cache: RequestCache; readonly credentials: RequestCredentials; readonly destination: RequestDestination; readonly headers: Headers; readonly integrity: string; readonly isHistoryNavigation: boolean; readonly isReloadNavigation: boolean; readonly keepalive: boolean; readonly method: string; readonly mode: RequestMode; readonly redirect: RequestRedirect; readonly referrer: string; readonly referrerPolicy: ReferrerPolicy; readonly signal: AbortSignal; readonly url: string; readonly clone: () => Request; readonly body: ReadableStream | null; readonly bodyUsed: boolean; readonly arrayBuffer: () => Promise; readonly blob: () => Promise; readonly formData: () => Promise; readonly json: () => Promise; readonly text: () => Promise; }" + "{ readonly cache: RequestCache; readonly credentials: RequestCredentials; readonly destination: RequestDestination; readonly headers: Headers; readonly integrity: string; readonly keepalive: boolean; readonly method: string; readonly mode: RequestMode; readonly redirect: RequestRedirect; readonly referrer: string; readonly referrerPolicy: ReferrerPolicy; readonly signal: AbortSignal; readonly url: string; readonly clone: () => Request; readonly body: ReadableStream | null; readonly bodyUsed: boolean; readonly arrayBuffer: () => Promise; readonly blob: () => Promise; readonly formData: () => Promise; readonly json: () => Promise; readonly text: () => Promise; }" ], "path": "src/core/public/http/types.ts", "deprecated": false @@ -1074,7 +1074,7 @@ "Raw request sent to Kibana server." ], "signature": [ - "{ readonly cache: RequestCache; readonly credentials: RequestCredentials; readonly destination: RequestDestination; readonly headers: Headers; readonly integrity: string; readonly isHistoryNavigation: boolean; readonly isReloadNavigation: boolean; readonly keepalive: boolean; readonly method: string; readonly mode: RequestMode; readonly redirect: RequestRedirect; readonly referrer: string; readonly referrerPolicy: ReferrerPolicy; readonly signal: AbortSignal; readonly url: string; readonly clone: () => Request; readonly body: ReadableStream | null; readonly bodyUsed: boolean; readonly arrayBuffer: () => Promise; readonly blob: () => Promise; readonly formData: () => Promise; readonly json: () => Promise; readonly text: () => Promise; }" + "{ readonly cache: RequestCache; readonly credentials: RequestCredentials; readonly destination: RequestDestination; readonly headers: Headers; readonly integrity: string; readonly keepalive: boolean; readonly method: string; readonly mode: RequestMode; readonly redirect: RequestRedirect; readonly referrer: string; readonly referrerPolicy: ReferrerPolicy; readonly signal: AbortSignal; readonly url: string; readonly clone: () => Request; readonly body: ReadableStream | null; readonly bodyUsed: boolean; readonly arrayBuffer: () => Promise; readonly blob: () => Promise; readonly formData: () => Promise; readonly json: () => Promise; readonly text: () => Promise; }" ], "path": "src/core/public/http/types.ts", "deprecated": false @@ -2311,7 +2311,7 @@ "\nReadonly copy of incoming request headers." ], "signature": [ - "{ from?: string | string[] | undefined; date?: string | string[] | undefined; origin?: string | string[] | undefined; range?: string | string[] | undefined; warning?: string | string[] | undefined; location?: string | string[] | undefined; allow?: string | string[] | undefined; accept?: string | string[] | undefined; \"accept-language\"?: string | string[] | undefined; \"accept-patch\"?: string | string[] | undefined; \"accept-ranges\"?: string | string[] | undefined; \"access-control-allow-credentials\"?: string | string[] | undefined; \"access-control-allow-headers\"?: string | string[] | undefined; \"access-control-allow-methods\"?: string | string[] | undefined; \"access-control-allow-origin\"?: string | string[] | undefined; \"access-control-expose-headers\"?: string | string[] | undefined; \"access-control-max-age\"?: string | string[] | undefined; \"access-control-request-headers\"?: string | string[] | undefined; \"access-control-request-method\"?: string | string[] | undefined; age?: string | string[] | undefined; \"alt-svc\"?: string | string[] | undefined; authorization?: string | string[] | undefined; \"cache-control\"?: string | string[] | undefined; connection?: string | string[] | undefined; \"content-disposition\"?: string | string[] | undefined; \"content-encoding\"?: string | string[] | undefined; \"content-language\"?: string | string[] | undefined; \"content-length\"?: string | string[] | undefined; \"content-location\"?: string | string[] | undefined; \"content-range\"?: string | string[] | undefined; \"content-type\"?: string | string[] | undefined; cookie?: string | string[] | undefined; etag?: string | string[] | undefined; expect?: string | string[] | undefined; expires?: string | string[] | undefined; forwarded?: string | string[] | undefined; host?: string | string[] | undefined; \"if-match\"?: string | string[] | undefined; \"if-modified-since\"?: string | string[] | undefined; \"if-none-match\"?: string | string[] | undefined; \"if-unmodified-since\"?: string | string[] | undefined; \"last-modified\"?: string | string[] | undefined; pragma?: string | string[] | undefined; \"proxy-authenticate\"?: string | string[] | undefined; \"proxy-authorization\"?: string | string[] | undefined; \"public-key-pins\"?: string | string[] | undefined; referer?: string | string[] | undefined; \"retry-after\"?: string | string[] | undefined; \"sec-websocket-accept\"?: string | string[] | undefined; \"sec-websocket-extensions\"?: string | string[] | undefined; \"sec-websocket-key\"?: string | string[] | undefined; \"sec-websocket-protocol\"?: string | string[] | undefined; \"sec-websocket-version\"?: string | string[] | undefined; \"set-cookie\"?: string | string[] | undefined; \"strict-transport-security\"?: string | string[] | undefined; tk?: string | string[] | undefined; trailer?: string | string[] | undefined; \"transfer-encoding\"?: string | string[] | undefined; upgrade?: string | string[] | undefined; \"user-agent\"?: string | string[] | undefined; vary?: string | string[] | undefined; via?: string | string[] | undefined; \"www-authenticate\"?: string | string[] | undefined; } & { [header: string]: string | string[] | undefined; }" + "{ from?: string | string[] | undefined; date?: string | string[] | undefined; origin?: string | string[] | undefined; range?: string | string[] | undefined; warning?: string | string[] | undefined; location?: string | string[] | undefined; allow?: string | string[] | undefined; accept?: string | string[] | undefined; host?: string | string[] | undefined; \"accept-language\"?: string | string[] | undefined; \"accept-patch\"?: string | string[] | undefined; \"accept-ranges\"?: string | string[] | undefined; \"access-control-allow-credentials\"?: string | string[] | undefined; \"access-control-allow-headers\"?: string | string[] | undefined; \"access-control-allow-methods\"?: string | string[] | undefined; \"access-control-allow-origin\"?: string | string[] | undefined; \"access-control-expose-headers\"?: string | string[] | undefined; \"access-control-max-age\"?: string | string[] | undefined; \"access-control-request-headers\"?: string | string[] | undefined; \"access-control-request-method\"?: string | string[] | undefined; age?: string | string[] | undefined; \"alt-svc\"?: string | string[] | undefined; authorization?: string | string[] | undefined; \"cache-control\"?: string | string[] | undefined; connection?: string | string[] | undefined; \"content-disposition\"?: string | string[] | undefined; \"content-encoding\"?: string | string[] | undefined; \"content-language\"?: string | string[] | undefined; \"content-length\"?: string | string[] | undefined; \"content-location\"?: string | string[] | undefined; \"content-range\"?: string | string[] | undefined; \"content-type\"?: string | string[] | undefined; cookie?: string | string[] | undefined; etag?: string | string[] | undefined; expect?: string | string[] | undefined; expires?: string | string[] | undefined; forwarded?: string | string[] | undefined; \"if-match\"?: string | string[] | undefined; \"if-modified-since\"?: string | string[] | undefined; \"if-none-match\"?: string | string[] | undefined; \"if-unmodified-since\"?: string | string[] | undefined; \"last-modified\"?: string | string[] | undefined; pragma?: string | string[] | undefined; \"proxy-authenticate\"?: string | string[] | undefined; \"proxy-authorization\"?: string | string[] | undefined; \"public-key-pins\"?: string | string[] | undefined; referer?: string | string[] | undefined; \"retry-after\"?: string | string[] | undefined; \"sec-websocket-accept\"?: string | string[] | undefined; \"sec-websocket-extensions\"?: string | string[] | undefined; \"sec-websocket-key\"?: string | string[] | undefined; \"sec-websocket-protocol\"?: string | string[] | undefined; \"sec-websocket-version\"?: string | string[] | undefined; \"set-cookie\"?: string | string[] | undefined; \"strict-transport-security\"?: string | string[] | undefined; tk?: string | string[] | undefined; trailer?: string | string[] | undefined; \"transfer-encoding\"?: string | string[] | undefined; upgrade?: string | string[] | undefined; \"user-agent\"?: string | string[] | undefined; vary?: string | string[] | undefined; via?: string | string[] | undefined; \"www-authenticate\"?: string | string[] | undefined; } & { [header: string]: string | string[] | undefined; }" ], "path": "src/core/server/http/router/request.ts", "deprecated": false @@ -9387,7 +9387,7 @@ "\nHttp request headers to read." ], "signature": [ - "{ from?: string | string[] | undefined; date?: string | string[] | undefined; origin?: string | string[] | undefined; range?: string | string[] | undefined; warning?: string | string[] | undefined; location?: string | string[] | undefined; allow?: string | string[] | undefined; accept?: string | string[] | undefined; \"accept-language\"?: string | string[] | undefined; \"accept-patch\"?: string | string[] | undefined; \"accept-ranges\"?: string | string[] | undefined; \"access-control-allow-credentials\"?: string | string[] | undefined; \"access-control-allow-headers\"?: string | string[] | undefined; \"access-control-allow-methods\"?: string | string[] | undefined; \"access-control-allow-origin\"?: string | string[] | undefined; \"access-control-expose-headers\"?: string | string[] | undefined; \"access-control-max-age\"?: string | string[] | undefined; \"access-control-request-headers\"?: string | string[] | undefined; \"access-control-request-method\"?: string | string[] | undefined; age?: string | string[] | undefined; \"alt-svc\"?: string | string[] | undefined; authorization?: string | string[] | undefined; \"cache-control\"?: string | string[] | undefined; connection?: string | string[] | undefined; \"content-disposition\"?: string | string[] | undefined; \"content-encoding\"?: string | string[] | undefined; \"content-language\"?: string | string[] | undefined; \"content-length\"?: string | string[] | undefined; \"content-location\"?: string | string[] | undefined; \"content-range\"?: string | string[] | undefined; \"content-type\"?: string | string[] | undefined; cookie?: string | string[] | undefined; etag?: string | string[] | undefined; expect?: string | string[] | undefined; expires?: string | string[] | undefined; forwarded?: string | string[] | undefined; host?: string | string[] | undefined; \"if-match\"?: string | string[] | undefined; \"if-modified-since\"?: string | string[] | undefined; \"if-none-match\"?: string | string[] | undefined; \"if-unmodified-since\"?: string | string[] | undefined; \"last-modified\"?: string | string[] | undefined; pragma?: string | string[] | undefined; \"proxy-authenticate\"?: string | string[] | undefined; \"proxy-authorization\"?: string | string[] | undefined; \"public-key-pins\"?: string | string[] | undefined; referer?: string | string[] | undefined; \"retry-after\"?: string | string[] | undefined; \"sec-websocket-accept\"?: string | string[] | undefined; \"sec-websocket-extensions\"?: string | string[] | undefined; \"sec-websocket-key\"?: string | string[] | undefined; \"sec-websocket-protocol\"?: string | string[] | undefined; \"sec-websocket-version\"?: string | string[] | undefined; \"set-cookie\"?: string | string[] | undefined; \"strict-transport-security\"?: string | string[] | undefined; tk?: string | string[] | undefined; trailer?: string | string[] | undefined; \"transfer-encoding\"?: string | string[] | undefined; upgrade?: string | string[] | undefined; \"user-agent\"?: string | string[] | undefined; vary?: string | string[] | undefined; via?: string | string[] | undefined; \"www-authenticate\"?: string | string[] | undefined; } & { [header: string]: string | string[] | undefined; }" + "{ from?: string | string[] | undefined; date?: string | string[] | undefined; origin?: string | string[] | undefined; range?: string | string[] | undefined; warning?: string | string[] | undefined; location?: string | string[] | undefined; allow?: string | string[] | undefined; accept?: string | string[] | undefined; host?: string | string[] | undefined; \"accept-language\"?: string | string[] | undefined; \"accept-patch\"?: string | string[] | undefined; \"accept-ranges\"?: string | string[] | undefined; \"access-control-allow-credentials\"?: string | string[] | undefined; \"access-control-allow-headers\"?: string | string[] | undefined; \"access-control-allow-methods\"?: string | string[] | undefined; \"access-control-allow-origin\"?: string | string[] | undefined; \"access-control-expose-headers\"?: string | string[] | undefined; \"access-control-max-age\"?: string | string[] | undefined; \"access-control-request-headers\"?: string | string[] | undefined; \"access-control-request-method\"?: string | string[] | undefined; age?: string | string[] | undefined; \"alt-svc\"?: string | string[] | undefined; authorization?: string | string[] | undefined; \"cache-control\"?: string | string[] | undefined; connection?: string | string[] | undefined; \"content-disposition\"?: string | string[] | undefined; \"content-encoding\"?: string | string[] | undefined; \"content-language\"?: string | string[] | undefined; \"content-length\"?: string | string[] | undefined; \"content-location\"?: string | string[] | undefined; \"content-range\"?: string | string[] | undefined; \"content-type\"?: string | string[] | undefined; cookie?: string | string[] | undefined; etag?: string | string[] | undefined; expect?: string | string[] | undefined; expires?: string | string[] | undefined; forwarded?: string | string[] | undefined; \"if-match\"?: string | string[] | undefined; \"if-modified-since\"?: string | string[] | undefined; \"if-none-match\"?: string | string[] | undefined; \"if-unmodified-since\"?: string | string[] | undefined; \"last-modified\"?: string | string[] | undefined; pragma?: string | string[] | undefined; \"proxy-authenticate\"?: string | string[] | undefined; \"proxy-authorization\"?: string | string[] | undefined; \"public-key-pins\"?: string | string[] | undefined; referer?: string | string[] | undefined; \"retry-after\"?: string | string[] | undefined; \"sec-websocket-accept\"?: string | string[] | undefined; \"sec-websocket-extensions\"?: string | string[] | undefined; \"sec-websocket-key\"?: string | string[] | undefined; \"sec-websocket-protocol\"?: string | string[] | undefined; \"sec-websocket-version\"?: string | string[] | undefined; \"set-cookie\"?: string | string[] | undefined; \"strict-transport-security\"?: string | string[] | undefined; tk?: string | string[] | undefined; trailer?: string | string[] | undefined; \"transfer-encoding\"?: string | string[] | undefined; upgrade?: string | string[] | undefined; \"user-agent\"?: string | string[] | undefined; vary?: string | string[] | undefined; via?: string | string[] | undefined; \"www-authenticate\"?: string | string[] | undefined; } & { [header: string]: string | string[] | undefined; }" ], "path": "src/core/server/http/router/headers.ts", "deprecated": false, @@ -9732,7 +9732,7 @@ "\nSet of well-known HTTP headers." ], "signature": [ - "\"from\" | \"date\" | \"origin\" | \"range\" | \"warning\" | \"location\" | \"allow\" | \"accept\" | \"accept-language\" | \"accept-patch\" | \"accept-ranges\" | \"access-control-allow-credentials\" | \"access-control-allow-headers\" | \"access-control-allow-methods\" | \"access-control-allow-origin\" | \"access-control-expose-headers\" | \"access-control-max-age\" | \"access-control-request-headers\" | \"access-control-request-method\" | \"age\" | \"alt-svc\" | \"authorization\" | \"cache-control\" | \"connection\" | \"content-disposition\" | \"content-encoding\" | \"content-language\" | \"content-length\" | \"content-location\" | \"content-range\" | \"content-type\" | \"cookie\" | \"etag\" | \"expect\" | \"expires\" | \"forwarded\" | \"host\" | \"if-match\" | \"if-modified-since\" | \"if-none-match\" | \"if-unmodified-since\" | \"last-modified\" | \"pragma\" | \"proxy-authenticate\" | \"proxy-authorization\" | \"public-key-pins\" | \"referer\" | \"retry-after\" | \"sec-websocket-accept\" | \"sec-websocket-extensions\" | \"sec-websocket-key\" | \"sec-websocket-protocol\" | \"sec-websocket-version\" | \"set-cookie\" | \"strict-transport-security\" | \"tk\" | \"trailer\" | \"transfer-encoding\" | \"upgrade\" | \"user-agent\" | \"vary\" | \"via\" | \"www-authenticate\"" + "\"from\" | \"date\" | \"origin\" | \"range\" | \"warning\" | \"location\" | \"allow\" | \"accept\" | \"host\" | \"accept-language\" | \"accept-patch\" | \"accept-ranges\" | \"access-control-allow-credentials\" | \"access-control-allow-headers\" | \"access-control-allow-methods\" | \"access-control-allow-origin\" | \"access-control-expose-headers\" | \"access-control-max-age\" | \"access-control-request-headers\" | \"access-control-request-method\" | \"age\" | \"alt-svc\" | \"authorization\" | \"cache-control\" | \"connection\" | \"content-disposition\" | \"content-encoding\" | \"content-language\" | \"content-length\" | \"content-location\" | \"content-range\" | \"content-type\" | \"cookie\" | \"etag\" | \"expect\" | \"expires\" | \"forwarded\" | \"if-match\" | \"if-modified-since\" | \"if-none-match\" | \"if-unmodified-since\" | \"last-modified\" | \"pragma\" | \"proxy-authenticate\" | \"proxy-authorization\" | \"public-key-pins\" | \"referer\" | \"retry-after\" | \"sec-websocket-accept\" | \"sec-websocket-extensions\" | \"sec-websocket-key\" | \"sec-websocket-protocol\" | \"sec-websocket-version\" | \"set-cookie\" | \"strict-transport-security\" | \"tk\" | \"trailer\" | \"transfer-encoding\" | \"upgrade\" | \"user-agent\" | \"vary\" | \"via\" | \"www-authenticate\"" ], "path": "src/core/server/http/router/headers.ts", "deprecated": false, @@ -12148,7 +12148,7 @@ "\nHttp response headers to set." ], "signature": [ - "Record<\"from\" | \"date\" | \"origin\" | \"range\" | \"warning\" | \"location\" | \"allow\" | \"accept\" | \"accept-language\" | \"accept-patch\" | \"accept-ranges\" | \"access-control-allow-credentials\" | \"access-control-allow-headers\" | \"access-control-allow-methods\" | \"access-control-allow-origin\" | \"access-control-expose-headers\" | \"access-control-max-age\" | \"access-control-request-headers\" | \"access-control-request-method\" | \"age\" | \"alt-svc\" | \"authorization\" | \"cache-control\" | \"connection\" | \"content-disposition\" | \"content-encoding\" | \"content-language\" | \"content-length\" | \"content-location\" | \"content-range\" | \"content-type\" | \"cookie\" | \"etag\" | \"expect\" | \"expires\" | \"forwarded\" | \"host\" | \"if-match\" | \"if-modified-since\" | \"if-none-match\" | \"if-unmodified-since\" | \"last-modified\" | \"pragma\" | \"proxy-authenticate\" | \"proxy-authorization\" | \"public-key-pins\" | \"referer\" | \"retry-after\" | \"sec-websocket-accept\" | \"sec-websocket-extensions\" | \"sec-websocket-key\" | \"sec-websocket-protocol\" | \"sec-websocket-version\" | \"set-cookie\" | \"strict-transport-security\" | \"tk\" | \"trailer\" | \"transfer-encoding\" | \"upgrade\" | \"user-agent\" | \"vary\" | \"via\" | \"www-authenticate\", string | string[]> | Record" + "Record<\"from\" | \"date\" | \"origin\" | \"range\" | \"warning\" | \"location\" | \"allow\" | \"accept\" | \"host\" | \"accept-language\" | \"accept-patch\" | \"accept-ranges\" | \"access-control-allow-credentials\" | \"access-control-allow-headers\" | \"access-control-allow-methods\" | \"access-control-allow-origin\" | \"access-control-expose-headers\" | \"access-control-max-age\" | \"access-control-request-headers\" | \"access-control-request-method\" | \"age\" | \"alt-svc\" | \"authorization\" | \"cache-control\" | \"connection\" | \"content-disposition\" | \"content-encoding\" | \"content-language\" | \"content-length\" | \"content-location\" | \"content-range\" | \"content-type\" | \"cookie\" | \"etag\" | \"expect\" | \"expires\" | \"forwarded\" | \"if-match\" | \"if-modified-since\" | \"if-none-match\" | \"if-unmodified-since\" | \"last-modified\" | \"pragma\" | \"proxy-authenticate\" | \"proxy-authorization\" | \"public-key-pins\" | \"referer\" | \"retry-after\" | \"sec-websocket-accept\" | \"sec-websocket-extensions\" | \"sec-websocket-key\" | \"sec-websocket-protocol\" | \"sec-websocket-version\" | \"set-cookie\" | \"strict-transport-security\" | \"tk\" | \"trailer\" | \"transfer-encoding\" | \"upgrade\" | \"user-agent\" | \"vary\" | \"via\" | \"www-authenticate\", string | string[]> | Record" ], "path": "src/core/server/http/router/headers.ts", "deprecated": false, diff --git a/api_docs/core_http.mdx b/api_docs/core_http.mdx index 24372b551f7632..cefc422199b1ef 100644 --- a/api_docs/core_http.mdx +++ b/api_docs/core_http.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core.http'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import coreHttpObj from './core_http.json'; +import coreHttpObj from './core_http.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2333 | 15 | 953 | 32 | +| 2353 | 15 | 968 | 32 | ## Client diff --git a/api_docs/core_saved_objects.json b/api_docs/core_saved_objects.devdocs.json similarity index 100% rename from api_docs/core_saved_objects.json rename to api_docs/core_saved_objects.devdocs.json diff --git a/api_docs/core_saved_objects.mdx b/api_docs/core_saved_objects.mdx index f9d9de525b9c0f..d843587611869a 100644 --- a/api_docs/core_saved_objects.mdx +++ b/api_docs/core_saved_objects.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core.savedObjects'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import coreSavedObjectsObj from './core_saved_objects.json'; +import coreSavedObjectsObj from './core_saved_objects.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2333 | 15 | 953 | 32 | +| 2353 | 15 | 968 | 32 | ## Client diff --git a/api_docs/custom_integrations.json b/api_docs/custom_integrations.devdocs.json similarity index 100% rename from api_docs/custom_integrations.json rename to api_docs/custom_integrations.devdocs.json diff --git a/api_docs/custom_integrations.mdx b/api_docs/custom_integrations.mdx index 87c2d3e6f3d991..0016a07fe626d7 100644 --- a/api_docs/custom_integrations.mdx +++ b/api_docs/custom_integrations.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'customIntegrations'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import customIntegrationsObj from './custom_integrations.json'; +import customIntegrationsObj from './custom_integrations.devdocs.json'; Add custom data integrations so they can be displayed in the Fleet integrations app diff --git a/api_docs/dashboard.json b/api_docs/dashboard.devdocs.json similarity index 99% rename from api_docs/dashboard.json rename to api_docs/dashboard.devdocs.json index 47e16e70e60ca2..1d7e09bd36c081 100644 --- a/api_docs/dashboard.json +++ b/api_docs/dashboard.devdocs.json @@ -96,6 +96,21 @@ "children": [], "returnComment": [] }, + { + "parentPluginId": "dashboard", + "id": "def-public.DashboardContainer.getPanelTitles", + "type": "Function", + "tags": [], + "label": "getPanelTitles", + "description": [], + "signature": [ + "() => Promise" + ], + "path": "src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx", + "deprecated": false, + "children": [], + "returnComment": [] + }, { "parentPluginId": "dashboard", "id": "def-public.DashboardContainer.Unnamed", @@ -2314,7 +2329,7 @@ "section": "def-common.RawSavedDashboardPanel730ToLatest", "text": "RawSavedDashboardPanel730ToLatest" }, - ", \"title\" | \"type\" | \"panelIndex\" | \"gridData\" | \"version\" | \"embeddableConfig\" | \"panelRefName\"> & { readonly id?: string | undefined; readonly type: string; }" + ", \"type\" | \"title\" | \"panelIndex\" | \"gridData\" | \"version\" | \"embeddableConfig\" | \"panelRefName\"> & { readonly id?: string | undefined; readonly type: string; }" ], "path": "src/plugins/dashboard/common/types.ts", "deprecated": false, @@ -3103,7 +3118,7 @@ "section": "def-common.RawSavedDashboardPanel730ToLatest", "text": "RawSavedDashboardPanel730ToLatest" }, - ", \"title\" | \"type\" | \"panelIndex\" | \"gridData\" | \"version\" | \"embeddableConfig\" | \"panelRefName\"> & { readonly id?: string | undefined; readonly type: string; }" + ", \"type\" | \"title\" | \"panelIndex\" | \"gridData\" | \"version\" | \"embeddableConfig\" | \"panelRefName\"> & { readonly id?: string | undefined; readonly type: string; }" ], "path": "src/plugins/dashboard/common/types.ts", "deprecated": false, diff --git a/api_docs/dashboard.mdx b/api_docs/dashboard.mdx index b65358ee19642e..87877a1bcfc614 100644 --- a/api_docs/dashboard.mdx +++ b/api_docs/dashboard.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboard'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dashboardObj from './dashboard.json'; +import dashboardObj from './dashboard.devdocs.json'; Adds the Dashboard app to Kibana @@ -18,7 +18,7 @@ Contact [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-prese | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 154 | 0 | 141 | 13 | +| 155 | 0 | 142 | 13 | ## Client diff --git a/api_docs/dashboard_enhanced.json b/api_docs/dashboard_enhanced.devdocs.json similarity index 100% rename from api_docs/dashboard_enhanced.json rename to api_docs/dashboard_enhanced.devdocs.json diff --git a/api_docs/dashboard_enhanced.mdx b/api_docs/dashboard_enhanced.mdx index f828151690529a..f570c458d20336 100644 --- a/api_docs/dashboard_enhanced.mdx +++ b/api_docs/dashboard_enhanced.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboardEnhanced'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dashboardEnhancedObj from './dashboard_enhanced.json'; +import dashboardEnhancedObj from './dashboard_enhanced.devdocs.json'; diff --git a/api_docs/data.json b/api_docs/data.devdocs.json similarity index 95% rename from api_docs/data.json rename to api_docs/data.devdocs.json index 2e9931b72f8168..ef0e1dcb9c7a1f 100644 --- a/api_docs/data.json +++ b/api_docs/data.devdocs.json @@ -2168,7 +2168,7 @@ "section": "def-common.ISearchOptions", "text": "ISearchOptions" }, - " | undefined) => Promise<[unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown]>" + " | undefined) => Promise<(void | any[])[]>" ], "path": "src/plugins/data/common/search/aggs/agg_configs.ts", "deprecated": false, @@ -2938,19 +2938,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "lens", @@ -3008,6 +3000,14 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" @@ -3024,14 +3024,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/existing_fields.d.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" @@ -3082,11 +3074,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "dataViews", @@ -3172,6 +3164,18 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx" }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" @@ -3264,18 +3268,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/types.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" @@ -3472,18 +3464,6 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, { "plugin": "graph", "path": "x-pack/plugins/graph/public/types/app_state.ts" @@ -3638,11 +3618,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", @@ -3650,11 +3630,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "graph", @@ -3820,14 +3800,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" @@ -3896,158 +3868,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/open_editor.tsx" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -4124,18 +3944,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx" }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/agg_filters/agg_type_filters.ts" @@ -4264,30 +4072,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/utils/editor_config.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/target/types/public/control/create_search_source.d.ts" @@ -4333,12 +4117,12 @@ "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { "plugin": "visTypeTimeseries", @@ -4346,11 +4130,27 @@ }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" }, { "plugin": "dataViews", @@ -5065,102 +4865,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/lib/extract_time_fields.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/list_control_factory.ts" @@ -5301,14 +5005,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/agg_param_props.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/controls/top_field.d.ts" @@ -5349,6 +5045,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" @@ -5357,6 +5061,14 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" + }, { "plugin": "dataViews", "path": "src/plugins/data_views/common/data_views/data_view.test.ts" @@ -6810,16 +6522,7 @@ "path": "src/plugins/data/common/kbn_field_types/index.ts", "deprecated": true, "removeBy": "8.1", - "references": [ - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/constants/index.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/constants/index.ts" - } - ], + "references": [], "returnComment": [], "children": [], "initialIsOpen": false @@ -8009,10 +7712,10 @@ }, { "parentPluginId": "data", - "id": "def-public.AggFunctionsMapping.aggAvg", + "id": "def-public.AggFunctionsMapping.aggRareTerms", "type": "Object", "tags": [], - "label": "aggAvg", + "label": "aggRareTerms", "description": [], "signature": [ { @@ -8022,7 +7725,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"aggAvg\", any, AggArgs, ", + "<\"aggRareTerms\", any, AggArgs, ", { "pluginId": "data", "scope": "common", @@ -8055,10 +7758,10 @@ }, { "parentPluginId": "data", - "id": "def-public.AggFunctionsMapping.aggBucketAvg", + "id": "def-public.AggFunctionsMapping.aggAvg", "type": "Object", "tags": [], - "label": "aggBucketAvg", + "label": "aggAvg", "description": [], "signature": [ { @@ -8068,7 +7771,7 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"aggBucketAvg\", any, Arguments, ", + "<\"aggAvg\", any, AggArgs, ", { "pluginId": "data", "scope": "common", @@ -8101,10 +7804,10 @@ }, { "parentPluginId": "data", - "id": "def-public.AggFunctionsMapping.aggBucketMax", + "id": "def-public.AggFunctionsMapping.aggBucketAvg", "type": "Object", "tags": [], - "label": "aggBucketMax", + "label": "aggBucketAvg", "description": [], "signature": [ { @@ -8114,7 +7817,53 @@ "section": "def-common.ExpressionFunctionDefinition", "text": "ExpressionFunctionDefinition" }, - "<\"aggBucketMax\", any, Arguments, ", + "<\"aggBucketAvg\", any, Arguments, ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.AggExpressionType", + "text": "AggExpressionType" + }, + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableRecord", + ">>" + ], + "path": "src/plugins/data/common/search/aggs/types.ts", + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.AggFunctionsMapping.aggBucketMax", + "type": "Object", + "tags": [], + "label": "aggBucketMax", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"aggBucketMax\", any, Arguments, ", { "pluginId": "data", "scope": "common", @@ -9361,6 +9110,72 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-public.DataViewListItem", + "type": "Interface", + "tags": [], + "label": "DataViewListItem", + "description": [], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-public.DataViewListItem.id", + "type": "string", + "tags": [], + "label": "id", + "description": [], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.DataViewListItem.title", + "type": "string", + "tags": [], + "label": "title", + "description": [], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.DataViewListItem.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.DataViewListItem.typeMeta", + "type": "Object", + "tags": [], + "label": "typeMeta", + "description": [], + "signature": [ + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.TypeMeta", + "text": "TypeMeta" + }, + " | undefined" + ], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-public.GetFieldsOptions", @@ -9847,22 +9662,6 @@ "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx" @@ -10303,38 +10102,6 @@ "plugin": "monitoring", "path": "x-pack/plugins/monitoring/target/types/public/alerts/components/param_details_form/use_derived_index_pattern.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx" @@ -11650,7 +11417,7 @@ "label": "AggConfigOptions", "description": [], "signature": [ - "{ id?: string | undefined; type: ", + "{ type: ", { "pluginId": "data", "scope": "common", @@ -11658,9 +11425,9 @@ "section": "def-common.IAggType", "text": "IAggType" }, - "; enabled?: boolean | undefined; schema?: string | undefined; params?: {} | ", + "; id?: string | undefined; enabled?: boolean | undefined; params?: {} | ", "SerializableRecord", - " | undefined; }" + " | undefined; schema?: string | undefined; }" ], "path": "src/plugins/data/common/search/aggs/agg_config.ts", "deprecated": false, @@ -11925,7 +11692,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -12093,9 +11860,9 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; getCanSaveSync: () => boolean; }" ], - "path": "src/plugins/data_views/common/data_views/data_views.ts", + "path": "src/plugins/data_views/public/types.ts", "deprecated": false, "initialIsOpen": false }, @@ -12170,16 +11937,7 @@ "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", - "references": [ - { - "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts" - }, - { - "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts" - } - ], + "references": [], "initialIsOpen": false }, { @@ -12552,18 +12310,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_filter_state.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" @@ -12624,6 +12370,14 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/url_generator.ts" }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/maps/anomaly_source_field.ts" + }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/maps/anomaly_source_field.ts" + }, { "plugin": "dashboardEnhanced", "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx" @@ -13231,38 +12985,6 @@ { "plugin": "dataViews", "path": "src/plugins/data_views/common/index.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" } ], "initialIsOpen": false @@ -13348,7 +13070,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -13516,7 +13238,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; }" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": true, @@ -13713,14 +13435,6 @@ "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -13753,14 +13467,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.test.ts" - }, { "plugin": "visTypeTimelion", "path": "src/plugins/vis_types/timelion/public/helpers/plugin_services.ts" @@ -13816,14 +13522,6 @@ { "plugin": "visTypeTimelion", "path": "src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" } ], "initialIsOpen": false @@ -13853,14 +13551,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/common/index.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, { "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/shared_imports.ts" @@ -14467,32 +14157,7 @@ "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", - "references": [ - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx" - } - ], + "references": [], "initialIsOpen": false }, { @@ -14763,14 +14428,6 @@ "plugin": "discover", "path": "src/plugins/discover/public/plugin.tsx" }, - { - "plugin": "visualizations", - "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx" - }, - { - "plugin": "visualizations", - "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/save_dashboard.ts" @@ -14779,22 +14436,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/save_dashboard.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" @@ -14835,14 +14476,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/url_generator.ts" }, - { - "plugin": "lens", - "path": "x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx" - }, - { - "plugin": "lens", - "path": "x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" @@ -14939,14 +14572,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/locators.test.ts" }, - { - "plugin": "lens", - "path": "x-pack/plugins/lens/public/mocks/data_plugin_mock.ts" - }, - { - "plugin": "lens", - "path": "x-pack/plugins/lens/public/mocks/data_plugin_mock.ts" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/locator.test.ts" @@ -14963,22 +14588,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/url_generator.test.ts" }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/utils/use/use_visualize_app_state.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/utils/use/use_visualize_app_state.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/plugin.ts" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/plugin.ts" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" @@ -14998,14 +14607,6 @@ { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.test.ts" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/utils/get_visualize_list_item_link.test.ts" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/utils/get_visualize_list_item_link.test.ts" } ], "children": [ @@ -15316,8 +14917,9 @@ "label": "buildQueryFilter", "description": [], "signature": [ - "(query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined, index: string, alias: string) => ", - "QueryStringFilter" + "(query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined, index: string, alias?: string | undefined, meta?: ", + "FilterMeta", + " | undefined) => { query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined; meta: { alias: string | null | undefined; disabled?: boolean | undefined; negate?: boolean | undefined; controlledBy?: string | undefined; group?: string | undefined; index: string; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }; }" ], "path": "src/plugins/data/public/deprecated.ts", "deprecated": false, @@ -15353,6 +14955,23 @@ "tags": [], "label": "alias", "description": [], + "signature": [ + "string | undefined" + ], + "path": "node_modules/@types/kbn__es-query/index.d.ts", + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-public.esFilters.buildQueryFilter.$4", + "type": "Object", + "tags": [], + "label": "meta", + "description": [], + "signature": [ + "FilterMeta", + " | undefined" + ], "path": "node_modules/@types/kbn__es-query/index.d.ts", "deprecated": false } @@ -16738,18 +16357,6 @@ { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" } ], "children": [ @@ -18579,7 +18186,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -18747,7 +18354,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; getCanSaveSync: () => boolean; }" ], "path": "src/plugins/data/public/types.ts", "deprecated": false @@ -18796,7 +18403,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -18964,7 +18571,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; getCanSaveSync: () => boolean; }" ], "path": "src/plugins/data/public/types.ts", "deprecated": true, @@ -19009,6 +18616,22 @@ "plugin": "discover", "path": "src/plugins/discover/public/plugin.tsx" }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/plugin.ts" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/plugin.ts" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/dashboard_router.tsx" @@ -19055,15 +18678,7 @@ }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.ts" }, { "plugin": "observability", @@ -19191,83 +18806,47 @@ }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" + "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" }, { "plugin": "inputControlVis", @@ -19289,22 +18868,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/saved_objects_table_page.tsx" }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/plugin.ts" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/plugin.ts" - }, { "plugin": "visTypeTimelion", "path": "src/plugins/vis_types/timelion/public/plugin.ts" @@ -19337,6 +18900,10 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/timeseries_visualization.tsx" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, { "plugin": "visTypeVega", "path": "src/plugins/vis_types/vega/public/data_model/search_api.ts" @@ -19365,6 +18932,10 @@ "plugin": "securitySolution", "path": "x-pack/plugins/security_solution/public/common/mock/endpoint/dependencies_start_mock.ts" }, + { + "plugin": "dataViewManagement", + "path": "src/plugins/data_view_management/public/mocks.ts" + }, { "plugin": "savedObjects", "path": "src/plugins/saved_objects/public/saved_object/saved_object.test.ts" @@ -19471,30 +19042,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/droppable/droppable.test.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, { "plugin": "visTypeTable", "path": "src/plugins/vis_types/table/public/plugin.ts" @@ -19818,7 +19365,29 @@ "DataPluginSetupDependencies", ") => { __enhance: (enhancements: DataEnhancements) => void; search: ", "ISearchSetup", - "; fieldFormats: ", + "; query: { filterManager: { extract: (filters: ", + "Filter", + "[]) => { state: ", + "Filter", + "[]; references: ", + "SavedObjectReference", + "[]; }; inject: (filters: ", + "Filter", + "[], references: ", + "SavedObjectReference", + "[]) => ", + "Filter", + "[]; telemetry: (filters: ", + "Filter", + "[], collector: unknown) => {}; getAllMigrations: () => ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + }, + "; }; }; fieldFormats: ", { "pluginId": "fieldFormats", "scope": "server", @@ -21652,19 +21221,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "lens", @@ -21722,6 +21283,14 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" @@ -21738,14 +21307,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/existing_fields.d.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" @@ -21796,11 +21357,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "dataViews", @@ -21886,6 +21447,18 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx" }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" @@ -21978,18 +21551,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/types.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" @@ -22186,18 +21747,6 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, { "plugin": "graph", "path": "x-pack/plugins/graph/public/types/app_state.ts" @@ -22352,11 +21901,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", @@ -22364,11 +21913,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "graph", @@ -22534,14 +22083,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" @@ -22610,158 +22151,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/open_editor.tsx" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -22838,18 +22227,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx" }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/agg_filters/agg_type_filters.ts" @@ -22978,30 +22355,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/utils/editor_config.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/target/types/public/control/create_search_source.d.ts" @@ -23047,12 +22400,12 @@ "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { "plugin": "visTypeTimeseries", @@ -23060,11 +22413,27 @@ }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" }, { "plugin": "dataViews", @@ -23779,102 +23148,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/lib/extract_time_fields.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/list_control_factory.ts" @@ -24015,14 +23288,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/agg_param_props.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/controls/top_field.d.ts" @@ -24063,6 +23328,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" @@ -24071,6 +23344,14 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" + }, { "plugin": "dataViews", "path": "src/plugins/data_views/common/data_views/data_view.test.ts" @@ -25363,22 +24644,6 @@ "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx" @@ -25980,16 +25245,7 @@ "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", - "references": [ - { - "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts" - }, - { - "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts" - } - ], + "references": [], "initialIsOpen": false }, { @@ -26132,18 +25388,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_filter_state.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" @@ -26204,6 +25448,14 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/url_generator.ts" }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/maps/anomaly_source_field.ts" + }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/maps/anomaly_source_field.ts" + }, { "plugin": "dashboardEnhanced", "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx" @@ -26826,8 +26078,9 @@ "label": "buildQueryFilter", "description": [], "signature": [ - "(query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined, index: string, alias: string) => ", - "QueryStringFilter" + "(query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined, index: string, alias?: string | undefined, meta?: ", + "FilterMeta", + " | undefined) => { query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined; meta: { alias: string | null | undefined; disabled?: boolean | undefined; negate?: boolean | undefined; controlledBy?: string | undefined; group?: string | undefined; index: string; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }; }" ], "path": "src/plugins/data/server/deprecated.ts", "deprecated": false, @@ -26863,6 +26116,23 @@ "tags": [], "label": "alias", "description": [], + "signature": [ + "string | undefined" + ], + "path": "node_modules/@types/kbn__es-query/index.d.ts", + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-server.esFilters.buildQueryFilter.$4", + "type": "Object", + "tags": [], + "label": "meta", + "description": [], + "signature": [ + "FilterMeta", + " | undefined" + ], "path": "node_modules/@types/kbn__es-query/index.d.ts", "deprecated": false } @@ -28029,6 +27299,41 @@ "path": "src/plugins/data/server/plugin.ts", "deprecated": false }, + { + "parentPluginId": "data", + "id": "def-server.DataPluginSetup.query", + "type": "Object", + "tags": [], + "label": "query", + "description": [], + "signature": [ + "{ filterManager: { extract: (filters: ", + "Filter", + "[]) => { state: ", + "Filter", + "[]; references: ", + "SavedObjectReference", + "[]; }; inject: (filters: ", + "Filter", + "[], references: ", + "SavedObjectReference", + "[]) => ", + "Filter", + "[]; telemetry: (filters: ", + "Filter", + "[], collector: unknown) => {}; getAllMigrations: () => ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + }, + "; }; }" + ], + "path": "src/plugins/data/server/plugin.ts", + "deprecated": false + }, { "parentPluginId": "data", "id": "def-server.DataPluginSetup.fieldFormats", @@ -28116,10 +27421,6 @@ "path": "src/plugins/data/server/plugin.ts", "deprecated": true, "references": [ - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/plugin.ts" - }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/server/plugin.ts" @@ -30196,6 +29497,21 @@ "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, "children": [ + { + "parentPluginId": "data", + "id": "def-common.DataViewsService.getCanSave", + "type": "Function", + "tags": [], + "label": "getCanSave", + "description": [], + "signature": [ + "() => Promise" + ], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false, + "returnComment": [], + "children": [] + }, { "parentPluginId": "data", "id": "def-common.DataViewsService.ensureDefaultDataView", @@ -30219,6 +29535,10 @@ "plugin": "discover", "path": "src/plugins/discover/public/application/main/discover_main_route.tsx" }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/plugin.ts" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts" @@ -30226,10 +29546,6 @@ { "plugin": "lens", "path": "x-pack/plugins/lens/public/plugin.ts" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/plugin.ts" } ], "returnComment": [], @@ -30256,7 +29572,7 @@ "label": "{\n uiSettings,\n savedObjectsClient,\n apiClient,\n fieldFormats,\n onNotification,\n onError,\n onRedirectNoIndexPattern = () => {},\n getCanSave = () => Promise.resolve(false),\n }", "description": [], "signature": [ - "IndexPatternsServiceDeps" + "DataViewsServiceDeps" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, @@ -31322,7 +30638,7 @@ "tags": [], "label": "getDefaultDataView", "description": [ - "\nReturns the default data view as an object. If no default is found, or it is missing\nanother data view is selected as default and returned." + "\nReturns the default data view as an object.\nIf no default is found, or it is missing\nanother data view is selected as default and returned.\nIf no possible data view found to become a default returns null\n" ], "signature": [ "() => Promise<", @@ -31333,7 +30649,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>" + " | null>" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, @@ -31685,19 +31001,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "lens", @@ -31755,6 +31063,14 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" @@ -31771,14 +31087,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/existing_fields.d.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" @@ -31829,11 +31137,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "dataViews", @@ -31919,6 +31227,18 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx" }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" @@ -32011,18 +31331,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/types.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" @@ -32219,18 +31527,6 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, { "plugin": "graph", "path": "x-pack/plugins/graph/public/types/app_state.ts" @@ -32385,11 +31681,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", @@ -32397,11 +31693,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "graph", @@ -32567,14 +31863,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" @@ -32643,158 +31931,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/open_editor.tsx" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -32871,18 +32007,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx" }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/agg_filters/agg_type_filters.ts" @@ -33011,30 +32135,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/utils/editor_config.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/target/types/public/control/create_search_source.d.ts" @@ -33080,12 +32180,12 @@ "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { "plugin": "visTypeTimeseries", @@ -33093,11 +32193,27 @@ }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" }, { "plugin": "dataViews", @@ -33812,102 +32928,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/lib/extract_time_fields.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/list_control_factory.ts" @@ -34048,14 +33068,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/agg_param_props.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/controls/top_field.d.ts" @@ -34096,6 +33108,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" @@ -34104,6 +33124,14 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" + }, { "plugin": "dataViews", "path": "src/plugins/data_views/common/data_views/data_view.test.ts" @@ -34967,8 +33995,9 @@ "label": "buildQueryFilter", "description": [], "signature": [ - "(query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined, index: string, alias: string) => ", - "QueryStringFilter" + "(query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined, index: string, alias?: string | undefined, meta?: ", + "FilterMeta", + " | undefined) => { query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined; meta: { alias: string | null | undefined; disabled?: boolean | undefined; negate?: boolean | undefined; controlledBy?: string | undefined; group?: string | undefined; index: string; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }; }" ], "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, @@ -35006,6 +34035,23 @@ "tags": [], "label": "alias", "description": [], + "signature": [ + "string | undefined" + ], + "path": "node_modules/@types/kbn__es-query/index.d.ts", + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.buildQueryFilter.$4", + "type": "Object", + "tags": [], + "label": "meta", + "description": [], + "signature": [ + "FilterMeta", + " | undefined" + ], "path": "node_modules/@types/kbn__es-query/index.d.ts", "deprecated": false } @@ -35947,16 +34993,7 @@ "path": "src/plugins/data/common/kbn_field_types/index.ts", "deprecated": true, "removeBy": "8.1", - "references": [ - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/constants/index.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/constants/index.ts" - } - ], + "references": [], "returnComment": [], "children": [], "initialIsOpen": false @@ -36222,16 +35259,16 @@ "removeBy": "8.1", "references": [ { - "plugin": "visualize", - "path": "src/plugins/visualize/common/locator.ts" + "plugin": "visualizations", + "path": "src/plugins/visualizations/common/locator.ts" }, { - "plugin": "visualize", - "path": "src/plugins/visualize/common/locator.ts" + "plugin": "visualizations", + "path": "src/plugins/visualizations/common/locator.ts" }, { - "plugin": "visualize", - "path": "src/plugins/visualize/common/locator.ts" + "plugin": "visualizations", + "path": "src/plugins/visualizations/common/locator.ts" } ], "returnComment": [], @@ -38411,22 +37448,6 @@ "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx" @@ -38867,38 +37888,6 @@ "plugin": "monitoring", "path": "x-pack/plugins/monitoring/target/types/public/alerts/components/param_details_form/use_derived_index_pattern.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx" @@ -40676,7 +39665,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -40844,7 +39833,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; }" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, @@ -40882,16 +39871,7 @@ "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", - "references": [ - { - "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts" - }, - { - "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts" - } - ], + "references": [], "initialIsOpen": false }, { @@ -41099,18 +40079,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_filter_state.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" @@ -41171,6 +40139,14 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/url_generator.ts" }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/maps/anomaly_source_field.ts" + }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/maps/anomaly_source_field.ts" + }, { "plugin": "dashboardEnhanced", "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx" @@ -41840,38 +40816,6 @@ { "plugin": "dataViews", "path": "src/plugins/data_views/common/index.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" } ], "initialIsOpen": false @@ -41957,7 +40901,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -42125,7 +41069,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; }" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": true, @@ -42322,14 +41266,6 @@ "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -42362,14 +41298,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.test.ts" - }, { "plugin": "visTypeTimelion", "path": "src/plugins/vis_types/timelion/public/helpers/plugin_services.ts" @@ -42425,14 +41353,6 @@ { "plugin": "visTypeTimelion", "path": "src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" } ], "initialIsOpen": false @@ -42462,14 +41382,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/common/index.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, { "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/shared_imports.ts" @@ -42858,32 +41770,7 @@ "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", - "references": [ - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx" - }, - { - "plugin": "visTypeTimelion", - "path": "src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx" - } - ], + "references": [], "initialIsOpen": false }, { diff --git a/api_docs/data.mdx b/api_docs/data.mdx index a8f087c8c321ae..e650df9b484a8f 100644 --- a/api_docs/data.mdx +++ b/api_docs/data.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataObj from './data.json'; +import dataObj from './data.devdocs.json'; 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. @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3341 | 39 | 2747 | 26 | +| 3364 | 39 | 2767 | 26 | ## Client diff --git a/api_docs/data_autocomplete.json b/api_docs/data_autocomplete.devdocs.json similarity index 100% rename from api_docs/data_autocomplete.json rename to api_docs/data_autocomplete.devdocs.json diff --git a/api_docs/data_autocomplete.mdx b/api_docs/data_autocomplete.mdx index aa786ceb8715d4..f548e7dc7209d8 100644 --- a/api_docs/data_autocomplete.mdx +++ b/api_docs/data_autocomplete.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.autocomplete'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataAutocompleteObj from './data_autocomplete.json'; +import dataAutocompleteObj from './data_autocomplete.devdocs.json'; 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. @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3341 | 39 | 2747 | 26 | +| 3364 | 39 | 2767 | 26 | ## Client diff --git a/api_docs/data_enhanced.json b/api_docs/data_enhanced.devdocs.json similarity index 100% rename from api_docs/data_enhanced.json rename to api_docs/data_enhanced.devdocs.json diff --git a/api_docs/data_enhanced.mdx b/api_docs/data_enhanced.mdx index f645a9721d37eb..327b8ee8b1ddab 100644 --- a/api_docs/data_enhanced.mdx +++ b/api_docs/data_enhanced.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataEnhanced'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataEnhancedObj from './data_enhanced.json'; +import dataEnhancedObj from './data_enhanced.devdocs.json'; Enhanced data plugin. (See src/plugins/data.) Enhances the main data plugin with a search session management UI. Includes a reusable search session indicator component to use in other applications. Exposes routes for managing search sessions. Includes a service that monitors, updates, and cleans up search session saved objects. diff --git a/api_docs/data_query.json b/api_docs/data_query.devdocs.json similarity index 100% rename from api_docs/data_query.json rename to api_docs/data_query.devdocs.json diff --git a/api_docs/data_query.mdx b/api_docs/data_query.mdx index 5598f6e478f863..4089aa809e3b2c 100644 --- a/api_docs/data_query.mdx +++ b/api_docs/data_query.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.query'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataQueryObj from './data_query.json'; +import dataQueryObj from './data_query.devdocs.json'; 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. @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3341 | 39 | 2747 | 26 | +| 3364 | 39 | 2767 | 26 | ## Client diff --git a/api_docs/data_search.json b/api_docs/data_search.devdocs.json similarity index 99% rename from api_docs/data_search.json rename to api_docs/data_search.devdocs.json index b2f8576f9353cc..d20980b9ea85dc 100644 --- a/api_docs/data_search.json +++ b/api_docs/data_search.devdocs.json @@ -4769,7 +4769,7 @@ "section": "def-common.ISearchOptions", "text": "ISearchOptions" }, - " | undefined) => Promise<[unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown]>" + " | undefined) => Promise<(void | any[])[]>" ], "path": "src/plugins/data/common/search/aggs/agg_configs.ts", "deprecated": false, @@ -8966,6 +8966,46 @@ } ], "functions": [ + { + "parentPluginId": "data", + "id": "def-common.adaptToExpressionValueFilter", + "type": "Function", + "tags": [], + "label": "adaptToExpressionValueFilter", + "description": [], + "signature": [ + "(filter: ", + "Filter", + ") => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueFilter", + "text": "ExpressionValueFilter" + } + ], + "path": "src/plugins/data/common/search/expressions/utils/filters_adapter.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.adaptToExpressionValueFilter.$1", + "type": "Object", + "tags": [], + "label": "filter", + "description": [], + "signature": [ + "Filter" + ], + "path": "src/plugins/data/common/search/expressions/utils/filters_adapter.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.aggAvg", @@ -9430,6 +9470,22 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.aggRareTerms", + "type": "Function", + "tags": [], + "label": "aggRareTerms", + "description": [], + "signature": [ + "() => FunctionDefinition" + ], + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms_fn.ts", + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.aggSampler", @@ -11943,6 +11999,38 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.getRareTermsBucketAgg", + "type": "Function", + "tags": [], + "label": "getRareTermsBucketAgg", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.BucketAggType", + "text": "BucketAggType" + }, + "<", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.IBucketAggConfig", + "text": "IBucketAggConfig" + }, + ">" + ], + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.ts", + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.getResponseInspectorStats", @@ -14651,6 +14739,52 @@ "path": "src/plugins/data/common/search/aggs/types.ts", "deprecated": false }, + { + "parentPluginId": "data", + "id": "def-common.AggFunctionsMapping.aggRareTerms", + "type": "Object", + "tags": [], + "label": "aggRareTerms", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"aggRareTerms\", any, AggArgs, ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.AggExpressionType", + "text": "AggExpressionType" + }, + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableRecord", + ">>" + ], + "path": "src/plugins/data/common/search/aggs/types.ts", + "deprecated": false + }, { "parentPluginId": "data", "id": "def-common.AggFunctionsMapping.aggAvg", @@ -17789,6 +17923,59 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.AggParamsRareTerms", + "type": "Interface", + "tags": [], + "label": "AggParamsRareTerms", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.AggParamsRareTerms", + "text": "AggParamsRareTerms" + }, + " extends ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.BaseAggParams", + "text": "BaseAggParams" + } + ], + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.AggParamsRareTerms.field", + "type": "string", + "tags": [], + "label": "field", + "description": [], + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.ts", + "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.AggParamsRareTerms.max_doc_count", + "type": "number", + "tags": [], + "label": "max_doc_count", + "description": [], + "signature": [ + "number | undefined" + ], + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.AggParamsSampler", @@ -18433,7 +18620,7 @@ "label": "aggregate", "description": [], "signature": [ - "\"max\" | \"min\" | \"concat\" | \"sum\" | \"average\"" + "\"concat\" | \"max\" | \"min\" | \"sum\" | \"average\"" ], "path": "src/plugins/data/common/search/aggs/metrics/top_hit.ts", "deprecated": false @@ -23535,7 +23722,7 @@ "label": "AggConfigOptions", "description": [], "signature": [ - "{ id?: string | undefined; type: ", + "{ type: ", { "pluginId": "data", "scope": "common", @@ -23543,9 +23730,9 @@ "section": "def-common.IAggType", "text": "IAggType" }, - "; enabled?: boolean | undefined; schema?: string | undefined; params?: {} | ", + "; id?: string | undefined; enabled?: boolean | undefined; params?: {} | ", "SerializableRecord", - " | undefined; }" + " | undefined; schema?: string | undefined; }" ], "path": "src/plugins/data/common/search/aggs/agg_config.ts", "deprecated": false, @@ -23932,6 +24119,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "data", + "id": "def-common.aggRareTermsFnName", + "type": "string", + "tags": [], + "label": "aggRareTermsFnName", + "description": [], + "signature": [ + "\"aggRareTerms\"" + ], + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms_fn.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "data", "id": "def-common.aggSamplerFnName", @@ -24257,7 +24458,7 @@ "label": "CreateAggConfigParams", "description": [], "signature": [ - "{ id?: string | undefined; type: string | ", + "{ type: string | ", { "pluginId": "data", "scope": "common", @@ -24265,9 +24466,9 @@ "section": "def-common.IAggType", "text": "IAggType" }, - "; enabled?: boolean | undefined; schema?: string | undefined; params?: {} | ", + "; id?: string | undefined; enabled?: boolean | undefined; params?: {} | ", "SerializableRecord", - " | undefined; }" + " | undefined; schema?: string | undefined; }" ], "path": "src/plugins/data/common/search/aggs/agg_configs.ts", "deprecated": false, @@ -27032,6 +27233,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"cidr\"" + ], "path": "src/plugins/data/common/search/expressions/cidr.ts", "deprecated": false }, @@ -27209,6 +27413,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"date_range\"" + ], "path": "src/plugins/data/common/search/expressions/date_range.ts", "deprecated": false }, @@ -27491,6 +27698,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_filter\"" + ], "path": "src/plugins/data/common/search/expressions/exists_filter.ts", "deprecated": false }, @@ -27706,6 +27916,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"extended_bounds\"" + ], "path": "src/plugins/data/common/search/expressions/extended_bounds.ts", "deprecated": false }, @@ -27905,6 +28118,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_field\"" + ], "path": "src/plugins/data/common/search/expressions/field.ts", "deprecated": false }, @@ -28158,6 +28374,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"geo_bounding_box\"" + ], "path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts", "deprecated": false }, @@ -28595,6 +28814,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"geo_point\"" + ], "path": "src/plugins/data/common/search/expressions/geo_point.ts", "deprecated": false }, @@ -28848,6 +29070,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"ip_range\"" + ], "path": "src/plugins/data/common/search/expressions/ip_range.ts", "deprecated": false }, @@ -29073,6 +29298,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_context\"" + ], "path": "src/plugins/data/common/search/expressions/kibana.ts", "deprecated": false }, @@ -29311,6 +29539,57 @@ "deprecated": false, "children": [], "returnComment": [] + }, + { + "parentPluginId": "data", + "id": "def-common.kibanaContext.to.filter", + "type": "Function", + "tags": [], + "label": "filter", + "description": [], + "signature": [ + "(input: ", + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExpressionValueSearchContext", + "text": "ExpressionValueSearchContext" + }, + ") => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueFilter", + "text": "ExpressionValueFilter" + } + ], + "path": "src/plugins/data/common/search/expressions/kibana_context_type.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "data", + "id": "def-common.kibanaContext.to.filter.$1", + "type": "CompoundType", + "tags": [], + "label": "input", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "common", + "docId": "kibDataSearchPluginApi", + "section": "def-common.ExpressionValueSearchContext", + "text": "ExpressionValueSearchContext" + } + ], + "path": "src/plugins/data/common/search/expressions/kibana_context_type.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] } ] } @@ -29347,6 +29626,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_filter\"" + ], "path": "src/plugins/data/common/search/expressions/kibana_filter.ts", "deprecated": false }, @@ -29619,6 +29901,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"timerange\"" + ], "path": "src/plugins/data/common/search/expressions/timerange.ts", "deprecated": false }, @@ -29892,6 +30177,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_query\"" + ], "path": "src/plugins/data/common/search/expressions/kql.ts", "deprecated": false }, @@ -30068,6 +30356,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_query\"" + ], "path": "src/plugins/data/common/search/expressions/lucene.ts", "deprecated": false }, @@ -30380,6 +30671,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"numerical_range\"" + ], "path": "src/plugins/data/common/search/expressions/numerical_range.ts", "deprecated": false }, @@ -30712,6 +31006,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_filter\"" + ], "path": "src/plugins/data/common/search/expressions/phrase_filter.ts", "deprecated": false }, @@ -30814,7 +31111,7 @@ "label": "types", "description": [], "signature": [ - "string[]" + "\"string\"[]" ], "path": "src/plugins/data/common/search/expressions/phrase_filter.ts", "deprecated": false @@ -30988,6 +31285,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_query_filter\"" + ], "path": "src/plugins/data/common/search/expressions/query_filter.ts", "deprecated": false }, @@ -31206,6 +31506,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_filter\"" + ], "path": "src/plugins/data/common/search/expressions/range_filter.ts", "deprecated": false }, @@ -31469,6 +31772,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_range\"" + ], "path": "src/plugins/data/common/search/expressions/range.ts", "deprecated": false }, @@ -31724,6 +32030,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_context\"" + ], "path": "src/plugins/data/common/search/expressions/remove_filter.ts", "deprecated": false }, @@ -32011,6 +32320,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"kibana_context\"" + ], "path": "src/plugins/data/common/search/expressions/select_filter.ts", "deprecated": false }, @@ -32092,6 +32404,19 @@ "description": [], "path": "src/plugins/data/common/search/expressions/select_filter.ts", "deprecated": false + }, + { + "parentPluginId": "data", + "id": "def-common.selectFilterFunction.args.group.multi", + "type": "boolean", + "tags": [], + "label": "multi", + "description": [], + "signature": [ + "true" + ], + "path": "src/plugins/data/common/search/expressions/select_filter.ts", + "deprecated": false } ] }, @@ -32253,7 +32578,7 @@ "id": "def-common.selectFilterFunction.fn.$2", "type": "Object", "tags": [], - "label": "{ group, ungrouped, from }", + "label": "{ group = [], ungrouped, from }", "description": [], "signature": [ "Arguments" diff --git a/api_docs/data_search.mdx b/api_docs/data_search.mdx index 82db9a16235d02..2ef8e0569b7dc9 100644 --- a/api_docs/data_search.mdx +++ b/api_docs/data_search.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.search'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataSearchObj from './data_search.json'; +import dataSearchObj from './data_search.devdocs.json'; 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. @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3341 | 39 | 2747 | 26 | +| 3364 | 39 | 2767 | 26 | ## Client diff --git a/api_docs/data_ui.json b/api_docs/data_ui.devdocs.json similarity index 100% rename from api_docs/data_ui.json rename to api_docs/data_ui.devdocs.json diff --git a/api_docs/data_ui.mdx b/api_docs/data_ui.mdx index e6206e6076063a..208632d9231a2e 100644 --- a/api_docs/data_ui.mdx +++ b/api_docs/data_ui.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.ui'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataUiObj from './data_ui.json'; +import dataUiObj from './data_ui.devdocs.json'; 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. @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3341 | 39 | 2747 | 26 | +| 3364 | 39 | 2767 | 26 | ## Client diff --git a/api_docs/data_view_editor.json b/api_docs/data_view_editor.devdocs.json similarity index 100% rename from api_docs/data_view_editor.json rename to api_docs/data_view_editor.devdocs.json diff --git a/api_docs/data_view_editor.mdx b/api_docs/data_view_editor.mdx index 98d99fe7594245..4c5ab246646c4b 100644 --- a/api_docs/data_view_editor.mdx +++ b/api_docs/data_view_editor.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewEditor'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataViewEditorObj from './data_view_editor.json'; +import dataViewEditorObj from './data_view_editor.devdocs.json'; This plugin provides the ability to create data views via a modal flyout from any kibana app diff --git a/api_docs/data_view_field_editor.json b/api_docs/data_view_field_editor.devdocs.json similarity index 100% rename from api_docs/data_view_field_editor.json rename to api_docs/data_view_field_editor.devdocs.json diff --git a/api_docs/data_view_field_editor.mdx b/api_docs/data_view_field_editor.mdx index b1e7c2e53c0f74..5d9476dbf6c004 100644 --- a/api_docs/data_view_field_editor.mdx +++ b/api_docs/data_view_field_editor.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewFieldEditor'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataViewFieldEditorObj from './data_view_field_editor.json'; +import dataViewFieldEditorObj from './data_view_field_editor.devdocs.json'; Reusable data view field editor across Kibana diff --git a/api_docs/data_view_management.json b/api_docs/data_view_management.devdocs.json similarity index 100% rename from api_docs/data_view_management.json rename to api_docs/data_view_management.devdocs.json diff --git a/api_docs/data_view_management.mdx b/api_docs/data_view_management.mdx index 41d00bfe300d6d..c108e886a95448 100644 --- a/api_docs/data_view_management.mdx +++ b/api_docs/data_view_management.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewManagement'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataViewManagementObj from './data_view_management.json'; +import dataViewManagementObj from './data_view_management.devdocs.json'; Data view management app diff --git a/api_docs/data_views.json b/api_docs/data_views.devdocs.json similarity index 95% rename from api_docs/data_views.json rename to api_docs/data_views.devdocs.json index 41f778ab4b750d..ac618b8e728994 100644 --- a/api_docs/data_views.json +++ b/api_docs/data_views.devdocs.json @@ -2335,6 +2335,21 @@ "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, "children": [ + { + "parentPluginId": "dataViews", + "id": "def-public.DataViewsService.getCanSave", + "type": "Function", + "tags": [], + "label": "getCanSave", + "description": [], + "signature": [ + "() => Promise" + ], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false, + "returnComment": [], + "children": [] + }, { "parentPluginId": "dataViews", "id": "def-public.DataViewsService.ensureDefaultDataView", @@ -2354,6 +2369,10 @@ "plugin": "discover", "path": "src/plugins/discover/public/application/main/discover_main_route.tsx" }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/plugin.ts" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts" @@ -2361,10 +2380,6 @@ { "plugin": "lens", "path": "x-pack/plugins/lens/public/plugin.ts" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/plugin.ts" } ], "returnComment": [], @@ -2391,7 +2406,7 @@ "label": "{\n uiSettings,\n savedObjectsClient,\n apiClient,\n fieldFormats,\n onNotification,\n onError,\n onRedirectNoIndexPattern = () => {},\n getCanSave = () => Promise.resolve(false),\n }", "description": [], "signature": [ - "IndexPatternsServiceDeps" + "DataViewsServiceDeps" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, @@ -3457,7 +3472,7 @@ "tags": [], "label": "getDefaultDataView", "description": [ - "\nReturns the default data view as an object. If no default is found, or it is missing\nanother data view is selected as default and returned." + "\nReturns the default data view as an object.\nIf no default is found, or it is missing\nanother data view is selected as default and returned.\nIf no possible data view found to become a default returns null\n" ], "signature": [ "() => Promise<", @@ -3468,7 +3483,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>" + " | null>" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, @@ -3903,19 +3918,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "lens", @@ -3973,6 +3980,14 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" @@ -3989,14 +4004,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/existing_fields.d.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" @@ -4241,6 +4248,14 @@ "plugin": "data", "path": "src/plugins/data/common/search/aggs/buckets/multi_terms.test.ts" }, + { + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts" + }, + { + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts" + }, { "plugin": "data", "path": "src/plugins/data/common/search/aggs/buckets/terms.test.ts" @@ -4287,11 +4302,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "data", @@ -4393,6 +4408,18 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx" }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" @@ -4485,18 +4512,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/types.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" @@ -4693,18 +4708,6 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, { "plugin": "graph", "path": "x-pack/plugins/graph/public/types/app_state.ts" @@ -4859,11 +4862,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", @@ -4871,11 +4874,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "graph", @@ -5041,14 +5044,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" @@ -5117,158 +5112,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/open_editor.tsx" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -5345,18 +5188,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx" }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/agg_filters/agg_type_filters.ts" @@ -5485,30 +5316,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/utils/editor_config.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/target/types/public/control/create_search_source.d.ts" @@ -5554,12 +5361,12 @@ "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { "plugin": "visTypeTimeseries", @@ -5567,11 +5374,27 @@ }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" } ], "children": [], @@ -5790,6 +5613,14 @@ "plugin": "data", "path": "src/plugins/data/common/search/aggs/buckets/multi_terms.test.ts" }, + { + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts" + }, + { + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts" + }, { "plugin": "data", "path": "src/plugins/data/common/search/aggs/buckets/terms.test.ts" @@ -6358,102 +6189,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/lib/extract_time_fields.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/list_control_factory.ts" @@ -6594,14 +6329,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/agg_param_props.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/controls/top_field.d.ts" @@ -6642,6 +6369,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" @@ -6649,6 +6384,14 @@ { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" } ], "children": [], @@ -7376,6 +7119,14 @@ "section": "def-public.OverlayStart", "text": "OverlayStart" }, + ", theme: ", + { + "pluginId": "core", + "scope": "public", + "docId": "kibCorePluginApi", + "section": "def-public.ThemeServiceStart", + "text": "ThemeServiceStart" + }, ") => () => Promise" ], "path": "src/plugins/data_views/public/data_views/redirect_no_index_pattern.tsx", @@ -7436,6 +7187,26 @@ "path": "src/plugins/data_views/public/data_views/redirect_no_index_pattern.tsx", "deprecated": false, "isRequired": true + }, + { + "parentPluginId": "dataViews", + "id": "def-public.onRedirectNoIndexPattern.$4", + "type": "Object", + "tags": [], + "label": "theme", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "public", + "docId": "kibCorePluginApi", + "section": "def-public.ThemeServiceStart", + "text": "ThemeServiceStart" + } + ], + "path": "src/plugins/data_views/public/data_views/redirect_no_index_pattern.tsx", + "deprecated": false, + "isRequired": true } ], "returnComment": [], @@ -7474,6 +7245,72 @@ } ], "interfaces": [ + { + "parentPluginId": "dataViews", + "id": "def-public.DataViewListItem", + "type": "Interface", + "tags": [], + "label": "DataViewListItem", + "description": [], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "dataViews", + "id": "def-public.DataViewListItem.id", + "type": "string", + "tags": [], + "label": "id", + "description": [], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false + }, + { + "parentPluginId": "dataViews", + "id": "def-public.DataViewListItem.title", + "type": "string", + "tags": [], + "label": "title", + "description": [], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false + }, + { + "parentPluginId": "dataViews", + "id": "def-public.DataViewListItem.type", + "type": "string", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false + }, + { + "parentPluginId": "dataViews", + "id": "def-public.DataViewListItem.typeMeta", + "type": "Object", + "tags": [], + "label": "typeMeta", + "description": [], + "signature": [ + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.TypeMeta", + "text": "TypeMeta" + }, + " | undefined" + ], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "dataViews", "id": "def-public.IIndexPatternFieldList", @@ -7956,7 +7793,19 @@ "initialIsOpen": false } ], - "enums": [], + "enums": [ + { + "parentPluginId": "dataViews", + "id": "def-public.DataViewType", + "type": "Enum", + "tags": [], + "label": "DataViewType", + "description": [], + "path": "src/plugins/data_views/common/types.ts", + "deprecated": false, + "initialIsOpen": false + } + ], "misc": [ { "parentPluginId": "dataViews", @@ -8012,7 +7861,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -8180,9 +8029,9 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; getCanSaveSync: () => boolean; }" ], - "path": "src/plugins/data_views/common/data_views/data_views.ts", + "path": "src/plugins/data_views/public/types.ts", "deprecated": false, "initialIsOpen": false }, @@ -8270,7 +8119,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -8438,7 +8287,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; }" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": true, @@ -8751,14 +8600,6 @@ "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -8791,14 +8632,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.test.ts" - }, { "plugin": "visTypeTimelion", "path": "src/plugins/vis_types/timelion/public/helpers/plugin_services.ts" @@ -8886,17 +8719,23 @@ { "plugin": "visTypeTimelion", "path": "src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" } ], "initialIsOpen": false + }, + { + "parentPluginId": "dataViews", + "id": "def-public.META_FIELDS", + "type": "string", + "tags": [], + "label": "META_FIELDS", + "description": [], + "signature": [ + "\"metaFields\"" + ], + "path": "src/plugins/data_views/common/constants.ts", + "deprecated": false, + "initialIsOpen": false } ], "objects": [], @@ -8922,7 +8761,7 @@ "tags": [], "label": "DataViewsPublicPluginStart", "description": [ - "\nData plugin public Start contract" + "\nData views plugin public Start contract" ], "signature": [ "{ create: (spec: ", @@ -8957,7 +8796,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -9125,7 +8964,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; getCanSaveSync: () => boolean; }" ], "path": "src/plugins/data_views/public/types.ts", "deprecated": false, @@ -13452,6 +13291,59 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "dataViews", + "id": "def-common.DataViewInsufficientAccessError", + "type": "Class", + "tags": [], + "label": "DataViewInsufficientAccessError", + "description": [], + "signature": [ + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataViewInsufficientAccessError", + "text": "DataViewInsufficientAccessError" + }, + " extends Error" + ], + "path": "src/plugins/data_views/common/errors/insufficient_access.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "dataViews", + "id": "def-common.DataViewInsufficientAccessError.Unnamed", + "type": "Function", + "tags": [], + "label": "Constructor", + "description": [], + "signature": [ + "any" + ], + "path": "src/plugins/data_views/common/errors/insufficient_access.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "dataViews", + "id": "def-common.DataViewInsufficientAccessError.Unnamed.$1", + "type": "string", + "tags": [], + "label": "savedObjectId", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "src/plugins/data_views/common/errors/insufficient_access.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, { "parentPluginId": "dataViews", "id": "def-common.DataViewSavedObjectConflictError", @@ -13515,6 +13407,21 @@ "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, "children": [ + { + "parentPluginId": "dataViews", + "id": "def-common.DataViewsService.getCanSave", + "type": "Function", + "tags": [], + "label": "getCanSave", + "description": [], + "signature": [ + "() => Promise" + ], + "path": "src/plugins/data_views/common/data_views/data_views.ts", + "deprecated": false, + "returnComment": [], + "children": [] + }, { "parentPluginId": "dataViews", "id": "def-common.DataViewsService.ensureDefaultDataView", @@ -13534,6 +13441,10 @@ "plugin": "discover", "path": "src/plugins/discover/public/application/main/discover_main_route.tsx" }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/plugin.ts" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts" @@ -13541,10 +13452,6 @@ { "plugin": "lens", "path": "x-pack/plugins/lens/public/plugin.ts" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/plugin.ts" } ], "returnComment": [], @@ -13571,7 +13478,7 @@ "label": "{\n uiSettings,\n savedObjectsClient,\n apiClient,\n fieldFormats,\n onNotification,\n onError,\n onRedirectNoIndexPattern = () => {},\n getCanSave = () => Promise.resolve(false),\n }", "description": [], "signature": [ - "IndexPatternsServiceDeps" + "DataViewsServiceDeps" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, @@ -14637,7 +14544,7 @@ "tags": [], "label": "getDefaultDataView", "description": [ - "\nReturns the default data view as an object. If no default is found, or it is missing\nanother data view is selected as default and returned." + "\nReturns the default data view as an object.\nIf no default is found, or it is missing\nanother data view is selected as default and returned.\nIf no possible data view found to become a default returns null\n" ], "signature": [ "() => Promise<", @@ -14648,7 +14555,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>" + " | null>" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, @@ -15136,19 +15043,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" }, { "plugin": "lens", @@ -15206,6 +15105,14 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, + { + "plugin": "observability", + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" @@ -15222,14 +15129,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/existing_fields.d.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" @@ -15474,6 +15373,14 @@ "plugin": "data", "path": "src/plugins/data/common/search/aggs/buckets/multi_terms.test.ts" }, + { + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts" + }, + { + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts" + }, { "plugin": "data", "path": "src/plugins/data/common/search/aggs/buckets/terms.test.ts" @@ -15520,11 +15427,11 @@ }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx" + "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" }, { "plugin": "data", @@ -15626,6 +15533,18 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx" }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" @@ -15718,18 +15637,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/types.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" @@ -15920,23 +15827,11 @@ }, { "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" + "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" }, { "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.tsx" + "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" }, { "plugin": "graph", @@ -16092,11 +15987,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" + "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" }, { "plugin": "uptime", @@ -16104,11 +15999,11 @@ }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "uptime", - "path": "x-pack/plugins/uptime/public/hooks/update_kuery_string.ts" + "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, { "plugin": "graph", @@ -16274,14 +16169,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/target/types/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" @@ -16350,158 +16237,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/open_editor.tsx" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/breadcrumbs.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/source_filters_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/components/scripting_help/help_flyout.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -16578,18 +16313,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx" }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_top_nav.tsx" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/agg_filters/agg_type_filters.ts" @@ -16718,30 +16441,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/utils/editor_config.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/target/types/public/control/create_search_source.d.ts" @@ -16787,12 +16486,12 @@ "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/source_filters_table/components/table/table.d.ts" + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, { "plugin": "visTypeTimeseries", @@ -16800,11 +16499,27 @@ }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" }, { "plugin": "visTypeTimeseries", - "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.test.ts" } ], "children": [], @@ -17023,6 +16738,14 @@ "plugin": "data", "path": "src/plugins/data/common/search/aggs/buckets/multi_terms.test.ts" }, + { + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts" + }, + { + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/buckets/rare_terms.test.ts" + }, { "plugin": "data", "path": "src/plugins/data/common/search/aggs/buckets/terms.test.ts" @@ -17591,102 +17314,6 @@ "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/lib/extract_time_fields.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/field_editor/field_editor.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/list_control_factory.ts" @@ -17827,14 +17454,6 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/agg_param_props.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.test.ts" - }, { "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/target/types/public/components/controls/top_field.d.ts" @@ -17875,6 +17494,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx" + }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" @@ -17882,6 +17509,14 @@ { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/top_values/top_values.tsx" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" + }, + { + "plugin": "discover", + "path": "src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts" } ], "children": [], @@ -19750,22 +19385,6 @@ "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/single_field_select.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, { "plugin": "data", "path": "src/plugins/data/server/autocomplete/terms_enum.ts" @@ -20446,38 +20065,6 @@ "plugin": "monitoring", "path": "x-pack/plugins/monitoring/target/types/public/alerts/components/param_details_form/use_derived_index_pattern.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx" @@ -22245,7 +21832,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -22413,7 +22000,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; }" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": false, @@ -22711,38 +22298,6 @@ { "plugin": "data", "path": "src/plugins/data/public/index.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" } ], "initialIsOpen": false @@ -22828,7 +22383,7 @@ "section": "def-common.DataView", "text": "DataView" }, - ">; ensureDefaultDataView: ", + ">; getCanSave: () => Promise; ensureDefaultDataView: ", "EnsureDefaultDataView", "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", { @@ -22996,7 +22551,7 @@ "section": "def-common.DataView", "text": "DataView" }, - " | undefined>; }" + " | null>; }" ], "path": "src/plugins/data_views/common/data_views/data_views.ts", "deprecated": true, @@ -23309,14 +22864,6 @@ "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -23349,14 +22896,6 @@ "plugin": "savedObjectsManagement", "path": "src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/components/utils.test.ts" - }, { "plugin": "visTypeTimelion", "path": "src/plugins/vis_types/timelion/public/helpers/plugin_services.ts" @@ -23444,14 +22983,6 @@ { "plugin": "visTypeTimelion", "path": "src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" - }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/target/types/public/components/utils.d.ts" } ], "initialIsOpen": false @@ -23485,14 +23016,6 @@ "plugin": "data", "path": "src/plugins/data/public/index.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts" - }, { "plugin": "dataViewEditor", "path": "src/plugins/data_view_editor/public/shared_imports.ts" diff --git a/api_docs/data_views.mdx b/api_docs/data_views.mdx index df099cec286e89..fcbe3589df7f25 100644 --- a/api_docs/data_views.mdx +++ b/api_docs/data_views.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViews'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataViewsObj from './data_views.json'; +import dataViewsObj from './data_views.devdocs.json'; 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. @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 721 | 3 | 579 | 6 | +| 734 | 3 | 592 | 7 | ## Client @@ -37,6 +37,9 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services ### Interfaces +### Enums + + ### Consts, variables and types diff --git a/api_docs/data_visualizer.devdocs.json b/api_docs/data_visualizer.devdocs.json new file mode 100644 index 00000000000000..8bdc2a75d8605e --- /dev/null +++ b/api_docs/data_visualizer.devdocs.json @@ -0,0 +1,364 @@ +{ + "id": "dataVisualizer", + "client": { + "classes": [], + "functions": [], + "interfaces": [ + { + "parentPluginId": "dataVisualizer", + "id": "def-public.IndexDataVisualizerViewProps", + "type": "Interface", + "tags": [], + "label": "IndexDataVisualizerViewProps", + "description": [], + "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "dataVisualizer", + "id": "def-public.IndexDataVisualizerViewProps.currentIndexPattern", + "type": "Object", + "tags": [], + "label": "currentIndexPattern", + "description": [], + "signature": [ + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.IndexPattern", + "text": "IndexPattern" + } + ], + "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.IndexDataVisualizerViewProps.currentSavedSearch", + "type": "CompoundType", + "tags": [], + "label": "currentSavedSearch", + "description": [], + "signature": [ + "SavedSearchSavedObject", + " | null" + ], + "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.IndexDataVisualizerViewProps.currentSessionId", + "type": "string", + "tags": [], + "label": "currentSessionId", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.IndexDataVisualizerViewProps.additionalLinks", + "type": "Array", + "tags": [], + "label": "additionalLinks", + "description": [], + "signature": [ + { + "pluginId": "dataVisualizer", + "scope": "public", + "docId": "kibDataVisualizerPluginApi", + "section": "def-public.ResultLink", + "text": "ResultLink" + }, + "[] | undefined" + ], + "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink", + "type": "Interface", + "tags": [], + "label": "ResultLink", + "description": [], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.id", + "type": "string", + "tags": [], + "label": "id", + "description": [], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.type", + "type": "CompoundType", + "tags": [], + "label": "type", + "description": [], + "signature": [ + "\"index\" | \"file\"" + ], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.title", + "type": "string", + "tags": [], + "label": "title", + "description": [], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.icon", + "type": "string", + "tags": [], + "label": "icon", + "description": [], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.description", + "type": "string", + "tags": [], + "label": "description", + "description": [], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.getUrl", + "type": "Function", + "tags": [], + "label": "getUrl", + "description": [], + "signature": [ + "(params?: any) => Promise" + ], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.getUrl.$1", + "type": "Any", + "tags": [], + "label": "params", + "description": [], + "signature": [ + "any" + ], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.canDisplay", + "type": "Function", + "tags": [], + "label": "canDisplay", + "description": [], + "signature": [ + "(params?: any) => Promise" + ], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.canDisplay.$1", + "type": "Any", + "tags": [], + "label": "params", + "description": [], + "signature": [ + "any" + ], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.ResultLink.dataTestSubj", + "type": "string", + "tags": [], + "label": "dataTestSubj", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", + "deprecated": false + } + ], + "initialIsOpen": false + } + ], + "enums": [], + "misc": [ + { + "parentPluginId": "dataVisualizer", + "id": "def-public.FileDataVisualizerSpec", + "type": "Type", + "tags": [], + "label": "FileDataVisualizerSpec", + "description": [], + "signature": [ + "React.FunctionComponent" + ], + "path": "x-pack/plugins/data_visualizer/public/application/file_data_visualizer/file_data_visualizer.tsx", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "dataVisualizer", + "id": "def-public.FileDataVisualizerSpec.$1", + "type": "CompoundType", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "P & { children?: React.ReactNode; }" + ], + "path": "node_modules/@types/react/index.d.ts", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.FileDataVisualizerSpec.$2", + "type": "Any", + "tags": [], + "label": "context", + "description": [], + "signature": [ + "any" + ], + "path": "node_modules/@types/react/index.d.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.IndexDataVisualizerSpec", + "type": "Type", + "tags": [], + "label": "IndexDataVisualizerSpec", + "description": [], + "signature": [ + "React.FunctionComponent<{ additionalLinks: ", + { + "pluginId": "dataVisualizer", + "scope": "public", + "docId": "kibDataVisualizerPluginApi", + "section": "def-public.ResultLink", + "text": "ResultLink" + }, + "[]; }>" + ], + "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/index_data_visualizer.tsx", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "dataVisualizer", + "id": "def-public.IndexDataVisualizerSpec.$1", + "type": "CompoundType", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "P & { children?: React.ReactNode; }" + ], + "path": "node_modules/@types/react/index.d.ts", + "deprecated": false + }, + { + "parentPluginId": "dataVisualizer", + "id": "def-public.IndexDataVisualizerSpec.$2", + "type": "Any", + "tags": [], + "label": "context", + "description": [], + "signature": [ + "any" + ], + "path": "node_modules/@types/react/index.d.ts", + "deprecated": false + } + ], + "initialIsOpen": false + } + ], + "objects": [], + "start": { + "parentPluginId": "dataVisualizer", + "id": "def-public.DataVisualizerPluginStart", + "type": "Type", + "tags": [], + "label": "DataVisualizerPluginStart", + "description": [], + "signature": [ + "{ getFileDataVisualizerComponent: () => Promise<() => React.FC>; getIndexDataVisualizerComponent: () => Promise<() => React.FC<{ additionalLinks: ", + { + "pluginId": "dataVisualizer", + "scope": "public", + "docId": "kibDataVisualizerPluginApi", + "section": "def-public.ResultLink", + "text": "ResultLink" + }, + "[]; }>>; getMaxBytesFormatted: () => string; }" + ], + "path": "x-pack/plugins/data_visualizer/public/plugin.ts", + "deprecated": false, + "lifecycle": "start", + "initialIsOpen": true + } + }, + "server": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + }, + "common": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + } +} \ No newline at end of file diff --git a/api_docs/data_visualizer.json b/api_docs/data_visualizer.json deleted file mode 100644 index 0d96692e2ba3ec..00000000000000 --- a/api_docs/data_visualizer.json +++ /dev/null @@ -1,1192 +0,0 @@ -{ - "id": "dataVisualizer", - "client": { - "classes": [], - "functions": [], - "interfaces": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-public.IndexDataVisualizerViewProps", - "type": "Interface", - "tags": [], - "label": "IndexDataVisualizerViewProps", - "description": [], - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-public.IndexDataVisualizerViewProps.currentIndexPattern", - "type": "Object", - "tags": [], - "label": "currentIndexPattern", - "description": [], - "signature": [ - { - "pluginId": "dataViews", - "scope": "common", - "docId": "kibDataViewsPluginApi", - "section": "def-common.IndexPattern", - "text": "IndexPattern" - } - ], - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.IndexDataVisualizerViewProps.currentSavedSearch", - "type": "CompoundType", - "tags": [], - "label": "currentSavedSearch", - "description": [], - "signature": [ - { - "pluginId": "dataVisualizer", - "scope": "common", - "docId": "kibDataVisualizerPluginApi", - "section": "def-common.SavedSearchSavedObject", - "text": "SavedSearchSavedObject" - }, - " | null" - ], - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.IndexDataVisualizerViewProps.currentSessionId", - "type": "string", - "tags": [], - "label": "currentSessionId", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.IndexDataVisualizerViewProps.additionalLinks", - "type": "Array", - "tags": [], - "label": "additionalLinks", - "description": [], - "signature": [ - { - "pluginId": "dataVisualizer", - "scope": "public", - "docId": "kibDataVisualizerPluginApi", - "section": "def-public.ResultLink", - "text": "ResultLink" - }, - "[] | undefined" - ], - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink", - "type": "Interface", - "tags": [], - "label": "ResultLink", - "description": [], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.type", - "type": "CompoundType", - "tags": [], - "label": "type", - "description": [], - "signature": [ - "\"index\" | \"file\"" - ], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.title", - "type": "string", - "tags": [], - "label": "title", - "description": [], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.icon", - "type": "string", - "tags": [], - "label": "icon", - "description": [], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.description", - "type": "string", - "tags": [], - "label": "description", - "description": [], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.getUrl", - "type": "Function", - "tags": [], - "label": "getUrl", - "description": [], - "signature": [ - "(params?: any) => Promise" - ], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.getUrl.$1", - "type": "Any", - "tags": [], - "label": "params", - "description": [], - "signature": [ - "any" - ], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.canDisplay", - "type": "Function", - "tags": [], - "label": "canDisplay", - "description": [], - "signature": [ - "(params?: any) => Promise" - ], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.canDisplay.$1", - "type": "Any", - "tags": [], - "label": "params", - "description": [], - "signature": [ - "any" - ], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.ResultLink.dataTestSubj", - "type": "string", - "tags": [], - "label": "dataTestSubj", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/data_visualizer/public/application/common/components/results_links/results_links.tsx", - "deprecated": false - } - ], - "initialIsOpen": false - } - ], - "enums": [], - "misc": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-public.FileDataVisualizerSpec", - "type": "Type", - "tags": [], - "label": "FileDataVisualizerSpec", - "description": [], - "signature": [ - "React.FunctionComponent" - ], - "path": "x-pack/plugins/data_visualizer/public/application/file_data_visualizer/file_data_visualizer.tsx", - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-public.FileDataVisualizerSpec.$1", - "type": "CompoundType", - "tags": [], - "label": "props", - "description": [], - "signature": [ - "P & { children?: React.ReactNode; }" - ], - "path": "node_modules/@types/react/index.d.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.FileDataVisualizerSpec.$2", - "type": "Any", - "tags": [], - "label": "context", - "description": [], - "signature": [ - "any" - ], - "path": "node_modules/@types/react/index.d.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.IndexDataVisualizerSpec", - "type": "Type", - "tags": [], - "label": "IndexDataVisualizerSpec", - "description": [], - "signature": [ - "React.FunctionComponent<{ additionalLinks: ", - { - "pluginId": "dataVisualizer", - "scope": "public", - "docId": "kibDataVisualizerPluginApi", - "section": "def-public.ResultLink", - "text": "ResultLink" - }, - "[]; }>" - ], - "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/index_data_visualizer.tsx", - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-public.IndexDataVisualizerSpec.$1", - "type": "CompoundType", - "tags": [], - "label": "props", - "description": [], - "signature": [ - "P & { children?: React.ReactNode; }" - ], - "path": "node_modules/@types/react/index.d.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-public.IndexDataVisualizerSpec.$2", - "type": "Any", - "tags": [], - "label": "context", - "description": [], - "signature": [ - "any" - ], - "path": "node_modules/@types/react/index.d.ts", - "deprecated": false - } - ], - "initialIsOpen": false - } - ], - "objects": [], - "start": { - "parentPluginId": "dataVisualizer", - "id": "def-public.DataVisualizerPluginStart", - "type": "Type", - "tags": [], - "label": "DataVisualizerPluginStart", - "description": [], - "signature": [ - "{ getFileDataVisualizerComponent: () => Promise<() => React.FC>; getIndexDataVisualizerComponent: () => Promise<() => React.FC<{ additionalLinks: ", - { - "pluginId": "dataVisualizer", - "scope": "public", - "docId": "kibDataVisualizerPluginApi", - "section": "def-public.ResultLink", - "text": "ResultLink" - }, - "[]; }>>; getMaxBytesFormatted: () => string; }" - ], - "path": "x-pack/plugins/data_visualizer/public/plugin.ts", - "deprecated": false, - "lifecycle": "start", - "initialIsOpen": true - } - }, - "server": { - "classes": [], - "functions": [], - "interfaces": [], - "enums": [], - "misc": [], - "objects": [] - }, - "common": { - "classes": [], - "functions": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.isSavedSearchSavedObject", - "type": "Function", - "tags": [], - "label": "isSavedSearchSavedObject", - "description": [], - "signature": [ - "(arg: unknown) => boolean" - ], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.isSavedSearchSavedObject.$1", - "type": "Unknown", - "tags": [], - "label": "arg", - "description": [], - "signature": [ - "unknown" - ], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - } - ], - "interfaces": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DataVisualizerTableState", - "type": "Interface", - "tags": [], - "label": "DataVisualizerTableState", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DataVisualizerTableState.pageSize", - "type": "number", - "tags": [], - "label": "pageSize", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DataVisualizerTableState.pageIndex", - "type": "number", - "tags": [], - "label": "pageIndex", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DataVisualizerTableState.sortField", - "type": "string", - "tags": [], - "label": "sortField", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DataVisualizerTableState.sortDirection", - "type": "string", - "tags": [], - "label": "sortDirection", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DataVisualizerTableState.visibleFieldTypes", - "type": "Array", - "tags": [], - "label": "visibleFieldTypes", - "description": [], - "signature": [ - "string[]" - ], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DataVisualizerTableState.visibleFieldNames", - "type": "Array", - "tags": [], - "label": "visibleFieldNames", - "description": [], - "signature": [ - "string[]" - ], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DataVisualizerTableState.showDistributions", - "type": "boolean", - "tags": [], - "label": "showDistributions", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DocumentCountBuckets", - "type": "Interface", - "tags": [], - "label": "DocumentCountBuckets", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DocumentCountBuckets.Unnamed", - "type": "IndexSignature", - "tags": [], - "label": "[key: string]: number", - "description": [], - "signature": [ - "[key: string]: number" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DocumentCounts", - "type": "Interface", - "tags": [], - "label": "DocumentCounts", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DocumentCounts.buckets", - "type": "Object", - "tags": [], - "label": "buckets", - "description": [], - "signature": [ - { - "pluginId": "dataVisualizer", - "scope": "common", - "docId": "kibDataVisualizerPluginApi", - "section": "def-common.DocumentCountBuckets", - "text": "DocumentCountBuckets" - }, - " | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.DocumentCounts.interval", - "type": "number", - "tags": [], - "label": "interval", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldRequestConfig", - "type": "Interface", - "tags": [], - "label": "FieldRequestConfig", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldRequestConfig.fieldName", - "type": "string", - "tags": [], - "label": "fieldName", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldRequestConfig.type", - "type": "CompoundType", - "tags": [], - "label": "type", - "description": [], - "signature": [ - "\"number\" | \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"unknown\" | \"histogram\" | \"text\"" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldRequestConfig.cardinality", - "type": "number", - "tags": [], - "label": "cardinality", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats", - "type": "Interface", - "tags": [], - "label": "FieldVisStats", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.error", - "type": "Object", - "tags": [], - "label": "error", - "description": [], - "signature": [ - "Error | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.cardinality", - "type": "number", - "tags": [], - "label": "cardinality", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.count", - "type": "number", - "tags": [], - "label": "count", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.sampleCount", - "type": "number", - "tags": [], - "label": "sampleCount", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.trueCount", - "type": "number", - "tags": [], - "label": "trueCount", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.falseCount", - "type": "number", - "tags": [], - "label": "falseCount", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.earliest", - "type": "number", - "tags": [], - "label": "earliest", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.latest", - "type": "number", - "tags": [], - "label": "latest", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.documentCounts", - "type": "Object", - "tags": [], - "label": "documentCounts", - "description": [], - "signature": [ - "{ buckets?: ", - { - "pluginId": "dataVisualizer", - "scope": "common", - "docId": "kibDataVisualizerPluginApi", - "section": "def-common.DocumentCountBuckets", - "text": "DocumentCountBuckets" - }, - " | undefined; interval?: number | undefined; } | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.avg", - "type": "number", - "tags": [], - "label": "avg", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.distribution", - "type": "Object", - "tags": [], - "label": "distribution", - "description": [], - "signature": [ - "{ percentiles: ", - { - "pluginId": "dataVisualizer", - "scope": "common", - "docId": "kibDataVisualizerPluginApi", - "section": "def-common.Percentile", - "text": "Percentile" - }, - "[]; maxPercentile: number; minPercentile: 0; } | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.fieldName", - "type": "string", - "tags": [], - "label": "fieldName", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.isTopValuesSampled", - "type": "CompoundType", - "tags": [], - "label": "isTopValuesSampled", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.max", - "type": "number", - "tags": [], - "label": "max", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.median", - "type": "number", - "tags": [], - "label": "median", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.min", - "type": "number", - "tags": [], - "label": "min", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.topValues", - "type": "Array", - "tags": [], - "label": "topValues", - "description": [], - "signature": [ - "{ key: string | number; doc_count: number; }[] | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.topValuesSampleSize", - "type": "number", - "tags": [], - "label": "topValuesSampleSize", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.topValuesSamplerShardSize", - "type": "number", - "tags": [], - "label": "topValuesSamplerShardSize", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.examples", - "type": "Array", - "tags": [], - "label": "examples", - "description": [], - "signature": [ - "(string | object)[] | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.timeRangeEarliest", - "type": "number", - "tags": [], - "label": "timeRangeEarliest", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FieldVisStats.timeRangeLatest", - "type": "number", - "tags": [], - "label": "timeRangeLatest", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.Percentile", - "type": "Interface", - "tags": [], - "label": "Percentile", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.Percentile.percent", - "type": "number", - "tags": [], - "label": "percent", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.Percentile.minValue", - "type": "number", - "tags": [], - "label": "minValue", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.Percentile.maxValue", - "type": "number", - "tags": [], - "label": "maxValue", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/types/field_request_config.ts", - "deprecated": false - } - ], - "initialIsOpen": false - } - ], - "enums": [], - "misc": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.ABSOLUTE_MAX_FILE_SIZE_BYTES", - "type": "number", - "tags": [], - "label": "ABSOLUTE_MAX_FILE_SIZE_BYTES", - "description": [], - "signature": [ - "1073741274" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.applicationPath", - "type": "string", - "tags": [], - "label": "applicationPath", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.featureId", - "type": "string", - "tags": [], - "label": "featureId", - "description": [], - "signature": [ - "\"file_data_visualizer\"" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.featureTitle", - "type": "string", - "tags": [], - "label": "featureTitle", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FILE_DATA_VIS_TAB_ID", - "type": "string", - "tags": [], - "label": "FILE_DATA_VIS_TAB_ID", - "description": [], - "signature": [ - "\"fileDataViz\"" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.FILE_SIZE_DISPLAY_FORMAT", - "type": "string", - "tags": [], - "label": "FILE_SIZE_DISPLAY_FORMAT", - "description": [], - "signature": [ - "\"0,0.[0] b\"" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.INDEX_META_DATA_CREATED_BY", - "type": "string", - "tags": [], - "label": "INDEX_META_DATA_CREATED_BY", - "description": [], - "signature": [ - "\"file-data-visualizer\"" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.JobFieldType", - "type": "Type", - "tags": [], - "label": "JobFieldType", - "description": [], - "signature": [ - "\"number\" | \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"unknown\" | \"histogram\" | \"text\"" - ], - "path": "x-pack/plugins/data_visualizer/common/types/job_field_type.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.MAX_FILE_SIZE", - "type": "string", - "tags": [], - "label": "MAX_FILE_SIZE", - "description": [], - "signature": [ - "\"100MB\"" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.MAX_FILE_SIZE_BYTES", - "type": "number", - "tags": [], - "label": "MAX_FILE_SIZE_BYTES", - "description": [], - "signature": [ - "104857600" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.MB", - "type": "number", - "tags": [], - "label": "MB", - "description": [], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.OMIT_FIELDS", - "type": "Array", - "tags": [], - "label": "OMIT_FIELDS", - "description": [], - "signature": [ - "string[]" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.SavedSearchSavedObject", - "type": "Type", - "tags": [], - "label": "SavedSearchSavedObject", - "description": [], - "signature": [ - { - "pluginId": "core", - "scope": "public", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-public.SimpleSavedObject", - "text": "SimpleSavedObject" - }, - "" - ], - "path": "x-pack/plugins/data_visualizer/common/types/index.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.UI_SETTING_MAX_FILE_SIZE", - "type": "string", - "tags": [], - "label": "UI_SETTING_MAX_FILE_SIZE", - "description": [], - "signature": [ - "\"fileUpload:maxFileSize\"" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - } - ], - "objects": [ - { - "parentPluginId": "dataVisualizer", - "id": "def-common.JOB_FIELD_TYPES", - "type": "Object", - "tags": [], - "label": "JOB_FIELD_TYPES", - "description": [], - "signature": [ - "{ readonly BOOLEAN: \"boolean\"; readonly DATE: \"date\"; readonly GEO_POINT: \"geo_point\"; readonly GEO_SHAPE: \"geo_shape\"; readonly IP: \"ip\"; readonly KEYWORD: \"keyword\"; readonly NUMBER: \"number\"; readonly TEXT: \"text\"; readonly HISTOGRAM: \"histogram\"; readonly UNKNOWN: \"unknown\"; }" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "dataVisualizer", - "id": "def-common.NON_AGGREGATABLE_FIELD_TYPES", - "type": "Object", - "tags": [], - "label": "NON_AGGREGATABLE_FIELD_TYPES", - "description": [], - "signature": [ - "Set" - ], - "path": "x-pack/plugins/data_visualizer/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - } - ] - } -} \ No newline at end of file diff --git a/api_docs/data_visualizer.mdx b/api_docs/data_visualizer.mdx index fee566e17fe129..2da419a8b561f3 100644 --- a/api_docs/data_visualizer.mdx +++ b/api_docs/data_visualizer.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataVisualizer'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import dataVisualizerObj from './data_visualizer.json'; +import dataVisualizerObj from './data_visualizer.devdocs.json'; The Data Visualizer tools help you understand your data, by analyzing the metrics and fields in a log file or an existing Elasticsearch index. @@ -18,7 +18,7 @@ Contact [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) for q | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 85 | 2 | 81 | 0 | +| 23 | 2 | 19 | 1 | ## Client @@ -31,17 +31,3 @@ Contact [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) for q ### Consts, variables and types -## Common - -### Objects - - -### Functions - - -### Interfaces - - -### Consts, variables and types - - diff --git a/api_docs/deprecations_by_api.mdx b/api_docs/deprecations_by_api.mdx index 6e6f9a653d06c2..1aab530e2ebe46 100644 --- a/api_docs/deprecations_by_api.mdx +++ b/api_docs/deprecations_by_api.mdx @@ -14,54 +14,53 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Referencing plugin(s) | Remove By | | ---------------|-----------|-----------| | | securitySolution | - | -| | home, savedObjects, security, fleet, discover, dashboard, lens, observability, maps, fileUpload, dataVisualizer, infra, graph, monitoring, securitySolution, stackAlerts, transform, uptime, dataViewManagement, inputControlVis, kibanaOverview, savedObjectsManagement, visualize, visTypeTimelion, visTypeTimeseries, visTypeVega | - | +| | home, savedObjects, security, fleet, discover, visualizations, dashboard, lens, observability, maps, fileUpload, dataVisualizer, infra, graph, monitoring, securitySolution, stackAlerts, transform, uptime, inputControlVis, kibanaOverview, savedObjectsManagement, visTypeTimelion, visTypeTimeseries, visTypeVega, dataViewManagement | - | | | apm, security, securitySolution | - | | | apm, security, securitySolution | - | -| | encryptedSavedObjects, actions, ml, reporting, dataEnhanced, logstash, securitySolution | - | -| | dashboard, lens, maps, ml, securitySolution, security, visualize | - | +| | encryptedSavedObjects, actions, ml, dataEnhanced, logstash, securitySolution | - | +| | visualizations, dashboard, lens, maps, ml, securitySolution, security | - | | | securitySolution | - | | | dataViews, visTypeTimeseries, maps, lens, data | - | -| | dataViews, observability, savedObjects, security, dashboard, lens, maps, graph, stackAlerts, transform, dataViewManagement, inputControlVis, savedObjectsManagement, visTypeTimelion, data | - | -| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, maps, dataVisualizer, apm, reporting, lens, transform, savedObjects, dataViewFieldEditor, graph, stackAlerts, uptime, dataViewEditor, dataViewManagement, inputControlVis, savedObjectsManagement, visualize, visDefaultEditor, visTypeVega, data | - | -| | dataViews, maps, dataVisualizer, lens, dataViewEditor, dataViewManagement, inputControlVis, visDefaultEditor, visTypeTimeseries, data | - | -| | dataViews, monitoring, dataViewManagement, stackAlerts, transform | - | +| | dataViews, observability, savedObjects, security, dashboard, lens, maps, graph, stackAlerts, transform, inputControlVis, savedObjectsManagement, visTypeTimelion, data | - | +| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, maps, dataVisualizer, apm, lens, transform, savedObjects, dataViewFieldEditor, graph, stackAlerts, uptime, dataViewEditor, inputControlVis, savedObjectsManagement, visDefaultEditor, visTypeVega, data | - | +| | dataViews, maps, dataVisualizer, lens, dataViewEditor, inputControlVis, visDefaultEditor, visTypeTimeseries, discover, data | - | +| | dataViews, monitoring, stackAlerts, transform | - | | | dataViews, transform, canvas, discover | - | -| | dataViews, observability, dataViewEditor | - | -| | dataViews, dataViewManagement | - | +| | dataViews, dataViewEditor | - | +| | dataViews | - | | | dataViews | - | -| | dataViews, monitoring, dataViewManagement, stackAlerts, transform, data | - | +| | dataViews, monitoring, stackAlerts, transform, data | - | | | dataViews, transform, canvas, discover, data | - | | | dataViews, data | - | | | dataViews, data | - | -| | dataViews, observability, dataViewEditor, data | - | -| | dataViews, observability, savedObjects, security, dashboard, lens, maps, graph, stackAlerts, transform, dataViewManagement, inputControlVis, savedObjectsManagement, visTypeTimelion, data | - | -| | dataViews, dataViewManagement, data | - | +| | dataViews, dataViewEditor, data | - | +| | dataViews, observability, savedObjects, security, dashboard, lens, maps, graph, stackAlerts, transform, inputControlVis, savedObjectsManagement, visTypeTimelion, data | - | +| | dataViews, data | - | | | dataViews, visualizations, dashboard, data | - | -| | dataViews, maps, dataVisualizer, lens, dataViewEditor, dataViewManagement, inputControlVis, visDefaultEditor, visTypeTimeseries, data | - | +| | dataViews, maps, dataVisualizer, lens, dataViewEditor, inputControlVis, visDefaultEditor, visTypeTimeseries, discover, data | - | | | dataViews, data | - | | | dataViews, visTypeTimeseries, maps, lens, data | - | -| | dataViews, discover, dashboard, lens, visualize | - | -| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, maps, dataVisualizer, apm, reporting, lens, transform, savedObjects, dataViewFieldEditor, graph, stackAlerts, uptime, dataViewEditor, dataViewManagement, inputControlVis, savedObjectsManagement, visualize, visDefaultEditor, visTypeVega, data | - | +| | dataViews, discover, visualizations, dashboard, lens | - | +| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, maps, dataVisualizer, apm, lens, transform, savedObjects, dataViewFieldEditor, graph, stackAlerts, uptime, dataViewEditor, inputControlVis, savedObjectsManagement, visDefaultEditor, visTypeVega, data | - | | | dataViews, maps | - | | | dataViewManagement, dataViews | - | | | visTypeTimeseries, graph, dataViewManagement, dataViews | - | | | dataViews, dataViewManagement | - | | | dataViews, transform, canvas, discover | - | -| | dataViews, maps, dataVisualizer, lens, dataViewEditor, dataViewManagement, inputControlVis, visDefaultEditor, visTypeTimeseries | - | -| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, maps, dataVisualizer, apm, reporting, lens, transform, savedObjects, dataViewFieldEditor, graph, stackAlerts, uptime, dataViewEditor, dataViewManagement, inputControlVis, savedObjectsManagement, visualize, visDefaultEditor, visTypeVega | - | +| | dataViews, maps, dataVisualizer, lens, dataViewEditor, inputControlVis, visDefaultEditor, visTypeTimeseries, discover | - | +| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, maps, dataVisualizer, apm, lens, transform, savedObjects, dataViewFieldEditor, graph, stackAlerts, uptime, dataViewEditor, inputControlVis, savedObjectsManagement, visDefaultEditor, visTypeVega | - | | | dataViews, visTypeTimeseries, maps, lens | - | | | dataViews, maps | - | | | dataViewManagement, dataViews | - | | | visTypeTimeseries, graph, dataViewManagement, dataViews | - | | | dataViews, dataViewManagement | - | -| | fleet, dataViewFieldEditor, discover, dashboard, lens, stackAlerts, dataViewManagement, visTypeTable, visTypeTimeseries, visTypeXy, visTypeVislib, expressionPie | - | -| | reporting, visTypeTimeseries | - | +| | fleet, dataViewFieldEditor, discover, dashboard, lens, stackAlerts, visTypeTable, visTypeTimeseries, visTypeXy, visTypeVislib, expressionPie | - | +| | visTypeTimeseries | - | | | visTypeTimeseries, graph, dataViewManagement | - | | | data, lens, visTypeTimeseries, infra, maps, visTypeTimelion | - | | | maps | - | -| | dashboard, maps, graph, visualize | - | -| | spaces, security, actions, alerting, ml, fleet, reporting, remoteClusters, graph, indexLifecycleManagement, maps, painlessLab, rollup, searchprofiler, snapshotRestore, transform, upgradeAssistant | - | -| | discover, dashboard, lens, visualize | - | +| | visualizations, dashboard, maps, graph | - | +| | discover, visualizations, dashboard, lens | - | | | savedObjectsTaggingOss, visualizations, dashboard, lens | - | | | lens, dashboard | - | | | observability, osquery | - | @@ -70,26 +69,23 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | security | - | | | security | - | | | security | - | -| | security, licenseManagement, ml, fleet, apm, reporting, crossClusterReplication, logstash, painlessLab, searchprofiler, watcher | - | +| | security, licenseManagement, ml, fleet, apm, crossClusterReplication, logstash, painlessLab, searchprofiler, watcher | - | +| | spaces, security, actions, alerting, ml, fleet, remoteClusters, graph, indexLifecycleManagement, mapsEms, painlessLab, rollup, searchprofiler, snapshotRestore, transform, upgradeAssistant | - | | | management, fleet, security, kibanaOverview | - | | | embeddable, presentationUtil, discover, dashboard, graph | - | | | dashboard | - | | | dashboard | - | | | screenshotting, dashboard | - | -| | dataViewManagement | - | -| | dataViewManagement | - | | | spaces, savedObjectsManagement | - | | | spaces, savedObjectsManagement | - | -| | ml, infra, reporting, ingestPipelines, upgradeAssistant | - | -| | ml, infra, reporting, ingestPipelines, upgradeAssistant | - | +| | ml, infra, ingestPipelines, upgradeAssistant | - | +| | ml, infra, ingestPipelines, upgradeAssistant | - | | | discover | - | | | discover | - | | | data, discover, embeddable | - | | | advancedSettings, discover | - | | | advancedSettings, discover | - | | | cloud, apm | - | -| | reporting | - | -| | reporting | - | | | visTypeVega | - | | | monitoring, visTypeVega | - | | | monitoring, kibanaUsageCollection | - | @@ -104,35 +100,33 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | canvas | - | | | canvas | - | | | canvas, visTypeXy | - | +| | reporting | - | +| | reporting | - | +| | dataViewManagement | - | +| | dataViewManagement | - | | | actions, ml, enterpriseSearch, savedObjectsTagging | - | +| | ml | - | | | actions | - | | | screenshotting | - | -| | ml | - | +| | mapsEms | - | | | console | - | -| | dataViews, fleet, monitoring, stackAlerts, dataViewManagement | 8.1 | -| | dataViews, fleet, monitoring, stackAlerts, dataViewManagement, data | 8.1 | -| | dataViews, fleet, monitoring, stackAlerts, dataViewManagement | 8.1 | -| | visTypeTimeseries | 8.1 | -| | visTypeTimeseries | 8.1 | -| | visTypeTimeseries | 8.1 | +| | dataViews, fleet, monitoring, stackAlerts | 8.1 | +| | dataViews, fleet, monitoring, stackAlerts, data | 8.1 | +| | dataViews, fleet, monitoring, stackAlerts | 8.1 | | | discover, maps, inputControlVis | 8.1 | -| | discover, visualizations, dashboard, lens, maps, dashboardEnhanced, discoverEnhanced, visualize | 8.1 | -| | discover, dashboard, dashboardEnhanced, discoverEnhanced, urlDrilldown, inputControlVis, maps | 8.1 | -| | discover, dashboard, dashboardEnhanced, discoverEnhanced, urlDrilldown, inputControlVis, maps | 8.1 | +| | discover, dashboard, maps, dashboardEnhanced, discoverEnhanced | 8.1 | +| | discover, dashboard, ml, dashboardEnhanced, discoverEnhanced, urlDrilldown, inputControlVis, maps | 8.1 | +| | discover, dashboard, ml, dashboardEnhanced, discoverEnhanced, urlDrilldown, inputControlVis, maps | 8.1 | | | discover, maps, inputControlVis | 8.1 | -| | discover, dashboard, dashboardEnhanced, discoverEnhanced, urlDrilldown, inputControlVis, maps | 8.1 | +| | discover, dashboard, ml, dashboardEnhanced, discoverEnhanced, urlDrilldown, inputControlVis, maps | 8.1 | | | apm, graph, monitoring, stackAlerts | 8.1 | -| | stackAlerts, dataViewManagement | 8.1 | -| | dataViewManagement | 8.1 | -| | dataViewManagement | 8.1 | -| | visTypeTimelion | 8.1 | -| | visTypeTimelion | 8.1 | +| | stackAlerts | 8.1 | | | visualizations, visDefaultEditor | 8.1 | +| | visualizations | 8.1 | | | visualizations, visDefaultEditor | 8.1 | | | dataViewFieldEditor | 8.1 | | | dataViewFieldEditor | 8.1 | | | dataViewFieldEditor | 8.1 | -| | visualize | 8.1 | | | dashboardEnhanced | 8.1 | | | dashboardEnhanced | 8.1 | | | discoverEnhanced | 8.1 | @@ -151,15 +145,19 @@ Safe to remove. | ---------------|------------| | | dashboard | | | dashboard | +| | data | | | data | +| | data | | | data | | | data | | | data | | | data | | | data | | | data | +| | data | | | data | | | data | +| | data | | | data | | | data | | | data | @@ -167,6 +165,7 @@ Safe to remove. | | data | | | data | | | data | +| | data | | | data | | | data | | | data | @@ -204,8 +203,10 @@ Safe to remove. | | data | | | data | | | data | +| | data | | | data | | | data | +| | data | | | data | | | expressions | | | expressions | @@ -223,7 +224,6 @@ Safe to remove. | | licensing | | | licensing | | | licensing | -| | licensing | | | core | | | core | | | core | diff --git a/api_docs/deprecations_by_plugin.mdx b/api_docs/deprecations_by_plugin.mdx index 838a9c2868b2ef..16d5e67ab1cde8 100644 --- a/api_docs/deprecations_by_plugin.mdx +++ b/api_docs/deprecations_by_plugin.mdx @@ -46,10 +46,10 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern), [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern) | - | +| | [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern) | - | | | [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#:~:text=esKuery), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#:~:text=esKuery), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#:~:text=esKuery) | 8.1 | -| | [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern), [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern) | - | -| | [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [SelectedFilters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/SelectedFilters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/RumDashboard/LocalUIFilters/selected_wildcards.tsx#:~:text=IndexPattern) | - | +| | [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern) | - | +| | [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/plugin.ts#:~:text=environment) | - | | | [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode)+ 2 more | - | | | [license_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/context/license/license_context.tsx#:~:text=license%24) | - | @@ -64,16 +64,16 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes), [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes), [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes) | - | | | [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes), [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes), [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes), [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes), [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes), [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes) | - | | | [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes), [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes), [es_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/lib/es_service.ts#:~:text=IndexPatternAttributes) | - | -| | [embeddable.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/embeddable.ts#:~:text=context), [filters.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/functions/filters.ts#:~:text=context), [escount.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/escount.ts#:~:text=context), [esdocs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/esdocs.ts#:~:text=context), [essql.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/essql.ts#:~:text=context), [neq.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/common/neq.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/index.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.ts#:~:text=context) | - | +| | [embeddable.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/embeddable.ts#:~:text=context), [filters.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/common/functions/filters.ts#:~:text=context), [escount.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/escount.ts#:~:text=context), [esdocs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/esdocs.ts#:~:text=context), [essql.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/essql.ts#:~:text=context), [neq.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/common/neq.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/index.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.ts#:~:text=context) | - | | | [setup_expressions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/setup_expressions.ts#:~:text=getFunction) | - | | | [application.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/application.tsx#:~:text=getFunctions), [functions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/server/routes/functions/functions.ts#:~:text=getFunctions), [functions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/server/routes/functions/functions.ts#:~:text=getFunctions), [functions.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/server/routes/functions/functions.test.ts#:~:text=getFunctions) | - | | | [setup_expressions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/setup_expressions.ts#:~:text=getTypes), [application.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/application.tsx#:~:text=getTypes), [functions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/server/routes/functions/functions.ts#:~:text=getTypes) | - | | | [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/public/functions/index.d.ts#:~:text=Render), [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/public/functions/index.d.ts#:~:text=Render), [state.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/types/state.ts#:~:text=Render), [state.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/types/state.ts#:~:text=Render), [state.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/types/state.d.ts#:~:text=Render), [state.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/target/types/types/state.d.ts#:~:text=Render), [markdown.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/markdown.ts#:~:text=Render), [markdown.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/markdown.ts#:~:text=Render), [timefilterControl.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/common/timefilterControl.ts#:~:text=Render), [timefilterControl.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/common/timefilterControl.ts#:~:text=Render)+ 8 more | - | -| | [embeddable.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/embeddable.ts#:~:text=context), [filters.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/functions/filters.ts#:~:text=context), [escount.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/escount.ts#:~:text=context), [esdocs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/esdocs.ts#:~:text=context), [essql.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/essql.ts#:~:text=context), [neq.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/common/neq.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/index.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.ts#:~:text=context) | - | +| | [embeddable.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/embeddable.ts#:~:text=context), [filters.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/common/functions/filters.ts#:~:text=context), [escount.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/escount.ts#:~:text=context), [esdocs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/esdocs.ts#:~:text=context), [essql.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/essql.ts#:~:text=context), [neq.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/common/neq.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/index.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.ts#:~:text=context) | - | | | [setup_expressions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/setup_expressions.ts#:~:text=getFunction) | - | | | [application.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/application.tsx#:~:text=getFunctions), [functions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/server/routes/functions/functions.ts#:~:text=getFunctions), [functions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/server/routes/functions/functions.ts#:~:text=getFunctions), [functions.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/server/routes/functions/functions.test.ts#:~:text=getFunctions) | - | | | [setup_expressions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/setup_expressions.ts#:~:text=getTypes), [application.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/application.tsx#:~:text=getTypes), [functions.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/server/routes/functions/functions.ts#:~:text=getTypes) | - | -| | [embeddable.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/embeddable.ts#:~:text=context), [filters.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/public/functions/filters.ts#:~:text=context), [escount.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/escount.ts#:~:text=context), [esdocs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/esdocs.ts#:~:text=context), [essql.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/essql.ts#:~:text=context), [neq.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/common/neq.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/index.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.ts#:~:text=context) | - | +| | [embeddable.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/external/embeddable.ts#:~:text=context), [filters.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/common/functions/filters.ts#:~:text=context), [escount.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/escount.ts#:~:text=context), [esdocs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/esdocs.ts#:~:text=context), [essql.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/browser/essql.ts#:~:text=context), [neq.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/common/neq.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/pointseries/index.ts#:~:text=context), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/canvas/canvas_plugin_src/functions/server/demodata/index.ts#:~:text=context) | - | @@ -109,15 +109,15 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern), [use_dashboard_app_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern)+ 10 more | - | | | [dashboard_router.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/dashboard_router.tsx#:~:text=indexPatterns), [dashboard_router.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/dashboard_router.tsx#:~:text=indexPatterns) | - | | | [export_csv_action.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/actions/export_csv_action.tsx#:~:text=fieldFormats) | - | -| | [save_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#:~:text=esFilters), [save_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#:~:text=esFilters), [diff_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts#:~:text=esFilters), [diff_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts#:~:text=esFilters), [diff_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts#:~:text=esFilters), [diff_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=esFilters)+ 15 more | 8.1 | -| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 25 more | 8.1 | +| | [save_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#:~:text=esFilters), [save_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=esFilters), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=esFilters), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/locator.ts#:~:text=esFilters), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/locator.ts#:~:text=esFilters), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/url_generator.ts#:~:text=esFilters)+ 11 more | 8.1 | +| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 22 more | 8.1 | | | [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=IndexPatternsContract), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=IndexPatternsContract), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract)+ 2 more | - | | | [replace_index_pattern_reference.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [replace_index_pattern_reference.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [replace_index_pattern_reference.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [replace_index_pattern_reference.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE) | - | | | [load_saved_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts#:~:text=ensureDefaultDataView), [load_saved_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts#:~:text=ensureDefaultDataView) | - | | | [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern), [use_dashboard_app_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern)+ 10 more | - | -| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 25 more | 8.1 | +| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 22 more | 8.1 | | | [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern), [use_dashboard_app_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern) | - | -| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 25 more | 8.1 | +| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 22 more | 8.1 | | | [load_saved_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts#:~:text=ensureDefaultDataView) | - | | | [saved_objects.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/saved_objects.ts#:~:text=SavedObjectSaveModal), [save_modal.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/top_nav/save_modal.tsx#:~:text=SavedObjectSaveModal), [save_modal.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/top_nav/save_modal.tsx#:~:text=SavedObjectSaveModal) | - | | | [saved_objects.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/saved_objects.ts#:~:text=SavedObjectLoader), [saved_dashboards.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboards.ts#:~:text=SavedObjectLoader), [saved_dashboards.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboards.ts#:~:text=SavedObjectLoader), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=SavedObjectLoader), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=SavedObjectLoader), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=SavedObjectLoader), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=SavedObjectLoader), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=SavedObjectLoader), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=SavedObjectLoader), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/url_generator.ts#:~:text=SavedObjectLoader)+ 3 more | - | @@ -147,13 +147,13 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField)+ 14 more | - | +| | [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField)+ 16 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternsContract), [create_search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/create_search_source.ts#:~:text=IndexPatternsContract), [create_search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/create_search_source.ts#:~:text=IndexPatternsContract), [search_source_service.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source_service.ts#:~:text=IndexPatternsContract), [search_source_service.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source_service.ts#:~:text=IndexPatternsContract), [esaggs_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts#:~:text=IndexPatternsContract), [esaggs_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/search/types.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/search/types.ts#:~:text=IndexPatternsContract), [create_search_source.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/create_search_source.test.ts#:~:text=IndexPatternsContract)+ 29 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/index.ts#:~:text=IndexPatternsService) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern)+ 92 more | - | +| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern)+ 94 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IFieldType), [date_histogram.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/buckets/date_histogram.ts#:~:text=IFieldType), [date_histogram.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/buckets/date_histogram.ts#:~:text=IFieldType), [filter_editor_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/ui/filter_bar/filter_editor/lib/filter_editor_utils.ts#:~:text=IFieldType), [filter_editor_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/ui/filter_bar/filter_editor/lib/filter_editor_utils.ts#:~:text=IFieldType), [filter_editor_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/ui/filter_bar/filter_editor/lib/filter_editor_utils.ts#:~:text=IFieldType), [generate_filters.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/query/filter_manager/lib/generate_filters.ts#:~:text=IFieldType), [generate_filters.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/query/filter_manager/lib/generate_filters.ts#:~:text=IFieldType), [generate_filters.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/query/filter_manager/lib/generate_filters.ts#:~:text=IFieldType), [generate_filters.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/query/filter_manager/lib/generate_filters.ts#:~:text=IFieldType)+ 36 more | 8.1 | -| | [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField)+ 14 more | - | +| | [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField)+ 16 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IIndexPattern), [get_time.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/query/timefilter/get_time.ts#:~:text=IIndexPattern), [get_time.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/query/timefilter/get_time.ts#:~:text=IIndexPattern), [get_time.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/query/timefilter/get_time.ts#:~:text=IIndexPattern), [get_time.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/query/timefilter/get_time.ts#:~:text=IIndexPattern), [normalize_sort_request.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/normalize_sort_request.ts#:~:text=IIndexPattern), [normalize_sort_request.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/normalize_sort_request.ts#:~:text=IIndexPattern), [normalize_sort_request.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/normalize_sort_request.ts#:~:text=IIndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IIndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IIndexPattern)+ 64 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternAttributes), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/index.ts#:~:text=IndexPatternAttributes), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternAttributes) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IIndexPatternsApiClient) | - | @@ -163,7 +163,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternsContract), [create_search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/create_search_source.ts#:~:text=IndexPatternsContract), [create_search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/create_search_source.ts#:~:text=IndexPatternsContract), [search_source_service.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source_service.ts#:~:text=IndexPatternsContract), [search_source_service.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source_service.ts#:~:text=IndexPatternsContract), [esaggs_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts#:~:text=IndexPatternsContract), [esaggs_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/search/types.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/search/types.ts#:~:text=IndexPatternsContract), [create_search_source.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/create_search_source.test.ts#:~:text=IndexPatternsContract)+ 29 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/index.ts#:~:text=IndexPatternsService) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternListItem), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/index.ts#:~:text=IndexPatternListItem) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern)+ 92 more | - | +| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern)+ 94 more | - | | | [aggs_service.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/search/aggs/aggs_service.ts#:~:text=indexPatternsServiceFactory), [esaggs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/search/expressions/esaggs.ts#:~:text=indexPatternsServiceFactory), [search_service.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/search/search_service.ts#:~:text=indexPatternsServiceFactory) | - | | | [data_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/utils/table_inspector_view/components/data_table.tsx#:~:text=executeTriggerActions), [data_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/utils/table_inspector_view/components/data_table.tsx#:~:text=executeTriggerActions) | - | @@ -214,29 +214,10 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternsContract), [utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.test.ts#:~:text=IndexPatternsContract), [utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.test.ts#:~:text=IndexPatternsContract), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternsContract), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternsContract), [utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.test.ts#:~:text=IndexPatternsContract), [utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.test.ts#:~:text=IndexPatternsContract)+ 2 more | - | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=IndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=IndexPattern)+ 82 more | - | -| | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts#:~:text=IndexPatternField), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField)+ 42 more | - | -| | [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx#:~:text=IIndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx#:~:text=IIndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx#:~:text=IIndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx#:~:text=IIndexPattern), [index_header.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx#:~:text=IIndexPattern), [index_header.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx#:~:text=IIndexPattern), [index_header.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts#:~:text=IIndexPattern), [index_header.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts#:~:text=IIndexPattern) | - | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IFieldType), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IFieldType), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IFieldType), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IFieldType) | 8.1 | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternListItem), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternListItem), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternListItem), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternListItem) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/constants/index.ts#:~:text=getKbnTypeNames), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/constants/index.ts#:~:text=getKbnTypeNames) | 8.1 | -| | [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=indexPatterns), [tabs.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/tabs.tsx#:~:text=indexPatterns), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=indexPatterns), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=indexPatterns), [edit_index_pattern_container.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx#:~:text=indexPatterns), [edit_index_pattern_container.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern_container.tsx#:~:text=indexPatterns), [create_edit_field.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx#:~:text=indexPatterns), [create_edit_field_container.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx#:~:text=indexPatterns), [create_edit_field_container.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field_container.tsx#:~:text=indexPatterns) | - | -| | [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=fieldFormats), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=fieldFormats), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=fieldFormats), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=fieldFormats), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=fieldFormats), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=fieldFormats) | - | -| | [test_script.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx#:~:text=esQuery), [test_script.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx#:~:text=esQuery), [test_script.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/components/scripting_help/test_script.tsx#:~:text=esQuery) | 8.1 | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IFieldType), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IFieldType), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IFieldType), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IFieldType), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IFieldType), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IFieldType), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IFieldType), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IFieldType) | 8.1 | -| | [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx#:~:text=IIndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx#:~:text=IIndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx#:~:text=IIndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/components/table/table.tsx#:~:text=IIndexPattern), [index_header.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx#:~:text=IIndexPattern), [index_header.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx#:~:text=IIndexPattern), [index_header.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts#:~:text=IIndexPattern), [index_header.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/edit_index_pattern/index_header/index_header.d.ts#:~:text=IIndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx#:~:text=IIndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/components/table/table.tsx#:~:text=IIndexPattern)+ 6 more | - | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternsContract), [utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.test.ts#:~:text=IndexPatternsContract), [utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.test.ts#:~:text=IndexPatternsContract), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternsContract), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternsContract), [utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.test.ts#:~:text=IndexPatternsContract), [utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.test.ts#:~:text=IndexPatternsContract)+ 2 more | - | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternListItem), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternListItem), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternListItem), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IndexPatternListItem), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPatternListItem)+ 6 more | - | -| | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts#:~:text=IndexPatternField), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField)+ 42 more | - | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=IndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=IndexPattern)+ 82 more | - | +| | [mocks.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/mocks.ts#:~:text=indexPatterns) | - | | | [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=removeScriptedField), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=removeScriptedField), [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=removeScriptedField), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=removeScriptedField) | - | | | [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields) | - | | | [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=getScriptedFields), [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=getScriptedFields) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/constants/index.ts#:~:text=getKbnTypeNames), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/constants/index.ts#:~:text=getKbnTypeNames) | 8.1 | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IFieldType), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IFieldType), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IFieldType), [utils.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/target/types/public/components/utils.d.ts#:~:text=IFieldType) | 8.1 | -| | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts#:~:text=IndexPatternField), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/types.ts#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [indexed_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts#:~:text=IndexPatternField)+ 16 more | - | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/utils.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [breadcrumbs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/breadcrumbs.ts#:~:text=IndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=IndexPattern), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=IndexPattern)+ 36 more | - | | | [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=removeScriptedField), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=removeScriptedField) | - | | | [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields) | - | | | [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=getScriptedFields) | - | @@ -294,13 +275,13 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [actions_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/actions_panel/actions_panel.tsx#:~:text=IndexPattern)+ 54 more | - | +| | [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [actions_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/actions_panel/actions_panel.tsx#:~:text=IndexPattern)+ 44 more | - | | | [field_data_row.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts#:~:text=IndexPatternField), [field_data_row.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts#:~:text=IndexPatternField), [field_types_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/util/field_types_utils.ts#:~:text=IndexPatternField), [field_types_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/util/field_types_utils.ts#:~:text=IndexPatternField), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPatternField), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPatternField), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPatternField), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPatternField), [grid_embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/grid_embeddable.tsx#:~:text=IndexPatternField), [grid_embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/grid_embeddable.tsx#:~:text=IndexPatternField)+ 20 more | - | | | [file_data_visualizer.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/file_data_visualizer/file_data_visualizer.tsx#:~:text=indexPatterns), [index_data_visualizer.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/index_data_visualizer.tsx#:~:text=indexPatterns) | - | | | [field_data_row.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts#:~:text=IndexPatternField), [field_data_row.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts#:~:text=IndexPatternField), [field_types_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/util/field_types_utils.ts#:~:text=IndexPatternField), [field_types_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/util/field_types_utils.ts#:~:text=IndexPatternField), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPatternField), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPatternField), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPatternField), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPatternField), [grid_embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/grid_embeddable.tsx#:~:text=IndexPatternField), [grid_embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/grid_embeddable.tsx#:~:text=IndexPatternField)+ 20 more | - | -| | [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [actions_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/actions_panel/actions_panel.tsx#:~:text=IndexPattern)+ 54 more | - | +| | [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [actions_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/actions_panel/actions_panel.tsx#:~:text=IndexPattern)+ 44 more | - | | | [field_data_row.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts#:~:text=IndexPatternField), [field_data_row.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts#:~:text=IndexPatternField), [field_types_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/util/field_types_utils.ts#:~:text=IndexPatternField), [field_types_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/util/field_types_utils.ts#:~:text=IndexPatternField), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPatternField), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPatternField), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPatternField), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPatternField), [grid_embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/grid_embeddable.tsx#:~:text=IndexPatternField), [grid_embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/embeddables/grid_embeddable/grid_embeddable.tsx#:~:text=IndexPatternField)+ 5 more | - | -| | [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [actions_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/actions_panel/actions_panel.tsx#:~:text=IndexPattern)+ 22 more | - | +| | [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [geo_point_content_with_map.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [index_based_expanded_row.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [saved_search_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [search_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/search_panel/search_panel.tsx#:~:text=IndexPattern), [actions_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/actions_panel/actions_panel.tsx#:~:text=IndexPattern)+ 17 more | - | @@ -309,6 +290,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| | | [use_discover_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts#:~:text=IndexPattern), [use_discover_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts#:~:text=IndexPattern) | - | +| | [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField), [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField) | - | | | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/layout/types.ts#:~:text=IndexPatternAttributes), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/layout/types.ts#:~:text=IndexPatternAttributes), [discover_main_app.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_app.tsx#:~:text=IndexPatternAttributes), [discover_main_app.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_app.tsx#:~:text=IndexPatternAttributes), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=IndexPatternAttributes), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=IndexPatternAttributes), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=IndexPatternAttributes) | - | | | [saved_search_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx#:~:text=create), [saved_search_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx#:~:text=create) | - | | | [anchor.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/context/services/anchor.ts#:~:text=fetch), [fetch_hits_in_interval.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/context/utils/fetch_hits_in_interval.ts#:~:text=fetch) | 8.1 | @@ -317,12 +299,14 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=esFilters), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=esFilters), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=esFilters), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=esFilters), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=esFilters), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=esFilters), [use_navigation_props.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/utils/use_navigation_props.tsx#:~:text=esFilters), [use_navigation_props.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/utils/use_navigation_props.tsx#:~:text=esFilters), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=esFilters), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=esFilters)+ 17 more | 8.1 | | | [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=Filter), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=Filter), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=Filter), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=Filter), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=Filter), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter)+ 24 more | 8.1 | | | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/layout/types.ts#:~:text=IndexPatternAttributes), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/layout/types.ts#:~:text=IndexPatternAttributes), [discover_main_app.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_app.tsx#:~:text=IndexPatternAttributes), [discover_main_app.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_app.tsx#:~:text=IndexPatternAttributes), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=IndexPatternAttributes), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=IndexPatternAttributes), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=IndexPatternAttributes), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/layout/types.ts#:~:text=IndexPatternAttributes), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/layout/types.ts#:~:text=IndexPatternAttributes), [discover_main_app.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_app.tsx#:~:text=IndexPatternAttributes)+ 4 more | - | +| | [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField), [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField) | - | | | [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=ensureDefaultDataView), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=ensureDefaultDataView) | - | | | [use_discover_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts#:~:text=IndexPattern), [use_discover_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts#:~:text=IndexPattern) | - | | | [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=Filter), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=Filter), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=Filter), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=Filter), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=Filter), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter)+ 24 more | 8.1 | | | [saved_search_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx#:~:text=create), [saved_search_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx#:~:text=create) | - | | | [anchor.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/context/services/anchor.ts#:~:text=fetch), [fetch_hits_in_interval.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/context/utils/fetch_hits_in_interval.ts#:~:text=fetch) | 8.1 | | | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/layout/types.ts#:~:text=IndexPatternAttributes), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/layout/types.ts#:~:text=IndexPatternAttributes), [discover_main_app.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_app.tsx#:~:text=IndexPatternAttributes), [discover_main_app.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_app.tsx#:~:text=IndexPatternAttributes), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=IndexPatternAttributes), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=IndexPatternAttributes), [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=IndexPatternAttributes) | - | +| | [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [discover_field_visualize_inner.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/discover_field_visualize_inner.tsx#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField), [fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/components/sidebar/__stories__/fields.ts#:~:text=IndexPatternField) | - | | | [use_discover_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts#:~:text=IndexPattern) | - | | | [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=Filter), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=Filter), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/url_generator.ts#:~:text=Filter), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=Filter), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=Filter), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/locator.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter), [discover_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/services/discover_state.ts#:~:text=Filter)+ 24 more | 8.1 | | | [discover_main_route.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/discover/public/application/main/discover_main_route.tsx#:~:text=ensureDefaultDataView) | - | @@ -507,7 +491,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField)+ 8 more | - | | | [datapanel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#:~:text=indexPatterns), [datapanel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#:~:text=indexPatterns), [datapanel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#:~:text=indexPatterns), [datapanel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#:~:text=indexPatterns), [indexpattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/indexpattern.tsx#:~:text=indexPatterns), [lens_top_nav.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/app_plugin/lens_top_nav.tsx#:~:text=indexPatterns), [lens_top_nav.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/app_plugin/lens_top_nav.tsx#:~:text=indexPatterns), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/plugin.ts#:~:text=indexPatterns), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/plugin.ts#:~:text=indexPatterns) | - | | | [ranges.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/ranges/ranges.tsx#:~:text=fieldFormats), [droppable.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/droppable/droppable.test.ts#:~:text=fieldFormats) | - | -| | [save_modal_container.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx#:~:text=esFilters), [save_modal_container.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/app_plugin/save_modal_container.tsx#:~:text=esFilters), [data_plugin_mock.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/mocks/data_plugin_mock.ts#:~:text=esFilters), [data_plugin_mock.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/mocks/data_plugin_mock.ts#:~:text=esFilters) | 8.1 | | | [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPatternsContract), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPatternsContract), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPatternsContract), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPatternsContract), [embeddable_factory.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable_factory.ts#:~:text=IndexPatternsContract), [embeddable_factory.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable_factory.ts#:~:text=IndexPatternsContract), [loader.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts#:~:text=IndexPatternsContract), [loader.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts#:~:text=IndexPatternsContract)+ 22 more | - | | | [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField)+ 8 more | - | | | [existing_fields.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.ts#:~:text=IndexPatternsService), [existing_fields.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.ts#:~:text=IndexPatternsService), [existing_fields.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.ts#:~:text=IndexPatternsService), [existing_fields.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.ts#:~:text=IndexPatternsService) | - | @@ -576,17 +559,28 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit) | - | | | [kibana_server_services.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/kibana_server_services.ts#:~:text=indexPatternsServiceFactory), [indexing_routes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/indexing_routes.ts#:~:text=indexPatternsServiceFactory) | - | | | [maps_list_view.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/list_page/maps_list_view.tsx#:~:text=settings), [maps_list_view.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/list_page/maps_list_view.tsx#:~:text=settings), [maps_list_view.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/list_page/maps_list_view.tsx#:~:text=settings) | - | -| | [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/plugin.ts#:~:text=license%24) | - | | | [render_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/render_app.tsx#:~:text=onAppLeave), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=onAppLeave), [map_page.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_page.tsx#:~:text=onAppLeave), [render_app.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/render_app.d.ts#:~:text=onAppLeave), [map_page.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/routes/map_page/map_page.d.ts#:~:text=onAppLeave), [map_app.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts#:~:text=onAppLeave) | - | +## mapsEms + +| Deprecated API | Reference location(s) | Remove By | +| ---------------|-----------|-----------| +| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/maps_ems/server/index.ts#:~:text=license%24) | - | +| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/maps_ems/server/index.ts#:~:text=refresh) | - | + + + ## ml | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [main_tabs.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/navigation_menu/main_tabs.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [anomaly_detection_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/anomaly_detection_panel.tsx#:~:text=getUrl), [use_view_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_view/use_view_action.tsx#:~:text=getUrl), [use_map_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_map/use_map_action.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/analytics_panel/actions.tsx#:~:text=getUrl), [models_list.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx#:~:text=getUrl)+ 15 more | - | -| | [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [main_tabs.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/navigation_menu/main_tabs.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [anomaly_detection_panel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/anomaly_detection_panel.tsx#:~:text=getUrl), [use_view_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_view/use_view_action.tsx#:~:text=getUrl), [use_map_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_map/use_map_action.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/analytics_panel/actions.tsx#:~:text=getUrl), [models_list.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx#:~:text=getUrl)+ 15 more | - | +| | [anomaly_source_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/maps/anomaly_source_field.ts#:~:text=Filter), [anomaly_source_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/maps/anomaly_source_field.ts#:~:text=Filter) | 8.1 | +| | [anomaly_source_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/maps/anomaly_source_field.ts#:~:text=Filter), [anomaly_source_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/maps/anomaly_source_field.ts#:~:text=Filter) | 8.1 | +| | [anomaly_source_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/maps/anomaly_source_field.ts#:~:text=Filter), [anomaly_source_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/maps/anomaly_source_field.ts#:~:text=Filter) | 8.1 | +| | [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [side_nav.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/ml_page/side_nav.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [anomaly_detection_empty_state.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/jobs_list/components/anomaly_detection_empty_state/anomaly_detection_empty_state.tsx#:~:text=getUrl), [use_view_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_view/use_view_action.tsx#:~:text=getUrl), [use_map_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_map/use_map_action.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/analytics_panel/actions.tsx#:~:text=getUrl), [models_list.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx#:~:text=getUrl)+ 18 more | - | +| | [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [side_nav.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/ml_page/side_nav.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [anomaly_detection_empty_state.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/jobs_list/components/anomaly_detection_empty_state/anomaly_detection_empty_state.tsx#:~:text=getUrl), [use_view_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_view/use_view_action.tsx#:~:text=getUrl), [use_map_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_map/use_map_action.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/analytics_panel/actions.tsx#:~:text=getUrl), [models_list.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx#:~:text=getUrl)+ 18 more | - | | | [check_license.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/license/check_license.tsx#:~:text=license%24), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/plugin.ts#:~:text=license%24) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/server/plugin.ts#:~:text=license%24), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/server/plugin.ts#:~:text=license%24) | - | | | [annotations.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/server/routes/annotations.ts#:~:text=authc) | - | @@ -617,13 +611,11 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| | | [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract) | - | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [default_configs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/default_configs.ts#:~:text=IndexPattern)+ 40 more | - | -| | [observability_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts#:~:text=IndexPatternSpec), [observability_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts#:~:text=IndexPatternSpec) | - | -| | [observability_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts#:~:text=indexPatterns), [observability_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts#:~:text=indexPatterns), [observability_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts#:~:text=indexPatterns), [alerts_page.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/pages/alerts/containers/alerts_page/alerts_page.tsx#:~:text=indexPatterns), [observability_index_patterns.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts#:~:text=indexPatterns), [observability_index_patterns.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts#:~:text=indexPatterns), [observability_index_patterns.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts#:~:text=indexPatterns), [observability_index_patterns.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts#:~:text=indexPatterns), [observability_index_patterns.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts#:~:text=indexPatterns), [observability_index_patterns.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.test.ts#:~:text=indexPatterns)+ 5 more | - | -| | [observability_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts#:~:text=IndexPatternSpec), [observability_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts#:~:text=IndexPatternSpec), [observability_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts#:~:text=IndexPatternSpec), [observability_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/utils/observability_index_patterns.ts#:~:text=IndexPatternSpec) | - | +| | [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [default_configs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/default_configs.ts#:~:text=IndexPattern)+ 34 more | - | +| | [observability_data_views.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.ts#:~:text=indexPatterns), [alerts_page.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/pages/alerts/containers/alerts_page/alerts_page.tsx#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns)+ 3 more | - | | | [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract) | - | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [default_configs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/default_configs.ts#:~:text=IndexPattern)+ 40 more | - | -| | [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [default_configs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/default_configs.ts#:~:text=IndexPattern)+ 15 more | - | +| | [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [default_configs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/default_configs.ts#:~:text=IndexPattern)+ 34 more | - | +| | [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [default_configs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/default_configs.ts#:~:text=IndexPattern)+ 12 more | - | | | [use_discover_link.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_discover_link.tsx#:~:text=urlGenerator) | - | @@ -665,17 +657,8 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern) | - | | | [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=fieldsFromSource), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=fieldsFromSource) | - | -| | [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern) | - | | | [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=fieldsFromSource), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=fieldsFromSource) | - | -| | [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=IndexPattern) | - | -| | [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/plugin.ts#:~:text=fieldFormats) | - | -| | [ilm_policy_link.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/public/management/components/ilm_policy_link.tsx#:~:text=getUrl) | - | -| | [ilm_policy_link.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/public/management/components/ilm_policy_link.tsx#:~:text=getUrl) | - | -| | [get_csv_panel_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx#:~:text=license%24), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/public/share_context_menu/index.ts#:~:text=license%24), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/public/management/index.ts#:~:text=license%24), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/public/plugin.ts#:~:text=license%24), [get_csv_panel_action.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.test.ts#:~:text=license%24) | - | -| | [core.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/core.ts#:~:text=license%24), [reporting_usage_collector.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/usage/reporting_usage_collector.ts#:~:text=license%24) | - | -| | [get_user.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/routes/lib/get_user.ts#:~:text=authc) | - | @@ -778,7 +761,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [middleware.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/middleware.ts#:~:text=indexPatterns), [dependencies_start_mock.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/mock/endpoint/dependencies_start_mock.ts#:~:text=indexPatterns) | - | | | [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [fleet_integration.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/fleet_integration/fleet_integration.test.ts#:~:text=mode), [fleet_integration.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/fleet_integration/fleet_integration.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [isolation.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/routes/actions/isolation.test.ts#:~:text=mode), [isolation.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/routes/actions/isolation.test.ts#:~:text=mode)+ 2 more | - | | | [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [fleet_integration.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/fleet_integration/fleet_integration.test.ts#:~:text=mode), [fleet_integration.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/fleet_integration/fleet_integration.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [isolation.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/routes/actions/isolation.test.ts#:~:text=mode), [isolation.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/routes/actions/isolation.test.ts#:~:text=mode)+ 2 more | - | -| | [request_context_factory.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/request_context_factory.ts#:~:text=authc), [create_signals_migration_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/signals/create_signals_migration_route.ts#:~:text=authc), [delete_signals_migration_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/signals/delete_signals_migration_route.ts#:~:text=authc), [finalize_signals_migration_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/signals/finalize_signals_migration_route.ts#:~:text=authc), [open_close_signals_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/signals/open_close_signals_route.ts#:~:text=authc), [preview_rules_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/rules/preview_rules_route.ts#:~:text=authc), [common.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/timeline/utils/common.ts#:~:text=authc) | - | +| | [request_context_factory.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/request_context_factory.ts#:~:text=authc), [request_context_factory.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/request_context_factory.ts#:~:text=authc), [create_signals_migration_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/signals/create_signals_migration_route.ts#:~:text=authc), [delete_signals_migration_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/signals/delete_signals_migration_route.ts#:~:text=authc), [finalize_signals_migration_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/signals/finalize_signals_migration_route.ts#:~:text=authc), [open_close_signals_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/signals/open_close_signals_route.ts#:~:text=authc), [preview_rules_route.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/rules/preview_rules_route.ts#:~:text=authc), [common.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/lib/timeline/utils/common.ts#:~:text=authc) | - | | | [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/index.tsx#:~:text=onAppLeave) | - | | | [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/flyout/index.tsx#:~:text=AppLeaveHandler), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/timelines/components/flyout/index.tsx#:~:text=AppLeaveHandler), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/template_wrapper/bottom_bar/index.tsx#:~:text=AppLeaveHandler), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/template_wrapper/bottom_bar/index.tsx#:~:text=AppLeaveHandler), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/template_wrapper/index.tsx#:~:text=AppLeaveHandler), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/template_wrapper/index.tsx#:~:text=AppLeaveHandler), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/index.tsx#:~:text=AppLeaveHandler), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/home/index.tsx#:~:text=AppLeaveHandler), [routes.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/routes.tsx#:~:text=AppLeaveHandler), [routes.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/app/routes.tsx#:~:text=AppLeaveHandler)+ 3 more | - | @@ -859,10 +842,10 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern) | - | +| | [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern) | - | | | [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=indexPatterns) | - | -| | [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern) | - | -| | [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern) | - | +| | [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern) | - | +| | [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [update_kuery_string.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern), [uptime_index_pattern_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx#:~:text=IndexPattern) | - | @@ -905,9 +888,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | ---------------|-----------|-----------| | | [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/plugin.ts#:~:text=indexPatterns) | - | -| | [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams) | 8.1 | | | [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [plugin_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/helpers/plugin_services.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract), [timelion_expression_input_helpers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_expression_input_helpers.test.ts#:~:text=IndexPatternsContract) | - | -| | [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_renderer.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams), [timelion_vis_component.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/public/legacy/timelion_vis_component.tsx#:~:text=RangeFilterParams) | 8.1 | | | [run.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timelion/server/routes/run.ts#:~:text=indexPatternsServiceFactory) | - | @@ -917,22 +898,19 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService)+ 44 more | - | -| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 36 more | - | +| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 48 more | - | | | [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField)+ 2 more | - | -| | [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=indexPatterns), [combo_box_select.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/combo_box_select.tsx#:~:text=indexPatterns), [query_bar_wrapper.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/query_bar_wrapper.tsx#:~:text=indexPatterns), [annotation_row.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/annotation_row.tsx#:~:text=indexPatterns), [metrics_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/metrics_type.ts#:~:text=indexPatterns), [convert_series_to_datatable.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts#:~:text=indexPatterns), [timeseries_visualization.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/timeseries_visualization.tsx#:~:text=indexPatterns) | - | +| | [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=indexPatterns), [combo_box_select.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/combo_box_select.tsx#:~:text=indexPatterns), [query_bar_wrapper.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/query_bar_wrapper.tsx#:~:text=indexPatterns), [annotation_row.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/annotation_row.tsx#:~:text=indexPatterns), [metrics_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/metrics_type.ts#:~:text=indexPatterns), [convert_series_to_datatable.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts#:~:text=indexPatterns), [timeseries_visualization.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/timeseries_visualization.tsx#:~:text=indexPatterns), [metrics_type.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/metrics_type.test.ts#:~:text=indexPatterns) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/plugin.ts#:~:text=fieldFormats) | - | -| | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts#:~:text=EsQueryConfig), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts#:~:text=EsQueryConfig) | 8.1 | | | [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField)+ 2 more | - | | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService)+ 44 more | - | -| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 36 more | - | +| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 48 more | - | | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=getNonScriptedFields), [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=getNonScriptedFields), [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=getNonScriptedFields), [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=getNonScriptedFields) | - | -| | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts#:~:text=EsQueryConfig), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts#:~:text=EsQueryConfig) | 8.1 | | | [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField) | - | -| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 13 more | - | +| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 19 more | - | | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService)+ 44 more | - | | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=getNonScriptedFields), [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=getNonScriptedFields) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/plugin.ts#:~:text=fieldFormats) | - | -| | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts#:~:text=EsQueryConfig), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/vis_data/request_processors/table/types.ts#:~:text=EsQueryConfig) | 8.1 | | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=getNonScriptedFields), [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=getNonScriptedFields) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/plugin.ts#:~:text=indexPatternsServiceFactory) | - | @@ -975,31 +953,19 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [visualize_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx#:~:text=IndexPattern)+ 14 more | - | +| | [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [visualize_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx#:~:text=IndexPattern)+ 20 more | - | | | [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=toJSON) | 8.1 | -| | [visualize_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx#:~:text=esFilters), [visualize_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx#:~:text=esFilters) | 8.1 | +| | [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx#:~:text=indexPatterns), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx#:~:text=indexPatterns), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/plugin.ts#:~:text=indexPatterns), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/plugin.ts#:~:text=indexPatterns) | - | | | [controls_references.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/utils/saved_visualization_references/controls_references.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [controls_references.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/utils/saved_visualization_references/controls_references.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [timeseries_references.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/utils/saved_visualization_references/timeseries_references.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [timeseries_references.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/utils/saved_visualization_references/timeseries_references.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [visualization_saved_object_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [visualization_saved_object_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [visualization_saved_object_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [visualization_saved_object_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [visualization_saved_object_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [controls_references.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/utils/saved_visualization_references/controls_references.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE)+ 8 more | - | -| | [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [visualize_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx#:~:text=IndexPattern)+ 14 more | - | +| | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/plugin.ts#:~:text=ensureDefaultDataView), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/plugin.ts#:~:text=ensureDefaultDataView) | - | +| | [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [visualize_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx#:~:text=IndexPattern)+ 20 more | - | +| | [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/common/locator.ts#:~:text=isFilterPinned), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/common/locator.ts#:~:text=isFilterPinned), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/common/locator.ts#:~:text=isFilterPinned) | 8.1 | | | [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=toJSON) | 8.1 | -| | [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [visualize_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx#:~:text=IndexPattern)+ 2 more | - | +| | [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [base_vis_type.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [vis.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/vis_types/types.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [create_vis_embeddable_from_object.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/create_vis_embeddable_from_object.ts#:~:text=IndexPattern), [visualize_embeddable.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx#:~:text=IndexPattern)+ 5 more | - | +| | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/plugin.ts#:~:text=ensureDefaultDataView) | - | | | [display_duplicate_title_confirm_modal.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/utils/saved_objects_utils/display_duplicate_title_confirm_modal.ts#:~:text=SavedObject), [display_duplicate_title_confirm_modal.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/utils/saved_objects_utils/display_duplicate_title_confirm_modal.ts#:~:text=SavedObject), [check_for_duplicate_title.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/utils/saved_objects_utils/check_for_duplicate_title.ts#:~:text=SavedObject), [check_for_duplicate_title.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/utils/saved_objects_utils/check_for_duplicate_title.ts#:~:text=SavedObject) | - | - - - -## visualize - -| Deprecated API | Reference location(s) | Remove By | -| ---------------|-----------|-----------| -| | [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern) | - | -| | [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=indexPatterns), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=indexPatterns), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/plugin.ts#:~:text=indexPatterns), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/plugin.ts#:~:text=indexPatterns) | - | -| | [use_visualize_app_state.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/utils/use/use_visualize_app_state.tsx#:~:text=esFilters), [use_visualize_app_state.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/utils/use/use_visualize_app_state.tsx#:~:text=esFilters), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/plugin.ts#:~:text=esFilters), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/plugin.ts#:~:text=esFilters), [get_visualize_list_item_link.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/utils/get_visualize_list_item_link.test.ts#:~:text=esFilters), [get_visualize_list_item_link.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/utils/get_visualize_list_item_link.test.ts#:~:text=esFilters) | 8.1 | -| | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/plugin.ts#:~:text=ensureDefaultDataView), [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/plugin.ts#:~:text=ensureDefaultDataView) | - | -| | [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern) | - | -| | [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/common/locator.ts#:~:text=isFilterPinned), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/common/locator.ts#:~:text=isFilterPinned), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/common/locator.ts#:~:text=isFilterPinned) | 8.1 | -| | [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern), [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=IndexPattern) | - | -| | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/plugin.ts#:~:text=ensureDefaultDataView) | - | -| | [visualize_listing.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_listing.tsx#:~:text=settings), [visualize_listing.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_listing.tsx#:~:text=settings) | - | -| | [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_top_nav.tsx#:~:text=onAppLeave), [visualize_editor_common.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/components/visualize_editor_common.tsx#:~:text=onAppLeave), [app.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/app.tsx#:~:text=onAppLeave), [index.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/public/application/index.tsx#:~:text=onAppLeave), [app.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/target/types/public/application/app.d.ts#:~:text=onAppLeave), [index.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/target/types/public/application/index.d.ts#:~:text=onAppLeave), [visualize_editor_common.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/target/types/public/application/components/visualize_editor_common.d.ts#:~:text=onAppLeave), [visualize_top_nav.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualize/target/types/public/application/components/visualize_top_nav.d.ts#:~:text=onAppLeave) | - | +| | [visualize_listing.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/visualize_app/components/visualize_listing.tsx#:~:text=settings), [visualize_listing.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/visualize_app/components/visualize_listing.tsx#:~:text=settings) | - | +| | [visualize_top_nav.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx#:~:text=onAppLeave), [visualize_editor_common.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/visualize_app/components/visualize_editor_common.tsx#:~:text=onAppLeave), [app.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/visualize_app/app.tsx#:~:text=onAppLeave), [index.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/public/visualize_app/index.tsx#:~:text=onAppLeave), [app.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/visualize_app/app.d.ts#:~:text=onAppLeave), [index.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/visualize_app/index.d.ts#:~:text=onAppLeave), [visualize_editor_common.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/visualize_app/components/visualize_editor_common.d.ts#:~:text=onAppLeave), [visualize_top_nav.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/visualizations/target/types/public/visualize_app/components/visualize_top_nav.d.ts#:~:text=onAppLeave) | - | diff --git a/api_docs/dev_tools.json b/api_docs/dev_tools.devdocs.json similarity index 100% rename from api_docs/dev_tools.json rename to api_docs/dev_tools.devdocs.json diff --git a/api_docs/dev_tools.mdx b/api_docs/dev_tools.mdx index 3f73439370a268..95b90a3248ef1b 100644 --- a/api_docs/dev_tools.mdx +++ b/api_docs/dev_tools.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'devTools'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import devToolsObj from './dev_tools.json'; +import devToolsObj from './dev_tools.devdocs.json'; diff --git a/api_docs/discover.json b/api_docs/discover.devdocs.json similarity index 100% rename from api_docs/discover.json rename to api_docs/discover.devdocs.json diff --git a/api_docs/discover.mdx b/api_docs/discover.mdx index a3d11bf30fac45..ed763c223de62b 100644 --- a/api_docs/discover.mdx +++ b/api_docs/discover.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discover'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import discoverObj from './discover.json'; +import discoverObj from './discover.devdocs.json'; This plugin contains the Discover application and the saved search embeddable. diff --git a/api_docs/discover_enhanced.json b/api_docs/discover_enhanced.devdocs.json similarity index 100% rename from api_docs/discover_enhanced.json rename to api_docs/discover_enhanced.devdocs.json diff --git a/api_docs/discover_enhanced.mdx b/api_docs/discover_enhanced.mdx index 5bf63f70393f6e..d0de6f5358f560 100644 --- a/api_docs/discover_enhanced.mdx +++ b/api_docs/discover_enhanced.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discoverEnhanced'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import discoverEnhancedObj from './discover_enhanced.json'; +import discoverEnhancedObj from './discover_enhanced.devdocs.json'; diff --git a/api_docs/elastic_apm_synthtrace.json b/api_docs/elastic_apm_synthtrace.devdocs.json similarity index 100% rename from api_docs/elastic_apm_synthtrace.json rename to api_docs/elastic_apm_synthtrace.devdocs.json diff --git a/api_docs/elastic_apm_synthtrace.mdx b/api_docs/elastic_apm_synthtrace.mdx index 8c17d89db41d44..ff32bcd2695216 100644 --- a/api_docs/elastic_apm_synthtrace.mdx +++ b/api_docs/elastic_apm_synthtrace.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@elastic/apm-synthtrace'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import elasticApmSynthtraceObj from './elastic_apm_synthtrace.json'; +import elasticApmSynthtraceObj from './elastic_apm_synthtrace.devdocs.json'; Elastic APM trace data generator diff --git a/api_docs/elastic_datemath.json b/api_docs/elastic_datemath.devdocs.json similarity index 100% rename from api_docs/elastic_datemath.json rename to api_docs/elastic_datemath.devdocs.json diff --git a/api_docs/elastic_datemath.mdx b/api_docs/elastic_datemath.mdx index 0a6589a5bbed07..13d610d79d7409 100644 --- a/api_docs/elastic_datemath.mdx +++ b/api_docs/elastic_datemath.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@elastic/datemath'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import elasticDatemathObj from './elastic_datemath.json'; +import elasticDatemathObj from './elastic_datemath.devdocs.json'; elasticsearch datemath parser, used in kibana diff --git a/api_docs/embeddable.json b/api_docs/embeddable.devdocs.json similarity index 96% rename from api_docs/embeddable.json rename to api_docs/embeddable.devdocs.json index 42311baf4e4a05..3f01a77bfec814 100644 --- a/api_docs/embeddable.json +++ b/api_docs/embeddable.devdocs.json @@ -262,6 +262,26 @@ { "parentPluginId": "embeddable", "id": "def-public.AddPanelAction.Unnamed.$6", + "type": "Object", + "tags": [], + "label": "theme", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "public", + "docId": "kibCorePluginApi", + "section": "def-public.ThemeServiceStart", + "text": "ThemeServiceStart" + } + ], + "path": "src/plugins/embeddable/public/lib/panel/panel_header/panel_actions/add_panel/add_panel_action.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "embeddable", + "id": "def-public.AddPanelAction.Unnamed.$7", "type": "Function", "tags": [], "label": "reportUiCounter", @@ -698,83 +718,6 @@ ], "returnComment": [] }, - { - "parentPluginId": "embeddable", - "id": "def-public.AttributeService.getExplicitInputFromEmbeddable", - "type": "Function", - "tags": [], - "label": "getExplicitInputFromEmbeddable", - "description": [], - "signature": [ - "(embeddable: ", - { - "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" - }, - ">) => ValType | RefType" - ], - "path": "src/plugins/embeddable/public/lib/attribute_service/attribute_service.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "embeddable", - "id": "def-public.AttributeService.getExplicitInputFromEmbeddable.$1", - "type": "Object", - "tags": [], - "label": "embeddable", - "description": [], - "signature": [ - { - "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" - }, - ">" - ], - "path": "src/plugins/embeddable/public/lib/attribute_service/attribute_service.tsx", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, { "parentPluginId": "embeddable", "id": "def-public.AttributeService.getInputAsValueType", @@ -1536,6 +1479,36 @@ ], "returnComment": [] }, + { + "parentPluginId": "embeddable", + "id": "def-public.Container.getExplicitInputIsEqual", + "type": "Function", + "tags": [], + "label": "getExplicitInputIsEqual", + "description": [], + "signature": [ + "(lastInput: TContainerInput) => Promise" + ], + "path": "src/plugins/embeddable/public/lib/containers/container.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.Container.getExplicitInputIsEqual.$1", + "type": "Uncategorized", + "tags": [], + "label": "lastInput", + "description": [], + "signature": [ + "TContainerInput" + ], + "path": "src/plugins/embeddable/public/lib/containers/container.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, { "parentPluginId": "embeddable", "id": "def-public.Container.createNewPanelState", @@ -2497,6 +2470,66 @@ "children": [], "returnComment": [] }, + { + "parentPluginId": "embeddable", + "id": "def-public.Embeddable.getExplicitInputIsEqual", + "type": "Function", + "tags": [], + "label": "getExplicitInputIsEqual", + "description": [], + "signature": [ + "(lastExplicitInput: Partial) => Promise" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/embeddable.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.Embeddable.getExplicitInputIsEqual.$1", + "type": "Object", + "tags": [], + "label": "lastExplicitInput", + "description": [], + "signature": [ + "Partial" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/embeddable.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "embeddable", + "id": "def-public.Embeddable.getExplicitInput", + "type": "Function", + "tags": [], + "label": "getExplicitInput", + "description": [], + "signature": [ + "() => TEmbeddableInput" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/embeddable.tsx", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "embeddable", + "id": "def-public.Embeddable.getPersistableInput", + "type": "Function", + "tags": [], + "label": "getPersistableInput", + "description": [], + "signature": [ + "() => TEmbeddableInput" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/embeddable.tsx", + "deprecated": false, + "children": [], + "returnComment": [] + }, { "parentPluginId": "embeddable", "id": "def-public.Embeddable.getInput", @@ -4274,6 +4307,83 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "embeddable", + "id": "def-public.genericEmbeddableInputIsEqual", + "type": "Function", + "tags": [], + "label": "genericEmbeddableInputIsEqual", + "description": [], + "signature": [ + "(currentInput: Partial<", + { + "pluginId": "embeddable", + "scope": "common", + "docId": "kibEmbeddablePluginApi", + "section": "def-common.EmbeddableInput", + "text": "EmbeddableInput" + }, + ">, lastInput: Partial<", + { + "pluginId": "embeddable", + "scope": "common", + "docId": "kibEmbeddablePluginApi", + "section": "def-common.EmbeddableInput", + "text": "EmbeddableInput" + }, + ">) => boolean" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.genericEmbeddableInputIsEqual.$1", + "type": "Object", + "tags": [], + "label": "currentInput", + "description": [], + "signature": [ + "Partial<", + { + "pluginId": "embeddable", + "scope": "common", + "docId": "kibEmbeddablePluginApi", + "section": "def-common.EmbeddableInput", + "text": "EmbeddableInput" + }, + ">" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "embeddable", + "id": "def-public.genericEmbeddableInputIsEqual.$2", + "type": "Object", + "tags": [], + "label": "lastInput", + "description": [], + "signature": [ + "Partial<", + { + "pluginId": "embeddable", + "scope": "common", + "docId": "kibEmbeddablePluginApi", + "section": "def-common.EmbeddableInput", + "text": "EmbeddableInput" + }, + ">" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "embeddable", "id": "def-public.isContextMenuTriggerContext", @@ -4883,6 +4993,61 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "embeddable", + "id": "def-public.omitGenericEmbeddableInput", + "type": "Function", + "tags": [], + "label": "omitGenericEmbeddableInput", + "description": [], + "signature": [ + " = Partial<", + { + "pluginId": "embeddable", + "scope": "common", + "docId": "kibEmbeddablePluginApi", + "section": "def-common.EmbeddableInput", + "text": "EmbeddableInput" + }, + ">>(input: I) => Omit" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.omitGenericEmbeddableInput.$1", + "type": "Uncategorized", + "tags": [], + "label": "input", + "description": [], + "signature": [ + "I" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "embeddable", "id": "def-public.openAddPanelFlyout", @@ -5041,7 +5206,15 @@ }, "; SavedObjectFinder: React.ComponentType; showCreateNewMenu?: boolean | undefined; reportUiCounter?: ((appName: string, type: ", "UiCounterMetricType", - ", eventNames: string | string[], count?: number | undefined) => void) | undefined; }) => ", + ", eventNames: string | string[], count?: number | undefined) => void) | undefined; theme: ", + { + "pluginId": "core", + "scope": "public", + "docId": "kibCorePluginApi", + "section": "def-public.ThemeServiceStart", + "text": "ThemeServiceStart" + }, + "; }) => ", { "pluginId": "core", "scope": "public", @@ -5326,6 +5499,25 @@ ], "path": "src/plugins/embeddable/public/lib/panel/panel_header/panel_actions/add_panel/open_add_panel_flyout.tsx", "deprecated": false + }, + { + "parentPluginId": "embeddable", + "id": "def-public.openAddPanelFlyout.$1.theme", + "type": "Object", + "tags": [], + "label": "theme", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "public", + "docId": "kibCorePluginApi", + "section": "def-public.ThemeServiceStart", + "text": "ThemeServiceStart" + } + ], + "path": "src/plugins/embeddable/public/lib/panel/panel_header/panel_actions/add_panel/open_add_panel_flyout.tsx", + "deprecated": false } ] } @@ -7543,6 +7735,40 @@ "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/plugins/embeddable/public/lib/embeddables/i_embeddable.ts", + "deprecated": 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/plugins/embeddable/public/lib/embeddables/i_embeddable.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, { "parentPluginId": "embeddable", "id": "def-public.IEmbeddable.getOutput", @@ -7823,6 +8049,38 @@ "deprecated": false, "children": [], "returnComment": [] + }, + { + "parentPluginId": "embeddable", + "id": "def-public.IEmbeddable.getExplicitInputIsEqual", + "type": "Function", + "tags": [], + "label": "getExplicitInputIsEqual", + "description": [ + "\nUsed to diff explicit embeddable input" + ], + "signature": [ + "(lastInput: Partial) => Promise" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/i_embeddable.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "embeddable", + "id": "def-public.IEmbeddable.getExplicitInputIsEqual.$1", + "type": "Object", + "tags": [], + "label": "lastInput", + "description": [], + "signature": [ + "Partial" + ], + "path": "src/plugins/embeddable/public/lib/embeddables/i_embeddable.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] } ], "initialIsOpen": false @@ -8342,7 +8600,7 @@ "section": "def-public.EmbeddableFactory", "text": "EmbeddableFactory" }, - ", \"create\" | \"type\" | \"isEditable\" | \"getDisplayName\"> & Partial, \"type\" | \"create\" | \"isEditable\" | \"getDisplayName\"> & Partial Promise" + "(aliasName: string, currentAliasData: ", + "ParsedIndexAlias", + "[]) => Promise" ], "path": "x-pack/plugins/event_log/server/es/cluster_client_adapter.ts", "deprecated": false, @@ -475,7 +475,7 @@ "id": "def-server.ClusterClientAdapter.setIndexAliasToHidden.$1", "type": "string", "tags": [], - "label": "indexName", + "label": "aliasName", "description": [], "signature": [ "string" @@ -487,12 +487,13 @@ { "parentPluginId": "eventLog", "id": "def-server.ClusterClientAdapter.setIndexAliasToHidden.$2", - "type": "Object", + "type": "Array", "tags": [], - "label": "currentAliases", + "label": "currentAliasData", "description": [], "signature": [ - "IndicesGetAliasIndexAliases" + "ParsedIndexAlias", + "[]" ], "path": "x-pack/plugins/event_log/server/es/cluster_client_adapter.ts", "deprecated": false, @@ -892,7 +893,7 @@ "label": "data", "description": [], "signature": [ - "(Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; id?: string | undefined; type?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ id?: string | undefined; type?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; id?: string | undefined; type?: string[] | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; original?: string | undefined; severity?: number | undefined; hash?: string | undefined; provider?: string | undefined; created?: string | undefined; dataset?: string | undefined; duration?: number | undefined; ingested?: string | undefined; module?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; } & {}> | undefined)[]" + "(Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ id?: string | undefined; scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; reporting?: Readonly<{ id?: string | undefined; jobType?: string | undefined; byteSize?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; original?: string | undefined; duration?: number | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; hash?: string | undefined; dataset?: string | undefined; severity?: number | undefined; created?: string | undefined; ingested?: string | undefined; module?: string | undefined; provider?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; } & {}> | undefined)[]" ], "path": "x-pack/plugins/event_log/server/es/cluster_client_adapter.ts", "deprecated": false @@ -911,7 +912,7 @@ "label": "IEvent", "description": [], "signature": [ - "DeepPartial | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; id?: string | undefined; type?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ id?: string | undefined; type?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; id?: string | undefined; type?: string[] | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; original?: string | undefined; severity?: number | undefined; hash?: string | undefined; provider?: string | undefined; created?: string | undefined; dataset?: string | undefined; duration?: number | undefined; ingested?: string | undefined; module?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; } & {}>>> | undefined" + "DeepPartial | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ id?: string | undefined; scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; reporting?: Readonly<{ id?: string | undefined; jobType?: string | undefined; byteSize?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; original?: string | undefined; duration?: number | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; hash?: string | undefined; dataset?: string | undefined; severity?: number | undefined; created?: string | undefined; ingested?: string | undefined; module?: string | undefined; provider?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; } & {}>>> | undefined" ], "path": "x-pack/plugins/event_log/generated/schemas.ts", "deprecated": false, @@ -925,7 +926,7 @@ "label": "IValidatedEvent", "description": [], "signature": [ - "Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; id?: string | undefined; type?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ id?: string | undefined; type?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; id?: string | undefined; type?: string[] | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; original?: string | undefined; severity?: number | undefined; hash?: string | undefined; provider?: string | undefined; created?: string | undefined; dataset?: string | undefined; duration?: number | undefined; ingested?: string | undefined; module?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; } & {}> | undefined" + "Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ id?: string | undefined; scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; reporting?: Readonly<{ id?: string | undefined; jobType?: string | undefined; byteSize?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; original?: string | undefined; duration?: number | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; hash?: string | undefined; dataset?: string | undefined; severity?: number | undefined; created?: string | undefined; ingested?: string | undefined; module?: string | undefined; provider?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; } & {}> | undefined" ], "path": "x-pack/plugins/event_log/generated/schemas.ts", "deprecated": false, diff --git a/api_docs/event_log.mdx b/api_docs/event_log.mdx index e3ecf2ad811900..552c90307b02b2 100644 --- a/api_docs/event_log.mdx +++ b/api_docs/event_log.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventLog'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import eventLogObj from './event_log.json'; +import eventLogObj from './event_log.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting- | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 82 | 0 | 82 | 5 | +| 82 | 0 | 82 | 6 | ## Server diff --git a/api_docs/expression_error.json b/api_docs/expression_error.devdocs.json similarity index 100% rename from api_docs/expression_error.json rename to api_docs/expression_error.devdocs.json diff --git a/api_docs/expression_error.mdx b/api_docs/expression_error.mdx index 31953010f7716c..54fbc95643d7df 100644 --- a/api_docs/expression_error.mdx +++ b/api_docs/expression_error.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionError'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionErrorObj from './expression_error.json'; +import expressionErrorObj from './expression_error.devdocs.json'; Adds 'error' renderer to expressions diff --git a/api_docs/expression_gauge.json b/api_docs/expression_gauge.devdocs.json similarity index 99% rename from api_docs/expression_gauge.json rename to api_docs/expression_gauge.devdocs.json index f9a6e27d13844b..ec2eaf45caf049 100644 --- a/api_docs/expression_gauge.json +++ b/api_docs/expression_gauge.devdocs.json @@ -453,7 +453,7 @@ "label": "continuity", "description": [], "signature": [ - "\"above\" | \"below\" | \"all\" | \"none\" | undefined" + "\"above\" | \"below\" | \"none\" | \"all\" | undefined" ], "path": "src/plugins/chart_expressions/expression_gauge/common/types/expression_renderers.ts", "deprecated": false @@ -1023,7 +1023,7 @@ "label": "RequiredPaletteParamTypes", "description": [], "signature": [ - "{ name: string; reverse: boolean; rangeType: \"number\" | \"percent\"; continuity: \"above\" | \"below\" | \"all\" | \"none\"; progression: \"fixed\"; rangeMin: number; rangeMax: number; stops: ", + "{ name: string; reverse: boolean; rangeType: \"number\" | \"percent\"; continuity: \"above\" | \"below\" | \"none\" | \"all\"; progression: \"fixed\"; rangeMin: number; rangeMax: number; stops: ", { "pluginId": "expressionGauge", "scope": "common", diff --git a/api_docs/expression_gauge.mdx b/api_docs/expression_gauge.mdx index 0f977ccddb109f..e2fd4ce7a12c6e 100644 --- a/api_docs/expression_gauge.mdx +++ b/api_docs/expression_gauge.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionGauge'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionGaugeObj from './expression_gauge.json'; +import expressionGaugeObj from './expression_gauge.devdocs.json'; Expression Gauge plugin adds a `gauge` renderer and function to the expression plugin. The renderer will display the `gauge` chart. diff --git a/api_docs/expression_heatmap.json b/api_docs/expression_heatmap.devdocs.json similarity index 86% rename from api_docs/expression_heatmap.json rename to api_docs/expression_heatmap.devdocs.json index b74a5201425456..ccf99a399585ee 100644 --- a/api_docs/expression_heatmap.json +++ b/api_docs/expression_heatmap.devdocs.json @@ -211,7 +211,7 @@ "label": "continuity", "description": [], "signature": [ - "\"above\" | \"below\" | \"all\" | \"none\" | undefined" + "\"above\" | \"below\" | \"none\" | \"all\" | undefined" ], "path": "src/plugins/chart_expressions/expression_heatmap/common/types/expression_renderers.ts", "deprecated": false @@ -849,7 +849,7 @@ "label": "RequiredPaletteParamTypes", "description": [], "signature": [ - "{ name: string; reverse: boolean; rangeType: \"number\" | \"percent\"; continuity: \"above\" | \"below\" | \"all\" | \"none\"; progression: \"fixed\"; rangeMin: number; rangeMax: number; stops: ", + "{ name: string; reverse: boolean; rangeType: \"number\" | \"percent\"; continuity: \"above\" | \"below\" | \"none\" | \"all\"; progression: \"fixed\"; rangeMin: number; rangeMax: number; stops: ", { "pluginId": "expressionHeatmap", "scope": "common", @@ -916,6 +916,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"heatmap_grid\"" + ], "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", "deprecated": false }, @@ -1050,102 +1053,6 @@ } ] }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.cellHeight", - "type": "Object", - "tags": [], - "label": "cellHeight", - "description": [], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.cellHeight.types", - "type": "Array", - "tags": [], - "label": "types", - "description": [], - "signature": [ - "\"number\"[]" - ], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.cellHeight.help", - "type": "string", - "tags": [], - "label": "help", - "description": [], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.cellHeight.required", - "type": "boolean", - "tags": [], - "label": "required", - "description": [], - "signature": [ - "false" - ], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - } - ] - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.cellWidth", - "type": "Object", - "tags": [], - "label": "cellWidth", - "description": [], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.cellWidth.types", - "type": "Array", - "tags": [], - "label": "types", - "description": [], - "signature": [ - "\"number\"[]" - ], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.cellWidth.help", - "type": "string", - "tags": [], - "label": "help", - "description": [], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.cellWidth.required", - "type": "boolean", - "tags": [], - "label": "required", - "description": [], - "signature": [ - "false" - ], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - } - ] - }, { "parentPluginId": "expressionHeatmap", "id": "def-common.heatmapGridConfig.args.isCellLabelVisible", @@ -1220,102 +1127,6 @@ } ] }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.yAxisLabelWidth", - "type": "Object", - "tags": [], - "label": "yAxisLabelWidth", - "description": [], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.yAxisLabelWidth.types", - "type": "Array", - "tags": [], - "label": "types", - "description": [], - "signature": [ - "\"number\"[]" - ], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.yAxisLabelWidth.help", - "type": "string", - "tags": [], - "label": "help", - "description": [], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.yAxisLabelWidth.required", - "type": "boolean", - "tags": [], - "label": "required", - "description": [], - "signature": [ - "false" - ], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - } - ] - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.yAxisLabelColor", - "type": "Object", - "tags": [], - "label": "yAxisLabelColor", - "description": [], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.yAxisLabelColor.types", - "type": "Array", - "tags": [], - "label": "types", - "description": [], - "signature": [ - "\"string\"[]" - ], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.yAxisLabelColor.help", - "type": "string", - "tags": [], - "label": "help", - "description": [], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionHeatmap", - "id": "def-common.heatmapGridConfig.args.yAxisLabelColor.required", - "type": "boolean", - "tags": [], - "label": "required", - "description": [], - "signature": [ - "false" - ], - "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", - "deprecated": false - } - ] - }, { "parentPluginId": "expressionHeatmap", "id": "def-common.heatmapGridConfig.args.isXAxisLabelVisible", @@ -1365,7 +1176,7 @@ "signature": [ "(input: null, args: ", "HeatmapGridConfig", - ") => { strokeWidth?: number | undefined; strokeColor?: string | undefined; cellHeight?: number | undefined; cellWidth?: number | undefined; isCellLabelVisible: boolean; isYAxisLabelVisible: boolean; yAxisLabelWidth?: number | undefined; yAxisLabelColor?: string | undefined; isXAxisLabelVisible: boolean; type: \"heatmap_grid\"; }" + ") => { strokeWidth?: number | undefined; strokeColor?: string | undefined; isCellLabelVisible: boolean; isYAxisLabelVisible: boolean; isXAxisLabelVisible: boolean; type: \"heatmap_grid\"; }" ], "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts", "deprecated": false, @@ -1447,6 +1258,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"heatmap_legend\"" + ], "path": "src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_legend.ts", "deprecated": false }, diff --git a/api_docs/expression_heatmap.mdx b/api_docs/expression_heatmap.mdx index 1b0aa6fa9b34d8..8c428f4ebe563a 100644 --- a/api_docs/expression_heatmap.mdx +++ b/api_docs/expression_heatmap.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionHeatmap'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionHeatmapObj from './expression_heatmap.json'; +import expressionHeatmapObj from './expression_heatmap.devdocs.json'; Expression Heatmap plugin adds a `heatmap` renderer and function to the expression plugin. The renderer will display the `heatmap` chart. @@ -18,7 +18,7 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 115 | 0 | 111 | 3 | +| 99 | 0 | 95 | 3 | ## Client diff --git a/api_docs/expression_image.json b/api_docs/expression_image.devdocs.json similarity index 100% rename from api_docs/expression_image.json rename to api_docs/expression_image.devdocs.json diff --git a/api_docs/expression_image.mdx b/api_docs/expression_image.mdx index 42253760950399..420184f8b75fe2 100644 --- a/api_docs/expression_image.mdx +++ b/api_docs/expression_image.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionImage'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionImageObj from './expression_image.json'; +import expressionImageObj from './expression_image.devdocs.json'; Adds 'image' function and renderer to expressions diff --git a/api_docs/expression_metric.json b/api_docs/expression_metric.devdocs.json similarity index 97% rename from api_docs/expression_metric.json rename to api_docs/expression_metric.devdocs.json index 724bbffc3a84e4..d62a18a552498f 100644 --- a/api_docs/expression_metric.json +++ b/api_docs/expression_metric.devdocs.json @@ -186,7 +186,7 @@ "label": "metricFunction", "description": [], "signature": [ - "() => { name: \"metric\"; aliases: never[]; type: string; inputTypes: (\"number\" | \"string\" | \"null\")[]; help: string; args: { label: { types: \"string\"[]; aliases: string[]; help: string; default: string; }; labelFont: { types: \"style\"[]; help: string; default: string; }; metricFont: { types: \"style\"[]; help: string; default: string; }; metricFormat: { types: \"string\"[]; aliases: string[]; help: string; }; }; fn: (input: ", + "() => { name: \"metric\"; aliases: never[]; type: \"render\"; inputTypes: (\"number\" | \"string\" | \"null\")[]; help: string; args: { label: { types: \"string\"[]; aliases: string[]; help: string; default: string; }; labelFont: { types: \"style\"[]; help: string; default: string; }; metricFont: { types: \"style\"[]; help: string; default: string; }; metricFormat: { types: \"string\"[]; aliases: string[]; help: string; }; }; fn: (input: ", { "pluginId": "expressionMetric", "scope": "common", diff --git a/api_docs/expression_metric.mdx b/api_docs/expression_metric.mdx index d3f4695b698d0b..6093c5bfcde1a9 100644 --- a/api_docs/expression_metric.mdx +++ b/api_docs/expression_metric.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetric'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionMetricObj from './expression_metric.json'; +import expressionMetricObj from './expression_metric.devdocs.json'; Adds 'metric' function and renderer to expressions diff --git a/api_docs/expression_metric_vis.json b/api_docs/expression_metric_vis.devdocs.json similarity index 100% rename from api_docs/expression_metric_vis.json rename to api_docs/expression_metric_vis.devdocs.json diff --git a/api_docs/expression_metric_vis.mdx b/api_docs/expression_metric_vis.mdx index 9382a561374b21..d445cda2d232c5 100644 --- a/api_docs/expression_metric_vis.mdx +++ b/api_docs/expression_metric_vis.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetricVis'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionMetricVisObj from './expression_metric_vis.json'; +import expressionMetricVisObj from './expression_metric_vis.devdocs.json'; Expression MetricVis plugin adds a `metric` renderer and function to the expression plugin. The renderer will display the `metric` chart. diff --git a/api_docs/expression_pie.json b/api_docs/expression_pie.devdocs.json similarity index 100% rename from api_docs/expression_pie.json rename to api_docs/expression_pie.devdocs.json diff --git a/api_docs/expression_pie.mdx b/api_docs/expression_pie.mdx index 67167c15a236c9..7d684f0bab50fc 100644 --- a/api_docs/expression_pie.mdx +++ b/api_docs/expression_pie.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionPie'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionPieObj from './expression_pie.json'; +import expressionPieObj from './expression_pie.devdocs.json'; Expression Pie plugin adds a `pie` renderer and function to the expression plugin. The renderer will display the `pie` chart. diff --git a/api_docs/expression_repeat_image.json b/api_docs/expression_repeat_image.devdocs.json similarity index 96% rename from api_docs/expression_repeat_image.json rename to api_docs/expression_repeat_image.devdocs.json index 14a4066628a973..95160192c412c7 100644 --- a/api_docs/expression_repeat_image.json +++ b/api_docs/expression_repeat_image.devdocs.json @@ -186,7 +186,7 @@ "label": "repeatImageFunction", "description": [], "signature": [ - "() => { name: \"repeatImage\"; aliases: never[]; type: string; inputTypes: \"number\"[]; help: string; args: { emptyImage: { types: (\"string\" | \"null\")[]; help: string; default: null; }; image: { types: (\"string\" | \"null\")[]; help: string; default: null; }; max: { types: (\"number\" | \"null\")[]; help: string; default: number; }; size: { types: \"number\"[]; default: number; help: string; }; }; fn: (count: number, args: Arguments) => Promise<{ type: \"render\"; as: string; value: { image: string | null; emptyImage: string | null; size: number; max: number | null; count: number; }; }>; }" + "() => { name: \"repeatImage\"; aliases: never[]; type: \"render\"; inputTypes: \"number\"[]; help: string; args: { emptyImage: { types: (\"string\" | \"null\")[]; help: string; default: null; }; image: { types: (\"string\" | \"null\")[]; help: string; default: null; }; max: { types: (\"number\" | \"null\")[]; help: string; default: number; }; size: { types: \"number\"[]; default: number; help: string; }; }; fn: (count: number, args: Arguments) => Promise<{ type: \"render\"; as: string; value: { image: string | null; emptyImage: string | null; size: number; max: number | null; count: number; }; }>; }" ], "path": "src/plugins/expression_repeat_image/common/expression_functions/repeat_image_function.ts", "deprecated": false, diff --git a/api_docs/expression_repeat_image.mdx b/api_docs/expression_repeat_image.mdx index 634bde9393a957..0b8b2df34aa66a 100644 --- a/api_docs/expression_repeat_image.mdx +++ b/api_docs/expression_repeat_image.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRepeatImage'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionRepeatImageObj from './expression_repeat_image.json'; +import expressionRepeatImageObj from './expression_repeat_image.devdocs.json'; Adds 'repeatImage' function and renderer to expressions diff --git a/api_docs/expression_reveal_image.json b/api_docs/expression_reveal_image.devdocs.json similarity index 96% rename from api_docs/expression_reveal_image.json rename to api_docs/expression_reveal_image.devdocs.json index c736a3b7c69aec..f0f4f50143cf49 100644 --- a/api_docs/expression_reveal_image.json +++ b/api_docs/expression_reveal_image.devdocs.json @@ -174,7 +174,7 @@ "label": "revealImageFunction", "description": [], "signature": [ - "() => { name: \"revealImage\"; aliases: never[]; type: string; inputTypes: \"number\"[]; help: string; args: { image: { types: (\"string\" | \"null\")[]; help: string; default: null; }; emptyImage: { types: (\"string\" | \"null\")[]; help: string; default: null; }; origin: { types: \"string\"[]; help: string; default: string; options: ", + "() => { name: \"revealImage\"; aliases: never[]; type: \"render\"; inputTypes: \"number\"[]; help: string; args: { image: { types: (\"string\" | \"null\")[]; help: string; default: null; }; emptyImage: { types: (\"string\" | \"null\")[]; help: string; default: null; }; origin: { types: \"string\"[]; help: string; default: string; options: ", "Origin", "[]; }; }; fn: (percent: number, args: Arguments) => Promise<{ type: \"render\"; as: string; value: { image: string; emptyImage: string; origin: ", "Origin", diff --git a/api_docs/expression_reveal_image.mdx b/api_docs/expression_reveal_image.mdx index cf75e686ad4243..53a3a39558ed43 100644 --- a/api_docs/expression_reveal_image.mdx +++ b/api_docs/expression_reveal_image.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRevealImage'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionRevealImageObj from './expression_reveal_image.json'; +import expressionRevealImageObj from './expression_reveal_image.devdocs.json'; Adds 'revealImage' function and renderer to expressions diff --git a/api_docs/expression_shape.json b/api_docs/expression_shape.devdocs.json similarity index 100% rename from api_docs/expression_shape.json rename to api_docs/expression_shape.devdocs.json diff --git a/api_docs/expression_shape.mdx b/api_docs/expression_shape.mdx index bc5f27850fb23c..72c8f7063a4146 100644 --- a/api_docs/expression_shape.mdx +++ b/api_docs/expression_shape.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionShape'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionShapeObj from './expression_shape.json'; +import expressionShapeObj from './expression_shape.devdocs.json'; Adds 'shape' function and renderer to expressions diff --git a/api_docs/expression_tagcloud.json b/api_docs/expression_tagcloud.devdocs.json similarity index 100% rename from api_docs/expression_tagcloud.json rename to api_docs/expression_tagcloud.devdocs.json diff --git a/api_docs/expression_tagcloud.mdx b/api_docs/expression_tagcloud.mdx index 4c373851fa4c23..c8502e3247063c 100644 --- a/api_docs/expression_tagcloud.mdx +++ b/api_docs/expression_tagcloud.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionTagcloud'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionTagcloudObj from './expression_tagcloud.json'; +import expressionTagcloudObj from './expression_tagcloud.devdocs.json'; Expression Tagcloud plugin adds a `tagcloud` renderer and function to the expression plugin. The renderer will display the `Wordcloud` chart. diff --git a/api_docs/expressions.json b/api_docs/expressions.devdocs.json similarity index 99% rename from api_docs/expressions.json rename to api_docs/expressions.devdocs.json index 76dcc47168d8b4..453e06676238ad 100644 --- a/api_docs/expressions.json +++ b/api_docs/expressions.devdocs.json @@ -1606,7 +1606,7 @@ { "parentPluginId": "expressions", "id": "def-public.Executor.inject.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -1675,7 +1675,7 @@ { "parentPluginId": "expressions", "id": "def-public.Executor.extract.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -1719,7 +1719,7 @@ { "parentPluginId": "expressions", "id": "def-public.Executor.telemetry.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -2224,16 +2224,26 @@ { "parentPluginId": "expressions", "id": "def-public.ExpressionFunction.migrations", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "migrations", "description": [], "signature": [ - "{ [key: string]: (state: ", - "SerializableRecord", - ") => ", - "SerializableRecord", - "; }" + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + }, + " | ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.GetMigrationFunctionObjectFn", + "text": "GetMigrationFunctionObjectFn" + } ], "path": "src/plugins/expressions/common/expression_functions/expression_function.ts", "deprecated": false @@ -4661,7 +4671,7 @@ { "parentPluginId": "expressions", "id": "def-public.ExpressionsService.telemetry.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "state", "description": [ @@ -4733,7 +4743,7 @@ { "parentPluginId": "expressions", "id": "def-public.ExpressionsService.extract.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "state", "description": [ @@ -4792,7 +4802,7 @@ { "parentPluginId": "expressions", "id": "def-public.ExpressionsService.inject.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "state", "description": [ @@ -6259,7 +6269,7 @@ { "parentPluginId": "expressions", "id": "def-public.formatExpression.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [ @@ -6768,7 +6778,7 @@ { "parentPluginId": "expressions", "id": "def-public.ExecutionParams.ast", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -6851,12 +6861,14 @@ { "parentPluginId": "expressions", "id": "def-public.ExecutionState.ast", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], "signature": [ - "{ type: \"expression\"; chain: ", + "Omit<", + "Ast", + ", \"chain\"> & { chain: ", { "pluginId": "expressions", "scope": "common", @@ -7644,7 +7656,7 @@ "ObservableLike", " ? ", "UnwrapObservable", - " : any> | ", + " : Awaited> | ", { "pluginId": "expressions", "scope": "common", @@ -7816,7 +7828,7 @@ }, { "plugin": "canvas", - "path": "x-pack/plugins/canvas/public/functions/filters.ts" + "path": "x-pack/plugins/canvas/common/functions/filters.ts" }, { "plugin": "canvas", @@ -10670,7 +10682,9 @@ "label": "ExpressionAstExpression", "description": [], "signature": [ - "{ type: \"expression\"; chain: ", + "Omit<", + "Ast", + ", \"chain\"> & { chain: ", { "pluginId": "expressions", "scope": "common", @@ -10692,7 +10706,9 @@ "label": "ExpressionAstFunction", "description": [], "signature": [ - "{ type: \"function\"; function: string; arguments: Record & { arguments: Record ? ", "UnwrapObservable", - " : any) extends string ? \"string\" : (T extends ", + " : Awaited) extends string ? \"string\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends boolean ? \"boolean\" : (T extends ", + " : Awaited) extends boolean ? \"boolean\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends number ? \"number\" : (T extends ", + " : Awaited) extends number ? \"number\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends null ? \"null\" : (T extends ", + " : Awaited) extends null ? \"null\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends { type: string; } ? ({ type: string; } & (T extends ", + " : Awaited) extends { type: string; } ? ({ type: string; } & (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any))[\"type\"] : never" + " : Awaited))[\"type\"] : never" ], "path": "src/plugins/expressions/common/types/common.ts", "deprecated": false, @@ -12974,7 +12990,7 @@ { "parentPluginId": "expressions", "id": "def-server.Executor.inject.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -13043,7 +13059,7 @@ { "parentPluginId": "expressions", "id": "def-server.Executor.extract.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -13087,7 +13103,7 @@ { "parentPluginId": "expressions", "id": "def-server.Executor.telemetry.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -13592,16 +13608,26 @@ { "parentPluginId": "expressions", "id": "def-server.ExpressionFunction.migrations", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "migrations", "description": [], "signature": [ - "{ [key: string]: (state: ", - "SerializableRecord", - ") => ", - "SerializableRecord", - "; }" + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + }, + " | ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.GetMigrationFunctionObjectFn", + "text": "GetMigrationFunctionObjectFn" + } ], "path": "src/plugins/expressions/common/expression_functions/expression_function.ts", "deprecated": false @@ -15915,7 +15941,7 @@ { "parentPluginId": "expressions", "id": "def-server.formatExpression.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [ @@ -16484,7 +16510,7 @@ { "parentPluginId": "expressions", "id": "def-server.ExecutionParams.ast", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -16567,12 +16593,14 @@ { "parentPluginId": "expressions", "id": "def-server.ExecutionState.ast", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], "signature": [ - "{ type: \"expression\"; chain: ", + "Omit<", + "Ast", + ", \"chain\"> & { chain: ", { "pluginId": "expressions", "scope": "common", @@ -17331,7 +17359,7 @@ "ObservableLike", " ? ", "UnwrapObservable", - " : any> | ", + " : Awaited> | ", { "pluginId": "expressions", "scope": "common", @@ -17503,7 +17531,7 @@ }, { "plugin": "canvas", - "path": "x-pack/plugins/canvas/public/functions/filters.ts" + "path": "x-pack/plugins/canvas/common/functions/filters.ts" }, { "plugin": "canvas", @@ -19307,7 +19335,9 @@ "label": "ExpressionAstExpression", "description": [], "signature": [ - "{ type: \"expression\"; chain: ", + "Omit<", + "Ast", + ", \"chain\"> & { chain: ", { "pluginId": "expressions", "scope": "common", @@ -19329,7 +19359,9 @@ "label": "ExpressionAstFunction", "description": [], "signature": [ - "{ type: \"function\"; function: string; arguments: Record & { arguments: Record ? ", "UnwrapObservable", - " : any) extends string ? \"string\" : (T extends ", + " : Awaited) extends string ? \"string\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends boolean ? \"boolean\" : (T extends ", + " : Awaited) extends boolean ? \"boolean\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends number ? \"number\" : (T extends ", + " : Awaited) extends number ? \"number\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends null ? \"null\" : (T extends ", + " : Awaited) extends null ? \"null\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends { type: string; } ? ({ type: string; } & (T extends ", + " : Awaited) extends { type: string; } ? ({ type: string; } & (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any))[\"type\"] : never" + " : Awaited))[\"type\"] : never" ], "path": "src/plugins/expressions/common/types/common.ts", "deprecated": false, @@ -21501,7 +21533,7 @@ { "parentPluginId": "expressions", "id": "def-common.Executor.inject.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -21570,7 +21602,7 @@ { "parentPluginId": "expressions", "id": "def-common.Executor.extract.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -21614,7 +21646,7 @@ { "parentPluginId": "expressions", "id": "def-common.Executor.telemetry.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -22119,16 +22151,26 @@ { "parentPluginId": "expressions", "id": "def-common.ExpressionFunction.migrations", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "migrations", "description": [], "signature": [ - "{ [key: string]: (state: ", - "SerializableRecord", - ") => ", - "SerializableRecord", - "; }" + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + }, + " | ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.GetMigrationFunctionObjectFn", + "text": "GetMigrationFunctionObjectFn" + } ], "path": "src/plugins/expressions/common/expression_functions/expression_function.ts", "deprecated": false @@ -23666,7 +23708,7 @@ { "parentPluginId": "expressions", "id": "def-common.ExpressionsService.telemetry.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "state", "description": [ @@ -23738,7 +23780,7 @@ { "parentPluginId": "expressions", "id": "def-common.ExpressionsService.extract.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "state", "description": [ @@ -23797,7 +23839,7 @@ { "parentPluginId": "expressions", "id": "def-common.ExpressionsService.inject.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "state", "description": [ @@ -25647,7 +25689,7 @@ { "parentPluginId": "expressions", "id": "def-common.formatExpression.$1", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [ @@ -27250,7 +27292,7 @@ { "parentPluginId": "expressions", "id": "def-common.ExecutionParams.ast", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], @@ -27567,12 +27609,14 @@ { "parentPluginId": "expressions", "id": "def-common.ExecutionState.ast", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "ast", "description": [], "signature": [ - "{ type: \"expression\"; chain: ", + "Omit<", + "Ast", + ", \"chain\"> & { chain: ", { "pluginId": "expressions", "scope": "common", @@ -28795,7 +28839,7 @@ "ObservableLike", " ? ", "UnwrapObservable", - " : any> | ", + " : Awaited> | ", { "pluginId": "expressions", "scope": "common", @@ -28967,7 +29011,7 @@ }, { "plugin": "canvas", - "path": "x-pack/plugins/canvas/public/functions/filters.ts" + "path": "x-pack/plugins/canvas/common/functions/filters.ts" }, { "plugin": "canvas", @@ -32221,7 +32265,9 @@ "label": "ExpressionAstExpression", "description": [], "signature": [ - "{ type: \"expression\"; chain: ", + "Omit<", + "Ast", + ", \"chain\"> & { chain: ", { "pluginId": "expressions", "scope": "common", @@ -32243,7 +32289,9 @@ "label": "ExpressionAstFunction", "description": [], "signature": [ - "{ type: \"function\"; function: string; arguments: Record & { arguments: Record ? ", "UnwrapObservable", - " : any) extends string ? \"string\" : (T extends ", + " : Awaited) extends string ? \"string\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends boolean ? \"boolean\" : (T extends ", + " : Awaited) extends boolean ? \"boolean\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends number ? \"number\" : (T extends ", + " : Awaited) extends number ? \"number\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends null ? \"null\" : (T extends ", + " : Awaited) extends null ? \"null\" : (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any) extends { type: string; } ? ({ type: string; } & (T extends ", + " : Awaited) extends { type: string; } ? ({ type: string; } & (T extends ", "ObservableLike", " ? ", "UnwrapObservable", - " : any))[\"type\"] : never" + " : Awaited))[\"type\"] : never" ], "path": "src/plugins/expressions/common/types/common.ts", "deprecated": false, @@ -33938,6 +33986,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"datatable\"" + ], "path": "src/plugins/expressions/common/expression_functions/specs/create_table.ts", "deprecated": false }, @@ -34257,6 +34308,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"datatable\"" + ], "path": "src/plugins/expressions/common/expression_functions/specs/cumulative_sum.ts", "deprecated": false }, @@ -35015,6 +35069,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"datatable\"" + ], "path": "src/plugins/expressions/common/expression_functions/specs/derivative.ts", "deprecated": false }, @@ -35769,6 +35826,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"style\"" + ], "path": "src/plugins/expressions/common/expression_functions/specs/font.ts", "deprecated": false }, @@ -37261,6 +37321,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"datatable\"" + ], "path": "src/plugins/expressions/common/expression_functions/specs/math_column.ts", "deprecated": false }, @@ -37646,6 +37709,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"datatable\"" + ], "path": "src/plugins/expressions/common/expression_functions/specs/moving_average.ts", "deprecated": false }, @@ -38602,6 +38668,9 @@ "tags": [], "label": "type", "description": [], + "signature": [ + "\"datatable\"" + ], "path": "src/plugins/expressions/common/expression_functions/specs/overall_metric.ts", "deprecated": false }, @@ -40788,7 +40857,7 @@ "label": "types", "description": [], "signature": [ - "string[]" + "\"string\"[]" ], "path": "src/plugins/expressions/common/expression_functions/specs/var_set.ts", "deprecated": false diff --git a/api_docs/expressions.mdx b/api_docs/expressions.mdx index ff6d90b6c5e1a0..853b1d48f80dd8 100644 --- a/api_docs/expressions.mdx +++ b/api_docs/expressions.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressions'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import expressionsObj from './expressions.json'; +import expressionsObj from './expressions.devdocs.json'; Adds expression runtime to Kibana diff --git a/api_docs/features.json b/api_docs/features.devdocs.json similarity index 99% rename from api_docs/features.json rename to api_docs/features.devdocs.json index 4f64a0a1f01897..bb5503a83a2ba1 100644 --- a/api_docs/features.json +++ b/api_docs/features.devdocs.json @@ -61,7 +61,7 @@ "section": "def-common.SubFeaturePrivilegeGroupType", "text": "SubFeaturePrivilegeGroupType" }, - "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"all\" | \"none\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; app?: readonly string[] | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }>[] | undefined; privilegesTooltip?: string | undefined; reserved?: Readonly<{ description: string; privileges: readonly Readonly<{ id: string; privilege: Readonly<{ excludeFromBasePrivileges?: boolean | undefined; requireAllSpaces?: boolean | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; api?: readonly string[] | undefined; app?: readonly string[] | undefined; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; ui: readonly string[]; }>; }>[]; }> | undefined; }>" + "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"none\" | \"all\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; app?: readonly string[] | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }>[] | undefined; privilegesTooltip?: string | undefined; reserved?: Readonly<{ description: string; privileges: readonly Readonly<{ id: string; privilege: Readonly<{ excludeFromBasePrivileges?: boolean | undefined; requireAllSpaces?: boolean | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; api?: readonly string[] | undefined; app?: readonly string[] | undefined; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; ui: readonly string[]; }>; }>[]; }> | undefined; }>" ], "path": "x-pack/plugins/features/common/kibana_feature.ts", "deprecated": false, @@ -854,7 +854,7 @@ "\nDenotes which Primary Feature Privilege this sub-feature privilege should be included in.\n`read` is also included in `all` automatically." ], "signature": [ - "\"all\" | \"none\" | \"read\"" + "\"none\" | \"all\" | \"read\"" ], "path": "x-pack/plugins/features/common/sub_feature.ts", "deprecated": false @@ -1121,7 +1121,7 @@ "section": "def-common.SubFeaturePrivilegeGroupType", "text": "SubFeaturePrivilegeGroupType" }, - "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"all\" | \"none\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; app?: readonly string[] | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }>[] | undefined; privilegesTooltip?: string | undefined; reserved?: Readonly<{ description: string; privileges: readonly Readonly<{ id: string; privilege: Readonly<{ excludeFromBasePrivileges?: boolean | undefined; requireAllSpaces?: boolean | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; api?: readonly string[] | undefined; app?: readonly string[] | undefined; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; ui: readonly string[]; }>; }>[]; }> | undefined; }>" + "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"none\" | \"all\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; app?: readonly string[] | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }>[] | undefined; privilegesTooltip?: string | undefined; reserved?: Readonly<{ description: string; privileges: readonly Readonly<{ id: string; privilege: Readonly<{ excludeFromBasePrivileges?: boolean | undefined; requireAllSpaces?: boolean | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; api?: readonly string[] | undefined; app?: readonly string[] | undefined; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; ui: readonly string[]; }>; }>[]; }> | undefined; }>" ], "path": "x-pack/plugins/features/common/kibana_feature.ts", "deprecated": false, @@ -2578,7 +2578,7 @@ "section": "def-common.SubFeaturePrivilegeGroupType", "text": "SubFeaturePrivilegeGroupType" }, - "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"all\" | \"none\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; app?: readonly string[] | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }>[] | undefined; privilegesTooltip?: string | undefined; reserved?: Readonly<{ description: string; privileges: readonly Readonly<{ id: string; privilege: Readonly<{ excludeFromBasePrivileges?: boolean | undefined; requireAllSpaces?: boolean | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; api?: readonly string[] | undefined; app?: readonly string[] | undefined; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; ui: readonly string[]; }>; }>[]; }> | undefined; }>" + "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"none\" | \"all\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; app?: readonly string[] | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }>[] | undefined; privilegesTooltip?: string | undefined; reserved?: Readonly<{ description: string; privileges: readonly Readonly<{ id: string; privilege: Readonly<{ excludeFromBasePrivileges?: boolean | undefined; requireAllSpaces?: boolean | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; api?: readonly string[] | undefined; app?: readonly string[] | undefined; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; ui: readonly string[]; }>; }>[]; }> | undefined; }>" ], "path": "x-pack/plugins/features/common/kibana_feature.ts", "deprecated": false, @@ -2811,7 +2811,7 @@ "section": "def-common.SubFeaturePrivilegeGroupType", "text": "SubFeaturePrivilegeGroupType" }, - "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"all\" | \"none\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; app?: readonly string[] | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }>" + "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"none\" | \"all\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; app?: readonly string[] | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }>" ], "path": "x-pack/plugins/features/common/sub_feature.ts", "deprecated": false, @@ -2846,7 +2846,7 @@ "section": "def-common.SubFeaturePrivilegeGroupType", "text": "SubFeaturePrivilegeGroupType" }, - "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"all\" | \"none\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; app?: readonly string[] | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]" + "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"none\" | \"all\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; app?: readonly string[] | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]" ], "path": "x-pack/plugins/features/common/sub_feature.ts", "deprecated": false @@ -2867,7 +2867,7 @@ "section": "def-common.SubFeaturePrivilegeGroupType", "text": "SubFeaturePrivilegeGroupType" }, - "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"all\" | \"none\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; app?: readonly string[] | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }" + "; privileges: readonly Readonly<{ id: string; name: string; includeIn: \"none\" | \"all\" | \"read\"; minimumLicense?: \"basic\" | \"standard\" | \"gold\" | \"platinum\" | \"enterprise\" | \"trial\" | undefined; disabled?: boolean | undefined; management?: Readonly<{ [x: string]: readonly string[]; }> | undefined; catalogue?: readonly string[] | undefined; ui: readonly string[]; alerting?: Readonly<{ rule?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; alert?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; }> | undefined; cases?: Readonly<{ all?: readonly string[] | undefined; read?: readonly string[] | undefined; }> | undefined; app?: readonly string[] | undefined; requireAllSpaces?: boolean | undefined; api?: readonly string[] | undefined; savedObject: Readonly<{ all: readonly string[]; read: readonly string[]; }>; }>[]; }>[]; }" ], "path": "x-pack/plugins/features/common/sub_feature.ts", "deprecated": false, @@ -3644,7 +3644,7 @@ "\nDenotes which Primary Feature Privilege this sub-feature privilege should be included in.\n`read` is also included in `all` automatically." ], "signature": [ - "\"all\" | \"none\" | \"read\"" + "\"none\" | \"all\" | \"read\"" ], "path": "x-pack/plugins/features/common/sub_feature.ts", "deprecated": false diff --git a/api_docs/features.mdx b/api_docs/features.mdx index c75ce5befaba21..5a851d07e3756a 100644 --- a/api_docs/features.mdx +++ b/api_docs/features.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'features'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import featuresObj from './features.json'; +import featuresObj from './features.devdocs.json'; diff --git a/api_docs/field_formats.json b/api_docs/field_formats.devdocs.json similarity index 100% rename from api_docs/field_formats.json rename to api_docs/field_formats.devdocs.json diff --git a/api_docs/field_formats.mdx b/api_docs/field_formats.mdx index 7e756274c10369..0638f4ef72455b 100644 --- a/api_docs/field_formats.mdx +++ b/api_docs/field_formats.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fieldFormats'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import fieldFormatsObj from './field_formats.json'; +import fieldFormatsObj from './field_formats.devdocs.json'; Index pattern fields and ambiguous values formatters diff --git a/api_docs/file_upload.devdocs.json b/api_docs/file_upload.devdocs.json new file mode 100644 index 00000000000000..864ac45ccd775b --- /dev/null +++ b/api_docs/file_upload.devdocs.json @@ -0,0 +1,899 @@ +{ + "id": "fileUpload", + "client": { + "classes": [], + "functions": [], + "interfaces": [ + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps", + "type": "Interface", + "tags": [], + "label": "FileUploadComponentProps", + "description": [], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.isIndexingTriggered", + "type": "boolean", + "tags": [], + "label": "isIndexingTriggered", + "description": [], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.onFileSelect", + "type": "Function", + "tags": [], + "label": "onFileSelect", + "description": [], + "signature": [ + "(geojsonFile: GeoJSON.FeatureCollection, name: string, previewCoverage: number) => void" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.onFileSelect.$1", + "type": "Object", + "tags": [], + "label": "geojsonFile", + "description": [], + "signature": [ + "GeoJSON.FeatureCollection" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.onFileSelect.$2", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.onFileSelect.$3", + "type": "number", + "tags": [], + "label": "previewCoverage", + "description": [], + "signature": [ + "number" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.onFileClear", + "type": "Function", + "tags": [], + "label": "onFileClear", + "description": [], + "signature": [ + "() => void" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.enableImportBtn", + "type": "Function", + "tags": [], + "label": "enableImportBtn", + "description": [], + "signature": [ + "() => void" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.disableImportBtn", + "type": "Function", + "tags": [], + "label": "disableImportBtn", + "description": [], + "signature": [ + "() => void" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.onUploadComplete", + "type": "Function", + "tags": [], + "label": "onUploadComplete", + "description": [], + "signature": [ + "(results: ", + { + "pluginId": "fileUpload", + "scope": "public", + "docId": "kibFileUploadPluginApi", + "section": "def-public.FileUploadGeoResults", + "text": "FileUploadGeoResults" + }, + ") => void" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.onUploadComplete.$1", + "type": "Object", + "tags": [], + "label": "results", + "description": [], + "signature": [ + { + "pluginId": "fileUpload", + "scope": "public", + "docId": "kibFileUploadPluginApi", + "section": "def-public.FileUploadGeoResults", + "text": "FileUploadGeoResults" + } + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadComponentProps.onUploadError", + "type": "Function", + "tags": [], + "label": "onUploadError", + "description": [], + "signature": [ + "() => void" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "children": [], + "returnComment": [] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadGeoResults", + "type": "Interface", + "tags": [], + "label": "FileUploadGeoResults", + "description": [], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadGeoResults.indexPatternId", + "type": "string", + "tags": [], + "label": "indexPatternId", + "description": [], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadGeoResults.geoFieldName", + "type": "string", + "tags": [], + "label": "geoFieldName", + "description": [], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadGeoResults.geoFieldType", + "type": "CompoundType", + "tags": [], + "label": "geoFieldType", + "description": [], + "signature": [ + "ES_FIELD_TYPES", + ".GEO_POINT | ", + "ES_FIELD_TYPES", + ".GEO_SHAPE" + ], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadGeoResults.docCount", + "type": "number", + "tags": [], + "label": "docCount", + "description": [], + "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.Props", + "type": "Interface", + "tags": [], + "label": "Props", + "description": [], + "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-public.Props.indexName", + "type": "string", + "tags": [], + "label": "indexName", + "description": [], + "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.Props.indexNameError", + "type": "string", + "tags": [], + "label": "indexNameError", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.Props.onIndexNameChange", + "type": "Function", + "tags": [], + "label": "onIndexNameChange", + "description": [], + "signature": [ + "(name: string, error?: string | undefined) => void" + ], + "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-public.Props.onIndexNameChange.$1", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.Props.onIndexNameChange.$2", + "type": "string", + "tags": [], + "label": "error", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [] + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.Props.onIndexNameValidationStart", + "type": "Function", + "tags": [], + "label": "onIndexNameValidationStart", + "description": [], + "signature": [ + "() => void" + ], + "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "fileUpload", + "id": "def-public.Props.onIndexNameValidationEnd", + "type": "Function", + "tags": [], + "label": "onIndexNameValidationEnd", + "description": [], + "signature": [ + "() => void" + ], + "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "deprecated": false, + "children": [], + "returnComment": [] + } + ], + "initialIsOpen": false + } + ], + "enums": [], + "misc": [], + "objects": [], + "start": { + "parentPluginId": "fileUpload", + "id": "def-public.FileUploadPluginStart", + "type": "Type", + "tags": [], + "label": "FileUploadPluginStart", + "description": [], + "signature": [ + "FileUploadStartApi" + ], + "path": "x-pack/plugins/file_upload/public/plugin.ts", + "deprecated": false, + "lifecycle": "start", + "initialIsOpen": true + } + }, + "server": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + }, + "common": { + "classes": [], + "functions": [], + "interfaces": [ + { + "parentPluginId": "fileUpload", + "id": "def-common.AnalysisResult", + "type": "Interface", + "tags": [], + "label": "AnalysisResult", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-common.AnalysisResult.results", + "type": "Object", + "tags": [], + "label": "results", + "description": [], + "signature": [ + { + "pluginId": "fileUpload", + "scope": "common", + "docId": "kibFileUploadPluginApi", + "section": "def-common.FindFileStructureResponse", + "text": "FindFileStructureResponse" + } + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.AnalysisResult.overrides", + "type": "CompoundType", + "tags": [], + "label": "overrides", + "description": [], + "signature": [ + "FormattedOverrides", + " | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureErrorResponse", + "type": "Interface", + "tags": [], + "label": "FindFileStructureErrorResponse", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureErrorResponse.body", + "type": "Object", + "tags": [], + "label": "body", + "description": [], + "signature": [ + "{ statusCode: number; error: string; message: string; attributes?: ErrorAttribute | undefined; }" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureErrorResponse.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse", + "type": "Interface", + "tags": [], + "label": "FindFileStructureResponse", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.charset", + "type": "string", + "tags": [], + "label": "charset", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.has_header_row", + "type": "boolean", + "tags": [], + "label": "has_header_row", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.has_byte_order_marker", + "type": "boolean", + "tags": [], + "label": "has_byte_order_marker", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.format", + "type": "string", + "tags": [], + "label": "format", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.field_stats", + "type": "Object", + "tags": [], + "label": "field_stats", + "description": [], + "signature": [ + "{ [fieldName: string]: { count: number; cardinality: number; top_hits: { count: number; value: any; }[]; mean_value?: number | undefined; median_value?: number | undefined; max_value?: number | undefined; min_value?: number | undefined; earliest?: string | undefined; latest?: string | undefined; }; }" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.sample_start", + "type": "string", + "tags": [], + "label": "sample_start", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.num_messages_analyzed", + "type": "number", + "tags": [], + "label": "num_messages_analyzed", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.mappings", + "type": "Object", + "tags": [], + "label": "mappings", + "description": [], + "signature": [ + "{ properties: { [fieldName: string]: { type: ", + "ES_FIELD_TYPES", + ".STRING | ", + "ES_FIELD_TYPES", + ".TEXT | ", + "ES_FIELD_TYPES", + ".KEYWORD | ", + "ES_FIELD_TYPES", + ".VERSION | ", + "ES_FIELD_TYPES", + ".BOOLEAN | ", + "ES_FIELD_TYPES", + ".OBJECT | ", + "ES_FIELD_TYPES", + ".DATE | ", + "ES_FIELD_TYPES", + ".DATE_NANOS | ", + "ES_FIELD_TYPES", + ".DATE_RANGE | ", + "ES_FIELD_TYPES", + ".GEO_POINT | ", + "ES_FIELD_TYPES", + ".GEO_SHAPE | ", + "ES_FIELD_TYPES", + ".FLOAT | ", + "ES_FIELD_TYPES", + ".HALF_FLOAT | ", + "ES_FIELD_TYPES", + ".SCALED_FLOAT | ", + "ES_FIELD_TYPES", + ".DOUBLE | ", + "ES_FIELD_TYPES", + ".INTEGER | ", + "ES_FIELD_TYPES", + ".LONG | ", + "ES_FIELD_TYPES", + ".SHORT | ", + "ES_FIELD_TYPES", + ".UNSIGNED_LONG | ", + "ES_FIELD_TYPES", + ".FLOAT_RANGE | ", + "ES_FIELD_TYPES", + ".DOUBLE_RANGE | ", + "ES_FIELD_TYPES", + ".INTEGER_RANGE | ", + "ES_FIELD_TYPES", + ".LONG_RANGE | ", + "ES_FIELD_TYPES", + ".NESTED | ", + "ES_FIELD_TYPES", + ".BYTE | ", + "ES_FIELD_TYPES", + ".IP | ", + "ES_FIELD_TYPES", + ".IP_RANGE | ", + "ES_FIELD_TYPES", + ".ATTACHMENT | ", + "ES_FIELD_TYPES", + ".TOKEN_COUNT | ", + "ES_FIELD_TYPES", + ".MURMUR3 | ", + "ES_FIELD_TYPES", + ".HISTOGRAM; format?: string | undefined; }; }; }" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.quote", + "type": "string", + "tags": [], + "label": "quote", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.delimiter", + "type": "string", + "tags": [], + "label": "delimiter", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.need_client_timezone", + "type": "boolean", + "tags": [], + "label": "need_client_timezone", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.num_lines_analyzed", + "type": "number", + "tags": [], + "label": "num_lines_analyzed", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.column_names", + "type": "Array", + "tags": [], + "label": "column_names", + "description": [], + "signature": [ + "string[] | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.explanation", + "type": "Array", + "tags": [], + "label": "explanation", + "description": [], + "signature": [ + "string[] | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.grok_pattern", + "type": "string", + "tags": [], + "label": "grok_pattern", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.multiline_start_pattern", + "type": "string", + "tags": [], + "label": "multiline_start_pattern", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.exclude_lines_pattern", + "type": "string", + "tags": [], + "label": "exclude_lines_pattern", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.java_timestamp_formats", + "type": "Array", + "tags": [], + "label": "java_timestamp_formats", + "description": [], + "signature": [ + "string[] | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.joda_timestamp_formats", + "type": "Array", + "tags": [], + "label": "joda_timestamp_formats", + "description": [], + "signature": [ + "string[] | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.timestamp_field", + "type": "string", + "tags": [], + "label": "timestamp_field", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.FindFileStructureResponse.should_trim_fields", + "type": "CompoundType", + "tags": [], + "label": "should_trim_fields", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.IngestPipeline", + "type": "Interface", + "tags": [], + "label": "IngestPipeline", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-common.IngestPipeline.description", + "type": "string", + "tags": [], + "label": "description", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.IngestPipeline.processors", + "type": "Array", + "tags": [], + "label": "processors", + "description": [], + "signature": [ + "any[]" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.InputOverrides", + "type": "Interface", + "tags": [], + "label": "InputOverrides", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-common.InputOverrides.Unnamed", + "type": "IndexSignature", + "tags": [], + "label": "[key: string]: string | undefined", + "description": [], + "signature": [ + "[key: string]: string | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.Mappings", + "type": "Interface", + "tags": [], + "label": "Mappings", + "description": [], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fileUpload", + "id": "def-common.Mappings._meta", + "type": "Object", + "tags": [], + "label": "_meta", + "description": [], + "signature": [ + "{ created_by: string; } | undefined" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + }, + { + "parentPluginId": "fileUpload", + "id": "def-common.Mappings.properties", + "type": "Object", + "tags": [], + "label": "properties", + "description": [], + "signature": [ + "{ [key: string]: any; }" + ], + "path": "x-pack/plugins/file_upload/common/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + } + ], + "enums": [], + "misc": [], + "objects": [] + } +} \ No newline at end of file diff --git a/api_docs/file_upload.json b/api_docs/file_upload.json deleted file mode 100644 index fed190559c0983..00000000000000 --- a/api_docs/file_upload.json +++ /dev/null @@ -1,1942 +0,0 @@ -{ - "id": "fileUpload", - "client": { - "classes": [], - "functions": [], - "interfaces": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.CreateDocsResponse", - "type": "Interface", - "tags": [], - "label": "CreateDocsResponse", - "description": [], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.CreateDocsResponse.success", - "type": "boolean", - "tags": [], - "label": "success", - "description": [], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.CreateDocsResponse.remainder", - "type": "number", - "tags": [], - "label": "remainder", - "description": [], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.CreateDocsResponse.docs", - "type": "Array", - "tags": [], - "label": "docs", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.ImportDoc", - "text": "ImportDoc" - }, - "[]" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.CreateDocsResponse.error", - "type": "Any", - "tags": [], - "label": "error", - "description": [], - "signature": [ - "any" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps", - "type": "Interface", - "tags": [], - "label": "FileUploadComponentProps", - "description": [], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.isIndexingTriggered", - "type": "boolean", - "tags": [], - "label": "isIndexingTriggered", - "description": [], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.onFileSelect", - "type": "Function", - "tags": [], - "label": "onFileSelect", - "description": [], - "signature": [ - "(geojsonFile: GeoJSON.FeatureCollection, name: string, previewCoverage: number) => void" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.onFileSelect.$1", - "type": "Object", - "tags": [], - "label": "geojsonFile", - "description": [], - "signature": [ - "GeoJSON.FeatureCollection" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.onFileSelect.$2", - "type": "string", - "tags": [], - "label": "name", - "description": [], - "signature": [ - "string" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.onFileSelect.$3", - "type": "number", - "tags": [], - "label": "previewCoverage", - "description": [], - "signature": [ - "number" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.onFileClear", - "type": "Function", - "tags": [], - "label": "onFileClear", - "description": [], - "signature": [ - "() => void" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.enableImportBtn", - "type": "Function", - "tags": [], - "label": "enableImportBtn", - "description": [], - "signature": [ - "() => void" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.disableImportBtn", - "type": "Function", - "tags": [], - "label": "disableImportBtn", - "description": [], - "signature": [ - "() => void" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.onUploadComplete", - "type": "Function", - "tags": [], - "label": "onUploadComplete", - "description": [], - "signature": [ - "(results: ", - { - "pluginId": "fileUpload", - "scope": "public", - "docId": "kibFileUploadPluginApi", - "section": "def-public.FileUploadGeoResults", - "text": "FileUploadGeoResults" - }, - ") => void" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.onUploadComplete.$1", - "type": "Object", - "tags": [], - "label": "results", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "public", - "docId": "kibFileUploadPluginApi", - "section": "def-public.FileUploadGeoResults", - "text": "FileUploadGeoResults" - } - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadComponentProps.onUploadError", - "type": "Function", - "tags": [], - "label": "onUploadError", - "description": [], - "signature": [ - "() => void" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "children": [], - "returnComment": [] - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadGeoResults", - "type": "Interface", - "tags": [], - "label": "FileUploadGeoResults", - "description": [], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadGeoResults.indexPatternId", - "type": "string", - "tags": [], - "label": "indexPatternId", - "description": [], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadGeoResults.geoFieldName", - "type": "string", - "tags": [], - "label": "geoFieldName", - "description": [], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadGeoResults.geoFieldType", - "type": "CompoundType", - "tags": [], - "label": "geoFieldType", - "description": [], - "signature": [ - "ES_FIELD_TYPES", - ".GEO_POINT | ", - "ES_FIELD_TYPES", - ".GEO_SHAPE" - ], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadGeoResults.docCount", - "type": "number", - "tags": [], - "label": "docCount", - "description": [], - "path": "x-pack/plugins/file_upload/public/lazy_load_bundle/index.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter", - "type": "Interface", - "tags": [], - "label": "IImporter", - "description": [], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.read", - "type": "Function", - "tags": [], - "label": "read", - "description": [], - "signature": [ - "(data: ArrayBuffer) => { success: boolean; }" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.read.$1", - "type": "Object", - "tags": [], - "label": "data", - "description": [], - "signature": [ - "ArrayBuffer" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.initializeImport", - "type": "Function", - "tags": [], - "label": "initializeImport", - "description": [], - "signature": [ - "(index: string, settings: ", - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.Settings", - "text": "Settings" - }, - ", mappings: ", - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.Mappings", - "text": "Mappings" - }, - ", pipeline: ", - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.IngestPipeline", - "text": "IngestPipeline" - }, - ") => Promise<", - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.ImportResponse", - "text": "ImportResponse" - }, - ">" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.initializeImport.$1", - "type": "string", - "tags": [], - "label": "index", - "description": [], - "signature": [ - "string" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.initializeImport.$2", - "type": "Object", - "tags": [], - "label": "settings", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.Settings", - "text": "Settings" - } - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.initializeImport.$3", - "type": "Object", - "tags": [], - "label": "mappings", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.Mappings", - "text": "Mappings" - } - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.initializeImport.$4", - "type": "Object", - "tags": [], - "label": "pipeline", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.IngestPipeline", - "text": "IngestPipeline" - } - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.import", - "type": "Function", - "tags": [], - "label": "import", - "description": [], - "signature": [ - "(id: string, index: string, pipelineId: string | undefined, setImportProgress: (progress: number) => void) => Promise<", - { - "pluginId": "fileUpload", - "scope": "public", - "docId": "kibFileUploadPluginApi", - "section": "def-public.ImportResults", - "text": "ImportResults" - }, - ">" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.import.$1", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "signature": [ - "string" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.import.$2", - "type": "string", - "tags": [], - "label": "index", - "description": [], - "signature": [ - "string" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.import.$3", - "type": "string", - "tags": [], - "label": "pipelineId", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "isRequired": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.IImporter.import.$4", - "type": "Function", - "tags": [], - "label": "setImportProgress", - "description": [], - "signature": [ - "(progress: number) => void" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportConfig", - "type": "Interface", - "tags": [], - "label": "ImportConfig", - "description": [], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportConfig.settings", - "type": "Object", - "tags": [], - "label": "settings", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.Settings", - "text": "Settings" - } - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportConfig.mappings", - "type": "Object", - "tags": [], - "label": "mappings", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.Mappings", - "text": "Mappings" - } - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportConfig.pipeline", - "type": "Object", - "tags": [], - "label": "pipeline", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.IngestPipeline", - "text": "IngestPipeline" - } - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportFactoryOptions", - "type": "Interface", - "tags": [], - "label": "ImportFactoryOptions", - "description": [], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportFactoryOptions.excludeLinesPattern", - "type": "string", - "tags": [], - "label": "excludeLinesPattern", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportFactoryOptions.multilineStartPattern", - "type": "string", - "tags": [], - "label": "multilineStartPattern", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportFactoryOptions.importConfig", - "type": "Object", - "tags": [], - "label": "importConfig", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "public", - "docId": "kibFileUploadPluginApi", - "section": "def-public.ImportConfig", - "text": "ImportConfig" - } - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportResults", - "type": "Interface", - "tags": [], - "label": "ImportResults", - "description": [], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportResults.success", - "type": "boolean", - "tags": [], - "label": "success", - "description": [], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportResults.failures", - "type": "Array", - "tags": [], - "label": "failures", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.ImportFailure", - "text": "ImportFailure" - }, - "[] | undefined" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportResults.docCount", - "type": "number", - "tags": [], - "label": "docCount", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.ImportResults.error", - "type": "Any", - "tags": [], - "label": "error", - "description": [], - "signature": [ - "any" - ], - "path": "x-pack/plugins/file_upload/public/importer/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.Props", - "type": "Interface", - "tags": [], - "label": "Props", - "description": [], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.Props.indexName", - "type": "string", - "tags": [], - "label": "indexName", - "description": [], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.Props.indexNameError", - "type": "string", - "tags": [], - "label": "indexNameError", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.Props.onIndexNameChange", - "type": "Function", - "tags": [], - "label": "onIndexNameChange", - "description": [], - "signature": [ - "(name: string, error?: string | undefined) => void" - ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-public.Props.onIndexNameChange.$1", - "type": "string", - "tags": [], - "label": "name", - "description": [], - "signature": [ - "string" - ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.Props.onIndexNameChange.$2", - "type": "string", - "tags": [], - "label": "error", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", - "deprecated": false, - "isRequired": false - } - ], - "returnComment": [] - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.Props.onIndexNameValidationStart", - "type": "Function", - "tags": [], - "label": "onIndexNameValidationStart", - "description": [], - "signature": [ - "() => void" - ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", - "deprecated": false, - "children": [], - "returnComment": [] - }, - { - "parentPluginId": "fileUpload", - "id": "def-public.Props.onIndexNameValidationEnd", - "type": "Function", - "tags": [], - "label": "onIndexNameValidationEnd", - "description": [], - "signature": [ - "() => void" - ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", - "deprecated": false, - "children": [], - "returnComment": [] - } - ], - "initialIsOpen": false - } - ], - "enums": [], - "misc": [], - "objects": [], - "start": { - "parentPluginId": "fileUpload", - "id": "def-public.FileUploadPluginStart", - "type": "Type", - "tags": [], - "label": "FileUploadPluginStart", - "description": [], - "signature": [ - "FileUploadStartApi" - ], - "path": "x-pack/plugins/file_upload/public/plugin.ts", - "deprecated": false, - "lifecycle": "start", - "initialIsOpen": true - } - }, - "server": { - "classes": [], - "functions": [], - "interfaces": [], - "enums": [], - "misc": [], - "objects": [] - }, - "common": { - "classes": [], - "functions": [], - "interfaces": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.AnalysisResult", - "type": "Interface", - "tags": [], - "label": "AnalysisResult", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.AnalysisResult.results", - "type": "Object", - "tags": [], - "label": "results", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.FindFileStructureResponse", - "text": "FindFileStructureResponse" - } - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.AnalysisResult.overrides", - "type": "CompoundType", - "tags": [], - "label": "overrides", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.FormattedOverrides", - "text": "FormattedOverrides" - }, - " | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.Doc", - "type": "Interface", - "tags": [], - "label": "Doc", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.Doc.message", - "type": "string", - "tags": [], - "label": "message", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureErrorResponse", - "type": "Interface", - "tags": [], - "label": "FindFileStructureErrorResponse", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureErrorResponse.body", - "type": "Object", - "tags": [], - "label": "body", - "description": [], - "signature": [ - "{ statusCode: number; error: string; message: string; attributes?: ErrorAttribute | undefined; }" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureErrorResponse.name", - "type": "string", - "tags": [], - "label": "name", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse", - "type": "Interface", - "tags": [], - "label": "FindFileStructureResponse", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.charset", - "type": "string", - "tags": [], - "label": "charset", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.has_header_row", - "type": "boolean", - "tags": [], - "label": "has_header_row", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.has_byte_order_marker", - "type": "boolean", - "tags": [], - "label": "has_byte_order_marker", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.format", - "type": "string", - "tags": [], - "label": "format", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.field_stats", - "type": "Object", - "tags": [], - "label": "field_stats", - "description": [], - "signature": [ - "{ [fieldName: string]: { count: number; cardinality: number; top_hits: { count: number; value: any; }[]; mean_value?: number | undefined; median_value?: number | undefined; max_value?: number | undefined; min_value?: number | undefined; earliest?: string | undefined; latest?: string | undefined; }; }" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.sample_start", - "type": "string", - "tags": [], - "label": "sample_start", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.num_messages_analyzed", - "type": "number", - "tags": [], - "label": "num_messages_analyzed", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.mappings", - "type": "Object", - "tags": [], - "label": "mappings", - "description": [], - "signature": [ - "{ properties: { [fieldName: string]: { type: ", - "ES_FIELD_TYPES", - ".STRING | ", - "ES_FIELD_TYPES", - ".TEXT | ", - "ES_FIELD_TYPES", - ".KEYWORD | ", - "ES_FIELD_TYPES", - ".VERSION | ", - "ES_FIELD_TYPES", - ".BOOLEAN | ", - "ES_FIELD_TYPES", - ".OBJECT | ", - "ES_FIELD_TYPES", - ".DATE | ", - "ES_FIELD_TYPES", - ".DATE_NANOS | ", - "ES_FIELD_TYPES", - ".DATE_RANGE | ", - "ES_FIELD_TYPES", - ".GEO_POINT | ", - "ES_FIELD_TYPES", - ".GEO_SHAPE | ", - "ES_FIELD_TYPES", - ".FLOAT | ", - "ES_FIELD_TYPES", - ".HALF_FLOAT | ", - "ES_FIELD_TYPES", - ".SCALED_FLOAT | ", - "ES_FIELD_TYPES", - ".DOUBLE | ", - "ES_FIELD_TYPES", - ".INTEGER | ", - "ES_FIELD_TYPES", - ".LONG | ", - "ES_FIELD_TYPES", - ".SHORT | ", - "ES_FIELD_TYPES", - ".UNSIGNED_LONG | ", - "ES_FIELD_TYPES", - ".FLOAT_RANGE | ", - "ES_FIELD_TYPES", - ".DOUBLE_RANGE | ", - "ES_FIELD_TYPES", - ".INTEGER_RANGE | ", - "ES_FIELD_TYPES", - ".LONG_RANGE | ", - "ES_FIELD_TYPES", - ".NESTED | ", - "ES_FIELD_TYPES", - ".BYTE | ", - "ES_FIELD_TYPES", - ".IP | ", - "ES_FIELD_TYPES", - ".IP_RANGE | ", - "ES_FIELD_TYPES", - ".ATTACHMENT | ", - "ES_FIELD_TYPES", - ".TOKEN_COUNT | ", - "ES_FIELD_TYPES", - ".MURMUR3 | ", - "ES_FIELD_TYPES", - ".HISTOGRAM; format?: string | undefined; }; }; }" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.quote", - "type": "string", - "tags": [], - "label": "quote", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.delimiter", - "type": "string", - "tags": [], - "label": "delimiter", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.need_client_timezone", - "type": "boolean", - "tags": [], - "label": "need_client_timezone", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.num_lines_analyzed", - "type": "number", - "tags": [], - "label": "num_lines_analyzed", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.column_names", - "type": "Array", - "tags": [], - "label": "column_names", - "description": [], - "signature": [ - "string[] | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.explanation", - "type": "Array", - "tags": [], - "label": "explanation", - "description": [], - "signature": [ - "string[] | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.grok_pattern", - "type": "string", - "tags": [], - "label": "grok_pattern", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.multiline_start_pattern", - "type": "string", - "tags": [], - "label": "multiline_start_pattern", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.exclude_lines_pattern", - "type": "string", - "tags": [], - "label": "exclude_lines_pattern", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.java_timestamp_formats", - "type": "Array", - "tags": [], - "label": "java_timestamp_formats", - "description": [], - "signature": [ - "string[] | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.joda_timestamp_formats", - "type": "Array", - "tags": [], - "label": "joda_timestamp_formats", - "description": [], - "signature": [ - "string[] | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.timestamp_field", - "type": "string", - "tags": [], - "label": "timestamp_field", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FindFileStructureResponse.should_trim_fields", - "type": "CompoundType", - "tags": [], - "label": "should_trim_fields", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.HasImportPermission", - "type": "Interface", - "tags": [], - "label": "HasImportPermission", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.HasImportPermission.hasImportPermission", - "type": "boolean", - "tags": [], - "label": "hasImportPermission", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportFailure", - "type": "Interface", - "tags": [], - "label": "ImportFailure", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportFailure.item", - "type": "number", - "tags": [], - "label": "item", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportFailure.reason", - "type": "string", - "tags": [], - "label": "reason", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportFailure.caused_by", - "type": "Object", - "tags": [], - "label": "caused_by", - "description": [], - "signature": [ - "{ type: string; reason: string; } | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportFailure.doc", - "type": "CompoundType", - "tags": [], - "label": "doc", - "description": [], - "signature": [ - "string | object | ", - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.Doc", - "text": "Doc" - } - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportResponse", - "type": "Interface", - "tags": [], - "label": "ImportResponse", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportResponse.success", - "type": "boolean", - "tags": [], - "label": "success", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportResponse.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportResponse.index", - "type": "string", - "tags": [], - "label": "index", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportResponse.pipelineId", - "type": "string", - "tags": [], - "label": "pipelineId", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportResponse.docCount", - "type": "number", - "tags": [], - "label": "docCount", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportResponse.failures", - "type": "Array", - "tags": [], - "label": "failures", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.ImportFailure", - "text": "ImportFailure" - }, - "[]" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportResponse.error", - "type": "Object", - "tags": [], - "label": "error", - "description": [], - "signature": [ - "{ error: ", - "ErrorCause", - "; } | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportResponse.ingestError", - "type": "CompoundType", - "tags": [], - "label": "ingestError", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.IngestPipeline", - "type": "Interface", - "tags": [], - "label": "IngestPipeline", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.IngestPipeline.description", - "type": "string", - "tags": [], - "label": "description", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.IngestPipeline.processors", - "type": "Array", - "tags": [], - "label": "processors", - "description": [], - "signature": [ - "any[]" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.IngestPipelineWrapper", - "type": "Interface", - "tags": [], - "label": "IngestPipelineWrapper", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.IngestPipelineWrapper.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.IngestPipelineWrapper.pipeline", - "type": "Object", - "tags": [], - "label": "pipeline", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.IngestPipeline", - "text": "IngestPipeline" - } - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.InputOverrides", - "type": "Interface", - "tags": [], - "label": "InputOverrides", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.InputOverrides.Unnamed", - "type": "IndexSignature", - "tags": [], - "label": "[key: string]: string | undefined", - "description": [], - "signature": [ - "[key: string]: string | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.Mappings", - "type": "Interface", - "tags": [], - "label": "Mappings", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.Mappings._meta", - "type": "Object", - "tags": [], - "label": "_meta", - "description": [], - "signature": [ - "{ created_by: string; } | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.Mappings.properties", - "type": "Object", - "tags": [], - "label": "properties", - "description": [], - "signature": [ - "{ [key: string]: any; }" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.Settings", - "type": "Interface", - "tags": [], - "label": "Settings", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.Settings.pipeline", - "type": "string", - "tags": [], - "label": "pipeline", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.Settings.index", - "type": "string", - "tags": [], - "label": "index", - "description": [], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.Settings.body", - "type": "Array", - "tags": [], - "label": "body", - "description": [], - "signature": [ - "any[]" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.Settings.Unnamed", - "type": "IndexSignature", - "tags": [], - "label": "[key: string]: any", - "description": [], - "signature": [ - "[key: string]: any" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - } - ], - "enums": [], - "misc": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.ABSOLUTE_MAX_FILE_SIZE_BYTES", - "type": "number", - "tags": [], - "label": "ABSOLUTE_MAX_FILE_SIZE_BYTES", - "description": [], - "signature": [ - "1073741274" - ], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FILE_SIZE_DISPLAY_FORMAT", - "type": "string", - "tags": [], - "label": "FILE_SIZE_DISPLAY_FORMAT", - "description": [], - "signature": [ - "\"0,0.[0] b\"" - ], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FormattedOverrides", - "type": "Type", - "tags": [], - "label": "FormattedOverrides", - "description": [], - "signature": [ - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.InputOverrides", - "text": "InputOverrides" - }, - " & { column_names: string[]; has_header_row: boolean; should_trim_fields: boolean; }" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.ImportDoc", - "type": "Type", - "tags": [], - "label": "ImportDoc", - "description": [], - "signature": [ - "string | object | ", - { - "pluginId": "fileUpload", - "scope": "common", - "docId": "kibFileUploadPluginApi", - "section": "def-common.Doc", - "text": "Doc" - } - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.INDEX_META_DATA_CREATED_BY", - "type": "string", - "tags": [], - "label": "INDEX_META_DATA_CREATED_BY", - "description": [], - "signature": [ - "\"file-data-visualizer\"" - ], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.InputData", - "type": "Type", - "tags": [], - "label": "InputData", - "description": [], - "signature": [ - "any[]" - ], - "path": "x-pack/plugins/file_upload/common/types.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.MAX_FILE_SIZE", - "type": "string", - "tags": [], - "label": "MAX_FILE_SIZE", - "description": [], - "signature": [ - "\"100MB\"" - ], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.MAX_FILE_SIZE_BYTES", - "type": "number", - "tags": [], - "label": "MAX_FILE_SIZE_BYTES", - "description": [], - "signature": [ - "104857600" - ], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.MB", - "type": "number", - "tags": [], - "label": "MB", - "description": [], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.UI_SETTING_MAX_FILE_SIZE", - "type": "string", - "tags": [], - "label": "UI_SETTING_MAX_FILE_SIZE", - "description": [], - "signature": [ - "\"fileUpload:maxFileSize\"" - ], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - } - ], - "objects": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.FILE_FORMATS", - "type": "Object", - "tags": [], - "label": "FILE_FORMATS", - "description": [], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "fileUpload", - "id": "def-common.FILE_FORMATS.DELIMITED", - "type": "string", - "tags": [], - "label": "DELIMITED", - "description": [], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FILE_FORMATS.NDJSON", - "type": "string", - "tags": [], - "label": "NDJSON", - "description": [], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "fileUpload", - "id": "def-common.FILE_FORMATS.SEMI_STRUCTURED_TEXT", - "type": "string", - "tags": [], - "label": "SEMI_STRUCTURED_TEXT", - "description": [], - "path": "x-pack/plugins/file_upload/common/constants.ts", - "deprecated": false - } - ], - "initialIsOpen": false - } - ] - } -} \ No newline at end of file diff --git a/api_docs/file_upload.mdx b/api_docs/file_upload.mdx index aa073546296e71..6ea39247b4a0db 100644 --- a/api_docs/file_upload.mdx +++ b/api_docs/file_upload.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fileUpload'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import fileUploadObj from './file_upload.json'; +import fileUploadObj from './file_upload.devdocs.json'; The file upload plugin contains components and services for uploading a file, analyzing its data, and then importing the data into an Elasticsearch index. Supported file types include CSV, TSV, newline-delimited JSON and GeoJSON. @@ -18,7 +18,7 @@ Contact [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) for q | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 133 | 2 | 133 | 1 | +| 62 | 0 | 62 | 2 | ## Client @@ -30,12 +30,6 @@ Contact [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) for q ## Common -### Objects - - ### Interfaces -### Consts, variables and types - - diff --git a/api_docs/fleet.json b/api_docs/fleet.devdocs.json similarity index 98% rename from api_docs/fleet.json rename to api_docs/fleet.devdocs.json index 8845a6c2e05bcd..5008cff3349281 100644 --- a/api_docs/fleet.json +++ b/api_docs/fleet.devdocs.json @@ -2865,7 +2865,9 @@ "type": "Interface", "tags": [], "label": "AgentPolicyServiceInterface", - "description": [], + "description": [ + "\nService that provides exported function that return information about EPM packages" + ], "path": "x-pack/plugins/fleet/server/services/index.ts", "deprecated": false, "children": [ @@ -5429,33 +5431,61 @@ }, { "parentPluginId": "fleet", - "id": "def-server.PackageService", + "id": "def-server.PackageClient", "type": "Interface", "tags": [], - "label": "PackageService", - "description": [ - "\nService that provides exported function that return information about EPM packages" - ], - "path": "x-pack/plugins/fleet/server/services/index.ts", + "label": "PackageClient", + "description": [], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", "deprecated": false, "children": [ { "parentPluginId": "fleet", - "id": "def-server.PackageService.getInstallation", + "id": "def-server.PackageClient.getInstallation", "type": "Function", "tags": [], "label": "getInstallation", "description": [], "signature": [ - "(options: { savedObjectsClient: ", + "(pkgName: string) => Promise<", { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClientContract", - "text": "SavedObjectsClientContract" + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.Installation", + "text": "Installation" }, - "; pkgName: string; }) => Promise<", + " | undefined>" + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fleet", + "id": "def-server.PackageClient.getInstallation.$1", + "type": "string", + "tags": [], + "label": "pkgName", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "fleet", + "id": "def-server.PackageClient.ensureInstalledPackage", + "type": "Function", + "tags": [], + "label": "ensureInstalledPackage", + "description": [], + "signature": [ + "(options: { pkgName: string; pkgVersion?: string | undefined; spaceId?: string | undefined; }) => Promise<", { "pluginId": "fleet", "scope": "common", @@ -5465,101 +5495,299 @@ }, " | undefined>" ], - "path": "x-pack/plugins/fleet/server/services/index.ts", + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", "deprecated": false, - "returnComment": [], "children": [ { "parentPluginId": "fleet", - "id": "def-server.PackageService.getInstallation.$1", + "id": "def-server.PackageClient.ensureInstalledPackage.$1", "type": "Object", "tags": [], "label": "options", "description": [], - "signature": [ - "{ savedObjectsClient: ", + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "children": [ { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClientContract", - "text": "SavedObjectsClientContract" + "parentPluginId": "fleet", + "id": "def-server.PackageClient.ensureInstalledPackage.$1.pkgName", + "type": "string", + "tags": [], + "label": "pkgName", + "description": [], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false + }, + { + "parentPluginId": "fleet", + "id": "def-server.PackageClient.ensureInstalledPackage.$1.pkgVersion", + "type": "string", + "tags": [], + "label": "pkgVersion", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false }, - "; pkgName: string; }" + { + "parentPluginId": "fleet", + "id": "def-server.PackageClient.ensureInstalledPackage.$1.spaceId", + "type": "string", + "tags": [], + "label": "spaceId", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false + } + ] + } + ], + "returnComment": [] + }, + { + "parentPluginId": "fleet", + "id": "def-server.PackageClient.fetchFindLatestPackage", + "type": "Function", + "tags": [], + "label": "fetchFindLatestPackage", + "description": [], + "signature": [ + "(packageName: string) => Promise<", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.RegistrySearchResult", + "text": "RegistrySearchResult" + }, + ">" + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fleet", + "id": "def-server.PackageClient.fetchFindLatestPackage.$1", + "type": "string", + "tags": [], + "label": "packageName", + "description": [], + "signature": [ + "string" ], - "path": "x-pack/plugins/fleet/server/services/epm/packages/get.ts", - "deprecated": false + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "isRequired": true } - ] + ], + "returnComment": [] }, { "parentPluginId": "fleet", - "id": "def-server.PackageService.ensureInstalledPackage", + "id": "def-server.PackageClient.getRegistryPackage", "type": "Function", "tags": [], - "label": "ensureInstalledPackage", + "label": "getRegistryPackage", "description": [], "signature": [ - "(options: { savedObjectsClient: ", + "(packageName: string, packageVersion: string) => Promise<{ packageInfo: ", { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClientContract", - "text": "SavedObjectsClientContract" + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.RegistryPackage", + "text": "RegistryPackage" }, - "; pkgName: string; esClient: ", + "; paths: string[]; }>" + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "children": [ { - "pluginId": "core", - "scope": "server", - "docId": "kibCorePluginApi", - "section": "def-server.ElasticsearchClient", - "text": "ElasticsearchClient" + "parentPluginId": "fleet", + "id": "def-server.PackageClient.getRegistryPackage.$1", + "type": "string", + "tags": [], + "label": "packageName", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "isRequired": true }, - "; pkgVersion?: string | undefined; spaceId?: string | undefined; }) => Promise<", + { + "parentPluginId": "fleet", + "id": "def-server.PackageClient.getRegistryPackage.$2", + "type": "string", + "tags": [], + "label": "packageVersion", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "fleet", + "id": "def-server.PackageClient.reinstallEsAssets", + "type": "Function", + "tags": [], + "label": "reinstallEsAssets", + "description": [], + "signature": [ + "(packageInfo: ", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.Installation", - "text": "Installation" + "section": "def-common.InstallablePackage", + "text": "InstallablePackage" }, - ">" + ", assetPaths: string[]) => Promise<", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.EsAssetReference", + "text": "EsAssetReference" + }, + "[]>" ], - "path": "x-pack/plugins/fleet/server/services/index.ts", + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", "deprecated": false, - "returnComment": [], "children": [ { "parentPluginId": "fleet", - "id": "def-server.PackageService.ensureInstalledPackage.$1", - "type": "Object", + "id": "def-server.PackageClient.reinstallEsAssets.$1", + "type": "CompoundType", "tags": [], - "label": "options", + "label": "packageInfo", "description": [], "signature": [ - "{ savedObjectsClient: ", { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsClientContract", - "text": "SavedObjectsClientContract" - }, - "; pkgName: string; esClient: ", + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.InstallablePackage", + "text": "InstallablePackage" + } + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "fleet", + "id": "def-server.PackageClient.reinstallEsAssets.$2", + "type": "Array", + "tags": [], + "label": "assetPaths", + "description": [], + "signature": [ + "string[]" + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "fleet", + "id": "def-server.PackageService", + "type": "Interface", + "tags": [], + "label": "PackageService", + "description": [], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fleet", + "id": "def-server.PackageService.asScoped", + "type": "Function", + "tags": [], + "label": "asScoped", + "description": [], + "signature": [ + "(request: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreHttpPluginApi", + "section": "def-server.KibanaRequest", + "text": "KibanaRequest" + }, + ") => ", + { + "pluginId": "fleet", + "scope": "server", + "docId": "kibFleetPluginApi", + "section": "def-server.PackageClient", + "text": "PackageClient" + } + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fleet", + "id": "def-server.PackageService.asScoped.$1", + "type": "Object", + "tags": [], + "label": "request", + "description": [], + "signature": [ { "pluginId": "core", "scope": "server", - "docId": "kibCorePluginApi", - "section": "def-server.ElasticsearchClient", - "text": "ElasticsearchClient" + "docId": "kibCoreHttpPluginApi", + "section": "def-server.KibanaRequest", + "text": "KibanaRequest" }, - "; pkgVersion?: string | undefined; spaceId?: string | undefined; }" + "" ], - "path": "x-pack/plugins/fleet/server/services/epm/packages/install.ts", - "deprecated": false + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false, + "isRequired": true } - ] + ], + "returnComment": [] + }, + { + "parentPluginId": "fleet", + "id": "def-server.PackageService.asInternalUser", + "type": "Object", + "tags": [], + "label": "asInternalUser", + "description": [], + "signature": [ + { + "pluginId": "fleet", + "scope": "server", + "docId": "kibFleetPluginApi", + "section": "def-server.PackageClient", + "text": "PackageClient" + } + ], + "path": "x-pack/plugins/fleet/server/services/epm/package_service.ts", + "deprecated": false } ], "initialIsOpen": false @@ -5754,7 +5982,7 @@ "section": "def-common.PackagePolicyPackage", "text": "PackagePolicyPackage" }, - " | undefined; }>) => Promise" + " | undefined; policy_id?: string | undefined; }>) => Promise" ], "path": "x-pack/plugins/fleet/server/types/extensions.ts", "deprecated": false, @@ -5777,7 +6005,7 @@ "section": "def-common.PackagePolicyPackage", "text": "PackagePolicyPackage" }, - " | undefined; }>" + " | undefined; policy_id?: string | undefined; }>" ], "path": "x-pack/plugins/fleet/server/types/extensions.ts", "deprecated": false @@ -6136,40 +6364,6 @@ } ], "returnComment": [] - }, - { - "parentPluginId": "fleet", - "id": "def-server.FleetStartContract.fetchFindLatestPackage", - "type": "Function", - "tags": [], - "label": "fetchFindLatestPackage", - "description": [], - "signature": [ - "(packageName: string) => Promise<", - { - "pluginId": "fleet", - "scope": "common", - "docId": "kibFleetPluginApi", - "section": "def-common.RegistrySearchResult", - "text": "RegistrySearchResult" - }, - ">" - ], - "path": "x-pack/plugins/fleet/server/plugin.ts", - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "fleet", - "id": "def-server.FleetStartContract.fetchFindLatestPackage.$1", - "type": "string", - "tags": [], - "label": "packageName", - "description": [], - "path": "x-pack/plugins/fleet/server/services/epm/registry/index.ts", - "deprecated": false - } - ] } ], "lifecycle": "start", @@ -7417,7 +7611,7 @@ "section": "def-common.PackagePolicyConfigRecordEntry", "text": "PackagePolicyConfigRecordEntry" }, - ", varDef: ", + " | undefined, varDef: ", { "pluginId": "fleet", "scope": "common", @@ -7444,11 +7638,12 @@ "docId": "kibFleetPluginApi", "section": "def-common.PackagePolicyConfigRecordEntry", "text": "PackagePolicyConfigRecordEntry" - } + }, + " | undefined" ], "path": "x-pack/plugins/fleet/common/services/validate_package_policy.ts", "deprecated": false, - "isRequired": true + "isRequired": false }, { "parentPluginId": "fleet", @@ -9402,7 +9597,7 @@ "label": "developer", "description": [], "signature": [ - "{ disableRegistryVersionCheck?: boolean | undefined; } | undefined" + "{ disableRegistryVersionCheck?: boolean | undefined; allowAgentUpgradeSourceUri?: boolean | undefined; } | undefined" ], "path": "x-pack/plugins/fleet/common/types/index.ts", "deprecated": false @@ -16569,7 +16764,7 @@ "section": "def-common.ValueOf", "text": "ValueOf" }, - "<{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }>; description?: string | undefined; name: string; updated_at: string; namespace: string; updated_by: string; is_default?: boolean | undefined; package_policies: string[] | ", + "<{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }>; description?: string | undefined; name: string; updated_at: string; updated_by: string; namespace: string; is_default?: boolean | undefined; package_policies: string[] | ", { "pluginId": "fleet", "scope": "common", @@ -16708,16 +16903,16 @@ "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.KibanaAssetReference", - "text": "KibanaAssetReference" + "section": "def-common.EsAssetReference", + "text": "EsAssetReference" }, " | ", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.EsAssetReference", - "text": "EsAssetReference" + "section": "def-common.KibanaAssetReference", + "text": "KibanaAssetReference" } ], "path": "x-pack/plugins/fleet/common/types/models/epm.ts", @@ -17091,7 +17286,7 @@ "section": "def-common.PackagePolicyPackage", "text": "PackagePolicyPackage" }, - " | undefined; }[]" + " | undefined; policy_id?: string | undefined; }[]" ], "path": "x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts", "deprecated": false, @@ -17119,7 +17314,7 @@ "label": "DocAssetType", "description": [], "signature": [ - "\"doc\" | \"notice\"" + "\"notice\" | \"doc\"" ], "path": "x-pack/plugins/fleet/common/types/models/epm.ts", "deprecated": false, @@ -17267,7 +17462,7 @@ "label": "EnrollmentAPIKeySOAttributes", "description": [], "signature": [ - "{ name?: string | undefined; active: boolean; policy_id?: string | undefined; created_at: string; api_key: string; api_key_id: string; }" + "{ name?: string | undefined; active: boolean; created_at: string; policy_id?: string | undefined; api_key: string; api_key_id: string; }" ], "path": "x-pack/plugins/fleet/common/types/models/enrollment_api_key.ts", "deprecated": false, @@ -17903,6 +18098,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "fleet", + "id": "def-common.INTERNAL_ROOT", + "type": "string", + "tags": [], + "label": "INTERNAL_ROOT", + "description": [], + "signature": [ + "\"/internal/fleet\"" + ], + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "fleet", "id": "def-common.KEEP_POLICIES_UP_TO_DATE_PACKAGES", @@ -18443,7 +18652,7 @@ "section": "def-common.PackagePolicyPackage", "text": "PackagePolicyPackage" }, - " | undefined; description?: string | undefined; name: string; enabled: boolean; updated_at: string; policy_id: string; inputs: ", + " | undefined; description?: string | undefined; name: string; enabled: boolean; updated_at: string; created_at: string; created_by: string; updated_by: string; namespace: string; inputs: ", { "pluginId": "fleet", "scope": "common", @@ -18451,7 +18660,7 @@ "section": "def-common.PackagePolicyInput", "text": "PackagePolicyInput" }, - "[]; namespace: string; output_id: string; vars?: ", + "[]; policy_id: string; output_id: string; vars?: ", { "pluginId": "fleet", "scope": "common", @@ -18459,7 +18668,7 @@ "section": "def-common.PackagePolicyConfigRecord", "text": "PackagePolicyConfigRecord" }, - " | undefined; elasticsearch?: { privileges?: { cluster?: string[] | undefined; } | undefined; } | undefined; created_at: string; created_by: string; updated_by: string; revision: number; }" + " | undefined; elasticsearch?: { privileges?: { cluster?: string[] | undefined; } | undefined; } | undefined; revision: number; }" ], "path": "x-pack/plugins/fleet/common/types/models/package_policy.ts", "deprecated": false, @@ -18737,7 +18946,7 @@ "label": "RegistrySearchResult", "description": [], "signature": [ - "{ download: string; title: string; type?: \"integration\" | undefined; description: string; icons?: (", + "{ download: string; type?: \"integration\" | undefined; title: string; description: string; icons?: (", { "pluginId": "fleet", "scope": "common", @@ -21555,6 +21764,26 @@ "description": [], "path": "x-pack/plugins/fleet/common/constants/routes.ts", "deprecated": false + }, + { + "parentPluginId": "fleet", + "id": "def-common.PRECONFIGURATION_API_ROUTES.RESET_PATTERN", + "type": "string", + "tags": [], + "label": "RESET_PATTERN", + "description": [], + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "deprecated": false + }, + { + "parentPluginId": "fleet", + "id": "def-common.PRECONFIGURATION_API_ROUTES.RESET_ONE_PATTERN", + "type": "string", + "tags": [], + "label": "RESET_ONE_PATTERN", + "description": [], + "path": "x-pack/plugins/fleet/common/constants/routes.ts", + "deprecated": false } ], "initialIsOpen": false diff --git a/api_docs/fleet.mdx b/api_docs/fleet.mdx index 57c85b8c4f0dda..0591712f9d6d85 100644 --- a/api_docs/fleet.mdx +++ b/api_docs/fleet.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fleet'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import fleetObj from './fleet.json'; +import fleetObj from './fleet.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Fleet](https://github.com/orgs/elastic/teams/fleet) for questions regar | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 1268 | 8 | 1152 | 10 | +| 1284 | 8 | 1168 | 10 | ## Client diff --git a/api_docs/global_search.json b/api_docs/global_search.devdocs.json similarity index 100% rename from api_docs/global_search.json rename to api_docs/global_search.devdocs.json diff --git a/api_docs/global_search.mdx b/api_docs/global_search.mdx index 3b25b7c0940d8d..4356c36102ce62 100644 --- a/api_docs/global_search.mdx +++ b/api_docs/global_search.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'globalSearch'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import globalSearchObj from './global_search.json'; +import globalSearchObj from './global_search.devdocs.json'; diff --git a/api_docs/home.json b/api_docs/home.devdocs.json similarity index 98% rename from api_docs/home.json rename to api_docs/home.devdocs.json index 0a2eb52e563223..1a3d4fb0fa88ad 100644 --- a/api_docs/home.json +++ b/api_docs/home.devdocs.json @@ -1422,7 +1422,7 @@ "tags": [], "label": "TutorialsCategory", "description": [], - "path": "src/plugins/home/server/services/tutorials/lib/tutorials_registry_types.ts", + "path": "src/plugins/home/common/constants.ts", "deprecated": false, "initialIsOpen": false } @@ -1464,7 +1464,7 @@ "label": "InstructionsSchema", "description": [], "signature": [ - "{ readonly params?: Readonly<{ defaultValue?: any; } & { label: string; id: string; type: \"string\" | \"number\"; }>[] | undefined; readonly instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }" + "{ readonly params?: Readonly<{ defaultValue?: any; } & { label: string; type: \"string\" | \"number\"; id: string; }>[] | undefined; readonly instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }" ], "path": "src/plugins/home/server/services/tutorials/lib/tutorial_schema.ts", "deprecated": false, @@ -1480,7 +1480,7 @@ "signature": [ "{ getSampleDatasets: () => ", "Writable", - "[]; previewImagePath: string; overviewDashboard: string; dataIndices: Readonly<{} & { id: string; fields: Record; timeFields: string[]; dataPath: string; currentTimeMarker: string; preserveDayOfWeekTimeOfDay: boolean; }>[]; }>>[]; addSavedObjectsToSampleDataset: (id: string, savedObjects: ", + "[]; defaultIndex: string; previewImagePath: string; overviewDashboard: string; dataIndices: Readonly<{} & { id: string; fields: Record; timeFields: string[]; dataPath: string; currentTimeMarker: string; preserveDayOfWeekTimeOfDay: boolean; }>[]; }>>[]; addSavedObjectsToSampleDataset: (id: string, savedObjects: ", "SavedObject", "[]) => void; addAppLinksToSampleDataset: (id: string, appLinks: ", { @@ -1514,7 +1514,7 @@ "signature": [ "() => ", "Writable", - "[]; previewImagePath: string; overviewDashboard: string; dataIndices: Readonly<{} & { id: string; fields: Record; timeFields: string[]; dataPath: string; currentTimeMarker: string; preserveDayOfWeekTimeOfDay: boolean; }>[]; }>>" + "[]; defaultIndex: string; previewImagePath: string; overviewDashboard: string; dataIndices: Readonly<{} & { id: string; fields: Record; timeFields: string[]; dataPath: string; currentTimeMarker: string; preserveDayOfWeekTimeOfDay: boolean; }>[]; }>>" ], "path": "src/plugins/home/server/services/sample_data/lib/sample_dataset_registry_types.ts", "deprecated": false, @@ -1568,7 +1568,7 @@ "section": "def-server.TutorialContext", "text": "TutorialContext" }, - ") => Readonly<{ isBeta?: boolean | undefined; savedObjects?: any[] | undefined; euiIconType?: string | undefined; previewImagePath?: string | undefined; moduleName?: string | undefined; completionTimeMinutes?: number | undefined; elasticCloud?: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; id: string; type: \"string\" | \"number\"; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }> | undefined; onPremElasticCloud?: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; id: string; type: \"string\" | \"number\"; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }> | undefined; artifacts?: Readonly<{ application?: Readonly<{} & { label: string; path: string; }> | undefined; exportedFields?: Readonly<{} & { documentationUrl: string; }> | undefined; } & { dashboards: Readonly<{ linkLabel?: string | undefined; } & { id: string; isOverview: boolean; }>[]; }> | undefined; savedObjectsInstallMsg?: string | undefined; customStatusCheckName?: string | undefined; integrationBrowserCategories?: string[] | undefined; eprPackageOverlap?: string | undefined; } & { id: string; name: string; category: \"other\" | \"security\" | \"metrics\" | \"logging\"; shortDescription: string; longDescription: string; onPrem: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; id: string; type: \"string\" | \"number\"; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }>; }>" + ") => Readonly<{ isBeta?: boolean | undefined; savedObjects?: any[] | undefined; euiIconType?: string | undefined; previewImagePath?: string | undefined; moduleName?: string | undefined; completionTimeMinutes?: number | undefined; elasticCloud?: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; type: \"string\" | \"number\"; id: string; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }> | undefined; onPremElasticCloud?: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; type: \"string\" | \"number\"; id: string; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }> | undefined; artifacts?: Readonly<{ application?: Readonly<{} & { label: string; path: string; }> | undefined; exportedFields?: Readonly<{} & { documentationUrl: string; }> | undefined; } & { dashboards: Readonly<{ linkLabel?: string | undefined; } & { id: string; isOverview: boolean; }>[]; }> | undefined; savedObjectsInstallMsg?: string | undefined; customStatusCheckName?: string | undefined; integrationBrowserCategories?: string[] | undefined; eprPackageOverlap?: string | undefined; } & { id: string; name: string; category: \"other\" | \"security\" | \"metrics\" | \"logging\"; shortDescription: string; longDescription: string; onPrem: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; type: \"string\" | \"number\"; id: string; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }>; }>" ], "path": "src/plugins/home/server/services/tutorials/lib/tutorials_registry_types.ts", "deprecated": false, @@ -1604,7 +1604,7 @@ "label": "TutorialSchema", "description": [], "signature": [ - "{ readonly isBeta?: boolean | undefined; readonly savedObjects?: any[] | undefined; readonly euiIconType?: string | undefined; readonly previewImagePath?: string | undefined; readonly moduleName?: string | undefined; readonly completionTimeMinutes?: number | undefined; readonly elasticCloud?: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; id: string; type: \"string\" | \"number\"; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }> | undefined; readonly onPremElasticCloud?: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; id: string; type: \"string\" | \"number\"; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }> | undefined; readonly artifacts?: Readonly<{ application?: Readonly<{} & { label: string; path: string; }> | undefined; exportedFields?: Readonly<{} & { documentationUrl: string; }> | undefined; } & { dashboards: Readonly<{ linkLabel?: string | undefined; } & { id: string; isOverview: boolean; }>[]; }> | undefined; readonly savedObjectsInstallMsg?: string | undefined; readonly customStatusCheckName?: string | undefined; readonly integrationBrowserCategories?: string[] | undefined; readonly eprPackageOverlap?: string | undefined; readonly id: string; readonly name: string; readonly category: \"other\" | \"security\" | \"metrics\" | \"logging\"; readonly shortDescription: string; readonly longDescription: string; readonly onPrem: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; id: string; type: \"string\" | \"number\"; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }>; }" + "{ readonly isBeta?: boolean | undefined; readonly savedObjects?: any[] | undefined; readonly euiIconType?: string | undefined; readonly previewImagePath?: string | undefined; readonly moduleName?: string | undefined; readonly completionTimeMinutes?: number | undefined; readonly elasticCloud?: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; type: \"string\" | \"number\"; id: string; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }> | undefined; readonly onPremElasticCloud?: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; type: \"string\" | \"number\"; id: string; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }> | undefined; readonly artifacts?: Readonly<{ application?: Readonly<{} & { label: string; path: string; }> | undefined; exportedFields?: Readonly<{} & { documentationUrl: string; }> | undefined; } & { dashboards: Readonly<{ linkLabel?: string | undefined; } & { id: string; isOverview: boolean; }>[]; }> | undefined; readonly savedObjectsInstallMsg?: string | undefined; readonly customStatusCheckName?: string | undefined; readonly integrationBrowserCategories?: string[] | undefined; readonly eprPackageOverlap?: string | undefined; readonly id: string; readonly name: string; readonly category: \"other\" | \"security\" | \"metrics\" | \"logging\"; readonly shortDescription: string; readonly longDescription: string; readonly onPrem: Readonly<{ params?: Readonly<{ defaultValue?: any; } & { label: string; type: \"string\" | \"number\"; id: string; }>[] | undefined; } & { instructionSets: Readonly<{ title?: string | undefined; callOut?: Readonly<{ message?: string | undefined; iconType?: string | undefined; } & { title: string; }> | undefined; statusCheck?: Readonly<{ title?: string | undefined; error?: string | undefined; text?: string | undefined; success?: string | undefined; btnLabel?: string | undefined; } & { esHitsCheck: Readonly<{} & { query: Record; index: string | string[]; }>; }> | undefined; } & { instructionVariants: Readonly<{ initialSelected?: boolean | undefined; } & { id: string; instructions: Readonly<{ title?: string | undefined; commands?: string[] | undefined; textPre?: string | undefined; textPost?: string | undefined; customComponentName?: string | undefined; } & {}>[]; }>[]; }>[]; }>; }" ], "path": "src/plugins/home/server/services/tutorials/lib/tutorial_schema.ts", "deprecated": false, @@ -1863,7 +1863,7 @@ "signature": [ "{ getSampleDatasets: () => ", "Writable", - "[]; previewImagePath: string; overviewDashboard: string; dataIndices: Readonly<{} & { id: string; fields: Record; timeFields: string[]; dataPath: string; currentTimeMarker: string; preserveDayOfWeekTimeOfDay: boolean; }>[]; }>>[]; addSavedObjectsToSampleDataset: (id: string, savedObjects: ", + "[]; defaultIndex: string; previewImagePath: string; overviewDashboard: string; dataIndices: Readonly<{} & { id: string; fields: Record; timeFields: string[]; dataPath: string; currentTimeMarker: string; preserveDayOfWeekTimeOfDay: boolean; }>[]; }>>[]; addSavedObjectsToSampleDataset: (id: string, savedObjects: ", "SavedObject", "[]) => void; addAppLinksToSampleDataset: (id: string, appLinks: ", { diff --git a/api_docs/home.mdx b/api_docs/home.mdx index 08dc94f310dfed..a45fbfd59d06f2 100644 --- a/api_docs/home.mdx +++ b/api_docs/home.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'home'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import homeObj from './home.json'; +import homeObj from './home.devdocs.json'; diff --git a/api_docs/index_lifecycle_management.json b/api_docs/index_lifecycle_management.devdocs.json similarity index 100% rename from api_docs/index_lifecycle_management.json rename to api_docs/index_lifecycle_management.devdocs.json diff --git a/api_docs/index_lifecycle_management.mdx b/api_docs/index_lifecycle_management.mdx index 7caeaf14e34251..d822b171159452 100644 --- a/api_docs/index_lifecycle_management.mdx +++ b/api_docs/index_lifecycle_management.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexLifecycleManagement'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import indexLifecycleManagementObj from './index_lifecycle_management.json'; +import indexLifecycleManagementObj from './index_lifecycle_management.devdocs.json'; diff --git a/api_docs/index_management.json b/api_docs/index_management.devdocs.json similarity index 100% rename from api_docs/index_management.json rename to api_docs/index_management.devdocs.json diff --git a/api_docs/index_management.mdx b/api_docs/index_management.mdx index 4ddde876aa3b21..029223ed66a2fe 100644 --- a/api_docs/index_management.mdx +++ b/api_docs/index_management.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexManagement'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import indexManagementObj from './index_management.json'; +import indexManagementObj from './index_management.devdocs.json'; diff --git a/api_docs/infra.json b/api_docs/infra.devdocs.json similarity index 88% rename from api_docs/infra.json rename to api_docs/infra.devdocs.json index f525b7bef3dd24..ea811c16216ced 100644 --- a/api_docs/infra.json +++ b/api_docs/infra.devdocs.json @@ -299,23 +299,62 @@ "server": { "classes": [], "functions": [], - "interfaces": [], - "enums": [], - "misc": [ + "interfaces": [ { "parentPluginId": "infra", "id": "def-server.InfraConfig", - "type": "Type", + "type": "Interface", "tags": [], "label": "InfraConfig", "description": [], - "signature": [ - "any" - ], - "path": "x-pack/plugins/infra/server/plugin.ts", + "path": "x-pack/plugins/infra/server/types.ts", "deprecated": false, + "children": [ + { + "parentPluginId": "infra", + "id": "def-server.InfraConfig.alerting", + "type": "Object", + "tags": [], + "label": "alerting", + "description": [], + "signature": [ + "{ inventory_threshold: { group_by_page_size: number; }; metric_threshold: { group_by_page_size: number; }; }" + ], + "path": "x-pack/plugins/infra/server/types.ts", + "deprecated": false + }, + { + "parentPluginId": "infra", + "id": "def-server.InfraConfig.inventory", + "type": "Object", + "tags": [], + "label": "inventory", + "description": [], + "signature": [ + "{ compositeSize: number; }" + ], + "path": "x-pack/plugins/infra/server/types.ts", + "deprecated": false + }, + { + "parentPluginId": "infra", + "id": "def-server.InfraConfig.sources", + "type": "Object", + "tags": [], + "label": "sources", + "description": [], + "signature": [ + "{ default?: { fields?: { message?: string[] | undefined; } | undefined; } | undefined; } | undefined" + ], + "path": "x-pack/plugins/infra/server/types.ts", + "deprecated": false + } + ], "initialIsOpen": false - }, + } + ], + "enums": [], + "misc": [ { "parentPluginId": "infra", "id": "def-server.InfraRequestHandlerContext", diff --git a/api_docs/infra.mdx b/api_docs/infra.mdx index a81f6de1165d94..626608d0cfb125 100644 --- a/api_docs/infra.mdx +++ b/api_docs/infra.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'infra'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import infraObj from './infra.json'; +import infraObj from './infra.devdocs.json'; This plugin visualizes data from Filebeat and Metricbeat, and integrates with other Observability solutions @@ -18,7 +18,7 @@ Contact [Logs and Metrics UI](https://github.com/orgs/elastic/teams/logs-metrics | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 25 | 0 | 22 | 3 | +| 28 | 0 | 25 | 3 | ## Client @@ -42,6 +42,9 @@ Contact [Logs and Metrics UI](https://github.com/orgs/elastic/teams/logs-metrics ### Setup +### Interfaces + + ### Consts, variables and types diff --git a/api_docs/inspector.json b/api_docs/inspector.devdocs.json similarity index 100% rename from api_docs/inspector.json rename to api_docs/inspector.devdocs.json diff --git a/api_docs/inspector.mdx b/api_docs/inspector.mdx index e240122179f762..13dcdca6c76afa 100644 --- a/api_docs/inspector.mdx +++ b/api_docs/inspector.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'inspector'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import inspectorObj from './inspector.json'; +import inspectorObj from './inspector.devdocs.json'; diff --git a/api_docs/interactive_setup.json b/api_docs/interactive_setup.devdocs.json similarity index 100% rename from api_docs/interactive_setup.json rename to api_docs/interactive_setup.devdocs.json diff --git a/api_docs/interactive_setup.mdx b/api_docs/interactive_setup.mdx index 89e0fa09a674d1..272e3880cbae18 100644 --- a/api_docs/interactive_setup.mdx +++ b/api_docs/interactive_setup.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'interactiveSetup'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import interactiveSetupObj from './interactive_setup.json'; +import interactiveSetupObj from './interactive_setup.devdocs.json'; This plugin provides UI and APIs for the interactive setup mode. diff --git a/api_docs/kbn_ace.json b/api_docs/kbn_ace.devdocs.json similarity index 100% rename from api_docs/kbn_ace.json rename to api_docs/kbn_ace.devdocs.json diff --git a/api_docs/kbn_ace.mdx b/api_docs/kbn_ace.mdx index 187d3e585e7575..0c3b8d3c230853 100644 --- a/api_docs/kbn_ace.mdx +++ b/api_docs/kbn_ace.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ace'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnAceObj from './kbn_ace.json'; +import kbnAceObj from './kbn_ace.devdocs.json'; diff --git a/api_docs/kbn_alerts.json b/api_docs/kbn_alerts.devdocs.json similarity index 100% rename from api_docs/kbn_alerts.json rename to api_docs/kbn_alerts.devdocs.json diff --git a/api_docs/kbn_alerts.mdx b/api_docs/kbn_alerts.mdx index 2f0acc4393f8b2..66f644bc432a2f 100644 --- a/api_docs/kbn_alerts.mdx +++ b/api_docs/kbn_alerts.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerts'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnAlertsObj from './kbn_alerts.json'; +import kbnAlertsObj from './kbn_alerts.devdocs.json'; Alerts components and hooks diff --git a/api_docs/kbn_analytics.json b/api_docs/kbn_analytics.devdocs.json similarity index 100% rename from api_docs/kbn_analytics.json rename to api_docs/kbn_analytics.devdocs.json diff --git a/api_docs/kbn_analytics.mdx b/api_docs/kbn_analytics.mdx index 8cd520e8659ce5..53f6c6aa3d186c 100644 --- a/api_docs/kbn_analytics.mdx +++ b/api_docs/kbn_analytics.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnAnalyticsObj from './kbn_analytics.json'; +import kbnAnalyticsObj from './kbn_analytics.devdocs.json'; Kibana Analytics tool diff --git a/api_docs/kbn_apm_config_loader.json b/api_docs/kbn_apm_config_loader.devdocs.json similarity index 100% rename from api_docs/kbn_apm_config_loader.json rename to api_docs/kbn_apm_config_loader.devdocs.json diff --git a/api_docs/kbn_apm_config_loader.mdx b/api_docs/kbn_apm_config_loader.mdx index 6f5dd21d46094f..79837dd6dc09e0 100644 --- a/api_docs/kbn_apm_config_loader.mdx +++ b/api_docs/kbn_apm_config_loader.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-config-loader'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnApmConfigLoaderObj from './kbn_apm_config_loader.json'; +import kbnApmConfigLoaderObj from './kbn_apm_config_loader.devdocs.json'; diff --git a/api_docs/kbn_apm_utils.json b/api_docs/kbn_apm_utils.devdocs.json similarity index 100% rename from api_docs/kbn_apm_utils.json rename to api_docs/kbn_apm_utils.devdocs.json diff --git a/api_docs/kbn_apm_utils.mdx b/api_docs/kbn_apm_utils.mdx index 5cbf64e48fcfa6..dace3da180009c 100644 --- a/api_docs/kbn_apm_utils.mdx +++ b/api_docs/kbn_apm_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnApmUtilsObj from './kbn_apm_utils.json'; +import kbnApmUtilsObj from './kbn_apm_utils.devdocs.json'; diff --git a/api_docs/kbn_cli_dev_mode.json b/api_docs/kbn_cli_dev_mode.devdocs.json similarity index 100% rename from api_docs/kbn_cli_dev_mode.json rename to api_docs/kbn_cli_dev_mode.devdocs.json diff --git a/api_docs/kbn_cli_dev_mode.mdx b/api_docs/kbn_cli_dev_mode.mdx index 39615f18f26284..c783e172c8d72a 100644 --- a/api_docs/kbn_cli_dev_mode.mdx +++ b/api_docs/kbn_cli_dev_mode.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cli-dev-mode'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnCliDevModeObj from './kbn_cli_dev_mode.json'; +import kbnCliDevModeObj from './kbn_cli_dev_mode.devdocs.json'; diff --git a/api_docs/kbn_config.json b/api_docs/kbn_config.devdocs.json similarity index 95% rename from api_docs/kbn_config.json rename to api_docs/kbn_config.devdocs.json index 2e2937368b278b..383df777d15f69 100644 --- a/api_docs/kbn_config.json +++ b/api_docs/kbn_config.devdocs.json @@ -311,9 +311,9 @@ "\nDeprecate a configuration property from inside a plugin's configuration path.\nWill log a deprecation warning if the deprecatedKey was found.\n" ], "signature": [ - "(deprecatedKey: string, removeBy: string, details?: Partial<", - "DeprecatedConfigDetails", - "> | undefined) => ", + "(deprecatedKey: string, removeBy: string, details: ", + "FactoryConfigDeprecationDetails", + ") => ", { "pluginId": "@kbn/config", "scope": "server", @@ -356,18 +356,16 @@ { "parentPluginId": "@kbn/config", "id": "def-server.ConfigDeprecationFactory.deprecate.$3", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial<", - "DeprecatedConfigDetails", - "> | undefined" + "FactoryConfigDeprecationDetails" ], "path": "packages/kbn-config/src/deprecation/types.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -382,9 +380,9 @@ "\nDeprecate a configuration property from the root configuration.\nWill log a deprecation warning if the deprecatedKey was found.\n\nThis should be only used when deprecating properties from different configuration's path.\nTo deprecate properties from inside a plugin's configuration, use 'deprecate' instead.\n" ], "signature": [ - "(deprecatedKey: string, removeBy: string, details?: Partial<", - "DeprecatedConfigDetails", - "> | undefined) => ", + "(deprecatedKey: string, removeBy: string, details: ", + "FactoryConfigDeprecationDetails", + ") => ", { "pluginId": "@kbn/config", "scope": "server", @@ -427,18 +425,16 @@ { "parentPluginId": "@kbn/config", "id": "def-server.ConfigDeprecationFactory.deprecateFromRoot.$3", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial<", - "DeprecatedConfigDetails", - "> | undefined" + "FactoryConfigDeprecationDetails" ], "path": "packages/kbn-config/src/deprecation/types.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -453,9 +449,9 @@ "\nRename a configuration property from inside a plugin's configuration path.\nWill log a deprecation warning if the oldKey was found and deprecation applied.\n" ], "signature": [ - "(oldKey: string, newKey: string, details?: Partial<", - "DeprecatedConfigDetails", - "> | undefined) => ", + "(oldKey: string, newKey: string, details: ", + "FactoryConfigDeprecationDetails", + ") => ", { "pluginId": "@kbn/config", "scope": "server", @@ -498,18 +494,16 @@ { "parentPluginId": "@kbn/config", "id": "def-server.ConfigDeprecationFactory.rename.$3", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial<", - "DeprecatedConfigDetails", - "> | undefined" + "FactoryConfigDeprecationDetails" ], "path": "packages/kbn-config/src/deprecation/types.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -524,9 +518,9 @@ "\nRename a configuration property from the root configuration.\nWill log a deprecation warning if the oldKey was found and deprecation applied.\n\nThis should be only used when renaming properties from different configuration's path.\nTo rename properties from inside a plugin's configuration, use 'rename' instead.\n" ], "signature": [ - "(oldKey: string, newKey: string, details?: Partial<", - "DeprecatedConfigDetails", - "> | undefined) => ", + "(oldKey: string, newKey: string, details: ", + "FactoryConfigDeprecationDetails", + ") => ", { "pluginId": "@kbn/config", "scope": "server", @@ -569,18 +563,16 @@ { "parentPluginId": "@kbn/config", "id": "def-server.ConfigDeprecationFactory.renameFromRoot.$3", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial<", - "DeprecatedConfigDetails", - "> | undefined" + "FactoryConfigDeprecationDetails" ], "path": "packages/kbn-config/src/deprecation/types.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -595,9 +587,9 @@ "\nRemove a configuration property from inside a plugin's configuration path.\nWill log a deprecation warning if the unused key was found and deprecation applied.\n" ], "signature": [ - "(unusedKey: string, details?: Partial<", - "DeprecatedConfigDetails", - "> | undefined) => ", + "(unusedKey: string, details: ", + "FactoryConfigDeprecationDetails", + ") => ", { "pluginId": "@kbn/config", "scope": "server", @@ -626,18 +618,16 @@ { "parentPluginId": "@kbn/config", "id": "def-server.ConfigDeprecationFactory.unused.$2", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial<", - "DeprecatedConfigDetails", - "> | undefined" + "FactoryConfigDeprecationDetails" ], "path": "packages/kbn-config/src/deprecation/types.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] @@ -652,9 +642,9 @@ "\nRemove a configuration property from the root configuration.\nWill log a deprecation warning if the unused key was found and deprecation applied.\n\nThis should be only used when removing properties from outside of a plugin's configuration.\nTo remove properties from inside a plugin's configuration, use 'unused' instead.\n" ], "signature": [ - "(unusedKey: string, details?: Partial<", - "DeprecatedConfigDetails", - "> | undefined) => ", + "(unusedKey: string, details: ", + "FactoryConfigDeprecationDetails", + ") => ", { "pluginId": "@kbn/config", "scope": "server", @@ -683,18 +673,16 @@ { "parentPluginId": "@kbn/config", "id": "def-server.ConfigDeprecationFactory.unusedFromRoot.$2", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "details", "description": [], "signature": [ - "Partial<", - "DeprecatedConfigDetails", - "> | undefined" + "FactoryConfigDeprecationDetails" ], "path": "packages/kbn-config/src/deprecation/types.ts", "deprecated": false, - "isRequired": false + "isRequired": true } ], "returnComment": [] diff --git a/api_docs/kbn_config.mdx b/api_docs/kbn_config.mdx index 1a7eef06313ce6..3fa38a34b0680d 100644 --- a/api_docs/kbn_config.mdx +++ b/api_docs/kbn_config.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnConfigObj from './kbn_config.json'; +import kbnConfigObj from './kbn_config.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Owner missing] for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 66 | 0 | 46 | 1 | +| 66 | 0 | 46 | 2 | ## Server diff --git a/api_docs/kbn_config_schema.json b/api_docs/kbn_config_schema.devdocs.json similarity index 100% rename from api_docs/kbn_config_schema.json rename to api_docs/kbn_config_schema.devdocs.json diff --git a/api_docs/kbn_config_schema.mdx b/api_docs/kbn_config_schema.mdx index 9c4d23a526ffc2..d6ef1ea0186fd9 100644 --- a/api_docs/kbn_config_schema.mdx +++ b/api_docs/kbn_config_schema.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config-schema'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnConfigSchemaObj from './kbn_config_schema.json'; +import kbnConfigSchemaObj from './kbn_config_schema.devdocs.json'; diff --git a/api_docs/kbn_crypto.json b/api_docs/kbn_crypto.devdocs.json similarity index 100% rename from api_docs/kbn_crypto.json rename to api_docs/kbn_crypto.devdocs.json diff --git a/api_docs/kbn_crypto.mdx b/api_docs/kbn_crypto.mdx index 441ee558c5aa41..3dc3647259db35 100644 --- a/api_docs/kbn_crypto.mdx +++ b/api_docs/kbn_crypto.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/crypto'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnCryptoObj from './kbn_crypto.json'; +import kbnCryptoObj from './kbn_crypto.devdocs.json'; diff --git a/api_docs/kbn_dev_utils.json b/api_docs/kbn_dev_utils.devdocs.json similarity index 99% rename from api_docs/kbn_dev_utils.json rename to api_docs/kbn_dev_utils.devdocs.json index 529541c63be1af..7f31eaecf18526 100644 --- a/api_docs/kbn_dev_utils.json +++ b/api_docs/kbn_dev_utils.devdocs.json @@ -1658,7 +1658,7 @@ "label": "createRecursiveSerializer", "description": [], "signature": [ - "(test: (v: any) => boolean, print: (v: any) => string) => { test: (v: any) => boolean; serialize: (v: any, ...rest: any[]) => any; }" + "(test: (v: any) => boolean, print: (v: any, printRaw: (v: string) => RawPrint) => string | RawPrint) => { test: (v: any) => boolean; serialize: (v: any, ...rest: any[]) => any; }" ], "path": "packages/kbn-dev-utils/src/serializers/recursive_serializer.ts", "deprecated": false, @@ -1685,7 +1685,7 @@ "label": "print", "description": [], "signature": [ - "(v: any) => string" + "(v: any, printRaw: (v: string) => RawPrint) => string | RawPrint" ], "path": "packages/kbn-dev-utils/src/serializers/recursive_serializer.ts", "deprecated": false, diff --git a/api_docs/kbn_dev_utils.mdx b/api_docs/kbn_dev_utils.mdx index 76de61e81db1aa..32895276375044 100644 --- a/api_docs/kbn_dev_utils.mdx +++ b/api_docs/kbn_dev_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnDevUtilsObj from './kbn_dev_utils.json'; +import kbnDevUtilsObj from './kbn_dev_utils.devdocs.json'; diff --git a/api_docs/kbn_docs_utils.json b/api_docs/kbn_docs_utils.devdocs.json similarity index 100% rename from api_docs/kbn_docs_utils.json rename to api_docs/kbn_docs_utils.devdocs.json diff --git a/api_docs/kbn_docs_utils.mdx b/api_docs/kbn_docs_utils.mdx index 064252914ae850..1710d4b84a9f3f 100644 --- a/api_docs/kbn_docs_utils.mdx +++ b/api_docs/kbn_docs_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/docs-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnDocsUtilsObj from './kbn_docs_utils.json'; +import kbnDocsUtilsObj from './kbn_docs_utils.devdocs.json'; diff --git a/api_docs/kbn_es_archiver.json b/api_docs/kbn_es_archiver.devdocs.json similarity index 100% rename from api_docs/kbn_es_archiver.json rename to api_docs/kbn_es_archiver.devdocs.json diff --git a/api_docs/kbn_es_archiver.mdx b/api_docs/kbn_es_archiver.mdx index b7557c69234aa9..6517e3f9e3ca43 100644 --- a/api_docs/kbn_es_archiver.mdx +++ b/api_docs/kbn_es_archiver.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-archiver'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnEsArchiverObj from './kbn_es_archiver.json'; +import kbnEsArchiverObj from './kbn_es_archiver.devdocs.json'; diff --git a/api_docs/kbn_es_query.json b/api_docs/kbn_es_query.devdocs.json similarity index 99% rename from api_docs/kbn_es_query.json rename to api_docs/kbn_es_query.devdocs.json index da14ca58214f76..eac92f395ff74a 100644 --- a/api_docs/kbn_es_query.json +++ b/api_docs/kbn_es_query.devdocs.json @@ -965,14 +965,15 @@ "\nCreates a filter corresponding to a raw Elasticsearch query DSL object" ], "signature": [ - "(query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined, index: string, alias: string) => ", + "(query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined, index: string, alias?: string | undefined, meta?: ", { "pluginId": "@kbn/es-query", "scope": "common", "docId": "kibKbnEsQueryPluginApi", - "section": "def-common.QueryStringFilter", - "text": "QueryStringFilter" - } + "section": "def-common.FilterMeta", + "text": "FilterMeta" + }, + ") => { query: (Record & { query_string?: { query: string; fields?: string[] | undefined; } | undefined; }) | undefined; meta: { alias: string | null | undefined; disabled?: boolean | undefined; negate?: boolean | undefined; controlledBy?: string | undefined; group?: string | undefined; index: string; isMultiIndex?: boolean | undefined; type?: string | undefined; key?: string | undefined; params?: any; value?: string | undefined; }; }" ], "path": "packages/kbn-es-query/src/filters/build_filters/query_string_filter.ts", "deprecated": false, @@ -1013,7 +1014,27 @@ "label": "alias", "description": [], "signature": [ - "string" + "string | undefined" + ], + "path": "packages/kbn-es-query/src/filters/build_filters/query_string_filter.ts", + "deprecated": false, + "isRequired": false + }, + { + "parentPluginId": "@kbn/es-query", + "id": "def-common.buildQueryFilter.$4", + "type": "Object", + "tags": [], + "label": "meta", + "description": [], + "signature": [ + { + "pluginId": "@kbn/es-query", + "scope": "common", + "docId": "kibKbnEsQueryPluginApi", + "section": "def-common.FilterMeta", + "text": "FilterMeta" + } ], "path": "packages/kbn-es-query/src/filters/build_filters/query_string_filter.ts", "deprecated": false, diff --git a/api_docs/kbn_es_query.mdx b/api_docs/kbn_es_query.mdx index c329aeb2e36b1c..88afa3fcd145b4 100644 --- a/api_docs/kbn_es_query.mdx +++ b/api_docs/kbn_es_query.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-query'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnEsQueryObj from './kbn_es_query.json'; +import kbnEsQueryObj from './kbn_es_query.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Owner missing] for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 210 | 1 | 158 | 11 | +| 211 | 1 | 159 | 11 | ## Common diff --git a/api_docs/kbn_field_types.json b/api_docs/kbn_field_types.devdocs.json similarity index 100% rename from api_docs/kbn_field_types.json rename to api_docs/kbn_field_types.devdocs.json diff --git a/api_docs/kbn_field_types.mdx b/api_docs/kbn_field_types.mdx index 36933bdda99528..30444e4f5904ab 100644 --- a/api_docs/kbn_field_types.mdx +++ b/api_docs/kbn_field_types.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/field-types'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnFieldTypesObj from './kbn_field_types.json'; +import kbnFieldTypesObj from './kbn_field_types.devdocs.json'; diff --git a/api_docs/kbn_i18n.json b/api_docs/kbn_i18n.devdocs.json similarity index 100% rename from api_docs/kbn_i18n.json rename to api_docs/kbn_i18n.devdocs.json diff --git a/api_docs/kbn_i18n.mdx b/api_docs/kbn_i18n.mdx index 49d02964e42b40..49da6d668b6677 100644 --- a/api_docs/kbn_i18n.mdx +++ b/api_docs/kbn_i18n.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/i18n'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnI18nObj from './kbn_i18n.json'; +import kbnI18nObj from './kbn_i18n.devdocs.json'; diff --git a/api_docs/kbn_interpreter.json b/api_docs/kbn_interpreter.devdocs.json similarity index 64% rename from api_docs/kbn_interpreter.json rename to api_docs/kbn_interpreter.devdocs.json index 654d1fc5b9037c..8aa52cf6190285 100644 --- a/api_docs/kbn_interpreter.json +++ b/api_docs/kbn_interpreter.devdocs.json @@ -232,7 +232,7 @@ "text": "Ast" } ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", + "path": "packages/kbn-interpreter/src/common/lib/ast/from_expression.ts", "deprecated": false, "children": [ { @@ -245,7 +245,7 @@ "signature": [ "string" ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", + "path": "packages/kbn-interpreter/src/common/lib/ast/from_expression.ts", "deprecated": false, "isRequired": true }, @@ -259,7 +259,7 @@ "signature": [ "string" ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", + "path": "packages/kbn-interpreter/src/common/lib/ast/from_expression.ts", "deprecated": false, "isRequired": true } @@ -298,6 +298,68 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.isAst", + "type": "Function", + "tags": [], + "label": "isAst", + "description": [], + "signature": [ + "(value: any) => boolean" + ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.isAst.$1", + "type": "Any", + "tags": [], + "label": "value", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.isAstWithMeta", + "type": "Function", + "tags": [], + "label": "isAstWithMeta", + "description": [], + "signature": [ + "(value: any) => boolean" + ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.isAstWithMeta.$1", + "type": "Any", + "tags": [], + "label": "value", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "@kbn/interpreter", "id": "def-server.safeElementFromExpression", @@ -315,7 +377,7 @@ "text": "Ast" } ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", + "path": "packages/kbn-interpreter/src/common/lib/ast/safe_element_from_expression.ts", "deprecated": false, "children": [ { @@ -328,7 +390,7 @@ "signature": [ "string" ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", + "path": "packages/kbn-interpreter/src/common/lib/ast/safe_element_from_expression.ts", "deprecated": false, "isRequired": true } @@ -344,159 +406,250 @@ "label": "toExpression", "description": [], "signature": [ - "(astObj: ", + "(ast: ", { "pluginId": "@kbn/interpreter", "scope": "server", "docId": "kibKbnInterpreterPluginApi", - "section": "def-server.Ast", - "text": "Ast" + "section": "def-server.AstNode", + "text": "AstNode" }, - ", type: string) => string" + ", options: string | Options) => string" ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", + "path": "packages/kbn-interpreter/src/common/lib/ast/to_expression.ts", "deprecated": false, "children": [ { "parentPluginId": "@kbn/interpreter", "id": "def-server.toExpression.$1", - "type": "Object", + "type": "CompoundType", "tags": [], - "label": "astObj", + "label": "ast", "description": [], "signature": [ { "pluginId": "@kbn/interpreter", "scope": "server", "docId": "kibKbnInterpreterPluginApi", - "section": "def-server.Ast", - "text": "Ast" + "section": "def-server.AstNode", + "text": "AstNode" } ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", + "path": "packages/kbn-interpreter/src/common/lib/ast/to_expression.ts", "deprecated": false, "isRequired": true }, { "parentPluginId": "@kbn/interpreter", "id": "def-server.toExpression.$2", - "type": "string", + "type": "CompoundType", "tags": [], - "label": "type", + "label": "options", "description": [], "signature": [ - "string" + "string | Options" ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", + "path": "packages/kbn-interpreter/src/common/lib/ast/to_expression.ts", "deprecated": false, "isRequired": true } ], "returnComment": [], "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.typedParse", + "type": "Function", + "tags": [], + "label": "typedParse", + "description": [], + "signature": [ + "Parse" + ], + "path": "packages/kbn-interpreter/src/common/lib/parse.ts", + "deprecated": false, + "initialIsOpen": false } ], - "interfaces": [ + "interfaces": [], + "enums": [], + "misc": [ { "parentPluginId": "@kbn/interpreter", "id": "def-server.Ast", - "type": "Interface", + "type": "Type", "tags": [], "label": "Ast", "description": [], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", - "deprecated": false, - "children": [ + "signature": [ + "{ type: \"expression\"; chain: ", { - "parentPluginId": "@kbn/interpreter", - "id": "def-server.Ast.type", - "type": "string", - "tags": [], - "label": "type", - "description": [], - "signature": [ - "\"expression\"" - ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", - "deprecated": false + "pluginId": "@kbn/interpreter", + "scope": "server", + "docId": "kibKbnInterpreterPluginApi", + "section": "def-server.AstFunction", + "text": "AstFunction" }, + "[]; }" + ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.AstArgument", + "type": "Type", + "tags": [], + "label": "AstArgument", + "description": [], + "signature": [ + "string | number | boolean | ", { - "parentPluginId": "@kbn/interpreter", - "id": "def-server.Ast.chain", - "type": "Array", - "tags": [], - "label": "chain", - "description": [], - "signature": [ - { - "pluginId": "@kbn/interpreter", - "scope": "server", - "docId": "kibKbnInterpreterPluginApi", - "section": "def-server.ExpressionFunctionAST", - "text": "ExpressionFunctionAST" - }, - "[]" - ], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", - "deprecated": false + "pluginId": "@kbn/interpreter", + "scope": "server", + "docId": "kibKbnInterpreterPluginApi", + "section": "def-server.Ast", + "text": "Ast" } ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "@kbn/interpreter", - "id": "def-server.ExpressionFunctionAST", - "type": "Interface", + "id": "def-server.AstArgumentWithMeta", + "type": "Type", "tags": [], - "label": "ExpressionFunctionAST", + "label": "AstArgumentWithMeta", "description": [], - "path": "packages/kbn-interpreter/src/common/lib/ast.ts", + "signature": [ + { + "pluginId": "@kbn/interpreter", + "scope": "server", + "docId": "kibKbnInterpreterPluginApi", + "section": "def-server.AstWithMeta", + "text": "AstWithMeta" + }, + " | WithMeta | WithMeta | WithMeta | WithMeta" + ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", "deprecated": false, - "children": [ + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.AstFunction", + "type": "Type", + "tags": [], + "label": "AstFunction", + "description": [], + "signature": [ + "{ type: \"function\"; function: string; arguments: Record; }" + ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.AstFunctionWithMeta", + "type": "Type", + "tags": [], + "label": "AstFunctionWithMeta", + "description": [], + "signature": [ + "WithMeta>" + ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.AstNode", + "type": "Type", + "tags": [], + "label": "AstNode", + "description": [], + "signature": [ + { + "pluginId": "@kbn/interpreter", + "scope": "server", + "docId": "kibKbnInterpreterPluginApi", + "section": "def-server.AstFunction", + "text": "AstFunction" + }, + " | ", + { + "pluginId": "@kbn/interpreter", + "scope": "server", + "docId": "kibKbnInterpreterPluginApi", + "section": "def-server.AstArgument", + "text": "AstArgument" } ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/interpreter", + "id": "def-server.AstWithMeta", + "type": "Type", + "tags": [], + "label": "AstWithMeta", + "description": [], + "signature": [ + "WithMeta>" + ], + "path": "packages/kbn-interpreter/src/common/lib/ast/ast.ts", + "deprecated": false, "initialIsOpen": false } ], - "enums": [], - "misc": [], "objects": [] }, "common": { diff --git a/api_docs/kbn_interpreter.mdx b/api_docs/kbn_interpreter.mdx index 19d302bb306f51..94fd0897fe1a3c 100644 --- a/api_docs/kbn_interpreter.mdx +++ b/api_docs/kbn_interpreter.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/interpreter'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnInterpreterObj from './kbn_interpreter.json'; +import kbnInterpreterObj from './kbn_interpreter.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Owner missing] for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 30 | 1 | 30 | 1 | +| 35 | 3 | 35 | 1 | ## Server @@ -28,6 +28,6 @@ Contact [Owner missing] for questions regarding this plugin. ### Classes -### Interfaces - +### Consts, variables and types + diff --git a/api_docs/kbn_io_ts_utils.json b/api_docs/kbn_io_ts_utils.devdocs.json similarity index 87% rename from api_docs/kbn_io_ts_utils.json rename to api_docs/kbn_io_ts_utils.devdocs.json index b7af72f41f1ff1..0eac86c5269a47 100644 --- a/api_docs/kbn_io_ts_utils.json +++ b/api_docs/kbn_io_ts_utils.devdocs.json @@ -59,10 +59,10 @@ " | ", "StringType", " | ", - "NumberType", - " | ", "BooleanType", " | ", + "NumberType", + " | ", "RecordC", "<", "Mixed", @@ -265,7 +265,42 @@ "initialIsOpen": false } ], - "interfaces": [], + "interfaces": [ + { + "parentPluginId": "@kbn/io-ts-utils", + "id": "def-server.NonEmptyStringBrand", + "type": "Interface", + "tags": [], + "label": "NonEmptyStringBrand", + "description": [], + "path": "packages/kbn-io-ts-utils/src/non_empty_string_rt/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/io-ts-utils", + "id": "def-server.NonEmptyStringBrand.NonEmptyString", + "type": "Uncategorized", + "tags": [], + "label": "NonEmptyString", + "description": [], + "signature": [ + "typeof ", + { + "pluginId": "@kbn/io-ts-utils", + "scope": "server", + "docId": "kibKbnIoTsUtilsPluginApi", + "section": "def-server.NonEmptyStringBrand", + "text": "NonEmptyStringBrand" + }, + "[\"NonEmptyString\"]" + ], + "path": "packages/kbn-io-ts-utils/src/non_empty_string_rt/index.ts", + "deprecated": false + } + ], + "initialIsOpen": false + } + ], "enums": [], "misc": [], "objects": [ @@ -311,7 +346,13 @@ "<", "StringC", ", ", - "NonEmptyStringBrand", + { + "pluginId": "@kbn/io-ts-utils", + "scope": "server", + "docId": "kibKbnIoTsUtilsPluginApi", + "section": "def-server.NonEmptyStringBrand", + "text": "NonEmptyStringBrand" + }, ">" ], "path": "packages/kbn-io-ts-utils/src/non_empty_string_rt/index.ts", diff --git a/api_docs/kbn_io_ts_utils.mdx b/api_docs/kbn_io_ts_utils.mdx index ca7f28de82b58b..da1ef288910256 100644 --- a/api_docs/kbn_io_ts_utils.mdx +++ b/api_docs/kbn_io_ts_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/io-ts-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnIoTsUtilsObj from './kbn_io_ts_utils.json'; +import kbnIoTsUtilsObj from './kbn_io_ts_utils.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Owner missing] for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 18 | 0 | 18 | 3 | +| 20 | 0 | 20 | 2 | ## Server @@ -28,3 +28,6 @@ Contact [Owner missing] for questions regarding this plugin. ### Functions +### Interfaces + + diff --git a/api_docs/kbn_logging.json b/api_docs/kbn_logging.devdocs.json similarity index 99% rename from api_docs/kbn_logging.json rename to api_docs/kbn_logging.devdocs.json index 5b2dc28bdcee7b..574eac0a280cab 100644 --- a/api_docs/kbn_logging.json +++ b/api_docs/kbn_logging.devdocs.json @@ -616,7 +616,7 @@ "label": "EcsEventCategory", "description": [], "signature": [ - "\"database\" | \"package\" | \"network\" | \"web\" | \"host\" | \"session\" | \"file\" | \"process\" | \"registry\" | \"authentication\" | \"configuration\" | \"driver\" | \"iam\" | \"intrusion_detection\" | \"malware\"" + "\"database\" | \"package\" | \"network\" | \"web\" | \"host\" | \"session\" | \"file\" | \"registry\" | \"process\" | \"authentication\" | \"configuration\" | \"driver\" | \"iam\" | \"intrusion_detection\" | \"malware\"" ], "path": "packages/kbn-logging/src/ecs/event.ts", "deprecated": false, @@ -658,7 +658,7 @@ "label": "EcsEventType", "description": [], "signature": [ - "\"start\" | \"user\" | \"error\" | \"end\" | \"info\" | \"group\" | \"connection\" | \"protocol\" | \"access\" | \"admin\" | \"allowed\" | \"change\" | \"creation\" | \"deletion\" | \"denied\" | \"installation\"" + "\"start\" | \"user\" | \"error\" | \"end\" | \"info\" | \"group\" | \"protocol\" | \"connection\" | \"access\" | \"admin\" | \"allowed\" | \"change\" | \"creation\" | \"deletion\" | \"denied\" | \"installation\"" ], "path": "packages/kbn-logging/src/ecs/event.ts", "deprecated": false, diff --git a/api_docs/kbn_logging.mdx b/api_docs/kbn_logging.mdx index b3d493ffa60646..a7cc25ba000f77 100644 --- a/api_docs/kbn_logging.mdx +++ b/api_docs/kbn_logging.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/logging'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnLoggingObj from './kbn_logging.json'; +import kbnLoggingObj from './kbn_logging.devdocs.json'; diff --git a/api_docs/kbn_mapbox_gl.json b/api_docs/kbn_mapbox_gl.devdocs.json similarity index 100% rename from api_docs/kbn_mapbox_gl.json rename to api_docs/kbn_mapbox_gl.devdocs.json diff --git a/api_docs/kbn_mapbox_gl.mdx b/api_docs/kbn_mapbox_gl.mdx index a177fca0318479..b92f3b66bda46f 100644 --- a/api_docs/kbn_mapbox_gl.mdx +++ b/api_docs/kbn_mapbox_gl.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/mapbox-gl'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnMapboxGlObj from './kbn_mapbox_gl.json'; +import kbnMapboxGlObj from './kbn_mapbox_gl.devdocs.json'; diff --git a/api_docs/kbn_monaco.json b/api_docs/kbn_monaco.devdocs.json similarity index 100% rename from api_docs/kbn_monaco.json rename to api_docs/kbn_monaco.devdocs.json diff --git a/api_docs/kbn_monaco.mdx b/api_docs/kbn_monaco.mdx index df62501231b774..35835226ad936e 100644 --- a/api_docs/kbn_monaco.mdx +++ b/api_docs/kbn_monaco.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/monaco'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnMonacoObj from './kbn_monaco.json'; +import kbnMonacoObj from './kbn_monaco.devdocs.json'; diff --git a/api_docs/kbn_optimizer.json b/api_docs/kbn_optimizer.devdocs.json similarity index 100% rename from api_docs/kbn_optimizer.json rename to api_docs/kbn_optimizer.devdocs.json diff --git a/api_docs/kbn_optimizer.mdx b/api_docs/kbn_optimizer.mdx index ed3727e0846183..9981ad9f47da36 100644 --- a/api_docs/kbn_optimizer.mdx +++ b/api_docs/kbn_optimizer.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/optimizer'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnOptimizerObj from './kbn_optimizer.json'; +import kbnOptimizerObj from './kbn_optimizer.devdocs.json'; diff --git a/api_docs/kbn_plugin_generator.json b/api_docs/kbn_plugin_generator.devdocs.json similarity index 100% rename from api_docs/kbn_plugin_generator.json rename to api_docs/kbn_plugin_generator.devdocs.json diff --git a/api_docs/kbn_plugin_generator.mdx b/api_docs/kbn_plugin_generator.mdx index a358b75b984347..d819c24ae99eae 100644 --- a/api_docs/kbn_plugin_generator.mdx +++ b/api_docs/kbn_plugin_generator.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-generator'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnPluginGeneratorObj from './kbn_plugin_generator.json'; +import kbnPluginGeneratorObj from './kbn_plugin_generator.devdocs.json'; diff --git a/api_docs/kbn_plugin_helpers.json b/api_docs/kbn_plugin_helpers.devdocs.json similarity index 100% rename from api_docs/kbn_plugin_helpers.json rename to api_docs/kbn_plugin_helpers.devdocs.json diff --git a/api_docs/kbn_plugin_helpers.mdx b/api_docs/kbn_plugin_helpers.mdx index cc72c40852b4b6..10a03b103e60d9 100644 --- a/api_docs/kbn_plugin_helpers.mdx +++ b/api_docs/kbn_plugin_helpers.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-helpers'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnPluginHelpersObj from './kbn_plugin_helpers.json'; +import kbnPluginHelpersObj from './kbn_plugin_helpers.devdocs.json'; Just some helpers for kibana plugin devs. diff --git a/api_docs/kbn_pm.json b/api_docs/kbn_pm.devdocs.json similarity index 100% rename from api_docs/kbn_pm.json rename to api_docs/kbn_pm.devdocs.json diff --git a/api_docs/kbn_pm.mdx b/api_docs/kbn_pm.mdx index 18ebfd03a0f36d..3fde9cc5247857 100644 --- a/api_docs/kbn_pm.mdx +++ b/api_docs/kbn_pm.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/pm'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnPmObj from './kbn_pm.json'; +import kbnPmObj from './kbn_pm.devdocs.json'; diff --git a/api_docs/kbn_react_field.json b/api_docs/kbn_react_field.devdocs.json similarity index 100% rename from api_docs/kbn_react_field.json rename to api_docs/kbn_react_field.devdocs.json diff --git a/api_docs/kbn_react_field.mdx b/api_docs/kbn_react_field.mdx index b4ac7f4ca44c9f..1389e787373562 100644 --- a/api_docs/kbn_react_field.mdx +++ b/api_docs/kbn_react_field.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-field'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnReactFieldObj from './kbn_react_field.json'; +import kbnReactFieldObj from './kbn_react_field.devdocs.json'; diff --git a/api_docs/kbn_rule_data_utils.json b/api_docs/kbn_rule_data_utils.devdocs.json similarity index 94% rename from api_docs/kbn_rule_data_utils.json rename to api_docs/kbn_rule_data_utils.devdocs.json index bf60cb3346bfce..700b6c6ddb37fc 100644 --- a/api_docs/kbn_rule_data_utils.json +++ b/api_docs/kbn_rule_data_utils.devdocs.json @@ -363,6 +363,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "@kbn/rule-data-utils", + "id": "def-server.ALERT_RULE_EXECUTION_UUID", + "type": "string", + "tags": [], + "label": "ALERT_RULE_EXECUTION_UUID", + "description": [], + "signature": [ + "\"kibana.alert.rule.execution.uuid\"" + ], + "path": "packages/kbn-rule-data-utils/src/technical_field_names.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "@kbn/rule-data-utils", "id": "def-server.ALERT_RULE_FROM", @@ -959,7 +973,7 @@ "label": "TechnicalRuleDataFieldName", "description": [], "signature": [ - "\"tags\" | \"kibana\" | \"@timestamp\" | \"event.kind\" | \"kibana.alert.rule.parameters\" | \"kibana.alert.rule.rule_type_id\" | \"kibana.alert.rule.consumer\" | \"kibana.alert.rule.producer\" | \"kibana.space_ids\" | \"kibana.alert.uuid\" | \"kibana.alert.start\" | \"kibana.alert.end\" | \"kibana.alert.duration.us\" | \"kibana.alert.severity\" | \"kibana.alert.status\" | \"kibana.version\" | \"ecs.version\" | \"kibana.alert.risk_score\" | \"kibana.alert.workflow_status\" | \"kibana.alert.workflow_user\" | \"kibana.alert.workflow_reason\" | \"kibana.alert.system_status\" | \"kibana.alert.action_group\" | \"kibana.alert.reason\" | \"kibana.alert.rule.author\" | \"kibana.alert.rule.category\" | \"kibana.alert.rule.uuid\" | \"kibana.alert.rule.created_at\" | \"kibana.alert.rule.created_by\" | \"kibana.alert.rule.description\" | \"kibana.alert.rule.enabled\" | \"kibana.alert.rule.from\" | \"kibana.alert.rule.interval\" | \"kibana.alert.rule.license\" | \"kibana.alert.rule.name\" | \"kibana.alert.rule.note\" | \"kibana.alert.rule.references\" | \"kibana.alert.rule.rule_id\" | \"kibana.alert.rule.rule_name_override\" | \"kibana.alert.rule.tags\" | \"kibana.alert.rule.to\" | \"kibana.alert.rule.type\" | \"kibana.alert.rule.updated_at\" | \"kibana.alert.rule.updated_by\" | \"kibana.alert.rule.version\" | \"event.action\" | \"event.module\" | \"kibana.alert.instance.id\" | \"kibana.alert.evaluation.threshold\" | \"kibana.alert.evaluation.value\" | \"kibana.alert\" | \"kibana.alert.building_block_type\" | \"kibana.alert.rule\"" + "\"tags\" | \"kibana\" | \"@timestamp\" | \"event.action\" | \"kibana.alert.rule.parameters\" | \"kibana.alert.rule.rule_type_id\" | \"kibana.alert.rule.consumer\" | \"kibana.alert.rule.producer\" | \"kibana.space_ids\" | \"kibana.alert.uuid\" | \"kibana.alert.start\" | \"kibana.alert.end\" | \"kibana.alert.duration.us\" | \"kibana.alert.severity\" | \"kibana.alert.status\" | \"kibana.version\" | \"ecs.version\" | \"kibana.alert.risk_score\" | \"kibana.alert.workflow_status\" | \"kibana.alert.workflow_user\" | \"kibana.alert.workflow_reason\" | \"kibana.alert.system_status\" | \"kibana.alert.action_group\" | \"kibana.alert.reason\" | \"kibana.alert.rule.author\" | \"kibana.alert.rule.category\" | \"kibana.alert.rule.uuid\" | \"kibana.alert.rule.created_at\" | \"kibana.alert.rule.created_by\" | \"kibana.alert.rule.description\" | \"kibana.alert.rule.enabled\" | \"kibana.alert.rule.execution.uuid\" | \"kibana.alert.rule.from\" | \"kibana.alert.rule.interval\" | \"kibana.alert.rule.license\" | \"kibana.alert.rule.name\" | \"kibana.alert.rule.note\" | \"kibana.alert.rule.references\" | \"kibana.alert.rule.rule_id\" | \"kibana.alert.rule.rule_name_override\" | \"kibana.alert.rule.tags\" | \"kibana.alert.rule.to\" | \"kibana.alert.rule.type\" | \"kibana.alert.rule.updated_at\" | \"kibana.alert.rule.updated_by\" | \"kibana.alert.rule.version\" | \"event.kind\" | \"event.module\" | \"kibana.alert.instance.id\" | \"kibana.alert.evaluation.threshold\" | \"kibana.alert.evaluation.value\" | \"kibana.alert\" | \"kibana.alert.building_block_type\" | \"kibana.alert.rule\"" ], "path": "packages/kbn-rule-data-utils/src/technical_field_names.ts", "deprecated": false, diff --git a/api_docs/kbn_rule_data_utils.mdx b/api_docs/kbn_rule_data_utils.mdx index c06c3814ca1a58..d4a630ab7d3771 100644 --- a/api_docs/kbn_rule_data_utils.mdx +++ b/api_docs/kbn_rule_data_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rule-data-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnRuleDataUtilsObj from './kbn_rule_data_utils.json'; +import kbnRuleDataUtilsObj from './kbn_rule_data_utils.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Owner missing] for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 71 | 0 | 68 | 0 | +| 72 | 0 | 69 | 0 | ## Server diff --git a/api_docs/kbn_securitysolution_autocomplete.json b/api_docs/kbn_securitysolution_autocomplete.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_autocomplete.json rename to api_docs/kbn_securitysolution_autocomplete.devdocs.json diff --git a/api_docs/kbn_securitysolution_autocomplete.mdx b/api_docs/kbn_securitysolution_autocomplete.mdx index 9d2cc527b4118c..7e99ef4f4558ac 100644 --- a/api_docs/kbn_securitysolution_autocomplete.mdx +++ b/api_docs/kbn_securitysolution_autocomplete.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-autocomplete'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionAutocompleteObj from './kbn_securitysolution_autocomplete.json'; +import kbnSecuritysolutionAutocompleteObj from './kbn_securitysolution_autocomplete.devdocs.json'; Security Solution auto complete diff --git a/api_docs/kbn_securitysolution_es_utils.json b/api_docs/kbn_securitysolution_es_utils.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_es_utils.json rename to api_docs/kbn_securitysolution_es_utils.devdocs.json diff --git a/api_docs/kbn_securitysolution_es_utils.mdx b/api_docs/kbn_securitysolution_es_utils.mdx index 54108a2c88b785..2235ccc9f52768 100644 --- a/api_docs/kbn_securitysolution_es_utils.mdx +++ b/api_docs/kbn_securitysolution_es_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-es-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionEsUtilsObj from './kbn_securitysolution_es_utils.json'; +import kbnSecuritysolutionEsUtilsObj from './kbn_securitysolution_es_utils.devdocs.json'; security solution elastic search utilities to use across plugins such lists, security_solution, cases, etc... diff --git a/api_docs/kbn_securitysolution_hook_utils.json b/api_docs/kbn_securitysolution_hook_utils.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_hook_utils.json rename to api_docs/kbn_securitysolution_hook_utils.devdocs.json diff --git a/api_docs/kbn_securitysolution_hook_utils.mdx b/api_docs/kbn_securitysolution_hook_utils.mdx index 7a85565573e3ad..6b2b4ec1dac3e2 100644 --- a/api_docs/kbn_securitysolution_hook_utils.mdx +++ b/api_docs/kbn_securitysolution_hook_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-hook-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionHookUtilsObj from './kbn_securitysolution_hook_utils.json'; +import kbnSecuritysolutionHookUtilsObj from './kbn_securitysolution_hook_utils.devdocs.json'; Security Solution utilities for React hooks diff --git a/api_docs/kbn_securitysolution_io_ts_alerting_types.json b/api_docs/kbn_securitysolution_io_ts_alerting_types.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_io_ts_alerting_types.json rename to api_docs/kbn_securitysolution_io_ts_alerting_types.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 f4a7566f0fae31..689fdfd6c3fbe1 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 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-alerting-types'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionIoTsAlertingTypesObj from './kbn_securitysolution_io_ts_alerting_types.json'; +import kbnSecuritysolutionIoTsAlertingTypesObj from './kbn_securitysolution_io_ts_alerting_types.devdocs.json'; io ts utilities and types to be shared with plugins from the security solution project diff --git a/api_docs/kbn_securitysolution_io_ts_list_types.json b/api_docs/kbn_securitysolution_io_ts_list_types.devdocs.json similarity index 99% rename from api_docs/kbn_securitysolution_io_ts_list_types.json rename to api_docs/kbn_securitysolution_io_ts_list_types.devdocs.json index a7a7adcc2c7b8e..7d525a716f3d35 100644 --- a/api_docs/kbn_securitysolution_io_ts_list_types.json +++ b/api_docs/kbn_securitysolution_io_ts_list_types.devdocs.json @@ -2040,7 +2040,7 @@ "label": "CreateListSchemaDecoded", "description": [], "signature": [ - "{ id: string | undefined; type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; description: string; name: string; meta: object | undefined; serializer: string | undefined; deserializer: string | undefined; } & { version: number; }" + "{ type: \"boolean\" | \"keyword\" | \"ip\" | \"date\" | \"geo_point\" | \"geo_shape\" | \"long\" | \"double\" | \"text\" | \"binary\" | \"date_nanos\" | \"integer\" | \"short\" | \"byte\" | \"float\" | \"half_float\" | \"integer_range\" | \"float_range\" | \"long_range\" | \"double_range\" | \"date_range\" | \"ip_range\" | \"shape\"; id: string | undefined; description: string; name: string; meta: object | undefined; serializer: string | undefined; deserializer: string | undefined; } & { version: number; }" ], "path": "packages/kbn-securitysolution-io-ts-list-types/src/request/create_list_schema/index.ts", "deprecated": false, diff --git a/api_docs/kbn_securitysolution_io_ts_list_types.mdx b/api_docs/kbn_securitysolution_io_ts_list_types.mdx index 6eb1a50c725b94..b006ed07c5c1a4 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 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-list-types'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionIoTsListTypesObj from './kbn_securitysolution_io_ts_list_types.json'; +import kbnSecuritysolutionIoTsListTypesObj from './kbn_securitysolution_io_ts_list_types.devdocs.json'; io ts utilities and types to be shared with plugins from the security solution project diff --git a/api_docs/kbn_securitysolution_io_ts_types.json b/api_docs/kbn_securitysolution_io_ts_types.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_io_ts_types.json rename to api_docs/kbn_securitysolution_io_ts_types.devdocs.json diff --git a/api_docs/kbn_securitysolution_io_ts_types.mdx b/api_docs/kbn_securitysolution_io_ts_types.mdx index 61fd6cc3ae9401..514c53211b67bf 100644 --- a/api_docs/kbn_securitysolution_io_ts_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_types.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-types'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionIoTsTypesObj from './kbn_securitysolution_io_ts_types.json'; +import kbnSecuritysolutionIoTsTypesObj from './kbn_securitysolution_io_ts_types.devdocs.json'; io ts utilities and types to be shared with plugins from the security solution project diff --git a/api_docs/kbn_securitysolution_io_ts_utils.json b/api_docs/kbn_securitysolution_io_ts_utils.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_io_ts_utils.json rename to api_docs/kbn_securitysolution_io_ts_utils.devdocs.json diff --git a/api_docs/kbn_securitysolution_io_ts_utils.mdx b/api_docs/kbn_securitysolution_io_ts_utils.mdx index 15eae08f449444..79917150b17466 100644 --- a/api_docs/kbn_securitysolution_io_ts_utils.mdx +++ b/api_docs/kbn_securitysolution_io_ts_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionIoTsUtilsObj from './kbn_securitysolution_io_ts_utils.json'; +import kbnSecuritysolutionIoTsUtilsObj from './kbn_securitysolution_io_ts_utils.devdocs.json'; io ts utilities and types to be shared with plugins from the security solution project diff --git a/api_docs/kbn_securitysolution_list_api.json b/api_docs/kbn_securitysolution_list_api.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_list_api.json rename to api_docs/kbn_securitysolution_list_api.devdocs.json diff --git a/api_docs/kbn_securitysolution_list_api.mdx b/api_docs/kbn_securitysolution_list_api.mdx index 93c6d9d1f1eb5f..e0cb314cd4d497 100644 --- a/api_docs/kbn_securitysolution_list_api.mdx +++ b/api_docs/kbn_securitysolution_list_api.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-api'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionListApiObj from './kbn_securitysolution_list_api.json'; +import kbnSecuritysolutionListApiObj from './kbn_securitysolution_list_api.devdocs.json'; security solution list REST API diff --git a/api_docs/kbn_securitysolution_list_constants.json b/api_docs/kbn_securitysolution_list_constants.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_list_constants.json rename to api_docs/kbn_securitysolution_list_constants.devdocs.json diff --git a/api_docs/kbn_securitysolution_list_constants.mdx b/api_docs/kbn_securitysolution_list_constants.mdx index de5d035dd07f03..b6ede38c26ab05 100644 --- a/api_docs/kbn_securitysolution_list_constants.mdx +++ b/api_docs/kbn_securitysolution_list_constants.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-constants'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionListConstantsObj from './kbn_securitysolution_list_constants.json'; +import kbnSecuritysolutionListConstantsObj from './kbn_securitysolution_list_constants.devdocs.json'; security solution list constants to use across plugins such lists, security_solution, cases, etc... diff --git a/api_docs/kbn_securitysolution_list_hooks.json b/api_docs/kbn_securitysolution_list_hooks.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_list_hooks.json rename to api_docs/kbn_securitysolution_list_hooks.devdocs.json diff --git a/api_docs/kbn_securitysolution_list_hooks.mdx b/api_docs/kbn_securitysolution_list_hooks.mdx index 602c776fa05558..465bdbc7457e9c 100644 --- a/api_docs/kbn_securitysolution_list_hooks.mdx +++ b/api_docs/kbn_securitysolution_list_hooks.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-hooks'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionListHooksObj from './kbn_securitysolution_list_hooks.json'; +import kbnSecuritysolutionListHooksObj from './kbn_securitysolution_list_hooks.devdocs.json'; Security solution list ReactJS hooks diff --git a/api_docs/kbn_securitysolution_list_utils.json b/api_docs/kbn_securitysolution_list_utils.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_list_utils.json rename to api_docs/kbn_securitysolution_list_utils.devdocs.json diff --git a/api_docs/kbn_securitysolution_list_utils.mdx b/api_docs/kbn_securitysolution_list_utils.mdx index 552ec45aea7dfa..a4fdbae577e2fc 100644 --- a/api_docs/kbn_securitysolution_list_utils.mdx +++ b/api_docs/kbn_securitysolution_list_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionListUtilsObj from './kbn_securitysolution_list_utils.json'; +import kbnSecuritysolutionListUtilsObj from './kbn_securitysolution_list_utils.devdocs.json'; security solution list utilities diff --git a/api_docs/kbn_securitysolution_rules.json b/api_docs/kbn_securitysolution_rules.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_rules.json rename to api_docs/kbn_securitysolution_rules.devdocs.json diff --git a/api_docs/kbn_securitysolution_rules.mdx b/api_docs/kbn_securitysolution_rules.mdx index bf8d2265386d9b..55303e48b54d52 100644 --- a/api_docs/kbn_securitysolution_rules.mdx +++ b/api_docs/kbn_securitysolution_rules.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-rules'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionRulesObj from './kbn_securitysolution_rules.json'; +import kbnSecuritysolutionRulesObj from './kbn_securitysolution_rules.devdocs.json'; security solution rule utilities to use across plugins diff --git a/api_docs/kbn_securitysolution_t_grid.json b/api_docs/kbn_securitysolution_t_grid.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_t_grid.json rename to api_docs/kbn_securitysolution_t_grid.devdocs.json diff --git a/api_docs/kbn_securitysolution_t_grid.mdx b/api_docs/kbn_securitysolution_t_grid.mdx index 850ca025241595..5467f2659dacd6 100644 --- a/api_docs/kbn_securitysolution_t_grid.mdx +++ b/api_docs/kbn_securitysolution_t_grid.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-t-grid'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionTGridObj from './kbn_securitysolution_t_grid.json'; +import kbnSecuritysolutionTGridObj from './kbn_securitysolution_t_grid.devdocs.json'; security solution t-grid packages will allow sharing components between timelines and security_solution plugin until we transfer all functionality to timelines plugin diff --git a/api_docs/kbn_securitysolution_utils.json b/api_docs/kbn_securitysolution_utils.devdocs.json similarity index 100% rename from api_docs/kbn_securitysolution_utils.json rename to api_docs/kbn_securitysolution_utils.devdocs.json diff --git a/api_docs/kbn_securitysolution_utils.mdx b/api_docs/kbn_securitysolution_utils.mdx index 7f0a9b2d9f5f28..93e625706da951 100644 --- a/api_docs/kbn_securitysolution_utils.mdx +++ b/api_docs/kbn_securitysolution_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnSecuritysolutionUtilsObj from './kbn_securitysolution_utils.json'; +import kbnSecuritysolutionUtilsObj from './kbn_securitysolution_utils.devdocs.json'; security solution utilities to use across plugins such lists, security_solution, cases, etc... diff --git a/api_docs/kbn_server_http_tools.json b/api_docs/kbn_server_http_tools.devdocs.json similarity index 100% rename from api_docs/kbn_server_http_tools.json rename to api_docs/kbn_server_http_tools.devdocs.json diff --git a/api_docs/kbn_server_http_tools.mdx b/api_docs/kbn_server_http_tools.mdx index 0294a7d30c4757..f36659b79489f6 100644 --- a/api_docs/kbn_server_http_tools.mdx +++ b/api_docs/kbn_server_http_tools.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-http-tools'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnServerHttpToolsObj from './kbn_server_http_tools.json'; +import kbnServerHttpToolsObj from './kbn_server_http_tools.devdocs.json'; diff --git a/api_docs/kbn_server_route_repository.json b/api_docs/kbn_server_route_repository.devdocs.json similarity index 64% rename from api_docs/kbn_server_route_repository.json rename to api_docs/kbn_server_route_repository.devdocs.json index 4cade8df1ea4f0..170693037e6627 100644 --- a/api_docs/kbn_server_route_repository.json +++ b/api_docs/kbn_server_route_repository.devdocs.json @@ -35,7 +35,7 @@ "section": "def-server.ServerRoute", "text": "ServerRoute" }, - ") => ", + ") => Record" + ">" ], "path": "packages/kbn-server-route-repository/src/create_server_route_factory.ts", "deprecated": false, @@ -51,30 +51,6 @@ "returnComment": [], "initialIsOpen": false }, - { - "parentPluginId": "@kbn/server-route-repository", - "id": "def-server.createServerRouteRepository", - "type": "Function", - "tags": [], - "label": "createServerRouteRepository", - "description": [], - "signature": [ - "() => ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRouteRepository", - "text": "ServerRouteRepository" - }, - "" - ], - "path": "packages/kbn-server-route-repository/src/create_server_route_repository.ts", - "deprecated": false, - "children": [], - "returnComment": [], - "initialIsOpen": false - }, { "parentPluginId": "@kbn/server-route-repository", "id": "def-server.decodeRequestParams", @@ -225,191 +201,6 @@ } ], "initialIsOpen": false - }, - { - "parentPluginId": "@kbn/server-route-repository", - "id": "def-server.ServerRouteRepository", - "type": "Interface", - "tags": [], - "label": "ServerRouteRepository", - "description": [], - "signature": [ - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRouteRepository", - "text": "ServerRouteRepository" - }, - "" - ], - "path": "packages/kbn-server-route-repository/src/typings.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/server-route-repository", - "id": "def-server.ServerRouteRepository.add", - "type": "Function", - "tags": [], - "label": "add", - "description": [], - "signature": [ - "(route: ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRoute", - "text": "ServerRoute" - }, - ") => ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRouteRepository", - "text": "ServerRouteRepository" - }, - "; }>" - ], - "path": "packages/kbn-server-route-repository/src/typings.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/server-route-repository", - "id": "def-server.ServerRouteRepository.add.$1", - "type": "CompoundType", - "tags": [], - "label": "route", - "description": [], - "signature": [ - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRoute", - "text": "ServerRoute" - }, - "" - ], - "path": "packages/kbn-server-route-repository/src/typings.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "@kbn/server-route-repository", - "id": "def-server.ServerRouteRepository.merge", - "type": "Function", - "tags": [], - "label": "merge", - "description": [], - "signature": [ - ">(repository: TServerRouteRepository) => TServerRouteRepository extends ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRouteRepository", - "text": "ServerRouteRepository" - }, - " ? ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRouteRepository", - "text": "ServerRouteRepository" - }, - " : never" - ], - "path": "packages/kbn-server-route-repository/src/typings.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/server-route-repository", - "id": "def-server.ServerRouteRepository.merge.$1", - "type": "Uncategorized", - "tags": [], - "label": "repository", - "description": [], - "signature": [ - "TServerRouteRepository" - ], - "path": "packages/kbn-server-route-repository/src/typings.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "@kbn/server-route-repository", - "id": "def-server.ServerRouteRepository.getRoutes", - "type": "Function", - "tags": [], - "label": "getRoutes", - "description": [], - "signature": [ - "() => ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRoute", - "text": "ServerRoute" - }, - "[]" - ], - "path": "packages/kbn-server-route-repository/src/typings.ts", - "deprecated": false, - "children": [], - "returnComment": [] - } - ], - "initialIsOpen": false } ], "enums": [], @@ -422,15 +213,7 @@ "label": "ClientRequestParamsOf", "description": [], "signature": [ - "TServerRouteRepository extends ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRouteRepository", - "text": "ServerRouteRepository" - }, - " ? TEndpoint extends keyof TRouteState ? TRouteState[TEndpoint] extends ", + "TServerRouteRepository[TEndpoint] extends ", { "pluginId": "@kbn/server-route-repository", "scope": "server", @@ -448,7 +231,7 @@ "section": "def-server.RouteParamsRT", "text": "RouteParamsRT" }, - " ? ClientRequestParamsOfType : {} : never : never : never" + " ? ClientRequestParamsOfType : {} : never" ], "path": "packages/kbn-server-route-repository/src/typings.ts", "deprecated": false, @@ -462,15 +245,7 @@ "label": "DecodedRequestParamsOf", "description": [], "signature": [ - "TServerRouteRepository extends ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRouteRepository", - "text": "ServerRouteRepository" - }, - " ? TEndpoint extends keyof TRouteState ? TRouteState[TEndpoint] extends ", + "TServerRouteRepository[TEndpoint] extends ", { "pluginId": "@kbn/server-route-repository", "scope": "server", @@ -488,7 +263,7 @@ "section": "def-server.RouteParamsRT", "text": "RouteParamsRT" }, - " ? DecodedRequestParamsOfType : {} : never : never : never" + " ? DecodedRequestParamsOfType : {} : never" ], "path": "packages/kbn-server-route-repository/src/typings.ts", "deprecated": false, @@ -502,15 +277,7 @@ "label": "EndpointOf", "description": [], "signature": [ - "TServerRouteRepository extends ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRouteRepository", - "text": "ServerRouteRepository" - }, - " ? keyof TRouteState : never" + "keyof TServerRouteRepository" ], "path": "packages/kbn-server-route-repository/src/typings.ts", "deprecated": false, @@ -524,15 +291,7 @@ "label": "ReturnOf", "description": [], "signature": [ - "TServerRouteRepository extends ", - { - "pluginId": "@kbn/server-route-repository", - "scope": "server", - "docId": "kibKbnServerRouteRepositoryPluginApi", - "section": "def-server.ServerRouteRepository", - "text": "ServerRouteRepository" - }, - " ? TEndpoint extends keyof TRouteState ? TRouteState[TEndpoint] extends ", + "TServerRouteRepository[TEndpoint] extends ", { "pluginId": "@kbn/server-route-repository", "scope": "server", @@ -542,7 +301,7 @@ }, " ? TReturnType : never : never : never" + "> ? TReturnType : never" ], "path": "packages/kbn-server-route-repository/src/typings.ts", "deprecated": false, @@ -576,15 +335,7 @@ "label": "RouteRepositoryClient", "description": [], "signature": [ - ">(options: { endpoint: TEndpoint; } & ", + "(endpoint: TEndpoint, ...args: MaybeOptionalArgs<", { "pluginId": "@kbn/server-route-repository", "scope": "server", @@ -592,7 +343,7 @@ "section": "def-server.ClientRequestParamsOf", "text": "ClientRequestParamsOf" }, - " & TAdditionalClientOptions) => Promise<", + " & TAdditionalClientOptions>) => Promise<", { "pluginId": "@kbn/server-route-repository", "scope": "server", @@ -609,12 +360,26 @@ { "parentPluginId": "@kbn/server-route-repository", "id": "def-server.RouteRepositoryClient.$1", - "type": "CompoundType", + "type": "Uncategorized", + "tags": [], + "label": "endpoint", + "description": [], + "signature": [ + "TEndpoint" + ], + "path": "packages/kbn-server-route-repository/src/typings.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/server-route-repository", + "id": "def-server.RouteRepositoryClient.$2", + "type": "Uncategorized", "tags": [], - "label": "options", + "label": "args", "description": [], "signature": [ - "{ endpoint: TEndpoint; } & ", + "RequiredKeys", + "<", { "pluginId": "@kbn/server-route-repository", "scope": "server", @@ -622,7 +387,23 @@ "section": "def-server.ClientRequestParamsOf", "text": "ClientRequestParamsOf" }, - " & TAdditionalClientOptions" + " & TAdditionalClientOptions> extends never ? [] | [", + { + "pluginId": "@kbn/server-route-repository", + "scope": "server", + "docId": "kibKbnServerRouteRepositoryPluginApi", + "section": "def-server.ClientRequestParamsOf", + "text": "ClientRequestParamsOf" + }, + " & TAdditionalClientOptions] : [", + { + "pluginId": "@kbn/server-route-repository", + "scope": "server", + "docId": "kibKbnServerRouteRepositoryPluginApi", + "section": "def-server.ClientRequestParamsOf", + "text": "ClientRequestParamsOf" + }, + " & TAdditionalClientOptions]" ], "path": "packages/kbn-server-route-repository/src/typings.ts", "deprecated": false @@ -651,6 +432,36 @@ "path": "packages/kbn-server-route-repository/src/typings.ts", "deprecated": false, "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/server-route-repository", + "id": "def-server.ServerRouteRepository", + "type": "Type", + "tags": [], + "label": "ServerRouteRepository", + "description": [], + "signature": [ + "{ [x: string]: ", + { + "pluginId": "@kbn/server-route-repository", + "scope": "server", + "docId": "kibKbnServerRouteRepositoryPluginApi", + "section": "def-server.ServerRoute", + "text": "ServerRoute" + }, + ">; }" + ], + "path": "packages/kbn-server-route-repository/src/typings.ts", + "deprecated": false, + "initialIsOpen": false } ], "objects": [ diff --git a/api_docs/kbn_server_route_repository.mdx b/api_docs/kbn_server_route_repository.mdx index 90571640338bcd..cb268a2f9cb514 100644 --- a/api_docs/kbn_server_route_repository.mdx +++ b/api_docs/kbn_server_route_repository.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-route-repository'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnServerRouteRepositoryObj from './kbn_server_route_repository.json'; +import kbnServerRouteRepositoryObj from './kbn_server_route_repository.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Owner missing] for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 30 | 0 | 29 | 1 | +| 25 | 0 | 24 | 1 | ## Server diff --git a/api_docs/kbn_std.json b/api_docs/kbn_std.devdocs.json similarity index 100% rename from api_docs/kbn_std.json rename to api_docs/kbn_std.devdocs.json diff --git a/api_docs/kbn_std.mdx b/api_docs/kbn_std.mdx index 369a49d284d763..f0226566129a53 100644 --- a/api_docs/kbn_std.mdx +++ b/api_docs/kbn_std.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/std'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnStdObj from './kbn_std.json'; +import kbnStdObj from './kbn_std.devdocs.json'; diff --git a/api_docs/kbn_storybook.json b/api_docs/kbn_storybook.devdocs.json similarity index 100% rename from api_docs/kbn_storybook.json rename to api_docs/kbn_storybook.devdocs.json diff --git a/api_docs/kbn_storybook.mdx b/api_docs/kbn_storybook.mdx index 527cf88d18f6c2..e376dc0f468ac3 100644 --- a/api_docs/kbn_storybook.mdx +++ b/api_docs/kbn_storybook.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/storybook'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnStorybookObj from './kbn_storybook.json'; +import kbnStorybookObj from './kbn_storybook.devdocs.json'; diff --git a/api_docs/kbn_telemetry_tools.json b/api_docs/kbn_telemetry_tools.devdocs.json similarity index 100% rename from api_docs/kbn_telemetry_tools.json rename to api_docs/kbn_telemetry_tools.devdocs.json diff --git a/api_docs/kbn_telemetry_tools.mdx b/api_docs/kbn_telemetry_tools.mdx index 2e34226376a9c1..e4e4064530f772 100644 --- a/api_docs/kbn_telemetry_tools.mdx +++ b/api_docs/kbn_telemetry_tools.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/telemetry-tools'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnTelemetryToolsObj from './kbn_telemetry_tools.json'; +import kbnTelemetryToolsObj from './kbn_telemetry_tools.devdocs.json'; diff --git a/api_docs/kbn_test.json b/api_docs/kbn_test.devdocs.json similarity index 89% rename from api_docs/kbn_test.json rename to api_docs/kbn_test.devdocs.json index 267bfc30f48060..d534e0b3a71c76 100644 --- a/api_docs/kbn_test.json +++ b/api_docs/kbn_test.devdocs.json @@ -339,6 +339,163 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion", + "type": "Class", + "tags": [], + "label": "EsVersion", + "description": [], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion.getDefault", + "type": "Function", + "tags": [], + "label": "getDefault", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + } + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion.parsed", + "type": "Object", + "tags": [], + "label": "parsed", + "description": [], + "signature": [ + "node_modules/@types/semver/classes/semver" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion.Unnamed", + "type": "Function", + "tags": [], + "label": "Constructor", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion.Unnamed.$1", + "type": "string", + "tags": [], + "label": "version", + "description": [], + "signature": [ + "string" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion.toString", + "type": "Function", + "tags": [], + "label": "toString", + "description": [], + "signature": [ + "() => string" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion.matchRange", + "type": "Function", + "tags": [], + "label": "matchRange", + "description": [ + "\nDetermine if the ES version matches a semver range, like >=7 or ^8.1.0" + ], + "signature": [ + "(range: string) => boolean" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion.matchRange.$1", + "type": "string", + "tags": [], + "label": "range", + "description": [], + "signature": [ + "string" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion.eql", + "type": "Function", + "tags": [], + "label": "eql", + "description": [ + "\nDetermine if the ES version matches a specific version, ignores things like -SNAPSHOT" + ], + "signature": [ + "(version: string) => boolean | null" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsVersion.eql.$1", + "type": "string", + "tags": [], + "label": "version", + "description": [], + "signature": [ + "string" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/es_version.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, { "parentPluginId": "@kbn/test", "id": "def-server.FailureMetadata", @@ -628,6 +785,28 @@ "path": "packages/kbn-test/src/functional_test_runner/functional_test_runner.ts", "deprecated": false, "isRequired": true + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.FunctionalTestRunner.Unnamed.$4", + "type": "CompoundType", + "tags": [], + "label": "esVersion", + "description": [], + "signature": [ + "string | ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + }, + " | undefined" + ], + "path": "packages/kbn-test/src/functional_test_runner/functional_test_runner.ts", + "deprecated": false, + "isRequired": false } ], "returnComment": [] @@ -655,7 +834,7 @@ "label": "getTestStats", "description": [], "signature": [ - "() => Promise<{ testCount: number; excludedTests: any; }>" + "() => Promise<{ testCount: number; testsExcludedByTag: any; }>" ], "path": "packages/kbn-test/src/functional_test_runner/functional_test_runner.ts", "deprecated": false, @@ -1394,6 +1573,14 @@ "signature": [ "(log: ", "ToolingLog", + ", esVersion: ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + }, ", path: string, settingOverrides: any) => Promise<", { "pluginId": "@kbn/test", @@ -1424,6 +1611,26 @@ { "parentPluginId": "@kbn/test", "id": "def-server.readConfigFile.$2", + "type": "Object", + "tags": [], + "label": "esVersion", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + } + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/config/read_config_file.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.readConfigFile.$3", "type": "string", "tags": [], "label": "path", @@ -1437,7 +1644,7 @@ }, { "parentPluginId": "@kbn/test", - "id": "def-server.readConfigFile.$3", + "id": "def-server.readConfigFile.$4", "type": "Any", "tags": [], "label": "settingOverrides", @@ -2095,6 +2302,25 @@ "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.FtrConfigProviderContext.esVersion", + "type": "Object", + "tags": [], + "label": "esVersion", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + } + ], + "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", + "deprecated": false + }, { "parentPluginId": "@kbn/test", "id": "def-server.FtrConfigProviderContext.readConfigFile", @@ -2166,7 +2392,7 @@ "\nDetermine if a service is avaliable" ], "signature": [ - "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" + "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"failureMetadata\" | \"esVersion\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false, @@ -2179,7 +2405,7 @@ "label": "serviceName", "description": [], "signature": [ - "\"log\" | \"config\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"" + "\"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"failureMetadata\" | \"esVersion\"" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false, @@ -2196,7 +2422,7 @@ "label": "hasService", "description": [], "signature": [ - "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" + "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"failureMetadata\" | \"esVersion\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false, @@ -2226,7 +2452,7 @@ "label": "hasService", "description": [], "signature": [ - "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"failureMetadata\" | \"dockerServers\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" + "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"failureMetadata\" | \"esVersion\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false, @@ -2292,6 +2518,14 @@ "section": "def-server.FailureMetadata", "text": "FailureMetadata" }, + "; (serviceName: \"esVersion\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + }, "; (serviceName: T): ServiceMap[T]; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", @@ -2356,6 +2590,14 @@ "section": "def-server.FailureMetadata", "text": "FailureMetadata" }, + "; (serviceName: \"esVersion\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + }, "; (serviceName: T): ServiceMap[T]; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", @@ -2420,6 +2662,14 @@ "section": "def-server.FailureMetadata", "text": "FailureMetadata" }, + "; (serviceName: \"esVersion\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + }, "; (serviceName: T): ServiceMap[T]; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", @@ -2484,6 +2734,14 @@ "section": "def-server.FailureMetadata", "text": "FailureMetadata" }, + "; (serviceName: \"esVersion\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + }, "; (serviceName: T): ServiceMap[T]; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", @@ -2548,6 +2806,14 @@ "section": "def-server.FailureMetadata", "text": "FailureMetadata" }, + "; (serviceName: \"esVersion\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + }, "; (serviceName: T): ServiceMap[T]; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", @@ -2612,6 +2878,86 @@ "section": "def-server.FailureMetadata", "text": "FailureMetadata" }, + "; (serviceName: \"esVersion\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + }, + "; (serviceName: T): ServiceMap[T]; }" + ], + "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.GenericFtrProviderContext.getService.$1", + "type": "string", + "tags": [], + "label": "serviceName", + "description": [], + "signature": [ + "\"esVersion\"" + ], + "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.GenericFtrProviderContext.getService", + "type": "Function", + "tags": [], + "label": "getService", + "description": [], + "signature": [ + "{ (serviceName: \"config\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.Config", + "text": "Config" + }, + "; (serviceName: \"log\"): ", + "ToolingLog", + "; (serviceName: \"lifecycle\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.Lifecycle", + "text": "Lifecycle" + }, + "; (serviceName: \"dockerServers\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.DockerServersService", + "text": "DockerServersService" + }, + "; (serviceName: \"failureMetadata\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.FailureMetadata", + "text": "FailureMetadata" + }, + "; (serviceName: \"esVersion\"): ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsVersion", + "text": "EsVersion" + }, "; (serviceName: T): ServiceMap[T]; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", @@ -3409,6 +3755,44 @@ } ], "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.systemIndicesSuperuser", + "type": "Object", + "tags": [], + "label": "systemIndicesSuperuser", + "description": [ + "\nUser with higher privileges than regular superuser role for writing to system indices" + ], + "path": "packages/kbn-test/src/kbn/users.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.systemIndicesSuperuser.username", + "type": "Any", + "tags": [], + "label": "username", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test/src/kbn/users.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.systemIndicesSuperuser.password", + "type": "string", + "tags": [], + "label": "password", + "description": [], + "path": "packages/kbn-test/src/kbn/users.ts", + "deprecated": false + } + ], + "initialIsOpen": false } ] }, diff --git a/api_docs/kbn_test.mdx b/api_docs/kbn_test.mdx index cbf28200d3be18..07f4243d68ab9f 100644 --- a/api_docs/kbn_test.mdx +++ b/api_docs/kbn_test.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnTestObj from './kbn_test.json'; +import kbnTestObj from './kbn_test.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Owner missing] for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 203 | 4 | 180 | 10 | +| 221 | 5 | 195 | 10 | ## Server diff --git a/api_docs/kbn_typed_react_router_config.json b/api_docs/kbn_typed_react_router_config.devdocs.json similarity index 81% rename from api_docs/kbn_typed_react_router_config.json rename to api_docs/kbn_typed_react_router_config.devdocs.json index 0764b51821f457..3eede9aa547193 100644 --- a/api_docs/kbn_typed_react_router_config.json +++ b/api_docs/kbn_typed_react_router_config.devdocs.json @@ -228,45 +228,6 @@ "returnComment": [], "initialIsOpen": false }, - { - "parentPluginId": "@kbn/typed-react-router-config", - "id": "def-common.route", - "type": "Function", - "tags": [], - "label": "route", - "description": [], - "signature": [ - "(r: TRoute) => ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "" - ], - "path": "packages/kbn-typed-react-router-config/src/route.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/typed-react-router-config", - "id": "def-common.route.$1", - "type": "Uncategorized", - "tags": [], - "label": "r", - "description": [], - "signature": [ - "TRoute" - ], - "path": "packages/kbn-typed-react-router-config/src/route.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, { "parentPluginId": "@kbn/typed-react-router-config", "id": "def-common.RouterContextProvider", @@ -288,10 +249,10 @@ "pluginId": "@kbn/typed-react-router-config", "scope": "common", "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Route", - "text": "Route" + "section": "def-common.RouteMap", + "text": "RouteMap" }, - "[]>; children: React.ReactNode; }) => JSX.Element" + ">; children: React.ReactNode; }) => JSX.Element" ], "path": "packages/kbn-typed-react-router-config/src/use_router.tsx", "deprecated": false, @@ -326,10 +287,10 @@ "pluginId": "@kbn/typed-react-router-config", "scope": "common", "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Route", - "text": "Route" + "section": "def-common.RouteMap", + "text": "RouteMap" }, - "[]>" + ">" ], "path": "packages/kbn-typed-react-router-config/src/use_router.tsx", "deprecated": false @@ -390,10 +351,10 @@ "pluginId": "@kbn/typed-react-router-config", "scope": "common", "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Route", - "text": "Route" + "section": "def-common.RouteMap", + "text": "RouteMap" }, - "[]>; history: ", + ">; history: ", "History", "; children: React.ReactNode; }) => JSX.Element" ], @@ -430,10 +391,10 @@ "pluginId": "@kbn/typed-react-router-config", "scope": "common", "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Route", - "text": "Route" + "section": "def-common.RouteMap", + "text": "RouteMap" }, - "[]>" + ">" ], "path": "packages/kbn-typed-react-router-config/src/router_provider.tsx", "deprecated": false @@ -471,45 +432,6 @@ "returnComment": [], "initialIsOpen": false }, - { - "parentPluginId": "@kbn/typed-react-router-config", - "id": "def-common.unconst", - "type": "Function", - "tags": [], - "label": "unconst", - "description": [], - "signature": [ - "(value: T) => ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "" - ], - "path": "packages/kbn-typed-react-router-config/src/unconst.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/typed-react-router-config", - "id": "def-common.unconst.$1", - "type": "Uncategorized", - "tags": [], - "label": "value", - "description": [], - "signature": [ - "T" - ], - "path": "packages/kbn-typed-react-router-config/src/unconst.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false - }, { "parentPluginId": "@kbn/typed-react-router-config", "id": "def-common.useCurrentRoute", @@ -597,7 +519,15 @@ "label": "useParams", "description": [], "signature": [ - "(args: any[]) => undefined" + "(args: any[]) => ", + { + "pluginId": "@kbn/typed-react-router-config", + "scope": "common", + "docId": "kibKbnTypedReactRouterConfigPluginApi", + "section": "def-common.DefaultOutput", + "text": "DefaultOutput" + }, + " | undefined" ], "path": "packages/kbn-typed-react-router-config/src/use_params.ts", "deprecated": false, @@ -657,10 +587,10 @@ "pluginId": "@kbn/typed-react-router-config", "scope": "common", "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Route", - "text": "Route" + "section": "def-common.RouteMap", + "text": "RouteMap" }, - "[]>" + ">" ], "path": "packages/kbn-typed-react-router-config/src/use_router.tsx", "deprecated": false, @@ -670,6 +600,131 @@ } ], "interfaces": [ + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.DefaultOutput", + "type": "Interface", + "tags": [], + "label": "DefaultOutput", + "description": [], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.DefaultOutput.path", + "type": "Object", + "tags": [], + "label": "path", + "description": [], + "signature": [ + "{}" + ], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.DefaultOutput.query", + "type": "Object", + "tags": [], + "label": "query", + "description": [], + "signature": [ + "{}" + ], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.Route", + "type": "Interface", + "tags": [], + "label": "Route", + "description": [], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.Route.element", + "type": "Object", + "tags": [], + "label": "element", + "description": [], + "signature": [ + "React.ReactElement" + ], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.Route.children", + "type": "Object", + "tags": [], + "label": "children", + "description": [], + "signature": [ + { + "pluginId": "@kbn/typed-react-router-config", + "scope": "common", + "docId": "kibKbnTypedReactRouterConfigPluginApi", + "section": "def-common.RouteMap", + "text": "RouteMap" + }, + " | undefined" + ], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.Route.params", + "type": "Object", + "tags": [], + "label": "params", + "description": [], + "signature": [ + "Type", + " | undefined" + ], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.Route.defaults", + "type": "Object", + "tags": [], + "label": "defaults", + "description": [], + "signature": [ + "Record> | undefined" + ], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.Route.pre", + "type": "Object", + "tags": [], + "label": "pre", + "description": [], + "signature": [ + "React.ReactElement | undefined" + ], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "@kbn/typed-react-router-config", "id": "def-common.RouteMatch", @@ -761,7 +816,7 @@ }, ">(path: TPath, location: ", "Location", - "): ", + "): ToRouteMatch<", { "pluginId": "@kbn/typed-react-router-config", "scope": "common", @@ -769,9 +824,9 @@ "section": "def-common.Match", "text": "Match" }, - "; (location: ", + ">; (location: ", "Location", - "): ", + "): ToRouteMatch<", { "pluginId": "@kbn/typed-react-router-config", "scope": "common", @@ -787,7 +842,7 @@ "section": "def-common.PathsOf", "text": "PathsOf" }, - ">; }" + ">>; }" ], "path": "packages/kbn-typed-react-router-config/src/types/index.ts", "deprecated": false, @@ -842,7 +897,7 @@ }, ">(path: TPath, location: ", "Location", - "): ", + "): ToRouteMatch<", { "pluginId": "@kbn/typed-react-router-config", "scope": "common", @@ -850,9 +905,9 @@ "section": "def-common.Match", "text": "Match" }, - "; (location: ", + ">; (location: ", "Location", - "): ", + "): ToRouteMatch<", { "pluginId": "@kbn/typed-react-router-config", "scope": "common", @@ -868,7 +923,7 @@ "section": "def-common.PathsOf", "text": "PathsOf" }, - ">; }" + ">>; }" ], "path": "packages/kbn-typed-react-router-config/src/types/index.ts", "deprecated": false, @@ -2063,7 +2118,7 @@ { "parentPluginId": "@kbn/typed-react-router-config", "id": "def-common.Router.getRoutePath.$1", - "type": "CompoundType", + "type": "Object", "tags": [], "label": "route", "description": [], @@ -2123,6 +2178,46 @@ } ], "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.RouteWithPath", + "type": "Interface", + "tags": [], + "label": "RouteWithPath", + "description": [], + "signature": [ + { + "pluginId": "@kbn/typed-react-router-config", + "scope": "common", + "docId": "kibKbnTypedReactRouterConfigPluginApi", + "section": "def-common.RouteWithPath", + "text": "RouteWithPath" + }, + " extends ", + { + "pluginId": "@kbn/typed-react-router-config", + "scope": "common", + "docId": "kibKbnTypedReactRouterConfigPluginApi", + "section": "def-common.Route", + "text": "Route" + } + ], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/typed-react-router-config", + "id": "def-common.RouteWithPath.path", + "type": "string", + "tags": [], + "label": "path", + "description": [], + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", + "deprecated": false + } + ], + "initialIsOpen": false } ], "enums": [], @@ -2135,9 +2230,10 @@ "label": "FlattenRoutesOf", "description": [], "signature": [ - "Omit<", "ValuesType", - ">, \"parents\">[]" + "<{ [key in keyof MapRoutes]: ", + "ValuesType", + "[key]>; }>[]" ], "path": "packages/kbn-typed-react-router-config/src/types/index.ts", "deprecated": false, @@ -2151,15 +2247,7 @@ "label": "Match", "description": [], "signature": [ - "MapRoutes extends { [key in TPath]: ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Route", - "text": "Route" - }, - "; } ? UnwrapRouteMap[TPath]> : []" + "MapRoutes[TPath]" ], "path": "packages/kbn-typed-react-router-config/src/types/index.ts", "deprecated": false, @@ -2167,51 +2255,62 @@ }, { "parentPluginId": "@kbn/typed-react-router-config", - "id": "def-common.MaybeConst", + "id": "def-common.OutputOf", "type": "Type", "tags": [], - "label": "MaybeConst", + "label": "OutputOf", "description": [], "signature": [ - "TObject extends [object] ? [TObject | ", - "DeepReadonly", - "] : TObject extends [object, ...infer TTail] ? [TObject | ", - "DeepReadonly", - ", ...TTail extends object[] ? ", + "OutputOfRoutes<", { "pluginId": "@kbn/typed-react-router-config", "scope": "common", "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.MaybeConst", - "text": "MaybeConst" + "section": "def-common.Match", + "text": "Match" }, - " : []] : TObject extends object[] ? ", - "DeepReadonly", - " : TObject extends object ? [TObject | ", - "DeepReadonly", - "] : []" + "> & ", + { + "pluginId": "@kbn/typed-react-router-config", + "scope": "common", + "docId": "kibKbnTypedReactRouterConfigPluginApi", + "section": "def-common.DefaultOutput", + "text": "DefaultOutput" + } ], - "path": "packages/kbn-typed-react-router-config/src/unconst.ts", + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "@kbn/typed-react-router-config", - "id": "def-common.OutputOf", + "id": "def-common.PathsOf", "type": "Type", "tags": [], - "label": "OutputOf", + "label": "PathsOf", "description": [], "signature": [ - "OutputOfMatches<", + "string & ", + "ValuesType", + "<{ [key in keyof TRouteMap]: key | (TRouteMap[key] extends { children: ", { "pluginId": "@kbn/typed-react-router-config", "scope": "common", "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Match", - "text": "Match" + "section": "def-common.RouteMap", + "text": "RouteMap" + }, + "; } ? ", + "NormalizePath", + "<`${key & string}/*`> | ", + { + "pluginId": "@kbn/typed-react-router-config", + "scope": "common", + "docId": "kibKbnTypedReactRouterConfigPluginApi", + "section": "def-common.PathsOf", + "text": "PathsOf" }, - "> & DefaultOutput" + " : never); }>" ], "path": "packages/kbn-typed-react-router-config/src/types/index.ts", "deprecated": false, @@ -2219,27 +2318,21 @@ }, { "parentPluginId": "@kbn/typed-react-router-config", - "id": "def-common.PathsOf", + "id": "def-common.RouteMap", "type": "Type", "tags": [], - "label": "PathsOf", + "label": "RouteMap", "description": [], "signature": [ - "keyof MapRoutes & string" - ], - "path": "packages/kbn-typed-react-router-config/src/types/index.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "@kbn/typed-react-router-config", - "id": "def-common.Route", - "type": "Type", - "tags": [], - "label": "Route", - "description": [], - "signature": [ - "PlainRoute | ReadonlyPlainRoute" + "{ [x: string]: ", + { + "pluginId": "@kbn/typed-react-router-config", + "scope": "common", + "docId": "kibKbnTypedReactRouterConfigPluginApi", + "section": "def-common.Route", + "text": "Route" + }, + "; }" ], "path": "packages/kbn-typed-react-router-config/src/types/index.ts", "deprecated": false, @@ -2269,7 +2362,7 @@ "label": "TypeOf", "description": [], "signature": [ - "TypeOfMatches<", + "TypeOfRoutes<", { "pluginId": "@kbn/typed-react-router-config", "scope": "common", @@ -2277,489 +2370,17 @@ "section": "def-common.Match", "text": "Match" }, - "> & (TWithDefaultOutput extends true ? DefaultOutput : {})" - ], - "path": "packages/kbn-typed-react-router-config/src/types/index.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "@kbn/typed-react-router-config", - "id": "def-common.Unconst", - "type": "Type", - "tags": [], - "label": "Unconst", - "description": [], - "signature": [ - "T extends React.ReactElement> ? React.ReactElement : T extends ", - "Type", - " ? T : T extends readonly [any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [any, any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [any, any, any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [any, any, any, any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [any, any, any, any, any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", + "> & (TWithDefaultOutput extends true ? ", { "pluginId": "@kbn/typed-react-router-config", "scope": "common", "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" + "section": "def-common.DefaultOutput", + "text": "DefaultOutput" }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [any, any, any, any, any, any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [any, any, any, any, any, any, any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [any, any, any, any, any, any, any, any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [any, any, any, any, any, any, any, any, any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [any, any, any, any, any, any, any, any, any, any] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends readonly [infer U, ...infer V] ? [", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - ", ...", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "] : T extends Record ? { -readonly [key in keyof T]: ", - { - "pluginId": "@kbn/typed-react-router-config", - "scope": "common", - "docId": "kibKbnTypedReactRouterConfigPluginApi", - "section": "def-common.Unconst", - "text": "Unconst" - }, - "; } : T" + " : {})" ], - "path": "packages/kbn-typed-react-router-config/src/unconst.ts", + "path": "packages/kbn-typed-react-router-config/src/types/index.ts", "deprecated": false, "initialIsOpen": false } diff --git a/api_docs/kbn_typed_react_router_config.mdx b/api_docs/kbn_typed_react_router_config.mdx index 588d8fe3611107..1a7f7fc353b635 100644 --- a/api_docs/kbn_typed_react_router_config.mdx +++ b/api_docs/kbn_typed_react_router_config.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/typed-react-router-config'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnTypedReactRouterConfigObj from './kbn_typed_react_router_config.json'; +import kbnTypedReactRouterConfigObj from './kbn_typed_react_router_config.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Owner missing] for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 78 | 0 | 78 | 0 | +| 83 | 0 | 83 | 1 | ## Common diff --git a/api_docs/kbn_ui_theme.devdocs.json b/api_docs/kbn_ui_theme.devdocs.json new file mode 100644 index 00000000000000..48f661a45c7754 --- /dev/null +++ b/api_docs/kbn_ui_theme.devdocs.json @@ -0,0 +1,123 @@ +{ + "id": "@kbn/ui-theme", + "client": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + }, + "server": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + }, + "common": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [ + { + "parentPluginId": "@kbn/ui-theme", + "id": "def-common.darkMode", + "type": "boolean", + "tags": [], + "label": "darkMode", + "description": [], + "path": "packages/kbn-ui-theme/src/theme.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/ui-theme", + "id": "def-common.tag", + "type": "string", + "tags": [], + "label": "tag", + "description": [], + "path": "packages/kbn-ui-theme/src/theme.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/ui-theme", + "id": "def-common.Theme", + "type": "Type", + "tags": [], + "label": "Theme", + "description": [], + "signature": [ + "{ paddingSizes: { xs: string; s: string; m: string; l: string; xl: string; }; avatarSizing: { s: { size: string; 'font-size': string; }; m: { size: string; 'font-size': string; }; l: { size: string; 'font-size': string; }; xl: { size: string; 'font-size': string; }; }; euiBadgeGroupGutterTypes: { gutterExtraSmall: string; gutterSmall: string; }; euiBreadcrumbSpacing: string; euiBreadcrumbTruncateWidth: string; euiButtonEmptyTypes: { primary: string; danger: string; disabled: string; ghost: string; text: string; success: string; warning: string; }; euiCallOutTypes: { primary: string; success: string; warning: string; danger: string; }; euiCardSpacing: string; euiCardBottomNodeHeight: string; euiCardSelectButtonBorders: { text: string; primary: string; success: string; danger: string; ghost: string; }; euiCardSelectButtonBackgrounds: { text: string; primary: string; success: string; danger: string; ghost: string; }; euiCardPaddingModifiers: { paddingNone: number; paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiCheckableCardPadding: string; euiCodeBlockPaddingModifiers: { paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiCollapsibleNavGroupLightBackgroundColor: string; euiCollapsibleNavGroupDarkBackgroundColor: string; euiCollapsibleNavGroupDarkHighContrastColor: string; euiColorPickerValueRange0: string; euiColorPickerValueRange1: string; euiColorPickerSaturationRange0: string; euiColorPickerSaturationRange1: string; euiColorPickerIndicatorSize: string; euiColorPickerWidth: string; euiColorPaletteDisplaySizes: { sizeExtraSmall: string; sizeSmall: string; sizeMedium: string; }; euiContextMenuWidth: string; euiControlBarBackground: string; euiControlBarText: string; euiControlBarBorderColor: string; euiControlBarInitialHeight: string; euiControlBarMaxHeight: string; euiControlBarHeights: { s: string; m: string; l: string; }; euiDataGridPrefix: string; euiDataGridStyles: string; euiZDataGrid: number; euiZHeaderBelowDataGrid: number; euiZDataGridCellPopover: number; euiDataGridColumnResizerWidth: string; euiDataGridPopoverMaxHeight: string; euiDataGridCellPaddingS: string; euiDataGridCellPaddingM: string; euiDataGridCellPaddingL: string; euiDataGridVerticalBorder: string; euiSuperDatePickerWidth: string; euiSuperDatePickerButtonWidth: string; euiDragAndDropSpacing: { s: string; m: string; l: string; }; euiExpressionColors: { subdued: string; primary: string; success: string; warning: string; danger: string; accent: string; }; euiFacetGutterSizes: { gutterNone: number; gutterSmall: string; gutterMedium: string; gutterLarge: string; }; gutterTypes: { gutterExtraSmall: string; gutterSmall: string; gutterMedium: string; gutterLarge: string; gutterExtraLarge: string; }; fractions: { fourths: { percentage: string; count: number; }; thirds: { percentage: string; count: number; }; halves: { percentage: string; count: number; }; single: { percentage: string; count: number; }; }; flyoutSizes: { small: { min: string; width: string; max: string; }; medium: { min: string; width: string; max: string; }; large: { min: string; width: string; max: string; }; }; euiFlyoutBorder: string; euiFlyoutPaddingModifiers: { paddingNone: number; paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiFilePickerTallHeight: string; euiRangeLevelColors: { primary: string; success: string; warning: string; danger: string; }; textareaResizing: { vertical: string; horizontal: string; both: string; none: string; }; euiHeaderLinksGutterSizes: { gutterXS: string; gutterS: string; gutterM: string; gutterL: string; }; ruleMargins: { marginXSmall: string; marginSmall: string; marginMedium: string; marginLarge: string; marginXLarge: string; marginXXLarge: string; }; euiIconLoadingOpacity: number; euiIconColors: { accent: string; danger: string; ghost: string; primary: string; success: string; subdued: string; text: string; warning: string; inherit: string; }; euiIconSizes: { small: string; medium: string; large: string; xLarge: string; xxLarge: string; }; euiKeyPadMenuSize: string; euiKeyPadMenuMarginSize: string; euiLinkColors: { subdued: string; primary: string; success: string; accent: string; warning: string; danger: string; text: string; ghost: string; }; euiListGroupItemHoverBackground: string; euiListGroupItemHoverBackgroundGhost: string; euiListGroupGutterTypes: { gutterSmall: string; gutterMedium: string; }; euiListGroupItemColorTypes: { primary: string; text: string; subdued: string; ghost: string; }; euiListGroupItemSizeTypes: { xSmall: string; small: string; medium: string; large: string; }; euiGradientStartStop: string; euiGradientMiddle: string; euiMarkdownEditorMinHeight: string; euiPopoverArrowSize: string; euiPopoverTranslateDistance: string; euiProgressSizes: { xs: string; s: string; m: string; l: string; }; euiProgressColors: { primary: string; success: string; warning: string; danger: string; accent: string; subdued: string; vis0: string; vis1: string; vis2: string; vis3: string; vis4: string; vis5: string; vis6: string; vis7: string; vis8: string; vis9: string; customColor: string; }; euiResizableButtonTransitionSpeed: string; euiResizableButtonSize: string; euiSelectableListItemBorder: string; euiSelectableListItemPadding: string; euiSelectableTemplateSitewideTypes: { application: { color: string; 'font-weight': number; }; deployment: { color: string; 'font-weight': number; }; article: { color: string; 'font-weight': number; }; case: { color: string; 'font-weight': number; }; platform: { color: string; 'font-weight': number; }; }; euiSideNavEmphasizedBackgroundColor: string; euiSideNavRootTextcolor: string; euiSideNavBranchTextcolor: string; euiSideNavSelectedTextcolor: string; euiSideNavDisabledTextcolor: string; spacerSizes: { xs: string; s: string; m: string; l: string; xl: string; xxl: string; }; euiStepNumberSize: string; euiStepNumberSmallSize: string; euiStepNumberMargin: string; euiStepStatusColorsToFade: { warning: string; danger: string; disabled: string; incomplete: string; }; euiSuggestItemColors: { tint0: string; tint1: string; tint2: string; tint3: string; tint4: string; tint5: string; tint6: string; tint7: string; tint8: string; tint9: string; tint10: string; }; euiTableCellContentPadding: string; euiTableCellContentPaddingCompressed: string; euiTableCellCheckboxWidth: string; euiTableActionsAreaWidth: string; euiTableHoverColor: string; euiTableSelectedColor: string; euiTableHoverSelectedColor: string; euiTableActionsBorderColor: string; euiTableHoverClickableColor: string; euiTableFocusClickableColor: string; euiTextColors: { default: string; subdued: string; success: string; accent: string; warning: string; danger: string; ghost: string; inherit: string; }; euiTextConstrainedMaxWidth: string; euiToastWidth: string; euiToastTypes: { primary: string; success: string; warning: string; danger: string; }; euiTokenGrayColor: string; euiTokenTypes: { euiColorVis0: { graphic: string; behindText: string; }; euiColorVis1: { graphic: string; behindText: string; }; euiColorVis2: { graphic: string; behindText: string; }; euiColorVis3: { graphic: string; behindText: string; }; euiColorVis4: { graphic: string; behindText: string; }; euiColorVis5: { graphic: string; behindText: string; }; euiColorVis6: { graphic: string; behindText: string; }; euiColorVis7: { graphic: string; behindText: string; }; euiColorVis8: { graphic: string; behindText: string; }; euiColorVis9: { graphic: string; behindText: string; }; gray: { graphic: string; behindText: string; }; }; euiTokenTypeKeys: string; euiContrastRatioText: number; euiContrastRatioGraphic: number; euiContrastRatioDisabled: number; euiAnimSlightBounce: string; euiAnimSlightResistance: string; euiAnimSpeedExtraFast: string; euiAnimSpeedFast: string; euiAnimSpeedNormal: string; euiAnimSpeedSlow: string; euiAnimSpeedExtraSlow: string; euiBorderWidthThin: string; euiBorderWidthThick: string; euiBorderColor: string; euiBorderRadius: string; euiBorderRadiusSmall: string; euiBorderThick: string; euiBorderThin: string; euiBorderEditable: string; euiButtonHeight: string; euiButtonHeightSmall: string; euiButtonHeightXSmall: string; euiButtonColorDisabled: string; euiButtonColorDisabledText: string; euiButtonColorGhostDisabled: string; euiButtonTypes: { primary: string; accent: string; success: string; warning: string; danger: string; subdued: string; ghost: string; text: string; }; euiCodeBlockBackgroundColor: string; euiCodeBlockColor: string; euiCodeBlockSelectedBackgroundColor: string; euiCodeBlockCommentColor: string; euiCodeBlockSelectorTagColor: string; euiCodeBlockStringColor: string; euiCodeBlockTagColor: string; euiCodeBlockNameColor: string; euiCodeBlockNumberColor: string; euiCodeBlockKeywordColor: string; euiCodeBlockFunctionTitleColor: string; euiCodeBlockTypeColor: string; euiCodeBlockAttributeColor: string; euiCodeBlockSymbolColor: string; euiCodeBlockParamsColor: string; euiCodeBlockMetaColor: string; euiCodeBlockTitleColor: string; euiCodeBlockSectionColor: string; euiCodeBlockAdditionColor: string; euiCodeBlockDeletionColor: string; euiCodeBlockSelectorClassColor: string; euiCodeBlockSelectorIdColor: string; euiPaletteColorBlind: { euiColorVis0: { graphic: string; behindText: string; }; euiColorVis1: { graphic: string; behindText: string; }; euiColorVis2: { graphic: string; behindText: string; }; euiColorVis3: { graphic: string; behindText: string; }; euiColorVis4: { graphic: string; behindText: string; }; euiColorVis5: { graphic: string; behindText: string; }; euiColorVis6: { graphic: string; behindText: string; }; euiColorVis7: { graphic: string; behindText: string; }; euiColorVis8: { graphic: string; behindText: string; }; euiColorVis9: { graphic: string; behindText: string; }; }; euiPaletteColorBlindKeys: string; euiColorVis0: string; euiColorVis1: string; euiColorVis2: string; euiColorVis3: string; euiColorVis4: string; euiColorVis5: string; euiColorVis6: string; euiColorVis7: string; euiColorVis8: string; euiColorVis9: string; euiColorVis0_behindText: string; euiColorVis1_behindText: string; euiColorVis2_behindText: string; euiColorVis3_behindText: string; euiColorVis4_behindText: string; euiColorVis5_behindText: string; euiColorVis6_behindText: string; euiColorVis7_behindText: string; euiColorVis8_behindText: string; euiColorVis9_behindText: string; euiFontWeightLight: number; euiFontWeightRegular: number; euiFontWeightMedium: number; euiFontWeightSemiBold: number; euiFontWeightBold: number; euiCodeFontWeightRegular: number; euiCodeFontWeightBold: number; euiFormMaxWidth: string; euiFormControlHeight: string; euiFormControlCompressedHeight: string; euiFormControlPadding: string; euiFormControlCompressedPadding: string; euiFormControlBorderRadius: string; euiFormControlCompressedBorderRadius: string; euiRadioSize: string; euiCheckBoxSize: string; euiCheckboxBorderRadius: string; euiSwitchHeight: string; euiSwitchWidth: string; euiSwitchThumbSize: string; euiSwitchIconHeight: string; euiSwitchHeightCompressed: string; euiSwitchWidthCompressed: string; euiSwitchThumbSizeCompressed: string; euiSwitchHeightMini: string; euiSwitchWidthMini: string; euiSwitchThumbSizeMini: string; euiFormBackgroundColor: string; euiFormBackgroundDisabledColor: string; euiFormBackgroundReadOnlyColor: string; euiFormBorderOpaqueColor: string; euiFormBorderColor: string; euiFormBorderDisabledColor: string; euiFormCustomControlDisabledIconColor: string; euiFormCustomControlBorderColor: string; euiFormControlDisabledColor: string; euiFormControlBoxShadow: string; euiFormControlPlaceholderText: string; euiFormInputGroupLabelBackground: string; euiFormInputGroupBorder: string; euiSwitchOffColor: string; euiFormControlLayoutGroupInputHeight: string; euiFormControlLayoutGroupInputCompressedHeight: string; euiFormControlLayoutGroupInputCompressedBorderRadius: string; euiRangeTrackColor: string; euiRangeThumbRadius: string; euiRangeThumbHeight: string; euiRangeThumbWidth: string; euiRangeThumbBorderColor: string; euiRangeTrackWidth: string; euiRangeTrackHeight: string; euiRangeTrackBorderWidth: number; euiRangeTrackBorderColor: string; euiRangeTrackRadius: string; euiRangeDisabledOpacity: number; euiRangeHighlightHeight: string; euiHeaderBackgroundColor: string; euiHeaderDarkBackgroundColor: string; euiHeaderBorderColor: string; euiHeaderBreadcrumbColor: string; euiHeaderHeight: string; euiHeaderChildSize: string; euiHeaderHeightCompensation: string; euiPageDefaultMaxWidth: string; euiPageSidebarMinWidth: string; euiPanelPaddingModifiers: { paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiPanelBorderRadiusModifiers: { borderRadiusNone: number; borderRadiusMedium: string; }; euiPanelBackgroundColorModifiers: { transparent: string; plain: string; subdued: string; accent: string; primary: string; success: string; warning: string; danger: string; }; euiBreakpoints: { xs: number; s: string; m: string; l: string; xl: string; }; euiBreakpointKeys: string; euiShadowColor: string; euiShadowColorLarge: string; euiSize: string; euiSizeXS: string; euiSizeS: string; euiSizeM: string; euiSizeL: string; euiSizeXL: string; euiSizeXXL: string; euiButtonMinWidth: string; euiScrollBar: string; euiScrollBarCorner: string; euiScrollBarCornerThin: string; euiFocusRingColor: string; euiFocusRingAnimStartColor: string; euiFocusRingAnimStartSize: string; euiFocusRingAnimStartSizeLarge: string; euiFocusRingSizeLarge: string; euiFocusRingSize: string; euiFocusTransparency: number; euiFocusTransparencyPercent: string; euiFocusBackgroundColor: string; euiTooltipBackgroundColor: string; euiTooltipBorderColor: string; euiTooltipAnimations: { top: string; left: string; bottom: string; right: string; }; euiFontFamily: string; euiCodeFontFamily: string; euiFontFeatureSettings: string; euiTextScale: string; euiFontSize: string; euiFontSizeXS: string; euiFontSizeS: string; euiFontSizeM: string; euiFontSizeL: string; euiFontSizeXL: string; euiFontSizeXXL: string; euiLineHeight: number; euiBodyLineHeight: number; euiTitles: { xxxs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; xxs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; xs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; s: { 'font-size': string; 'line-height': string; 'font-weight': number; }; m: { 'font-size': string; 'line-height': string; 'font-weight': number; }; l: { 'font-size': string; 'line-height': string; 'font-weight': number; }; }; euiZLevel0: number; euiZLevel1: number; euiZLevel2: number; euiZLevel3: number; euiZLevel4: number; euiZLevel5: number; euiZLevel6: number; euiZLevel7: number; euiZLevel8: number; euiZLevel9: number; euiZToastList: number; euiZModal: number; euiZMask: number; euiZNavigation: number; euiZContentMenu: number; euiZHeader: number; euiZFlyout: number; euiZMaskBelowHeader: number; euiZContent: number; euiColorGhost: string; euiColorInk: string; euiColorPrimary: string; euiColorAccent: string; euiColorSuccess: string; euiColorWarning: string; euiColorDanger: string; euiColorEmptyShade: string; euiColorLightestShade: string; euiColorLightShade: string; euiColorMediumShade: string; euiColorDarkShade: string; euiColorDarkestShade: string; euiColorFullShade: string; euiPageBackgroundColor: string; euiColorHighlight: string; euiTextColor: string; euiTitleColor: string; euiTextSubduedColor: string; euiColorDisabled: string; euiColorPrimaryText: string; euiColorSuccessText: string; euiColorAccentText: string; euiColorWarningText: string; euiColorDangerText: string; euiColorDisabledText: string; euiLinkColor: string; euiColorChartLines: string; euiColorChartBand: string; euiDatePickerCalendarWidth: string; euiDatePickerPadding: string; euiDatePickerGap: string; euiDatePickerCalendarColumns: number; euiDatePickerButtonSize: string; euiDatePickerMinControlWidth: string; euiDatePickerMaxControlWidth: string; euiButtonDefaultTransparency: number; euiButtonFontWeight: number; euiRangeHighlightColor: string; euiRangeThumbBackgroundColor: string; euiRangeTrackCompressedHeight: string; euiRangeHighlightCompressedHeight: string; euiRangeHeight: string; euiRangeCompressedHeight: string; euiStepStatusColors: { default: string; complete: string; warning: string; danger: string; }; }" + ], + "path": "packages/kbn-ui-theme/src/theme.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/ui-theme", + "id": "def-common.version", + "type": "number", + "tags": [], + "label": "version", + "description": [], + "signature": [ + "8" + ], + "path": "packages/kbn-ui-theme/src/theme.ts", + "deprecated": false, + "initialIsOpen": false + } + ], + "objects": [ + { + "parentPluginId": "@kbn/ui-theme", + "id": "def-common.euiDarkVars", + "type": "Object", + "tags": [], + "label": "euiDarkVars", + "description": [], + "signature": [ + "{ paddingSizes: { xs: string; s: string; m: string; l: string; xl: string; }; avatarSizing: { s: { size: string; 'font-size': string; }; m: { size: string; 'font-size': string; }; l: { size: string; 'font-size': string; }; xl: { size: string; 'font-size': string; }; }; euiBadgeGroupGutterTypes: { gutterExtraSmall: string; gutterSmall: string; }; euiBreadcrumbSpacing: string; euiBreadcrumbTruncateWidth: string; euiButtonEmptyTypes: { primary: string; danger: string; disabled: string; ghost: string; text: string; success: string; warning: string; }; euiCallOutTypes: { primary: string; success: string; warning: string; danger: string; }; euiCardSpacing: string; euiCardBottomNodeHeight: string; euiCardSelectButtonBorders: { text: string; primary: string; success: string; danger: string; ghost: string; }; euiCardSelectButtonBackgrounds: { text: string; primary: string; success: string; danger: string; ghost: string; }; euiCardPaddingModifiers: { paddingNone: number; paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiCheckableCardPadding: string; euiCodeBlockPaddingModifiers: { paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiCollapsibleNavGroupLightBackgroundColor: string; euiCollapsibleNavGroupDarkBackgroundColor: string; euiCollapsibleNavGroupDarkHighContrastColor: string; euiColorPickerValueRange0: string; euiColorPickerValueRange1: string; euiColorPickerSaturationRange0: string; euiColorPickerSaturationRange1: string; euiColorPickerIndicatorSize: string; euiColorPickerWidth: string; euiColorPaletteDisplaySizes: { sizeExtraSmall: string; sizeSmall: string; sizeMedium: string; }; euiContextMenuWidth: string; euiControlBarBackground: string; euiControlBarText: string; euiControlBarBorderColor: string; euiControlBarInitialHeight: string; euiControlBarMaxHeight: string; euiControlBarHeights: { s: string; m: string; l: string; }; euiDataGridPrefix: string; euiDataGridStyles: string; euiZDataGrid: number; euiZHeaderBelowDataGrid: number; euiZDataGridCellPopover: number; euiDataGridColumnResizerWidth: string; euiDataGridPopoverMaxHeight: string; euiDataGridCellPaddingS: string; euiDataGridCellPaddingM: string; euiDataGridCellPaddingL: string; euiDataGridVerticalBorder: string; euiSuperDatePickerWidth: string; euiSuperDatePickerButtonWidth: string; euiDragAndDropSpacing: { s: string; m: string; l: string; }; euiExpressionColors: { subdued: string; primary: string; success: string; warning: string; danger: string; accent: string; }; euiFacetGutterSizes: { gutterNone: number; gutterSmall: string; gutterMedium: string; gutterLarge: string; }; gutterTypes: { gutterExtraSmall: string; gutterSmall: string; gutterMedium: string; gutterLarge: string; gutterExtraLarge: string; }; fractions: { fourths: { percentage: string; count: number; }; thirds: { percentage: string; count: number; }; halves: { percentage: string; count: number; }; single: { percentage: string; count: number; }; }; flyoutSizes: { small: { min: string; width: string; max: string; }; medium: { min: string; width: string; max: string; }; large: { min: string; width: string; max: string; }; }; euiFlyoutBorder: string; euiFlyoutPaddingModifiers: { paddingNone: number; paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiFilePickerTallHeight: string; euiRangeLevelColors: { primary: string; success: string; warning: string; danger: string; }; textareaResizing: { vertical: string; horizontal: string; both: string; none: string; }; euiHeaderLinksGutterSizes: { gutterXS: string; gutterS: string; gutterM: string; gutterL: string; }; ruleMargins: { marginXSmall: string; marginSmall: string; marginMedium: string; marginLarge: string; marginXLarge: string; marginXXLarge: string; }; euiIconLoadingOpacity: number; euiIconColors: { accent: string; danger: string; ghost: string; primary: string; success: string; subdued: string; text: string; warning: string; inherit: string; }; euiIconSizes: { small: string; medium: string; large: string; xLarge: string; xxLarge: string; }; euiKeyPadMenuSize: string; euiKeyPadMenuMarginSize: string; euiLinkColors: { subdued: string; primary: string; success: string; accent: string; warning: string; danger: string; text: string; ghost: string; }; euiListGroupItemHoverBackground: string; euiListGroupItemHoverBackgroundGhost: string; euiListGroupGutterTypes: { gutterSmall: string; gutterMedium: string; }; euiListGroupItemColorTypes: { primary: string; text: string; subdued: string; ghost: string; }; euiListGroupItemSizeTypes: { xSmall: string; small: string; medium: string; large: string; }; euiGradientStartStop: string; euiGradientMiddle: string; euiMarkdownEditorMinHeight: string; euiPopoverArrowSize: string; euiPopoverTranslateDistance: string; euiProgressSizes: { xs: string; s: string; m: string; l: string; }; euiProgressColors: { primary: string; success: string; warning: string; danger: string; accent: string; subdued: string; vis0: string; vis1: string; vis2: string; vis3: string; vis4: string; vis5: string; vis6: string; vis7: string; vis8: string; vis9: string; customColor: string; }; euiResizableButtonTransitionSpeed: string; euiResizableButtonSize: string; euiSelectableListItemBorder: string; euiSelectableListItemPadding: string; euiSelectableTemplateSitewideTypes: { application: { color: string; 'font-weight': number; }; deployment: { color: string; 'font-weight': number; }; article: { color: string; 'font-weight': number; }; case: { color: string; 'font-weight': number; }; platform: { color: string; 'font-weight': number; }; }; euiSideNavEmphasizedBackgroundColor: string; euiSideNavRootTextcolor: string; euiSideNavBranchTextcolor: string; euiSideNavSelectedTextcolor: string; euiSideNavDisabledTextcolor: string; spacerSizes: { xs: string; s: string; m: string; l: string; xl: string; xxl: string; }; euiStepNumberSize: string; euiStepNumberSmallSize: string; euiStepNumberMargin: string; euiStepStatusColorsToFade: { warning: string; danger: string; disabled: string; incomplete: string; }; euiSuggestItemColors: { tint0: string; tint1: string; tint2: string; tint3: string; tint4: string; tint5: string; tint6: string; tint7: string; tint8: string; tint9: string; tint10: string; }; euiTableCellContentPadding: string; euiTableCellContentPaddingCompressed: string; euiTableCellCheckboxWidth: string; euiTableActionsAreaWidth: string; euiTableHoverColor: string; euiTableSelectedColor: string; euiTableHoverSelectedColor: string; euiTableActionsBorderColor: string; euiTableHoverClickableColor: string; euiTableFocusClickableColor: string; euiTextColors: { default: string; subdued: string; success: string; accent: string; warning: string; danger: string; ghost: string; inherit: string; }; euiTextConstrainedMaxWidth: string; euiToastWidth: string; euiToastTypes: { primary: string; success: string; warning: string; danger: string; }; euiTokenGrayColor: string; euiTokenTypes: { euiColorVis0: { graphic: string; behindText: string; }; euiColorVis1: { graphic: string; behindText: string; }; euiColorVis2: { graphic: string; behindText: string; }; euiColorVis3: { graphic: string; behindText: string; }; euiColorVis4: { graphic: string; behindText: string; }; euiColorVis5: { graphic: string; behindText: string; }; euiColorVis6: { graphic: string; behindText: string; }; euiColorVis7: { graphic: string; behindText: string; }; euiColorVis8: { graphic: string; behindText: string; }; euiColorVis9: { graphic: string; behindText: string; }; gray: { graphic: string; behindText: string; }; }; euiTokenTypeKeys: string; euiContrastRatioText: number; euiContrastRatioGraphic: number; euiContrastRatioDisabled: number; euiAnimSlightBounce: string; euiAnimSlightResistance: string; euiAnimSpeedExtraFast: string; euiAnimSpeedFast: string; euiAnimSpeedNormal: string; euiAnimSpeedSlow: string; euiAnimSpeedExtraSlow: string; euiBorderWidthThin: string; euiBorderWidthThick: string; euiBorderColor: string; euiBorderRadius: string; euiBorderRadiusSmall: string; euiBorderThick: string; euiBorderThin: string; euiBorderEditable: string; euiButtonHeight: string; euiButtonHeightSmall: string; euiButtonHeightXSmall: string; euiButtonColorDisabled: string; euiButtonColorDisabledText: string; euiButtonColorGhostDisabled: string; euiButtonTypes: { primary: string; accent: string; success: string; warning: string; danger: string; subdued: string; ghost: string; text: string; }; euiCodeBlockBackgroundColor: string; euiCodeBlockColor: string; euiCodeBlockSelectedBackgroundColor: string; euiCodeBlockCommentColor: string; euiCodeBlockSelectorTagColor: string; euiCodeBlockStringColor: string; euiCodeBlockTagColor: string; euiCodeBlockNameColor: string; euiCodeBlockNumberColor: string; euiCodeBlockKeywordColor: string; euiCodeBlockFunctionTitleColor: string; euiCodeBlockTypeColor: string; euiCodeBlockAttributeColor: string; euiCodeBlockSymbolColor: string; euiCodeBlockParamsColor: string; euiCodeBlockMetaColor: string; euiCodeBlockTitleColor: string; euiCodeBlockSectionColor: string; euiCodeBlockAdditionColor: string; euiCodeBlockDeletionColor: string; euiCodeBlockSelectorClassColor: string; euiCodeBlockSelectorIdColor: string; euiPaletteColorBlind: { euiColorVis0: { graphic: string; behindText: string; }; euiColorVis1: { graphic: string; behindText: string; }; euiColorVis2: { graphic: string; behindText: string; }; euiColorVis3: { graphic: string; behindText: string; }; euiColorVis4: { graphic: string; behindText: string; }; euiColorVis5: { graphic: string; behindText: string; }; euiColorVis6: { graphic: string; behindText: string; }; euiColorVis7: { graphic: string; behindText: string; }; euiColorVis8: { graphic: string; behindText: string; }; euiColorVis9: { graphic: string; behindText: string; }; }; euiPaletteColorBlindKeys: string; euiColorVis0: string; euiColorVis1: string; euiColorVis2: string; euiColorVis3: string; euiColorVis4: string; euiColorVis5: string; euiColorVis6: string; euiColorVis7: string; euiColorVis8: string; euiColorVis9: string; euiColorVis0_behindText: string; euiColorVis1_behindText: string; euiColorVis2_behindText: string; euiColorVis3_behindText: string; euiColorVis4_behindText: string; euiColorVis5_behindText: string; euiColorVis6_behindText: string; euiColorVis7_behindText: string; euiColorVis8_behindText: string; euiColorVis9_behindText: string; euiFontWeightLight: number; euiFontWeightRegular: number; euiFontWeightMedium: number; euiFontWeightSemiBold: number; euiFontWeightBold: number; euiCodeFontWeightRegular: number; euiCodeFontWeightBold: number; euiFormMaxWidth: string; euiFormControlHeight: string; euiFormControlCompressedHeight: string; euiFormControlPadding: string; euiFormControlCompressedPadding: string; euiFormControlBorderRadius: string; euiFormControlCompressedBorderRadius: string; euiRadioSize: string; euiCheckBoxSize: string; euiCheckboxBorderRadius: string; euiSwitchHeight: string; euiSwitchWidth: string; euiSwitchThumbSize: string; euiSwitchIconHeight: string; euiSwitchHeightCompressed: string; euiSwitchWidthCompressed: string; euiSwitchThumbSizeCompressed: string; euiSwitchHeightMini: string; euiSwitchWidthMini: string; euiSwitchThumbSizeMini: string; euiFormBackgroundColor: string; euiFormBackgroundDisabledColor: string; euiFormBackgroundReadOnlyColor: string; euiFormBorderOpaqueColor: string; euiFormBorderColor: string; euiFormBorderDisabledColor: string; euiFormCustomControlDisabledIconColor: string; euiFormCustomControlBorderColor: string; euiFormControlDisabledColor: string; euiFormControlBoxShadow: string; euiFormControlPlaceholderText: string; euiFormInputGroupLabelBackground: string; euiFormInputGroupBorder: string; euiSwitchOffColor: string; euiFormControlLayoutGroupInputHeight: string; euiFormControlLayoutGroupInputCompressedHeight: string; euiFormControlLayoutGroupInputCompressedBorderRadius: string; euiRangeTrackColor: string; euiRangeThumbRadius: string; euiRangeThumbHeight: string; euiRangeThumbWidth: string; euiRangeThumbBorderColor: string; euiRangeTrackWidth: string; euiRangeTrackHeight: string; euiRangeTrackBorderWidth: number; euiRangeTrackBorderColor: string; euiRangeTrackRadius: string; euiRangeDisabledOpacity: number; euiRangeHighlightHeight: string; euiHeaderBackgroundColor: string; euiHeaderDarkBackgroundColor: string; euiHeaderBorderColor: string; euiHeaderBreadcrumbColor: string; euiHeaderHeight: string; euiHeaderChildSize: string; euiHeaderHeightCompensation: string; euiPageDefaultMaxWidth: string; euiPageSidebarMinWidth: string; euiPanelPaddingModifiers: { paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiPanelBorderRadiusModifiers: { borderRadiusNone: number; borderRadiusMedium: string; }; euiPanelBackgroundColorModifiers: { transparent: string; plain: string; subdued: string; accent: string; primary: string; success: string; warning: string; danger: string; }; euiBreakpoints: { xs: number; s: string; m: string; l: string; xl: string; }; euiBreakpointKeys: string; euiShadowColor: string; euiShadowColorLarge: string; euiSize: string; euiSizeXS: string; euiSizeS: string; euiSizeM: string; euiSizeL: string; euiSizeXL: string; euiSizeXXL: string; euiButtonMinWidth: string; euiScrollBar: string; euiScrollBarCorner: string; euiScrollBarCornerThin: string; euiFocusRingColor: string; euiFocusRingAnimStartColor: string; euiFocusRingAnimStartSize: string; euiFocusRingAnimStartSizeLarge: string; euiFocusRingSizeLarge: string; euiFocusRingSize: string; euiFocusTransparency: number; euiFocusTransparencyPercent: string; euiFocusBackgroundColor: string; euiTooltipBackgroundColor: string; euiTooltipBorderColor: string; euiTooltipAnimations: { top: string; left: string; bottom: string; right: string; }; euiFontFamily: string; euiCodeFontFamily: string; euiFontFeatureSettings: string; euiTextScale: string; euiFontSize: string; euiFontSizeXS: string; euiFontSizeS: string; euiFontSizeM: string; euiFontSizeL: string; euiFontSizeXL: string; euiFontSizeXXL: string; euiLineHeight: number; euiBodyLineHeight: number; euiTitles: { xxxs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; xxs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; xs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; s: { 'font-size': string; 'line-height': string; 'font-weight': number; }; m: { 'font-size': string; 'line-height': string; 'font-weight': number; }; l: { 'font-size': string; 'line-height': string; 'font-weight': number; }; }; euiZLevel0: number; euiZLevel1: number; euiZLevel2: number; euiZLevel3: number; euiZLevel4: number; euiZLevel5: number; euiZLevel6: number; euiZLevel7: number; euiZLevel8: number; euiZLevel9: number; euiZToastList: number; euiZModal: number; euiZMask: number; euiZNavigation: number; euiZContentMenu: number; euiZHeader: number; euiZFlyout: number; euiZMaskBelowHeader: number; euiZContent: number; euiColorGhost: string; euiColorInk: string; euiColorPrimary: string; euiColorAccent: string; euiColorSuccess: string; euiColorWarning: string; euiColorDanger: string; euiColorEmptyShade: string; euiColorLightestShade: string; euiColorLightShade: string; euiColorMediumShade: string; euiColorDarkShade: string; euiColorDarkestShade: string; euiColorFullShade: string; euiPageBackgroundColor: string; euiColorHighlight: string; euiTextColor: string; euiTitleColor: string; euiTextSubduedColor: string; euiColorDisabled: string; euiColorPrimaryText: string; euiColorSuccessText: string; euiColorAccentText: string; euiColorWarningText: string; euiColorDangerText: string; euiColorDisabledText: string; euiLinkColor: string; euiColorChartLines: string; euiColorChartBand: string; euiDatePickerCalendarWidth: string; euiDatePickerPadding: string; euiDatePickerGap: string; euiDatePickerCalendarColumns: number; euiDatePickerButtonSize: string; euiDatePickerMinControlWidth: string; euiDatePickerMaxControlWidth: string; euiButtonDefaultTransparency: number; euiButtonFontWeight: number; euiRangeHighlightColor: string; euiRangeThumbBackgroundColor: string; euiRangeTrackCompressedHeight: string; euiRangeHighlightCompressedHeight: string; euiRangeHeight: string; euiRangeCompressedHeight: string; euiStepStatusColors: { default: string; complete: string; warning: string; danger: string; }; }" + ], + "path": "packages/kbn-ui-theme/src/theme.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/ui-theme", + "id": "def-common.euiLightVars", + "type": "Object", + "tags": [], + "label": "euiLightVars", + "description": [], + "signature": [ + "{ paddingSizes: { xs: string; s: string; m: string; l: string; xl: string; }; avatarSizing: { s: { size: string; 'font-size': string; }; m: { size: string; 'font-size': string; }; l: { size: string; 'font-size': string; }; xl: { size: string; 'font-size': string; }; }; euiBadgeGroupGutterTypes: { gutterExtraSmall: string; gutterSmall: string; }; euiBreadcrumbSpacing: string; euiBreadcrumbTruncateWidth: string; euiButtonEmptyTypes: { primary: string; danger: string; disabled: string; ghost: string; text: string; success: string; warning: string; }; euiCallOutTypes: { primary: string; success: string; warning: string; danger: string; }; euiCardSpacing: string; euiCardBottomNodeHeight: string; euiCardSelectButtonBorders: { text: string; primary: string; success: string; danger: string; ghost: string; }; euiCardSelectButtonBackgrounds: { text: string; primary: string; success: string; danger: string; ghost: string; }; euiCardPaddingModifiers: { paddingNone: number; paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiCheckableCardPadding: string; euiCodeBlockPaddingModifiers: { paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiCollapsibleNavGroupLightBackgroundColor: string; euiCollapsibleNavGroupDarkBackgroundColor: string; euiCollapsibleNavGroupDarkHighContrastColor: string; euiColorPickerValueRange0: string; euiColorPickerValueRange1: string; euiColorPickerSaturationRange0: string; euiColorPickerSaturationRange1: string; euiColorPickerIndicatorSize: string; euiColorPickerWidth: string; euiColorPaletteDisplaySizes: { sizeExtraSmall: string; sizeSmall: string; sizeMedium: string; }; euiContextMenuWidth: string; euiControlBarBackground: string; euiControlBarText: string; euiControlBarBorderColor: string; euiControlBarInitialHeight: string; euiControlBarMaxHeight: string; euiControlBarHeights: { s: string; m: string; l: string; }; euiDataGridPrefix: string; euiDataGridStyles: string; euiZDataGrid: number; euiZHeaderBelowDataGrid: number; euiZDataGridCellPopover: number; euiDataGridColumnResizerWidth: string; euiDataGridPopoverMaxHeight: string; euiDataGridCellPaddingS: string; euiDataGridCellPaddingM: string; euiDataGridCellPaddingL: string; euiDataGridVerticalBorder: string; euiSuperDatePickerWidth: string; euiSuperDatePickerButtonWidth: string; euiDragAndDropSpacing: { s: string; m: string; l: string; }; euiExpressionColors: { subdued: string; primary: string; success: string; warning: string; danger: string; accent: string; }; euiFacetGutterSizes: { gutterNone: number; gutterSmall: string; gutterMedium: string; gutterLarge: string; }; gutterTypes: { gutterExtraSmall: string; gutterSmall: string; gutterMedium: string; gutterLarge: string; gutterExtraLarge: string; }; fractions: { fourths: { percentage: string; count: number; }; thirds: { percentage: string; count: number; }; halves: { percentage: string; count: number; }; single: { percentage: string; count: number; }; }; flyoutSizes: { small: { min: string; width: string; max: string; }; medium: { min: string; width: string; max: string; }; large: { min: string; width: string; max: string; }; }; euiFlyoutBorder: string; euiFlyoutPaddingModifiers: { paddingNone: number; paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiFilePickerTallHeight: string; euiRangeLevelColors: { primary: string; success: string; warning: string; danger: string; }; textareaResizing: { vertical: string; horizontal: string; both: string; none: string; }; euiHeaderLinksGutterSizes: { gutterXS: string; gutterS: string; gutterM: string; gutterL: string; }; ruleMargins: { marginXSmall: string; marginSmall: string; marginMedium: string; marginLarge: string; marginXLarge: string; marginXXLarge: string; }; euiIconLoadingOpacity: number; euiIconColors: { accent: string; danger: string; ghost: string; primary: string; success: string; subdued: string; text: string; warning: string; inherit: string; }; euiIconSizes: { small: string; medium: string; large: string; xLarge: string; xxLarge: string; }; euiKeyPadMenuSize: string; euiKeyPadMenuMarginSize: string; euiLinkColors: { subdued: string; primary: string; success: string; accent: string; warning: string; danger: string; text: string; ghost: string; }; euiListGroupItemHoverBackground: string; euiListGroupItemHoverBackgroundGhost: string; euiListGroupGutterTypes: { gutterSmall: string; gutterMedium: string; }; euiListGroupItemColorTypes: { primary: string; text: string; subdued: string; ghost: string; }; euiListGroupItemSizeTypes: { xSmall: string; small: string; medium: string; large: string; }; euiGradientStartStop: string; euiGradientMiddle: string; euiMarkdownEditorMinHeight: string; euiPopoverArrowSize: string; euiPopoverTranslateDistance: string; euiProgressSizes: { xs: string; s: string; m: string; l: string; }; euiProgressColors: { primary: string; success: string; warning: string; danger: string; accent: string; subdued: string; vis0: string; vis1: string; vis2: string; vis3: string; vis4: string; vis5: string; vis6: string; vis7: string; vis8: string; vis9: string; customColor: string; }; euiResizableButtonTransitionSpeed: string; euiResizableButtonSize: string; euiSelectableListItemBorder: string; euiSelectableListItemPadding: string; euiSelectableTemplateSitewideTypes: { application: { color: string; 'font-weight': number; }; deployment: { color: string; 'font-weight': number; }; article: { color: string; 'font-weight': number; }; case: { color: string; 'font-weight': number; }; platform: { color: string; 'font-weight': number; }; }; euiSideNavEmphasizedBackgroundColor: string; euiSideNavRootTextcolor: string; euiSideNavBranchTextcolor: string; euiSideNavSelectedTextcolor: string; euiSideNavDisabledTextcolor: string; spacerSizes: { xs: string; s: string; m: string; l: string; xl: string; xxl: string; }; euiStepNumberSize: string; euiStepNumberSmallSize: string; euiStepNumberMargin: string; euiStepStatusColorsToFade: { warning: string; danger: string; disabled: string; incomplete: string; }; euiSuggestItemColors: { tint0: string; tint1: string; tint2: string; tint3: string; tint4: string; tint5: string; tint6: string; tint7: string; tint8: string; tint9: string; tint10: string; }; euiTableCellContentPadding: string; euiTableCellContentPaddingCompressed: string; euiTableCellCheckboxWidth: string; euiTableActionsAreaWidth: string; euiTableHoverColor: string; euiTableSelectedColor: string; euiTableHoverSelectedColor: string; euiTableActionsBorderColor: string; euiTableHoverClickableColor: string; euiTableFocusClickableColor: string; euiTextColors: { default: string; subdued: string; success: string; accent: string; warning: string; danger: string; ghost: string; inherit: string; }; euiTextConstrainedMaxWidth: string; euiToastWidth: string; euiToastTypes: { primary: string; success: string; warning: string; danger: string; }; euiTokenGrayColor: string; euiTokenTypes: { euiColorVis0: { graphic: string; behindText: string; }; euiColorVis1: { graphic: string; behindText: string; }; euiColorVis2: { graphic: string; behindText: string; }; euiColorVis3: { graphic: string; behindText: string; }; euiColorVis4: { graphic: string; behindText: string; }; euiColorVis5: { graphic: string; behindText: string; }; euiColorVis6: { graphic: string; behindText: string; }; euiColorVis7: { graphic: string; behindText: string; }; euiColorVis8: { graphic: string; behindText: string; }; euiColorVis9: { graphic: string; behindText: string; }; gray: { graphic: string; behindText: string; }; }; euiTokenTypeKeys: string; euiContrastRatioText: number; euiContrastRatioGraphic: number; euiContrastRatioDisabled: number; euiAnimSlightBounce: string; euiAnimSlightResistance: string; euiAnimSpeedExtraFast: string; euiAnimSpeedFast: string; euiAnimSpeedNormal: string; euiAnimSpeedSlow: string; euiAnimSpeedExtraSlow: string; euiBorderWidthThin: string; euiBorderWidthThick: string; euiBorderColor: string; euiBorderRadius: string; euiBorderRadiusSmall: string; euiBorderThick: string; euiBorderThin: string; euiBorderEditable: string; euiButtonHeight: string; euiButtonHeightSmall: string; euiButtonHeightXSmall: string; euiButtonColorDisabled: string; euiButtonColorDisabledText: string; euiButtonColorGhostDisabled: string; euiButtonTypes: { primary: string; accent: string; success: string; warning: string; danger: string; subdued: string; ghost: string; text: string; }; euiCodeBlockBackgroundColor: string; euiCodeBlockColor: string; euiCodeBlockSelectedBackgroundColor: string; euiCodeBlockCommentColor: string; euiCodeBlockSelectorTagColor: string; euiCodeBlockStringColor: string; euiCodeBlockTagColor: string; euiCodeBlockNameColor: string; euiCodeBlockNumberColor: string; euiCodeBlockKeywordColor: string; euiCodeBlockFunctionTitleColor: string; euiCodeBlockTypeColor: string; euiCodeBlockAttributeColor: string; euiCodeBlockSymbolColor: string; euiCodeBlockParamsColor: string; euiCodeBlockMetaColor: string; euiCodeBlockTitleColor: string; euiCodeBlockSectionColor: string; euiCodeBlockAdditionColor: string; euiCodeBlockDeletionColor: string; euiCodeBlockSelectorClassColor: string; euiCodeBlockSelectorIdColor: string; euiPaletteColorBlind: { euiColorVis0: { graphic: string; behindText: string; }; euiColorVis1: { graphic: string; behindText: string; }; euiColorVis2: { graphic: string; behindText: string; }; euiColorVis3: { graphic: string; behindText: string; }; euiColorVis4: { graphic: string; behindText: string; }; euiColorVis5: { graphic: string; behindText: string; }; euiColorVis6: { graphic: string; behindText: string; }; euiColorVis7: { graphic: string; behindText: string; }; euiColorVis8: { graphic: string; behindText: string; }; euiColorVis9: { graphic: string; behindText: string; }; }; euiPaletteColorBlindKeys: string; euiColorVis0: string; euiColorVis1: string; euiColorVis2: string; euiColorVis3: string; euiColorVis4: string; euiColorVis5: string; euiColorVis6: string; euiColorVis7: string; euiColorVis8: string; euiColorVis9: string; euiColorVis0_behindText: string; euiColorVis1_behindText: string; euiColorVis2_behindText: string; euiColorVis3_behindText: string; euiColorVis4_behindText: string; euiColorVis5_behindText: string; euiColorVis6_behindText: string; euiColorVis7_behindText: string; euiColorVis8_behindText: string; euiColorVis9_behindText: string; euiFontWeightLight: number; euiFontWeightRegular: number; euiFontWeightMedium: number; euiFontWeightSemiBold: number; euiFontWeightBold: number; euiCodeFontWeightRegular: number; euiCodeFontWeightBold: number; euiFormMaxWidth: string; euiFormControlHeight: string; euiFormControlCompressedHeight: string; euiFormControlPadding: string; euiFormControlCompressedPadding: string; euiFormControlBorderRadius: string; euiFormControlCompressedBorderRadius: string; euiRadioSize: string; euiCheckBoxSize: string; euiCheckboxBorderRadius: string; euiSwitchHeight: string; euiSwitchWidth: string; euiSwitchThumbSize: string; euiSwitchIconHeight: string; euiSwitchHeightCompressed: string; euiSwitchWidthCompressed: string; euiSwitchThumbSizeCompressed: string; euiSwitchHeightMini: string; euiSwitchWidthMini: string; euiSwitchThumbSizeMini: string; euiFormBackgroundColor: string; euiFormBackgroundDisabledColor: string; euiFormBackgroundReadOnlyColor: string; euiFormBorderOpaqueColor: string; euiFormBorderColor: string; euiFormBorderDisabledColor: string; euiFormCustomControlDisabledIconColor: string; euiFormCustomControlBorderColor: string; euiFormControlDisabledColor: string; euiFormControlBoxShadow: string; euiFormControlPlaceholderText: string; euiFormInputGroupLabelBackground: string; euiFormInputGroupBorder: string; euiSwitchOffColor: string; euiFormControlLayoutGroupInputHeight: string; euiFormControlLayoutGroupInputCompressedHeight: string; euiFormControlLayoutGroupInputCompressedBorderRadius: string; euiRangeTrackColor: string; euiRangeThumbRadius: string; euiRangeThumbHeight: string; euiRangeThumbWidth: string; euiRangeThumbBorderColor: string; euiRangeTrackWidth: string; euiRangeTrackHeight: string; euiRangeTrackBorderWidth: number; euiRangeTrackBorderColor: string; euiRangeTrackRadius: string; euiRangeDisabledOpacity: number; euiRangeHighlightHeight: string; euiHeaderBackgroundColor: string; euiHeaderDarkBackgroundColor: string; euiHeaderBorderColor: string; euiHeaderBreadcrumbColor: string; euiHeaderHeight: string; euiHeaderChildSize: string; euiHeaderHeightCompensation: string; euiPageDefaultMaxWidth: string; euiPageSidebarMinWidth: string; euiPanelPaddingModifiers: { paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiPanelBorderRadiusModifiers: { borderRadiusNone: number; borderRadiusMedium: string; }; euiPanelBackgroundColorModifiers: { transparent: string; plain: string; subdued: string; accent: string; primary: string; success: string; warning: string; danger: string; }; euiBreakpoints: { xs: number; s: string; m: string; l: string; xl: string; }; euiBreakpointKeys: string; euiShadowColor: string; euiShadowColorLarge: string; euiSize: string; euiSizeXS: string; euiSizeS: string; euiSizeM: string; euiSizeL: string; euiSizeXL: string; euiSizeXXL: string; euiButtonMinWidth: string; euiScrollBar: string; euiScrollBarCorner: string; euiScrollBarCornerThin: string; euiFocusRingColor: string; euiFocusRingAnimStartColor: string; euiFocusRingAnimStartSize: string; euiFocusRingAnimStartSizeLarge: string; euiFocusRingSizeLarge: string; euiFocusRingSize: string; euiFocusTransparency: number; euiFocusTransparencyPercent: string; euiFocusBackgroundColor: string; euiTooltipBackgroundColor: string; euiTooltipBorderColor: string; euiTooltipAnimations: { top: string; left: string; bottom: string; right: string; }; euiFontFamily: string; euiCodeFontFamily: string; euiFontFeatureSettings: string; euiTextScale: string; euiFontSize: string; euiFontSizeXS: string; euiFontSizeS: string; euiFontSizeM: string; euiFontSizeL: string; euiFontSizeXL: string; euiFontSizeXXL: string; euiLineHeight: number; euiBodyLineHeight: number; euiTitles: { xxxs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; xxs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; xs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; s: { 'font-size': string; 'line-height': string; 'font-weight': number; }; m: { 'font-size': string; 'line-height': string; 'font-weight': number; }; l: { 'font-size': string; 'line-height': string; 'font-weight': number; }; }; euiZLevel0: number; euiZLevel1: number; euiZLevel2: number; euiZLevel3: number; euiZLevel4: number; euiZLevel5: number; euiZLevel6: number; euiZLevel7: number; euiZLevel8: number; euiZLevel9: number; euiZToastList: number; euiZModal: number; euiZMask: number; euiZNavigation: number; euiZContentMenu: number; euiZHeader: number; euiZFlyout: number; euiZMaskBelowHeader: number; euiZContent: number; euiColorGhost: string; euiColorInk: string; euiColorPrimary: string; euiColorAccent: string; euiColorSuccess: string; euiColorWarning: string; euiColorDanger: string; euiColorEmptyShade: string; euiColorLightestShade: string; euiColorLightShade: string; euiColorMediumShade: string; euiColorDarkShade: string; euiColorDarkestShade: string; euiColorFullShade: string; euiPageBackgroundColor: string; euiColorHighlight: string; euiTextColor: string; euiTitleColor: string; euiTextSubduedColor: string; euiColorDisabled: string; euiColorPrimaryText: string; euiColorSuccessText: string; euiColorAccentText: string; euiColorWarningText: string; euiColorDangerText: string; euiColorDisabledText: string; euiLinkColor: string; euiColorChartLines: string; euiColorChartBand: string; euiDatePickerCalendarWidth: string; euiDatePickerPadding: string; euiDatePickerGap: string; euiDatePickerCalendarColumns: number; euiDatePickerButtonSize: string; euiDatePickerMinControlWidth: string; euiDatePickerMaxControlWidth: string; euiButtonDefaultTransparency: number; euiButtonFontWeight: number; euiRangeHighlightColor: string; euiRangeThumbBackgroundColor: string; euiRangeTrackCompressedHeight: string; euiRangeHighlightCompressedHeight: string; euiRangeHeight: string; euiRangeCompressedHeight: string; euiStepStatusColors: { default: string; complete: string; warning: string; danger: string; }; }" + ], + "path": "packages/kbn-ui-theme/src/theme.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/ui-theme", + "id": "def-common.euiThemeVars", + "type": "Object", + "tags": [], + "label": "euiThemeVars", + "description": [ + "\nEUI Theme vars that automatically adjust to light/dark theme" + ], + "signature": [ + "{ paddingSizes: { xs: string; s: string; m: string; l: string; xl: string; }; avatarSizing: { s: { size: string; 'font-size': string; }; m: { size: string; 'font-size': string; }; l: { size: string; 'font-size': string; }; xl: { size: string; 'font-size': string; }; }; euiBadgeGroupGutterTypes: { gutterExtraSmall: string; gutterSmall: string; }; euiBreadcrumbSpacing: string; euiBreadcrumbTruncateWidth: string; euiButtonEmptyTypes: { primary: string; danger: string; disabled: string; ghost: string; text: string; success: string; warning: string; }; euiCallOutTypes: { primary: string; success: string; warning: string; danger: string; }; euiCardSpacing: string; euiCardBottomNodeHeight: string; euiCardSelectButtonBorders: { text: string; primary: string; success: string; danger: string; ghost: string; }; euiCardSelectButtonBackgrounds: { text: string; primary: string; success: string; danger: string; ghost: string; }; euiCardPaddingModifiers: { paddingNone: number; paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiCheckableCardPadding: string; euiCodeBlockPaddingModifiers: { paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiCollapsibleNavGroupLightBackgroundColor: string; euiCollapsibleNavGroupDarkBackgroundColor: string; euiCollapsibleNavGroupDarkHighContrastColor: string; euiColorPickerValueRange0: string; euiColorPickerValueRange1: string; euiColorPickerSaturationRange0: string; euiColorPickerSaturationRange1: string; euiColorPickerIndicatorSize: string; euiColorPickerWidth: string; euiColorPaletteDisplaySizes: { sizeExtraSmall: string; sizeSmall: string; sizeMedium: string; }; euiContextMenuWidth: string; euiControlBarBackground: string; euiControlBarText: string; euiControlBarBorderColor: string; euiControlBarInitialHeight: string; euiControlBarMaxHeight: string; euiControlBarHeights: { s: string; m: string; l: string; }; euiDataGridPrefix: string; euiDataGridStyles: string; euiZDataGrid: number; euiZHeaderBelowDataGrid: number; euiZDataGridCellPopover: number; euiDataGridColumnResizerWidth: string; euiDataGridPopoverMaxHeight: string; euiDataGridCellPaddingS: string; euiDataGridCellPaddingM: string; euiDataGridCellPaddingL: string; euiDataGridVerticalBorder: string; euiSuperDatePickerWidth: string; euiSuperDatePickerButtonWidth: string; euiDragAndDropSpacing: { s: string; m: string; l: string; }; euiExpressionColors: { subdued: string; primary: string; success: string; warning: string; danger: string; accent: string; }; euiFacetGutterSizes: { gutterNone: number; gutterSmall: string; gutterMedium: string; gutterLarge: string; }; gutterTypes: { gutterExtraSmall: string; gutterSmall: string; gutterMedium: string; gutterLarge: string; gutterExtraLarge: string; }; fractions: { fourths: { percentage: string; count: number; }; thirds: { percentage: string; count: number; }; halves: { percentage: string; count: number; }; single: { percentage: string; count: number; }; }; flyoutSizes: { small: { min: string; width: string; max: string; }; medium: { min: string; width: string; max: string; }; large: { min: string; width: string; max: string; }; }; euiFlyoutBorder: string; euiFlyoutPaddingModifiers: { paddingNone: number; paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiFilePickerTallHeight: string; euiRangeLevelColors: { primary: string; success: string; warning: string; danger: string; }; textareaResizing: { vertical: string; horizontal: string; both: string; none: string; }; euiHeaderLinksGutterSizes: { gutterXS: string; gutterS: string; gutterM: string; gutterL: string; }; ruleMargins: { marginXSmall: string; marginSmall: string; marginMedium: string; marginLarge: string; marginXLarge: string; marginXXLarge: string; }; euiIconLoadingOpacity: number; euiIconColors: { accent: string; danger: string; ghost: string; primary: string; success: string; subdued: string; text: string; warning: string; inherit: string; }; euiIconSizes: { small: string; medium: string; large: string; xLarge: string; xxLarge: string; }; euiKeyPadMenuSize: string; euiKeyPadMenuMarginSize: string; euiLinkColors: { subdued: string; primary: string; success: string; accent: string; warning: string; danger: string; text: string; ghost: string; }; euiListGroupItemHoverBackground: string; euiListGroupItemHoverBackgroundGhost: string; euiListGroupGutterTypes: { gutterSmall: string; gutterMedium: string; }; euiListGroupItemColorTypes: { primary: string; text: string; subdued: string; ghost: string; }; euiListGroupItemSizeTypes: { xSmall: string; small: string; medium: string; large: string; }; euiGradientStartStop: string; euiGradientMiddle: string; euiMarkdownEditorMinHeight: string; euiPopoverArrowSize: string; euiPopoverTranslateDistance: string; euiProgressSizes: { xs: string; s: string; m: string; l: string; }; euiProgressColors: { primary: string; success: string; warning: string; danger: string; accent: string; subdued: string; vis0: string; vis1: string; vis2: string; vis3: string; vis4: string; vis5: string; vis6: string; vis7: string; vis8: string; vis9: string; customColor: string; }; euiResizableButtonTransitionSpeed: string; euiResizableButtonSize: string; euiSelectableListItemBorder: string; euiSelectableListItemPadding: string; euiSelectableTemplateSitewideTypes: { application: { color: string; 'font-weight': number; }; deployment: { color: string; 'font-weight': number; }; article: { color: string; 'font-weight': number; }; case: { color: string; 'font-weight': number; }; platform: { color: string; 'font-weight': number; }; }; euiSideNavEmphasizedBackgroundColor: string; euiSideNavRootTextcolor: string; euiSideNavBranchTextcolor: string; euiSideNavSelectedTextcolor: string; euiSideNavDisabledTextcolor: string; spacerSizes: { xs: string; s: string; m: string; l: string; xl: string; xxl: string; }; euiStepNumberSize: string; euiStepNumberSmallSize: string; euiStepNumberMargin: string; euiStepStatusColorsToFade: { warning: string; danger: string; disabled: string; incomplete: string; }; euiSuggestItemColors: { tint0: string; tint1: string; tint2: string; tint3: string; tint4: string; tint5: string; tint6: string; tint7: string; tint8: string; tint9: string; tint10: string; }; euiTableCellContentPadding: string; euiTableCellContentPaddingCompressed: string; euiTableCellCheckboxWidth: string; euiTableActionsAreaWidth: string; euiTableHoverColor: string; euiTableSelectedColor: string; euiTableHoverSelectedColor: string; euiTableActionsBorderColor: string; euiTableHoverClickableColor: string; euiTableFocusClickableColor: string; euiTextColors: { default: string; subdued: string; success: string; accent: string; warning: string; danger: string; ghost: string; inherit: string; }; euiTextConstrainedMaxWidth: string; euiToastWidth: string; euiToastTypes: { primary: string; success: string; warning: string; danger: string; }; euiTokenGrayColor: string; euiTokenTypes: { euiColorVis0: { graphic: string; behindText: string; }; euiColorVis1: { graphic: string; behindText: string; }; euiColorVis2: { graphic: string; behindText: string; }; euiColorVis3: { graphic: string; behindText: string; }; euiColorVis4: { graphic: string; behindText: string; }; euiColorVis5: { graphic: string; behindText: string; }; euiColorVis6: { graphic: string; behindText: string; }; euiColorVis7: { graphic: string; behindText: string; }; euiColorVis8: { graphic: string; behindText: string; }; euiColorVis9: { graphic: string; behindText: string; }; gray: { graphic: string; behindText: string; }; }; euiTokenTypeKeys: string; euiContrastRatioText: number; euiContrastRatioGraphic: number; euiContrastRatioDisabled: number; euiAnimSlightBounce: string; euiAnimSlightResistance: string; euiAnimSpeedExtraFast: string; euiAnimSpeedFast: string; euiAnimSpeedNormal: string; euiAnimSpeedSlow: string; euiAnimSpeedExtraSlow: string; euiBorderWidthThin: string; euiBorderWidthThick: string; euiBorderColor: string; euiBorderRadius: string; euiBorderRadiusSmall: string; euiBorderThick: string; euiBorderThin: string; euiBorderEditable: string; euiButtonHeight: string; euiButtonHeightSmall: string; euiButtonHeightXSmall: string; euiButtonColorDisabled: string; euiButtonColorDisabledText: string; euiButtonColorGhostDisabled: string; euiButtonTypes: { primary: string; accent: string; success: string; warning: string; danger: string; subdued: string; ghost: string; text: string; }; euiCodeBlockBackgroundColor: string; euiCodeBlockColor: string; euiCodeBlockSelectedBackgroundColor: string; euiCodeBlockCommentColor: string; euiCodeBlockSelectorTagColor: string; euiCodeBlockStringColor: string; euiCodeBlockTagColor: string; euiCodeBlockNameColor: string; euiCodeBlockNumberColor: string; euiCodeBlockKeywordColor: string; euiCodeBlockFunctionTitleColor: string; euiCodeBlockTypeColor: string; euiCodeBlockAttributeColor: string; euiCodeBlockSymbolColor: string; euiCodeBlockParamsColor: string; euiCodeBlockMetaColor: string; euiCodeBlockTitleColor: string; euiCodeBlockSectionColor: string; euiCodeBlockAdditionColor: string; euiCodeBlockDeletionColor: string; euiCodeBlockSelectorClassColor: string; euiCodeBlockSelectorIdColor: string; euiPaletteColorBlind: { euiColorVis0: { graphic: string; behindText: string; }; euiColorVis1: { graphic: string; behindText: string; }; euiColorVis2: { graphic: string; behindText: string; }; euiColorVis3: { graphic: string; behindText: string; }; euiColorVis4: { graphic: string; behindText: string; }; euiColorVis5: { graphic: string; behindText: string; }; euiColorVis6: { graphic: string; behindText: string; }; euiColorVis7: { graphic: string; behindText: string; }; euiColorVis8: { graphic: string; behindText: string; }; euiColorVis9: { graphic: string; behindText: string; }; }; euiPaletteColorBlindKeys: string; euiColorVis0: string; euiColorVis1: string; euiColorVis2: string; euiColorVis3: string; euiColorVis4: string; euiColorVis5: string; euiColorVis6: string; euiColorVis7: string; euiColorVis8: string; euiColorVis9: string; euiColorVis0_behindText: string; euiColorVis1_behindText: string; euiColorVis2_behindText: string; euiColorVis3_behindText: string; euiColorVis4_behindText: string; euiColorVis5_behindText: string; euiColorVis6_behindText: string; euiColorVis7_behindText: string; euiColorVis8_behindText: string; euiColorVis9_behindText: string; euiFontWeightLight: number; euiFontWeightRegular: number; euiFontWeightMedium: number; euiFontWeightSemiBold: number; euiFontWeightBold: number; euiCodeFontWeightRegular: number; euiCodeFontWeightBold: number; euiFormMaxWidth: string; euiFormControlHeight: string; euiFormControlCompressedHeight: string; euiFormControlPadding: string; euiFormControlCompressedPadding: string; euiFormControlBorderRadius: string; euiFormControlCompressedBorderRadius: string; euiRadioSize: string; euiCheckBoxSize: string; euiCheckboxBorderRadius: string; euiSwitchHeight: string; euiSwitchWidth: string; euiSwitchThumbSize: string; euiSwitchIconHeight: string; euiSwitchHeightCompressed: string; euiSwitchWidthCompressed: string; euiSwitchThumbSizeCompressed: string; euiSwitchHeightMini: string; euiSwitchWidthMini: string; euiSwitchThumbSizeMini: string; euiFormBackgroundColor: string; euiFormBackgroundDisabledColor: string; euiFormBackgroundReadOnlyColor: string; euiFormBorderOpaqueColor: string; euiFormBorderColor: string; euiFormBorderDisabledColor: string; euiFormCustomControlDisabledIconColor: string; euiFormCustomControlBorderColor: string; euiFormControlDisabledColor: string; euiFormControlBoxShadow: string; euiFormControlPlaceholderText: string; euiFormInputGroupLabelBackground: string; euiFormInputGroupBorder: string; euiSwitchOffColor: string; euiFormControlLayoutGroupInputHeight: string; euiFormControlLayoutGroupInputCompressedHeight: string; euiFormControlLayoutGroupInputCompressedBorderRadius: string; euiRangeTrackColor: string; euiRangeThumbRadius: string; euiRangeThumbHeight: string; euiRangeThumbWidth: string; euiRangeThumbBorderColor: string; euiRangeTrackWidth: string; euiRangeTrackHeight: string; euiRangeTrackBorderWidth: number; euiRangeTrackBorderColor: string; euiRangeTrackRadius: string; euiRangeDisabledOpacity: number; euiRangeHighlightHeight: string; euiHeaderBackgroundColor: string; euiHeaderDarkBackgroundColor: string; euiHeaderBorderColor: string; euiHeaderBreadcrumbColor: string; euiHeaderHeight: string; euiHeaderChildSize: string; euiHeaderHeightCompensation: string; euiPageDefaultMaxWidth: string; euiPageSidebarMinWidth: string; euiPanelPaddingModifiers: { paddingSmall: string; paddingMedium: string; paddingLarge: string; }; euiPanelBorderRadiusModifiers: { borderRadiusNone: number; borderRadiusMedium: string; }; euiPanelBackgroundColorModifiers: { transparent: string; plain: string; subdued: string; accent: string; primary: string; success: string; warning: string; danger: string; }; euiBreakpoints: { xs: number; s: string; m: string; l: string; xl: string; }; euiBreakpointKeys: string; euiShadowColor: string; euiShadowColorLarge: string; euiSize: string; euiSizeXS: string; euiSizeS: string; euiSizeM: string; euiSizeL: string; euiSizeXL: string; euiSizeXXL: string; euiButtonMinWidth: string; euiScrollBar: string; euiScrollBarCorner: string; euiScrollBarCornerThin: string; euiFocusRingColor: string; euiFocusRingAnimStartColor: string; euiFocusRingAnimStartSize: string; euiFocusRingAnimStartSizeLarge: string; euiFocusRingSizeLarge: string; euiFocusRingSize: string; euiFocusTransparency: number; euiFocusTransparencyPercent: string; euiFocusBackgroundColor: string; euiTooltipBackgroundColor: string; euiTooltipBorderColor: string; euiTooltipAnimations: { top: string; left: string; bottom: string; right: string; }; euiFontFamily: string; euiCodeFontFamily: string; euiFontFeatureSettings: string; euiTextScale: string; euiFontSize: string; euiFontSizeXS: string; euiFontSizeS: string; euiFontSizeM: string; euiFontSizeL: string; euiFontSizeXL: string; euiFontSizeXXL: string; euiLineHeight: number; euiBodyLineHeight: number; euiTitles: { xxxs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; xxs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; xs: { 'font-size': string; 'line-height': string; 'font-weight': number; }; s: { 'font-size': string; 'line-height': string; 'font-weight': number; }; m: { 'font-size': string; 'line-height': string; 'font-weight': number; }; l: { 'font-size': string; 'line-height': string; 'font-weight': number; }; }; euiZLevel0: number; euiZLevel1: number; euiZLevel2: number; euiZLevel3: number; euiZLevel4: number; euiZLevel5: number; euiZLevel6: number; euiZLevel7: number; euiZLevel8: number; euiZLevel9: number; euiZToastList: number; euiZModal: number; euiZMask: number; euiZNavigation: number; euiZContentMenu: number; euiZHeader: number; euiZFlyout: number; euiZMaskBelowHeader: number; euiZContent: number; euiColorGhost: string; euiColorInk: string; euiColorPrimary: string; euiColorAccent: string; euiColorSuccess: string; euiColorWarning: string; euiColorDanger: string; euiColorEmptyShade: string; euiColorLightestShade: string; euiColorLightShade: string; euiColorMediumShade: string; euiColorDarkShade: string; euiColorDarkestShade: string; euiColorFullShade: string; euiPageBackgroundColor: string; euiColorHighlight: string; euiTextColor: string; euiTitleColor: string; euiTextSubduedColor: string; euiColorDisabled: string; euiColorPrimaryText: string; euiColorSuccessText: string; euiColorAccentText: string; euiColorWarningText: string; euiColorDangerText: string; euiColorDisabledText: string; euiLinkColor: string; euiColorChartLines: string; euiColorChartBand: string; euiDatePickerCalendarWidth: string; euiDatePickerPadding: string; euiDatePickerGap: string; euiDatePickerCalendarColumns: number; euiDatePickerButtonSize: string; euiDatePickerMinControlWidth: string; euiDatePickerMaxControlWidth: string; euiButtonDefaultTransparency: number; euiButtonFontWeight: number; euiRangeHighlightColor: string; euiRangeThumbBackgroundColor: string; euiRangeTrackCompressedHeight: string; euiRangeHighlightCompressedHeight: string; euiRangeHeight: string; euiRangeCompressedHeight: string; euiStepStatusColors: { default: string; complete: string; warning: string; danger: string; }; }" + ], + "path": "packages/kbn-ui-theme/src/theme.ts", + "deprecated": false, + "initialIsOpen": false + } + ] + } +} \ No newline at end of file diff --git a/api_docs/kbn_ui_theme.mdx b/api_docs/kbn_ui_theme.mdx new file mode 100644 index 00000000000000..c64f599e230c35 --- /dev/null +++ b/api_docs/kbn_ui_theme.mdx @@ -0,0 +1,30 @@ +--- +id: kibKbnUiThemePluginApi +slug: /kibana-dev-docs/api/kbn-ui-theme +title: "@kbn/ui-theme" +image: https://source.unsplash.com/400x175/?github +summary: API docs for the @kbn/ui-theme plugin +date: 2020-11-16 +tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ui-theme'] +warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. +--- +import kbnUiThemeObj from './kbn_ui_theme.devdocs.json'; + + + +Contact [Owner missing] for questions regarding this plugin. + +**Code health stats** + +| Public API count | Any count | Items lacking comments | Missing exports | +|-------------------|-----------|------------------------|-----------------| +| 7 | 0 | 6 | 0 | + +## Common + +### Objects + + +### Consts, variables and types + + diff --git a/api_docs/kbn_utility_types.json b/api_docs/kbn_utility_types.devdocs.json similarity index 100% rename from api_docs/kbn_utility_types.json rename to api_docs/kbn_utility_types.devdocs.json diff --git a/api_docs/kbn_utility_types.mdx b/api_docs/kbn_utility_types.mdx index 9eeb1000706247..9085cf9e0c8446 100644 --- a/api_docs/kbn_utility_types.mdx +++ b/api_docs/kbn_utility_types.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utility-types'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnUtilityTypesObj from './kbn_utility_types.json'; +import kbnUtilityTypesObj from './kbn_utility_types.devdocs.json'; diff --git a/api_docs/kbn_utils.json b/api_docs/kbn_utils.devdocs.json similarity index 100% rename from api_docs/kbn_utils.json rename to api_docs/kbn_utils.devdocs.json diff --git a/api_docs/kbn_utils.mdx b/api_docs/kbn_utils.mdx index 8c91613a58e325..31c917591dcb76 100644 --- a/api_docs/kbn_utils.mdx +++ b/api_docs/kbn_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kbnUtilsObj from './kbn_utils.json'; +import kbnUtilsObj from './kbn_utils.devdocs.json'; diff --git a/api_docs/kibana_overview.json b/api_docs/kibana_overview.devdocs.json similarity index 100% rename from api_docs/kibana_overview.json rename to api_docs/kibana_overview.devdocs.json diff --git a/api_docs/kibana_overview.mdx b/api_docs/kibana_overview.mdx index d3c059310dbc9b..0b87d40a82d188 100644 --- a/api_docs/kibana_overview.mdx +++ b/api_docs/kibana_overview.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaOverview'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kibanaOverviewObj from './kibana_overview.json'; +import kibanaOverviewObj from './kibana_overview.devdocs.json'; diff --git a/api_docs/kibana_react.json b/api_docs/kibana_react.devdocs.json similarity index 99% rename from api_docs/kibana_react.json rename to api_docs/kibana_react.devdocs.json index baacb79e5c55bd..c253bc77f6a6b3 100644 --- a/api_docs/kibana_react.json +++ b/api_docs/kibana_react.devdocs.json @@ -2931,6 +2931,25 @@ ], "path": "src/plugins/kibana_react/public/table_list_view/table_list_view.tsx", "deprecated": false + }, + { + "parentPluginId": "kibanaReact", + "id": "def-public.TableListViewProps.theme", + "type": "Object", + "tags": [], + "label": "theme", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "public", + "docId": "kibCorePluginApi", + "section": "def-public.ThemeServiceStart", + "text": "ThemeServiceStart" + } + ], + "path": "src/plugins/kibana_react/public/table_list_view/table_list_view.tsx", + "deprecated": false } ], "initialIsOpen": false diff --git a/api_docs/kibana_react.mdx b/api_docs/kibana_react.mdx index 130ae3a5823e40..58904fbd011e2e 100644 --- a/api_docs/kibana_react.mdx +++ b/api_docs/kibana_react.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaReact'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kibanaReactObj from './kibana_react.json'; +import kibanaReactObj from './kibana_react.devdocs.json'; @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 235 | 0 | 200 | 5 | +| 236 | 0 | 201 | 5 | ## Client diff --git a/api_docs/kibana_utils.json b/api_docs/kibana_utils.devdocs.json similarity index 99% rename from api_docs/kibana_utils.json rename to api_docs/kibana_utils.devdocs.json index f229a6e45b9c70..18bb3b4a35d4aa 100644 --- a/api_docs/kibana_utils.json +++ b/api_docs/kibana_utils.devdocs.json @@ -3349,7 +3349,7 @@ "\nCreates an error handler that will redirect to a url when a SavedObjectNotFound\nerror is thrown" ], "signature": [ - "({\n history,\n navigateToApp,\n basePath,\n mapping,\n toastNotifications,\n onBeforeRedirect,\n}: { history: ", + "({\n history,\n navigateToApp,\n basePath,\n mapping,\n toastNotifications,\n onBeforeRedirect,\n theme,\n}: { history: ", "History", "; navigateToApp: (appId: string, options?: ", { @@ -3383,7 +3383,15 @@ "section": "def-common.SavedObjectNotFound", "text": "SavedObjectNotFound" }, - ") => void) | undefined; }) => (error: ", + ") => void) | undefined; theme: ", + { + "pluginId": "core", + "scope": "public", + "docId": "kibCorePluginApi", + "section": "def-public.ThemeServiceStart", + "text": "ThemeServiceStart" + }, + "; }) => (error: ", { "pluginId": "kibanaUtils", "scope": "common", @@ -3401,7 +3409,7 @@ "id": "def-public.redirectWhenMissing.$1", "type": "Object", "tags": [], - "label": "{\n history,\n navigateToApp,\n basePath,\n mapping,\n toastNotifications,\n onBeforeRedirect,\n}", + "label": "{\n history,\n navigateToApp,\n basePath,\n mapping,\n toastNotifications,\n onBeforeRedirect,\n theme,\n}", "description": [], "path": "src/plugins/kibana_utils/public/history/redirect_when_missing.tsx", "deprecated": false, @@ -3714,6 +3722,25 @@ } ], "returnComment": [] + }, + { + "parentPluginId": "kibanaUtils", + "id": "def-public.redirectWhenMissing.$1.theme", + "type": "Object", + "tags": [], + "label": "theme", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "public", + "docId": "kibCorePluginApi", + "section": "def-public.ThemeServiceStart", + "text": "ThemeServiceStart" + } + ], + "path": "src/plugins/kibana_utils/public/history/redirect_when_missing.tsx", + "deprecated": false } ] } @@ -10086,22 +10113,28 @@ { "parentPluginId": "kibanaUtils", "id": "def-common.PersistableState.migrations", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "migrations", "description": [ "\nA list of migration functions, which migrate the persistable state\nserializable object to the next version. Migration functions should are\nkeyed by the Kibana version using semver, where the version indicates to\nwhich version the state will be migrated to." ], "signature": [ - "{ [semver: string]: ", { "pluginId": "kibanaUtils", "scope": "common", "docId": "kibKibanaUtilsPluginApi", - "section": "def-common.MigrateFunction", - "text": "MigrateFunction" + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" }, - "; }" + " | ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.GetMigrationFunctionObjectFn", + "text": "GetMigrationFunctionObjectFn" + } ], "path": "src/plugins/kibana_utils/common/persistable_state/types.ts", "deprecated": false @@ -11063,6 +11096,29 @@ "children": [], "initialIsOpen": false }, + { + "parentPluginId": "kibanaUtils", + "id": "def-common.GetMigrationFunctionObjectFn", + "type": "Type", + "tags": [], + "label": "GetMigrationFunctionObjectFn", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + } + ], + "path": "src/plugins/kibana_utils/common/persistable_state/types.ts", + "deprecated": false, + "returnComment": [], + "children": [], + "initialIsOpen": false + }, { "parentPluginId": "kibanaUtils", "id": "def-common.MapStateToProps", @@ -11223,6 +11279,14 @@ "section": "def-common.MigrateFunctionsObject", "text": "MigrateFunctionsObject" }, + " | ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.GetMigrationFunctionObjectFn", + "text": "GetMigrationFunctionObjectFn" + }, " | undefined; }" ], "path": "src/plugins/kibana_utils/common/persistable_state/types.ts", diff --git a/api_docs/kibana_utils.mdx b/api_docs/kibana_utils.mdx index 7016cda971099c..4662b67b91eb19 100644 --- a/api_docs/kibana_utils.mdx +++ b/api_docs/kibana_utils.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaUtils'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import kibanaUtilsObj from './kibana_utils.json'; +import kibanaUtilsObj from './kibana_utils.devdocs.json'; @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 613 | 3 | 418 | 9 | +| 615 | 3 | 420 | 9 | ## Client diff --git a/api_docs/lens.json b/api_docs/lens.devdocs.json similarity index 93% rename from api_docs/lens.json rename to api_docs/lens.devdocs.json index 1e8cd05d235ea3..a5401a4ff7d80f 100644 --- a/api_docs/lens.json +++ b/api_docs/lens.devdocs.json @@ -375,6 +375,156 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "lens", + "id": "def-public.FormulaPublicApi", + "type": "Interface", + "tags": [], + "label": "FormulaPublicApi", + "description": [], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/formula_public_api.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.FormulaPublicApi.insertOrReplaceFormulaColumn", + "type": "Function", + "tags": [], + "label": "insertOrReplaceFormulaColumn", + "description": [ + "\nMethod which Lens consumer can import and given a formula string,\nreturn a parsed result as list of columns to use as Embeddable attributes.\n" + ], + "signature": [ + "(id: string, column: { formula: string; label?: string | undefined; }, layer: ", + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.PersistedIndexPatternLayer", + "text": "PersistedIndexPatternLayer" + }, + ", dataView: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + ") => ", + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.PersistedIndexPatternLayer", + "text": "PersistedIndexPatternLayer" + }, + " | undefined" + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/formula_public_api.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.FormulaPublicApi.insertOrReplaceFormulaColumn.$1", + "type": "string", + "tags": [], + "label": "id", + "description": [ + "- Formula column id" + ], + "signature": [ + "string" + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/formula_public_api.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.FormulaPublicApi.insertOrReplaceFormulaColumn.$2", + "type": "Object", + "tags": [], + "label": "column", + "description": [], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/formula_public_api.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.FormulaPublicApi.insertOrReplaceFormulaColumn.$2.formula", + "type": "string", + "tags": [], + "label": "formula", + "description": [], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/formula_public_api.ts", + "deprecated": false + }, + { + "parentPluginId": "lens", + "id": "def-public.FormulaPublicApi.insertOrReplaceFormulaColumn.$2.label", + "type": "string", + "tags": [], + "label": "label", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/formula_public_api.ts", + "deprecated": false + } + ] + }, + { + "parentPluginId": "lens", + "id": "def-public.FormulaPublicApi.insertOrReplaceFormulaColumn.$3", + "type": "Object", + "tags": [], + "label": "layer", + "description": [ + "- The layer to which the formula columns will be added" + ], + "signature": [ + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.PersistedIndexPatternLayer", + "text": "PersistedIndexPatternLayer" + } + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/formula_public_api.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.FormulaPublicApi.insertOrReplaceFormulaColumn.$4", + "type": "Object", + "tags": [], + "label": "dataView", + "description": [ + "- The dataView instance\n\nSee `x-pack/examples/embedded_lens_example` for exemplary usage." + ], + "signature": [ + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + } + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/formula_public_api.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, { "parentPluginId": "lens", "id": "def-public.IncompleteColumn", @@ -844,6 +994,31 @@ "deprecated": false, "children": [], "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.LensPublicStart.stateHelperApi", + "type": "Function", + "tags": [], + "label": "stateHelperApi", + "description": [ + "\nAPI which returns state helpers keeping this async as to not impact page load bundle" + ], + "signature": [ + "() => Promise<{ formula: ", + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.FormulaPublicApi", + "text": "FormulaPublicApi" + }, + "; }>" + ], + "path": "x-pack/plugins/lens/public/plugin.ts", + "deprecated": false, + "children": [], + "returnComment": [] } ], "initialIsOpen": false @@ -1455,7 +1630,7 @@ "label": "params", "description": [], "signature": [ - "{ size: number; orderBy: { type: \"alphabetical\"; fallback?: boolean | undefined; } | { type: \"column\"; columnId: string; }; orderDirection: \"asc\" | \"desc\"; otherBucket?: boolean | undefined; missingBucket?: boolean | undefined; secondaryFields?: string[] | undefined; format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; parentFormat?: { id: string; params?: { id?: string | undefined; template?: string | undefined; } | undefined; } | undefined; }" + "{ size: number; orderBy: { type: \"alphabetical\"; fallback?: boolean | undefined; } | { type: \"rare\"; maxDocCount: number; } | { type: \"column\"; columnId: string; }; orderDirection: \"asc\" | \"desc\"; otherBucket?: boolean | undefined; missingBucket?: boolean | undefined; secondaryFields?: string[] | undefined; format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; parentFormat?: { id: string; params?: { id?: string | undefined; template?: string | undefined; } | undefined; } | undefined; }" ], "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/types.ts", "deprecated": false @@ -2002,8 +2177,8 @@ "label": "AvgIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", { "pluginId": "lens", "scope": "public", @@ -2025,8 +2200,8 @@ "label": "CounterRateIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", "ReferenceBasedIndexPatternColumn", " & { operationType: \"counter_rate\"; }" ], @@ -2042,8 +2217,8 @@ "label": "CountIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", { "pluginId": "lens", "scope": "public", @@ -2065,8 +2240,8 @@ "label": "CumulativeSumIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", "ReferenceBasedIndexPatternColumn", " & { operationType: \"cumulative_sum\"; }" ], @@ -2097,8 +2272,8 @@ "label": "DerivativeIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", "ReferenceBasedIndexPatternColumn", " & { operationType: \"differences\"; }" ], @@ -2178,8 +2353,8 @@ "label": "MaxIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", { "pluginId": "lens", "scope": "public", @@ -2201,8 +2376,8 @@ "label": "MedianIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", { "pluginId": "lens", "scope": "public", @@ -2224,8 +2399,8 @@ "label": "MinIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", { "pluginId": "lens", "scope": "public", @@ -2247,8 +2422,8 @@ "label": "MovingAverageIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", "ReferenceBasedIndexPatternColumn", " & { operationType: \"moving_average\"; params: { window: number; }; }" ], @@ -2280,8 +2455,8 @@ "label": "OverallSumIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", "ReferenceBasedIndexPatternColumn", " & { operationType: \"overall_sum\"; }" ], @@ -2364,8 +2539,8 @@ "label": "SumIndexPatternColumn", "description": [], "signature": [ - "BaseIndexPatternColumn", - " & { params?: { format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; } | undefined; } & ", + "FormattedIndexPatternColumn", + " & ", { "pluginId": "lens", "scope": "public", @@ -2802,7 +2977,13 @@ "{ datasourceMetaData: { filterableIndexPatterns: { id: string; title: string; }[]; }; datasourceStates: { indexpattern: { currentIndexPatternId: string; layers: Record>; }>; }; }; visualization: VisualizationState; query: ", "Query", "; filters: ", - "Filter", + { + "pluginId": "lens", + "scope": "common", + "docId": "kibLensPluginApi", + "section": "def-common.PersistableFilter", + "text": "PersistableFilter" + }, "[]; }" ], "path": "x-pack/plugins/lens/server/migrations/types.ts", @@ -3066,6 +3247,25 @@ ], "path": "x-pack/plugins/lens/server/plugin.tsx", "deprecated": false + }, + { + "parentPluginId": "lens", + "id": "def-server.PluginSetupContract.data", + "type": "Object", + "tags": [], + "label": "data", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "server", + "docId": "kibDataPluginApi", + "section": "def-server.DataPluginSetup", + "text": "DataPluginSetup" + } + ], + "path": "x-pack/plugins/lens/server/plugin.tsx", + "deprecated": false } ], "initialIsOpen": false @@ -3260,6 +3460,30 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "lens", + "id": "def-server.LensDocShape810", + "type": "Type", + "tags": [], + "label": "LensDocShape810", + "description": [], + "signature": [ + "Omit<", + { + "pluginId": "lens", + "scope": "server", + "docId": "kibLensPluginApi", + "section": "def-server.LensDocShape715", + "text": "LensDocShape715" + }, + ", \"filters\"> & { filters: ", + "Filter", + "[]; }" + ], + "path": "x-pack/plugins/lens/server/migrations/types.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "lens", "id": "def-server.OperationTypePost712", @@ -3282,7 +3506,7 @@ "label": "OperationTypePre712", "description": [], "signature": [ - "\"filters\" | \"max\" | \"min\" | \"count\" | \"sum\" | \"avg\" | \"median\" | \"date_histogram\" | \"percentile\" | \"range\" | \"terms\" | \"cumulative_sum\" | \"derivative\" | \"moving_average\" | \"cardinality\" | \"last_value\" | \"counter_rate\"" + "\"filters\" | \"max\" | \"min\" | \"count\" | \"sum\" | \"avg\" | \"median\" | \"date_histogram\" | \"percentile\" | \"range\" | \"terms\" | \"cumulative_sum\" | \"derivative\" | \"moving_average\" | \"last_value\" | \"counter_rate\" | \"cardinality\"" ], "path": "x-pack/plugins/lens/server/migrations/types.ts", "deprecated": false, @@ -3648,7 +3872,14 @@ "label": "continuity", "description": [], "signature": [ - "\"above\" | \"below\" | \"all\" | \"none\" | undefined" + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteContinuity", + "text": "PaletteContinuity" + }, + " | undefined" ], "path": "x-pack/plugins/lens/common/types.ts", "deprecated": false diff --git a/api_docs/lens.mdx b/api_docs/lens.mdx index fc2a2fbf269bb9..55e8d554994439 100644 --- a/api_docs/lens.mdx +++ b/api_docs/lens.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lens'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import lensObj from './lens.json'; +import lensObj from './lens.devdocs.json'; Visualization editor allowing to quickly and easily configure compelling visualizations to use on dashboards and canvas workpads. Exposes components to embed visualizations and link into the Lens editor from within other apps in Kibana. @@ -18,7 +18,7 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 263 | 0 | 246 | 31 | +| 274 | 0 | 252 | 31 | ## Client diff --git a/api_docs/license_api_guard.json b/api_docs/license_api_guard.devdocs.json similarity index 100% rename from api_docs/license_api_guard.json rename to api_docs/license_api_guard.devdocs.json diff --git a/api_docs/license_api_guard.mdx b/api_docs/license_api_guard.mdx index 5d0538df1e6b3e..699fff49bff0f3 100644 --- a/api_docs/license_api_guard.mdx +++ b/api_docs/license_api_guard.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseApiGuard'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import licenseApiGuardObj from './license_api_guard.json'; +import licenseApiGuardObj from './license_api_guard.devdocs.json'; diff --git a/api_docs/license_management.json b/api_docs/license_management.devdocs.json similarity index 100% rename from api_docs/license_management.json rename to api_docs/license_management.devdocs.json diff --git a/api_docs/license_management.mdx b/api_docs/license_management.mdx index f882f53193f144..f2ad08dfd5cc6d 100644 --- a/api_docs/license_management.mdx +++ b/api_docs/license_management.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseManagement'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import licenseManagementObj from './license_management.json'; +import licenseManagementObj from './license_management.devdocs.json'; diff --git a/api_docs/licensing.json b/api_docs/licensing.devdocs.json similarity index 98% rename from api_docs/licensing.json rename to api_docs/licensing.devdocs.json index a433dbc7c9141d..0f8d44f2f39f7b 100644 --- a/api_docs/licensing.json +++ b/api_docs/licensing.devdocs.json @@ -742,22 +742,6 @@ "plugin": "apm", "path": "x-pack/plugins/apm/public/context/license/license_context.tsx" }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/public/share_context_menu/index.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/public/management/index.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/public/plugin.ts" - }, { "plugin": "crossClusterReplication", "path": "x-pack/plugins/cross_cluster_replication/public/plugin.ts" @@ -789,10 +773,6 @@ { "plugin": "watcher", "path": "x-pack/plugins/watcher/public/plugin.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.test.ts" } ] }, @@ -2555,14 +2535,6 @@ "plugin": "fleet", "path": "x-pack/plugins/fleet/server/plugin.ts" }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/core.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/usage/reporting_usage_collector.ts" - }, { "plugin": "remoteClusters", "path": "x-pack/plugins/remote_clusters/server/plugin.ts" @@ -2576,8 +2548,8 @@ "path": "x-pack/plugins/index_lifecycle_management/server/services/license.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/server/plugin.ts" + "plugin": "mapsEms", + "path": "src/plugins/maps_ems/server/index.ts" }, { "plugin": "painlessLab", @@ -2651,7 +2623,12 @@ ], "path": "x-pack/plugins/licensing/server/types.ts", "deprecated": true, - "references": [], + "references": [ + { + "plugin": "mapsEms", + "path": "src/plugins/maps_ems/server/index.ts" + } + ], "children": [], "returnComment": [] }, diff --git a/api_docs/licensing.mdx b/api_docs/licensing.mdx index 69e6a1c5007b91..1198fe6807582d 100644 --- a/api_docs/licensing.mdx +++ b/api_docs/licensing.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licensing'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import licensingObj from './licensing.json'; +import licensingObj from './licensing.devdocs.json'; diff --git a/api_docs/lists.json b/api_docs/lists.devdocs.json similarity index 97% rename from api_docs/lists.json rename to api_docs/lists.devdocs.json index 995ce647f847d1..132246088013b4 100644 --- a/api_docs/lists.json +++ b/api_docs/lists.devdocs.json @@ -365,6 +365,88 @@ }, "server": { "classes": [ + { + "parentPluginId": "lists", + "id": "def-server.ErrorWithStatusCode", + "type": "Class", + "tags": [], + "label": "ErrorWithStatusCode", + "description": [], + "signature": [ + { + "pluginId": "lists", + "scope": "server", + "docId": "kibListsPluginApi", + "section": "def-server.ErrorWithStatusCode", + "text": "ErrorWithStatusCode" + }, + " extends Error" + ], + "path": "x-pack/plugins/lists/server/error_with_status_code.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lists", + "id": "def-server.ErrorWithStatusCode.Unnamed", + "type": "Function", + "tags": [], + "label": "Constructor", + "description": [], + "signature": [ + "any" + ], + "path": "x-pack/plugins/lists/server/error_with_status_code.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lists", + "id": "def-server.ErrorWithStatusCode.Unnamed.$1", + "type": "string", + "tags": [], + "label": "message", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/lists/server/error_with_status_code.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lists", + "id": "def-server.ErrorWithStatusCode.Unnamed.$2", + "type": "number", + "tags": [], + "label": "statusCode", + "description": [], + "signature": [ + "number" + ], + "path": "x-pack/plugins/lists/server/error_with_status_code.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lists", + "id": "def-server.ErrorWithStatusCode.getStatusCode", + "type": "Function", + "tags": [], + "label": "getStatusCode", + "description": [], + "signature": [ + "() => number" + ], + "path": "x-pack/plugins/lists/server/error_with_status_code.ts", + "deprecated": false, + "children": [], + "returnComment": [] + } + ], + "initialIsOpen": false + }, { "parentPluginId": "lists", "id": "def-server.ExceptionListClient", @@ -393,7 +475,7 @@ "id": "def-server.ExceptionListClient.Unnamed.$1", "type": "Object", "tags": [], - "label": "{\n user,\n savedObjectsClient,\n serverExtensionsClient,\n enableServerExtensionPoints = true,\n }", + "label": "{\n user,\n savedObjectsClient,\n serverExtensionsClient,\n enableServerExtensionPoints = true,\n request,\n }", "description": [], "signature": [ "ConstructorOptions" @@ -2680,29 +2762,29 @@ "misc": [ { "parentPluginId": "lists", - "id": "def-server.ExceptionListPreUpdateItemServerExtension", + "id": "def-server.ExceptionsListPreCreateItemServerExtension", "type": "Type", "tags": [], - "label": "ExceptionListPreUpdateItemServerExtension", + "label": "ExceptionsListPreCreateItemServerExtension", "description": [ - "\nExtension point is triggered prior to updating the Exception List Item. Throw'ing will cause the\nupdate operation to fail" + "\nExtension point is triggered prior to creating a new Exception List Item. Throw'ing will cause\nthe create operation to fail" ], "signature": [ - "ServerExtensionPointDefinition<\"exceptionsListPreUpdateItem\", ", + "ServerExtensionPointDefinition<\"exceptionsListPreCreateItem\", ", { "pluginId": "lists", "scope": "server", "docId": "kibListsPluginApi", - "section": "def-server.UpdateExceptionListItemOptions", - "text": "UpdateExceptionListItemOptions" + "section": "def-server.CreateExceptionListItemOptions", + "text": "CreateExceptionListItemOptions" }, ", ", { "pluginId": "lists", "scope": "server", "docId": "kibListsPluginApi", - "section": "def-server.UpdateExceptionListItemOptions", - "text": "UpdateExceptionListItemOptions" + "section": "def-server.CreateExceptionListItemOptions", + "text": "CreateExceptionListItemOptions" }, ">" ], @@ -2712,29 +2794,29 @@ }, { "parentPluginId": "lists", - "id": "def-server.ExceptionsListPreCreateItemServerExtension", + "id": "def-server.ExceptionsListPreUpdateItemServerExtension", "type": "Type", "tags": [], - "label": "ExceptionsListPreCreateItemServerExtension", + "label": "ExceptionsListPreUpdateItemServerExtension", "description": [ - "\nExtension point is triggered prior to creating a new Exception List Item. Throw'ing will cause\nthe create operation to fail" + "\nExtension point is triggered prior to updating the Exception List Item. Throw'ing will cause the\nupdate operation to fail" ], "signature": [ - "ServerExtensionPointDefinition<\"exceptionsListPreCreateItem\", ", + "ServerExtensionPointDefinition<\"exceptionsListPreUpdateItem\", ", { "pluginId": "lists", "scope": "server", "docId": "kibListsPluginApi", - "section": "def-server.CreateExceptionListItemOptions", - "text": "CreateExceptionListItemOptions" + "section": "def-server.UpdateExceptionListItemOptions", + "text": "UpdateExceptionListItemOptions" }, ", ", { "pluginId": "lists", "scope": "server", "docId": "kibListsPluginApi", - "section": "def-server.CreateExceptionListItemOptions", - "text": "CreateExceptionListItemOptions" + "section": "def-server.UpdateExceptionListItemOptions", + "text": "UpdateExceptionListItemOptions" }, ">" ], @@ -2762,9 +2844,21 @@ "pluginId": "lists", "scope": "server", "docId": "kibListsPluginApi", - "section": "def-server.ExceptionListPreUpdateItemServerExtension", - "text": "ExceptionListPreUpdateItemServerExtension" - } + "section": "def-server.ExceptionsListPreUpdateItemServerExtension", + "text": "ExceptionsListPreUpdateItemServerExtension" + }, + " | ", + "ExceptionsListPreGetOneItemServerExtension", + " | ", + "ExceptionsListPreSingleListFindServerExtension", + " | ", + "ExceptionsListPreMultiListFindServerExtension", + " | ", + "ExceptionsListPreExportServerExtension", + " | ", + "ExceptionsListPreSummaryServerExtension", + " | ", + "ExceptionsListPreDeleteItemServerExtension" ], "path": "x-pack/plugins/lists/server/services/extension_points/types.ts", "deprecated": false, @@ -2814,9 +2908,21 @@ "pluginId": "lists", "scope": "server", "docId": "kibListsPluginApi", - "section": "def-server.ExceptionListPreUpdateItemServerExtension", - "text": "ExceptionListPreUpdateItemServerExtension" - } + "section": "def-server.ExceptionsListPreUpdateItemServerExtension", + "text": "ExceptionsListPreUpdateItemServerExtension" + }, + " | ", + "ExceptionsListPreGetOneItemServerExtension", + " | ", + "ExceptionsListPreSingleListFindServerExtension", + " | ", + "ExceptionsListPreMultiListFindServerExtension", + " | ", + "ExceptionsListPreExportServerExtension", + " | ", + "ExceptionsListPreSummaryServerExtension", + " | ", + "ExceptionsListPreDeleteItemServerExtension" ], "path": "x-pack/plugins/lists/server/services/extension_points/types.ts", "deprecated": false @@ -3341,9 +3447,21 @@ "pluginId": "lists", "scope": "server", "docId": "kibListsPluginApi", - "section": "def-server.ExceptionListPreUpdateItemServerExtension", - "text": "ExceptionListPreUpdateItemServerExtension" - } + "section": "def-server.ExceptionsListPreUpdateItemServerExtension", + "text": "ExceptionsListPreUpdateItemServerExtension" + }, + " | ", + "ExceptionsListPreGetOneItemServerExtension", + " | ", + "ExceptionsListPreSingleListFindServerExtension", + " | ", + "ExceptionsListPreMultiListFindServerExtension", + " | ", + "ExceptionsListPreExportServerExtension", + " | ", + "ExceptionsListPreSummaryServerExtension", + " | ", + "ExceptionsListPreDeleteItemServerExtension" ], "path": "x-pack/plugins/lists/server/services/extension_points/types.ts", "deprecated": false diff --git a/api_docs/lists.mdx b/api_docs/lists.mdx index 1901fd9dc9b0ad..4285a72430c91f 100644 --- a/api_docs/lists.mdx +++ b/api_docs/lists.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lists'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import listsObj from './lists.json'; +import listsObj from './lists.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Security detections response](https://github.com/orgs/elastic/teams/sec | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 173 | 0 | 150 | 42 | +| 178 | 0 | 155 | 48 | ## Client diff --git a/api_docs/management.json b/api_docs/management.devdocs.json similarity index 100% rename from api_docs/management.json rename to api_docs/management.devdocs.json diff --git a/api_docs/management.mdx b/api_docs/management.mdx index 6027197c788100..10313181e7a87a 100644 --- a/api_docs/management.mdx +++ b/api_docs/management.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'management'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import managementObj from './management.json'; +import managementObj from './management.devdocs.json'; diff --git a/api_docs/maps.json b/api_docs/maps.devdocs.json similarity index 95% rename from api_docs/maps.json rename to api_docs/maps.devdocs.json index 6f494854f4c5b5..52c4b8e9aa962d 100644 --- a/api_docs/maps.json +++ b/api_docs/maps.devdocs.json @@ -389,6 +389,44 @@ "children": [], "returnComment": [] }, + { + "parentPluginId": "maps", + "id": "def-public.MapEmbeddable.getExplicitInputIsEqual", + "type": "Function", + "tags": [], + "label": "getExplicitInputIsEqual", + "description": [], + "signature": [ + "(lastExplicitInput: Partial<", + "MapByValueInput", + " | ", + "MapByReferenceInput", + ">) => Promise" + ], + "path": "x-pack/plugins/maps/public/embeddable/map_embeddable.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "maps", + "id": "def-public.MapEmbeddable.getExplicitInputIsEqual.$1", + "type": "CompoundType", + "tags": [], + "label": "lastExplicitInput", + "description": [], + "signature": [ + "Partial<", + "MapByValueInput", + " | ", + "MapByReferenceInput", + ">" + ], + "path": "x-pack/plugins/maps/public/embeddable/map_embeddable.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, { "parentPluginId": "maps", "id": "def-public.MapEmbeddable.getInputAsValueType", @@ -1827,7 +1865,13 @@ "description": [], "signature": [ "(layerName: string, searchFilters: ", - "VectorSourceRequestMeta", + { + "pluginId": "maps", + "scope": "common", + "docId": "kibMapsPluginApi", + "section": "def-common.VectorSourceRequestMeta", + "text": "VectorSourceRequestMeta" + }, ", registerCancelCallback: (callback: () => void) => void, isRequestStillActive: () => boolean) => Promise<", { "pluginId": "maps", @@ -1863,7 +1907,13 @@ "label": "searchFilters", "description": [], "signature": [ - "VectorSourceRequestMeta" + { + "pluginId": "maps", + "scope": "common", + "docId": "kibMapsPluginApi", + "section": "def-common.VectorSourceRequestMeta", + "text": "VectorSourceRequestMeta" + } ], "path": "x-pack/plugins/maps/public/classes/sources/vector_source/vector_source.tsx", "deprecated": false, @@ -2113,7 +2163,13 @@ "description": [], "signature": [ "() => Promise<", - "VECTOR_SHAPE_TYPE", + { + "pluginId": "maps", + "scope": "common", + "docId": "kibMapsPluginApi", + "section": "def-common.VECTOR_SHAPE_TYPE", + "text": "VECTOR_SHAPE_TYPE" + }, "[]>" ], "path": "x-pack/plugins/maps/public/classes/sources/vector_source/vector_source.tsx", @@ -2510,7 +2566,7 @@ "label": "loadFeatureProperties", "description": [], "signature": [ - "({ layerId, featureId, mbProperties, }: { layerId: string; featureId?: string | number | undefined; mbProperties: GeoJSON.GeoJsonProperties; }) => Promise<", + "({ layerId, properties, }: { layerId: string; properties: GeoJSON.GeoJsonProperties; }) => Promise<", { "pluginId": "maps", "scope": "public", @@ -2528,7 +2584,7 @@ "id": "def-public.RenderTooltipContentParams.loadFeatureProperties.$1", "type": "Object", "tags": [], - "label": "{\n layerId,\n featureId,\n mbProperties,\n }", + "label": "{\n layerId,\n properties,\n }", "description": [], "path": "x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts", "deprecated": false, @@ -2545,23 +2601,10 @@ }, { "parentPluginId": "maps", - "id": "def-public.RenderTooltipContentParams.loadFeatureProperties.$1.featureId", + "id": "def-public.RenderTooltipContentParams.loadFeatureProperties.$1.properties", "type": "CompoundType", "tags": [], - "label": "featureId", - "description": [], - "signature": [ - "string | number | undefined" - ], - "path": "x-pack/plugins/maps/public/classes/tooltips/tooltip_property.ts", - "deprecated": false - }, - { - "parentPluginId": "maps", - "id": "def-public.RenderTooltipContentParams.loadFeatureProperties.$1.mbProperties", - "type": "CompoundType", - "tags": [], - "label": "mbProperties", + "label": "properties", "description": [], "signature": [ "{ [name: string]: any; } | null" @@ -2815,9 +2858,15 @@ "label": "LayerWizard", "description": [], "signature": [ - "{ categories: ", - "LAYER_WIZARD_CATEGORY", - "[]; checkVisibility?: (() => Promise) | undefined; description: string; disabledReason?: string | undefined; getIsDisabled?: (() => boolean | Promise) | undefined; isBeta?: boolean | undefined; icon: string | React.FunctionComponent; prerequisiteSteps?: { id: string; label: string; }[] | undefined; renderWizard(renderWizardArguments: ", + "{ title: string; categories: ", + { + "pluginId": "maps", + "scope": "common", + "docId": "kibMapsPluginApi", + "section": "def-common.LAYER_WIZARD_CATEGORY", + "text": "LAYER_WIZARD_CATEGORY" + }, + "[]; order: number; description: string; icon: string | React.FunctionComponent; renderWizard(renderWizardArguments: ", { "pluginId": "maps", "scope": "public", @@ -2825,7 +2874,7 @@ "section": "def-public.RenderWizardArguments", "text": "RenderWizardArguments" }, - "): React.ReactElement>; title: string; showFeatureEditTools?: boolean | undefined; }" + "): React.ReactElement>; prerequisiteSteps?: { id: string; label: string; }[] | undefined; disabledReason?: string | undefined; getIsDisabled?: (() => boolean | Promise) | undefined; isBeta?: boolean | undefined; checkVisibility?: (() => Promise) | undefined; showFeatureEditTools?: boolean | undefined; }" ], "path": "x-pack/plugins/maps/public/classes/layers/wizards/layer_wizard_registry.ts", "deprecated": false, @@ -3216,6 +3265,17 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "maps", + "id": "def-common.LAYER_WIZARD_CATEGORY", + "type": "Enum", + "tags": [], + "label": "LAYER_WIZARD_CATEGORY", + "description": [], + "path": "x-pack/plugins/maps/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "maps", "id": "def-common.SCALING_TYPES", @@ -3259,6 +3319,17 @@ "path": "x-pack/plugins/maps/common/constants.ts", "deprecated": false, "initialIsOpen": false + }, + { + "parentPluginId": "maps", + "id": "def-common.VECTOR_SHAPE_TYPE", + "type": "Enum", + "tags": [], + "label": "VECTOR_SHAPE_TYPE", + "description": [], + "path": "x-pack/plugins/maps/common/constants.ts", + "deprecated": false, + "initialIsOpen": false } ], "misc": [ @@ -3304,6 +3375,38 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "maps", + "id": "def-common.FieldFormatter", + "type": "Type", + "tags": [], + "label": "FieldFormatter", + "description": [], + "signature": [ + "(value: ", + "RawValue", + ") => string | number" + ], + "path": "x-pack/plugins/maps/common/constants.ts", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "maps", + "id": "def-common.FieldFormatter.$1", + "type": "CompoundType", + "tags": [], + "label": "value", + "description": [], + "signature": [ + "string | number | boolean | string[] | null | undefined" + ], + "path": "x-pack/plugins/maps/common/constants.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "maps", "id": "def-common.LayerDescriptor", @@ -3352,6 +3455,34 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "maps", + "id": "def-common.MAX_ZOOM", + "type": "number", + "tags": [], + "label": "MAX_ZOOM", + "description": [], + "signature": [ + "24" + ], + "path": "x-pack/plugins/maps/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "maps", + "id": "def-common.MIN_ZOOM", + "type": "number", + "tags": [], + "label": "MIN_ZOOM", + "description": [], + "signature": [ + "0" + ], + "path": "x-pack/plugins/maps/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "maps", "id": "def-common.TooltipFeature", @@ -3423,6 +3554,23 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "maps", + "id": "def-common.VectorSourceRequestMeta", + "type": "Type", + "tags": [], + "label": "VectorSourceRequestMeta", + "description": [], + "signature": [ + "DataFilters", + " & { applyGlobalQuery: boolean; applyGlobalTime: boolean; applyForceRefresh: boolean; fieldNames: string[]; geogridPrecision?: number | undefined; timesliceMaskField?: string | undefined; sourceQuery?: ", + "Query", + " | undefined; sourceMeta: object | null; isForceRefresh: boolean; }" + ], + "path": "x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "maps", "id": "def-common.VectorStyleDescriptor", diff --git a/api_docs/maps.mdx b/api_docs/maps.mdx index c33515f07323f5..b6e7fd89d7fa2a 100644 --- a/api_docs/maps.mdx +++ b/api_docs/maps.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'maps'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import mapsObj from './maps.json'; +import mapsObj from './maps.devdocs.json'; @@ -18,7 +18,7 @@ Contact [GIS](https://github.com/orgs/elastic/teams/kibana-gis) for questions re | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 207 | 0 | 206 | 30 | +| 215 | 0 | 214 | 27 | ## Client diff --git a/api_docs/maps_ems.json b/api_docs/maps_ems.devdocs.json similarity index 60% rename from api_docs/maps_ems.json rename to api_docs/maps_ems.devdocs.json index bb0459e3b82cb3..ce36232ca4ed21 100644 --- a/api_docs/maps_ems.json +++ b/api_docs/maps_ems.devdocs.json @@ -6,236 +6,246 @@ "interfaces": [ { "parentPluginId": "mapsEms", - "id": "def-public.FileLayer", + "id": "def-public.EMSConfig", "type": "Interface", "tags": [], - "label": "FileLayer", + "label": "EMSConfig", "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "children": [ { "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.name", - "type": "string", - "tags": [], - "label": "name", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.origin", - "type": "string", + "id": "def-public.EMSConfig.includeElasticMapsService", + "type": "boolean", "tags": [], - "label": "origin", + "label": "includeElasticMapsService", "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false }, { "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.id", + "id": "def-public.EMSConfig.emsUrl", "type": "string", "tags": [], - "label": "id", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.format", - "type": "CompoundType", - "tags": [], - "label": "format", - "description": [], - "signature": [ - "string | { type: string; }" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.fields", - "type": "Array", - "tags": [], - "label": "fields", + "label": "emsUrl", "description": [], - "signature": [ - { - "pluginId": "mapsEms", - "scope": "public", - "docId": "kibMapsEmsPluginApi", - "section": "def-public.FileLayerField", - "text": "FileLayerField" - }, - "[]" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false }, { "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.url", + "id": "def-public.EMSConfig.emsFileApiUrl", "type": "string", "tags": [], - "label": "url", + "label": "emsFileApiUrl", "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false }, { "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.layerId", + "id": "def-public.EMSConfig.emsTileApiUrl", "type": "string", "tags": [], - "label": "layerId", + "label": "emsTileApiUrl", "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false }, { "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.created_at", + "id": "def-public.EMSConfig.emsLandingPageUrl", "type": "string", "tags": [], - "label": "created_at", + "label": "emsLandingPageUrl", "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false }, { "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.attribution", + "id": "def-public.EMSConfig.emsFontLibraryUrl", "type": "string", "tags": [], - "label": "attribution", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.FileLayer.meta", - "type": "Object", - "tags": [], - "label": "meta", + "label": "emsFontLibraryUrl", "description": [], - "signature": [ - "{ [key: string]: string; } | undefined" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false } ], "initialIsOpen": false - }, + } + ], + "enums": [], + "misc": [ { "parentPluginId": "mapsEms", - "id": "def-public.FileLayerField", - "type": "Interface", + "id": "def-public.MapConfig", + "type": "Type", "tags": [], - "label": "FileLayerField", + "label": "MapConfig", "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "mapsEms", - "id": "def-public.FileLayerField.name", - "type": "string", - "tags": [], - "label": "name", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.FileLayerField.description", - "type": "string", - "tags": [], - "label": "description", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.FileLayerField.type", - "type": "string", - "tags": [], - "label": "type", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - } + "signature": [ + "{ readonly tilemap: Readonly<{ url?: string | undefined; } & { options: Readonly<{ default?: boolean | undefined; tileSize?: number | undefined; subdomains?: string[] | undefined; errorTileUrl?: string | undefined; tms?: boolean | undefined; reuseTiles?: boolean | undefined; bounds?: number[] | undefined; } & { attribution: string; minZoom: number; maxZoom: number; }>; }>; readonly includeElasticMapsService: boolean; readonly emsUrl: string; readonly emsFileApiUrl: string; readonly emsTileApiUrl: string; readonly emsLandingPageUrl: string; readonly emsFontLibraryUrl: string; readonly emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }" ], + "path": "src/plugins/maps_ems/config.ts", + "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings", - "type": "Interface", + "id": "def-public.TileMapConfig", + "type": "Type", + "tags": [], + "label": "TileMapConfig", + "description": [], + "signature": [ + "{ readonly url?: string | undefined; readonly options: Readonly<{ default?: boolean | undefined; tileSize?: number | undefined; subdomains?: string[] | undefined; errorTileUrl?: string | undefined; tms?: boolean | undefined; reuseTiles?: boolean | undefined; bounds?: number[] | undefined; } & { attribution: string; minZoom: number; maxZoom: number; }>; }" + ], + "path": "src/plugins/maps_ems/config.ts", + "deprecated": false, + "initialIsOpen": false + } + ], + "objects": [], + "setup": { + "parentPluginId": "mapsEms", + "id": "def-public.MapsEmsPluginPublicSetup", + "type": "Interface", + "tags": [], + "label": "MapsEmsPluginPublicSetup", + "description": [], + "path": "src/plugins/maps_ems/public/index.ts", + "deprecated": false, + "children": [], + "lifecycle": "setup", + "initialIsOpen": true + }, + "start": { + "parentPluginId": "mapsEms", + "id": "def-public.MapsEmsPluginPublicStart", + "type": "Interface", + "tags": [], + "label": "MapsEmsPluginPublicStart", + "description": [], + "path": "src/plugins/maps_ems/public/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "mapsEms", + "id": "def-public.MapsEmsPluginPublicStart.config", + "type": "Object", + "tags": [], + "label": "config", + "description": [], + "signature": [ + "{ readonly tilemap: Readonly<{ url?: string | undefined; } & { options: Readonly<{ default?: boolean | undefined; tileSize?: number | undefined; subdomains?: string[] | undefined; errorTileUrl?: string | undefined; tms?: boolean | undefined; reuseTiles?: boolean | undefined; bounds?: number[] | undefined; } & { attribution: string; minZoom: number; maxZoom: number; }>; }>; readonly includeElasticMapsService: boolean; readonly emsUrl: string; readonly emsFileApiUrl: string; readonly emsTileApiUrl: string; readonly emsLandingPageUrl: string; readonly emsFontLibraryUrl: string; readonly emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }" + ], + "path": "src/plugins/maps_ems/public/index.ts", + "deprecated": false + }, + { + "parentPluginId": "mapsEms", + "id": "def-public.MapsEmsPluginPublicStart.createEMSSettings", + "type": "Function", + "tags": [], + "label": "createEMSSettings", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "mapsEms", + "scope": "common", + "docId": "kibMapsEmsPluginApi", + "section": "def-common.EMSSettings", + "text": "EMSSettings" + } + ], + "path": "src/plugins/maps_ems/public/index.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-public.MapsEmsPluginPublicStart.createEMSClient", + "type": "Function", + "tags": [], + "label": "createEMSClient", + "description": [], + "signature": [ + "() => Promise<", + "EMSClient", + ">" + ], + "path": "src/plugins/maps_ems/public/index.ts", + "deprecated": false, + "children": [], + "returnComment": [] + } + ], + "lifecycle": "start", + "initialIsOpen": true + } + }, + "server": { + "classes": [ + { + "parentPluginId": "mapsEms", + "id": "def-server.EMSSettings", + "type": "Class", "tags": [], - "label": "IServiceSettings", + "label": "EMSSettings", "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "children": [ { "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getEMSHotLink", + "id": "def-server.EMSSettings.Unnamed", "type": "Function", "tags": [], - "label": "getEMSHotLink", + "label": "Constructor", "description": [], "signature": [ - "(layer: ", - { - "pluginId": "mapsEms", - "scope": "public", - "docId": "kibMapsEmsPluginApi", - "section": "def-public.FileLayer", - "text": "FileLayer" - }, - ") => Promise" + "any" ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "children": [ { "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getEMSHotLink.$1", + "id": "def-server.EMSSettings.Unnamed.$1", "type": "Object", "tags": [], - "label": "layer", + "label": "config", "description": [], "signature": [ { "pluginId": "mapsEms", - "scope": "public", + "scope": "common", "docId": "kibMapsEmsPluginApi", - "section": "def-public.FileLayer", - "text": "FileLayer" + "section": "def-common.EMSConfig", + "text": "EMSConfig" } ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "mapsEms", + "id": "def-server.EMSSettings.Unnamed.$2", + "type": "Function", + "tags": [], + "label": "getIsEnterprisePlus", + "description": [], + "signature": [ + "() => boolean" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "isRequired": true } @@ -244,483 +254,391 @@ }, { "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getTMSServices", + "id": "def-server.EMSSettings.isEMSUrlSet", "type": "Function", "tags": [], - "label": "getTMSServices", + "label": "isEMSUrlSet", "description": [], "signature": [ - "() => Promise<", - { - "pluginId": "mapsEms", - "scope": "public", - "docId": "kibMapsEmsPluginApi", - "section": "def-public.TmsLayer", - "text": "TmsLayer" - }, - "[]>" + "() => boolean" ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "children": [], "returnComment": [] }, { "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getFileLayers", + "id": "def-server.EMSSettings.getEMSRoot", "type": "Function", "tags": [], - "label": "getFileLayers", + "label": "getEMSRoot", "description": [], "signature": [ - "() => Promise<", - { - "pluginId": "mapsEms", - "scope": "public", - "docId": "kibMapsEmsPluginApi", - "section": "def-public.FileLayer", - "text": "FileLayer" - }, - "[]>" + "() => string" ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "children": [], "returnComment": [] }, { "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getUrlForRegionLayer", + "id": "def-server.EMSSettings.isIncludeElasticMapsService", "type": "Function", "tags": [], - "label": "getUrlForRegionLayer", + "label": "isIncludeElasticMapsService", "description": [], "signature": [ - "(layer: ", - { - "pluginId": "mapsEms", - "scope": "public", - "docId": "kibMapsEmsPluginApi", - "section": "def-public.FileLayer", - "text": "FileLayer" - }, - ") => Promise" + "() => boolean" ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, - "children": [ - { - "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getUrlForRegionLayer.$1", - "type": "Object", - "tags": [], - "label": "layer", - "description": [], - "signature": [ - { - "pluginId": "mapsEms", - "scope": "public", - "docId": "kibMapsEmsPluginApi", - "section": "def-public.FileLayer", - "text": "FileLayer" - } - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false, - "isRequired": true - } + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-server.EMSSettings.hasOnPremLicense", + "type": "Function", + "tags": [], + "label": "hasOnPremLicense", + "description": [], + "signature": [ + "() => boolean" ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], "returnComment": [] }, { "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.setQueryParams", + "id": "def-server.EMSSettings.isEMSEnabled", "type": "Function", "tags": [], - "label": "setQueryParams", + "label": "isEMSEnabled", "description": [], "signature": [ - "(params: { [p: string]: string; }) => void" + "() => boolean" ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, - "children": [ - { - "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.setQueryParams.$1", - "type": "Object", - "tags": [], - "label": "params", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.setQueryParams.$1.Unnamed", - "type": "IndexSignature", - "tags": [], - "label": "[p: string]: string", - "description": [], - "signature": [ - "[p: string]: string" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - } - ] - } + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-server.EMSSettings.getEMSFileApiUrl", + "type": "Function", + "tags": [], + "label": "getEMSFileApiUrl", + "description": [], + "signature": [ + "() => string" ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], "returnComment": [] }, { "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getAttributesForTMSLayer", + "id": "def-server.EMSSettings.getEMSTileApiUrl", "type": "Function", "tags": [], - "label": "getAttributesForTMSLayer", + "label": "getEMSTileApiUrl", "description": [], "signature": [ - "(tmsServiceConfig: ", - { - "pluginId": "mapsEms", - "scope": "public", - "docId": "kibMapsEmsPluginApi", - "section": "def-public.TmsLayer", - "text": "TmsLayer" - }, - ", isDesaturated: boolean, isDarkMode: boolean) => any" + "() => string" ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, - "children": [ - { - "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getAttributesForTMSLayer.$1", - "type": "Object", - "tags": [], - "label": "tmsServiceConfig", - "description": [], - "signature": [ - { - "pluginId": "mapsEms", - "scope": "public", - "docId": "kibMapsEmsPluginApi", - "section": "def-public.TmsLayer", - "text": "TmsLayer" - } - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getAttributesForTMSLayer.$2", - "type": "boolean", - "tags": [], - "label": "isDesaturated", - "description": [], - "signature": [ - "boolean" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.IServiceSettings.getAttributesForTMSLayer.$3", - "type": "boolean", - "tags": [], - "label": "isDarkMode", - "description": [], - "signature": [ - "boolean" - ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false, - "isRequired": true - } - ], + "children": [], "returnComment": [] - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.TmsLayer", - "type": "Interface", - "tags": [], - "label": "TmsLayer", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "mapsEms", - "id": "def-public.TmsLayer.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.TmsLayer.origin", - "type": "string", - "tags": [], - "label": "origin", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false }, { "parentPluginId": "mapsEms", - "id": "def-public.TmsLayer.minZoom", - "type": "number", - "tags": [], - "label": "minZoom", - "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.TmsLayer.maxZoom", - "type": "number", + "id": "def-server.EMSSettings.getEMSLandingPageUrl", + "type": "Function", "tags": [], - "label": "maxZoom", + "label": "getEMSLandingPageUrl", "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false + "signature": [ + "() => string" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], + "returnComment": [] }, { "parentPluginId": "mapsEms", - "id": "def-public.TmsLayer.attribution", - "type": "string", + "id": "def-server.EMSSettings.getEMSFontLibraryUrl", + "type": "Function", "tags": [], - "label": "attribution", + "label": "getEMSFontLibraryUrl", "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false + "signature": [ + "() => string" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], + "returnComment": [] } ], "initialIsOpen": false }, { "parentPluginId": "mapsEms", - "id": "def-public.VectorLayer", - "type": "Interface", + "id": "def-server.MapsEmsPlugin", + "type": "Class", "tags": [], - "label": "VectorLayer", + "label": "MapsEmsPlugin", "description": [], "signature": [ { "pluginId": "mapsEms", - "scope": "public", + "scope": "server", "docId": "kibMapsEmsPluginApi", - "section": "def-public.VectorLayer", - "text": "VectorLayer" + "section": "def-server.MapsEmsPlugin", + "text": "MapsEmsPlugin" + }, + " implements ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.Plugin", + "text": "Plugin" }, - " extends ", + "<", { "pluginId": "mapsEms", - "scope": "public", + "scope": "server", "docId": "kibMapsEmsPluginApi", - "section": "def-public.FileLayer", - "text": "FileLayer" - } + "section": "def-server.MapsEmsPluginServerSetup", + "text": "MapsEmsPluginServerSetup" + }, + ", void, object, object>" ], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "path": "src/plugins/maps_ems/server/index.ts", "deprecated": false, "children": [ { "parentPluginId": "mapsEms", - "id": "def-public.VectorLayer.layerId", - "type": "string", + "id": "def-server.MapsEmsPlugin._initializerContext", + "type": "Object", "tags": [], - "label": "layerId", + "label": "_initializerContext", "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.PluginInitializerContext", + "text": "PluginInitializerContext" + }, + "; }>; includeElasticMapsService: boolean; emsUrl: string; emsFileApiUrl: string; emsTileApiUrl: string; emsLandingPageUrl: string; emsFontLibraryUrl: string; emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }>>" + ], + "path": "src/plugins/maps_ems/server/index.ts", "deprecated": false }, { "parentPluginId": "mapsEms", - "id": "def-public.VectorLayer.isEMS", - "type": "boolean", + "id": "def-server.MapsEmsPlugin.Unnamed", + "type": "Function", "tags": [], - "label": "isEMS", + "label": "Constructor", "description": [], - "path": "src/plugins/maps_ems/public/service_settings/service_settings_types.ts", - "deprecated": false + "signature": [ + "any" + ], + "path": "src/plugins/maps_ems/server/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "mapsEms", + "id": "def-server.MapsEmsPlugin.Unnamed.$1", + "type": "Object", + "tags": [], + "label": "initializerContext", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.PluginInitializerContext", + "text": "PluginInitializerContext" + }, + "; }>; includeElasticMapsService: boolean; emsUrl: string; emsFileApiUrl: string; emsTileApiUrl: string; emsLandingPageUrl: string; emsFontLibraryUrl: string; emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }>>" + ], + "path": "src/plugins/maps_ems/server/index.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-server.MapsEmsPlugin.setup", + "type": "Function", + "tags": [], + "label": "setup", + "description": [], + "signature": [ + "(core: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.CoreSetup", + "text": "CoreSetup" + }, + ", plugins: MapsEmsSetupServerDependencies) => { config: Readonly<{} & { tilemap: Readonly<{ url?: string | undefined; } & { options: Readonly<{ default?: boolean | undefined; tileSize?: number | undefined; subdomains?: string[] | undefined; errorTileUrl?: string | undefined; tms?: boolean | undefined; reuseTiles?: boolean | undefined; bounds?: number[] | undefined; } & { attribution: string; minZoom: number; maxZoom: number; }>; }>; includeElasticMapsService: boolean; emsUrl: string; emsFileApiUrl: string; emsTileApiUrl: string; emsLandingPageUrl: string; emsFontLibraryUrl: string; emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }>; createEMSSettings: () => ", + { + "pluginId": "mapsEms", + "scope": "common", + "docId": "kibMapsEmsPluginApi", + "section": "def-common.EMSSettings", + "text": "EMSSettings" + }, + "; }" + ], + "path": "src/plugins/maps_ems/server/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "mapsEms", + "id": "def-server.MapsEmsPlugin.setup.$1", + "type": "Object", + "tags": [], + "label": "core", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.CoreSetup", + "text": "CoreSetup" + }, + "" + ], + "path": "src/plugins/maps_ems/server/index.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "mapsEms", + "id": "def-server.MapsEmsPlugin.setup.$2", + "type": "Object", + "tags": [], + "label": "plugins", + "description": [], + "signature": [ + "MapsEmsSetupServerDependencies" + ], + "path": "src/plugins/maps_ems/server/index.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-server.MapsEmsPlugin.start", + "type": "Function", + "tags": [], + "label": "start", + "description": [], + "signature": [ + "() => void" + ], + "path": "src/plugins/maps_ems/server/index.ts", + "deprecated": false, + "children": [], + "returnComment": [] } ], "initialIsOpen": false } ], - "enums": [], - "misc": [ - { - "parentPluginId": "mapsEms", - "id": "def-public.MapsEmsConfig", - "type": "Type", - "tags": [], - "label": "MapsEmsConfig", - "description": [], - "signature": [ - "{ readonly tilemap: Readonly<{ url?: string | undefined; } & { options: Readonly<{ default?: boolean | undefined; tileSize?: number | undefined; subdomains?: string[] | undefined; errorTileUrl?: string | undefined; tms?: boolean | undefined; reuseTiles?: boolean | undefined; bounds?: number[] | undefined; } & { attribution: string; minZoom: number; maxZoom: number; }>; }>; readonly includeElasticMapsService: boolean; readonly emsUrl: string; readonly emsFileApiUrl: string; readonly emsTileApiUrl: string; readonly emsLandingPageUrl: string; readonly emsFontLibraryUrl: string; readonly emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }" - ], - "path": "src/plugins/maps_ems/config.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.TMS_IN_YML_ID", - "type": "string", - "tags": [], - "label": "TMS_IN_YML_ID", - "description": [], - "signature": [ - "\"TMS in config/kibana.yml\"" - ], - "path": "src/plugins/maps_ems/common/index.ts", - "deprecated": false, - "initialIsOpen": false - } - ], - "objects": [], - "setup": { - "parentPluginId": "mapsEms", - "id": "def-public.MapsEmsPluginSetup", - "type": "Interface", - "tags": [], - "label": "MapsEmsPluginSetup", - "description": [], - "path": "src/plugins/maps_ems/public/index.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "mapsEms", - "id": "def-public.MapsEmsPluginSetup.config", - "type": "Object", - "tags": [], - "label": "config", - "description": [], - "signature": [ - "{ readonly tilemap: Readonly<{ url?: string | undefined; } & { options: Readonly<{ default?: boolean | undefined; tileSize?: number | undefined; subdomains?: string[] | undefined; errorTileUrl?: string | undefined; tms?: boolean | undefined; reuseTiles?: boolean | undefined; bounds?: number[] | undefined; } & { attribution: string; minZoom: number; maxZoom: number; }>; }>; readonly includeElasticMapsService: boolean; readonly emsUrl: string; readonly emsFileApiUrl: string; readonly emsTileApiUrl: string; readonly emsLandingPageUrl: string; readonly emsFontLibraryUrl: string; readonly emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }" - ], - "path": "src/plugins/maps_ems/public/index.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-public.MapsEmsPluginSetup.getServiceSettings", - "type": "Function", - "tags": [], - "label": "getServiceSettings", - "description": [], - "signature": [ - "() => Promise<", - { - "pluginId": "mapsEms", - "scope": "public", - "docId": "kibMapsEmsPluginApi", - "section": "def-public.IServiceSettings", - "text": "IServiceSettings" - }, - ">" - ], - "path": "src/plugins/maps_ems/public/index.ts", - "deprecated": false, - "children": [], - "returnComment": [] - } - ], - "lifecycle": "setup", - "initialIsOpen": true - }, - "start": { - "parentPluginId": "mapsEms", - "id": "def-public.MapsEmsPluginStart", - "type": "Type", - "tags": [], - "label": "MapsEmsPluginStart", - "description": [], - "signature": [ - "void" - ], - "path": "src/plugins/maps_ems/public/index.ts", - "deprecated": false, - "lifecycle": "start", - "initialIsOpen": true - } - }, - "server": { - "classes": [ + "functions": [], + "interfaces": [ { "parentPluginId": "mapsEms", - "id": "def-server.MapsEmsPlugin", - "type": "Class", + "id": "def-server.MapsEmsPluginServerSetup", + "type": "Interface", "tags": [], - "label": "MapsEmsPlugin", + "label": "MapsEmsPluginServerSetup", "description": [], - "signature": [ - { - "pluginId": "mapsEms", - "scope": "server", - "docId": "kibMapsEmsPluginApi", - "section": "def-server.MapsEmsPlugin", - "text": "MapsEmsPlugin" - }, - " implements ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCorePluginApi", - "section": "def-server.Plugin", - "text": "Plugin" - }, - "<", - { - "pluginId": "mapsEms", - "scope": "server", - "docId": "kibMapsEmsPluginApi", - "section": "def-server.MapsEmsPluginSetup", - "text": "MapsEmsPluginSetup" - }, - ", void, object, object>" - ], "path": "src/plugins/maps_ems/server/index.ts", "deprecated": false, "children": [ { "parentPluginId": "mapsEms", - "id": "def-server.MapsEmsPlugin._initializerContext", + "id": "def-server.MapsEmsPluginServerSetup.config", "type": "Object", "tags": [], - "label": "_initializerContext", + "label": "config", + "description": [], + "signature": [ + "{ readonly tilemap: Readonly<{ url?: string | undefined; } & { options: Readonly<{ default?: boolean | undefined; tileSize?: number | undefined; subdomains?: string[] | undefined; errorTileUrl?: string | undefined; tms?: boolean | undefined; reuseTiles?: boolean | undefined; bounds?: number[] | undefined; } & { attribution: string; minZoom: number; maxZoom: number; }>; }>; readonly includeElasticMapsService: boolean; readonly emsUrl: string; readonly emsFileApiUrl: string; readonly emsTileApiUrl: string; readonly emsLandingPageUrl: string; readonly emsFontLibraryUrl: string; readonly emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }" + ], + "path": "src/plugins/maps_ems/server/index.ts", + "deprecated": false + }, + { + "parentPluginId": "mapsEms", + "id": "def-server.MapsEmsPluginServerSetup.createEMSSettings", + "type": "Function", + "tags": [], + "label": "createEMSSettings", "description": [], "signature": [ + "() => ", { - "pluginId": "core", - "scope": "server", - "docId": "kibCorePluginApi", - "section": "def-server.PluginInitializerContext", - "text": "PluginInitializerContext" - }, - "; }>; includeElasticMapsService: boolean; emsUrl: string; emsFileApiUrl: string; emsTileApiUrl: string; emsLandingPageUrl: string; emsFontLibraryUrl: string; emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }>>" + "pluginId": "mapsEms", + "scope": "common", + "docId": "kibMapsEmsPluginApi", + "section": "def-common.EMSSettings", + "text": "EMSSettings" + } ], "path": "src/plugins/maps_ems/server/index.ts", - "deprecated": false - }, + "deprecated": false, + "children": [], + "returnComment": [] + } + ], + "initialIsOpen": false + } + ], + "enums": [], + "misc": [], + "objects": [] + }, + "common": { + "classes": [ + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSSettings", + "type": "Class", + "tags": [], + "label": "EMSSettings", + "description": [], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [ { "parentPluginId": "mapsEms", - "id": "def-server.MapsEmsPlugin.Unnamed", + "id": "def-common.EMSSettings.Unnamed", "type": "Function", "tags": [], "label": "Constructor", @@ -728,27 +646,40 @@ "signature": [ "any" ], - "path": "src/plugins/maps_ems/server/index.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "children": [ { "parentPluginId": "mapsEms", - "id": "def-server.MapsEmsPlugin.Unnamed.$1", + "id": "def-common.EMSSettings.Unnamed.$1", "type": "Object", "tags": [], - "label": "initializerContext", + "label": "config", "description": [], "signature": [ { - "pluginId": "core", - "scope": "server", - "docId": "kibCorePluginApi", - "section": "def-server.PluginInitializerContext", - "text": "PluginInitializerContext" - }, - "; }>; includeElasticMapsService: boolean; emsUrl: string; emsFileApiUrl: string; emsTileApiUrl: string; emsLandingPageUrl: string; emsFontLibraryUrl: string; emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }>>" + "pluginId": "mapsEms", + "scope": "common", + "docId": "kibMapsEmsPluginApi", + "section": "def-common.EMSConfig", + "text": "EMSConfig" + } ], - "path": "src/plugins/maps_ems/server/index.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSSettings.Unnamed.$2", + "type": "Function", + "tags": [], + "label": "getIsEnterprisePlus", + "description": [], + "signature": [ + "() => boolean" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "isRequired": true } @@ -757,60 +688,135 @@ }, { "parentPluginId": "mapsEms", - "id": "def-server.MapsEmsPlugin.setup", + "id": "def-common.EMSSettings.isEMSUrlSet", "type": "Function", "tags": [], - "label": "setup", + "label": "isEMSUrlSet", "description": [], "signature": [ - "(core: ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCorePluginApi", - "section": "def-server.CoreSetup", - "text": "CoreSetup" - }, - ") => { config: Readonly<{} & { tilemap: Readonly<{ url?: string | undefined; } & { options: Readonly<{ default?: boolean | undefined; tileSize?: number | undefined; subdomains?: string[] | undefined; errorTileUrl?: string | undefined; tms?: boolean | undefined; reuseTiles?: boolean | undefined; bounds?: number[] | undefined; } & { attribution: string; minZoom: number; maxZoom: number; }>; }>; includeElasticMapsService: boolean; emsUrl: string; emsFileApiUrl: string; emsTileApiUrl: string; emsLandingPageUrl: string; emsFontLibraryUrl: string; emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }>; }" + "() => boolean" ], - "path": "src/plugins/maps_ems/server/index.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, - "children": [ - { - "parentPluginId": "mapsEms", - "id": "def-server.MapsEmsPlugin.setup.$1", - "type": "Object", - "tags": [], - "label": "core", - "description": [], - "signature": [ - { - "pluginId": "core", - "scope": "server", - "docId": "kibCorePluginApi", - "section": "def-server.CoreSetup", - "text": "CoreSetup" - }, - "" - ], - "path": "src/plugins/maps_ems/server/index.ts", - "deprecated": false, - "isRequired": true - } + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSSettings.getEMSRoot", + "type": "Function", + "tags": [], + "label": "getEMSRoot", + "description": [], + "signature": [ + "() => string" ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], "returnComment": [] }, { "parentPluginId": "mapsEms", - "id": "def-server.MapsEmsPlugin.start", + "id": "def-common.EMSSettings.isIncludeElasticMapsService", "type": "Function", "tags": [], - "label": "start", + "label": "isIncludeElasticMapsService", "description": [], "signature": [ - "() => void" + "() => boolean" ], - "path": "src/plugins/maps_ems/server/index.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSSettings.hasOnPremLicense", + "type": "Function", + "tags": [], + "label": "hasOnPremLicense", + "description": [], + "signature": [ + "() => boolean" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSSettings.isEMSEnabled", + "type": "Function", + "tags": [], + "label": "isEMSEnabled", + "description": [], + "signature": [ + "() => boolean" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSSettings.getEMSFileApiUrl", + "type": "Function", + "tags": [], + "label": "getEMSFileApiUrl", + "description": [], + "signature": [ + "() => string" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSSettings.getEMSTileApiUrl", + "type": "Function", + "tags": [], + "label": "getEMSTileApiUrl", + "description": [], + "signature": [ + "() => string" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSSettings.getEMSLandingPageUrl", + "type": "Function", + "tags": [], + "label": "getEMSLandingPageUrl", + "description": [], + "signature": [ + "() => string" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSSettings.getEMSFontLibraryUrl", + "type": "Function", + "tags": [], + "label": "getEMSFontLibraryUrl", + "description": [], + "signature": [ + "() => string" + ], + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "children": [], "returnComment": [] @@ -823,25 +829,72 @@ "interfaces": [ { "parentPluginId": "mapsEms", - "id": "def-server.MapsEmsPluginSetup", + "id": "def-common.EMSConfig", "type": "Interface", "tags": [], - "label": "MapsEmsPluginSetup", + "label": "EMSConfig", "description": [], - "path": "src/plugins/maps_ems/server/index.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false, "children": [ { "parentPluginId": "mapsEms", - "id": "def-server.MapsEmsPluginSetup.config", - "type": "Object", + "id": "def-common.EMSConfig.includeElasticMapsService", + "type": "boolean", "tags": [], - "label": "config", + "label": "includeElasticMapsService", "description": [], - "signature": [ - "{ readonly tilemap: Readonly<{ url?: string | undefined; } & { options: Readonly<{ default?: boolean | undefined; tileSize?: number | undefined; subdomains?: string[] | undefined; errorTileUrl?: string | undefined; tms?: boolean | undefined; reuseTiles?: boolean | undefined; bounds?: number[] | undefined; } & { attribution: string; minZoom: number; maxZoom: number; }>; }>; readonly includeElasticMapsService: boolean; readonly emsUrl: string; readonly emsFileApiUrl: string; readonly emsTileApiUrl: string; readonly emsLandingPageUrl: string; readonly emsFontLibraryUrl: string; readonly emsTileLayerId: Readonly<{} & { bright: string; desaturated: string; dark: string; }>; }" - ], - "path": "src/plugins/maps_ems/server/index.ts", + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSConfig.emsUrl", + "type": "string", + "tags": [], + "label": "emsUrl", + "description": [], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSConfig.emsFileApiUrl", + "type": "string", + "tags": [], + "label": "emsFileApiUrl", + "description": [], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSConfig.emsTileApiUrl", + "type": "string", + "tags": [], + "label": "emsTileApiUrl", + "description": [], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSConfig.emsLandingPageUrl", + "type": "string", + "tags": [], + "label": "emsLandingPageUrl", + "description": [], + "path": "src/plugins/maps_ems/common/ems_settings.ts", + "deprecated": false + }, + { + "parentPluginId": "mapsEms", + "id": "def-common.EMSConfig.emsFontLibraryUrl", + "type": "string", + "tags": [], + "label": "emsFontLibraryUrl", + "description": [], + "path": "src/plugins/maps_ems/common/ems_settings.ts", "deprecated": false } ], @@ -849,14 +902,6 @@ } ], "enums": [], - "misc": [], - "objects": [] - }, - "common": { - "classes": [], - "functions": [], - "interfaces": [], - "enums": [], "misc": [ { "parentPluginId": "mapsEms", @@ -868,7 +913,7 @@ "signature": [ "\"dark_map\"" ], - "path": "src/plugins/maps_ems/common/index.ts", + "path": "src/plugins/maps_ems/common/ems_defaults.ts", "deprecated": false, "initialIsOpen": false }, @@ -882,7 +927,7 @@ "signature": [ "\"https://vector.maps.elastic.co\"" ], - "path": "src/plugins/maps_ems/common/index.ts", + "path": "src/plugins/maps_ems/common/ems_defaults.ts", "deprecated": false, "initialIsOpen": false }, @@ -896,7 +941,7 @@ "signature": [ "\"https://tiles.maps.elastic.co/fonts/{fontstack}/{range}.pbf\"" ], - "path": "src/plugins/maps_ems/common/index.ts", + "path": "src/plugins/maps_ems/common/ems_defaults.ts", "deprecated": false, "initialIsOpen": false }, @@ -910,7 +955,7 @@ "signature": [ "\"https://maps.elastic.co/v8.0\"" ], - "path": "src/plugins/maps_ems/common/index.ts", + "path": "src/plugins/maps_ems/common/ems_defaults.ts", "deprecated": false, "initialIsOpen": false }, @@ -924,7 +969,7 @@ "signature": [ "\"road_map_desaturated\"" ], - "path": "src/plugins/maps_ems/common/index.ts", + "path": "src/plugins/maps_ems/common/ems_defaults.ts", "deprecated": false, "initialIsOpen": false }, @@ -938,7 +983,7 @@ "signature": [ "\"road_map\"" ], - "path": "src/plugins/maps_ems/common/index.ts", + "path": "src/plugins/maps_ems/common/ems_defaults.ts", "deprecated": false, "initialIsOpen": false }, @@ -952,59 +997,39 @@ "signature": [ "\"https://tiles.maps.elastic.co\"" ], - "path": "src/plugins/maps_ems/common/index.ts", + "path": "src/plugins/maps_ems/common/ems_defaults.ts", "deprecated": false, "initialIsOpen": false }, { "parentPluginId": "mapsEms", - "id": "def-common.TMS_IN_YML_ID", + "id": "def-common.EMS_APP_NAME", "type": "string", "tags": [], - "label": "TMS_IN_YML_ID", + "label": "EMS_APP_NAME", "description": [], "signature": [ - "\"TMS in config/kibana.yml\"" + "\"kibana\"" ], - "path": "src/plugins/maps_ems/common/index.ts", + "path": "src/plugins/maps_ems/common/ems_defaults.ts", "deprecated": false, "initialIsOpen": false - } - ], - "objects": [ + }, { "parentPluginId": "mapsEms", - "id": "def-common.ORIGIN", - "type": "Object", + "id": "def-common.LICENSE_CHECK_ID", + "type": "string", "tags": [], - "label": "ORIGIN", + "label": "LICENSE_CHECK_ID", "description": [], - "path": "src/plugins/maps_ems/common/origin.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "mapsEms", - "id": "def-common.ORIGIN.EMS", - "type": "string", - "tags": [], - "label": "EMS", - "description": [], - "path": "src/plugins/maps_ems/common/origin.ts", - "deprecated": false - }, - { - "parentPluginId": "mapsEms", - "id": "def-common.ORIGIN.KIBANA_YML", - "type": "string", - "tags": [], - "label": "KIBANA_YML", - "description": [], - "path": "src/plugins/maps_ems/common/origin.ts", - "deprecated": false - } + "signature": [ + "\"maps\"" ], + "path": "src/plugins/maps_ems/common/index.ts", + "deprecated": false, "initialIsOpen": false } - ] + ], + "objects": [] } } \ No newline at end of file diff --git a/api_docs/maps_ems.mdx b/api_docs/maps_ems.mdx index cd14ac2fcae382..8ba74b9918d64e 100644 --- a/api_docs/maps_ems.mdx +++ b/api_docs/maps_ems.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'mapsEms'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import mapsEmsObj from './maps_ems.json'; +import mapsEmsObj from './maps_ems.devdocs.json'; @@ -18,7 +18,7 @@ Contact [GIS](https://github.com/orgs/elastic/teams/kibana-gis) for questions re | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 64 | 0 | 64 | 0 | +| 67 | 0 | 67 | 0 | ## Client @@ -44,8 +44,11 @@ Contact [GIS](https://github.com/orgs/elastic/teams/kibana-gis) for questions re ## Common -### Objects - +### Classes + + +### Interfaces + ### Consts, variables and types diff --git a/api_docs/metrics_entities.json b/api_docs/metrics_entities.devdocs.json similarity index 100% rename from api_docs/metrics_entities.json rename to api_docs/metrics_entities.devdocs.json diff --git a/api_docs/metrics_entities.mdx b/api_docs/metrics_entities.mdx index 30a838d84f196c..6dd3e841eaa9cd 100644 --- a/api_docs/metrics_entities.mdx +++ b/api_docs/metrics_entities.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'metricsEntities'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import metricsEntitiesObj from './metrics_entities.json'; +import metricsEntitiesObj from './metrics_entities.devdocs.json'; diff --git a/api_docs/ml.json b/api_docs/ml.devdocs.json similarity index 69% rename from api_docs/ml.json rename to api_docs/ml.devdocs.json index bb2bc6f93729f0..8c762bdbe4f39c 100644 --- a/api_docs/ml.json +++ b/api_docs/ml.devdocs.json @@ -1100,6 +1100,19 @@ "description": [], "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", "deprecated": false + }, + { + "parentPluginId": "ml", + "id": "def-public.MlSummaryJob.customSettings", + "type": "Any", + "tags": [], + "label": "customSettings", + "description": [], + "signature": [ + "any" + ], + "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", + "deprecated": false } ], "initialIsOpen": false @@ -1663,37 +1676,6 @@ ], "returnComment": [], "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.isCombinedJobWithStats", - "type": "Function", - "tags": [], - "label": "isCombinedJobWithStats", - "description": [], - "signature": [ - "(arg: any) => boolean" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "ml", - "id": "def-server.isCombinedJobWithStats.$1", - "type": "Any", - "tags": [], - "label": "arg", - "description": [], - "signature": [ - "any" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false } ], "interfaces": [ @@ -1904,174 +1886,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc", - "type": "Interface", - "tags": [], - "label": "AnomalyCategorizerStatsDoc", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.Unnamed", - "type": "IndexSignature", - "tags": [], - "label": "[key: string]: any", - "description": [], - "signature": [ - "[key: string]: any" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.job_id", - "type": "string", - "tags": [], - "label": "job_id", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.result_type", - "type": "string", - "tags": [], - "label": "result_type", - "description": [], - "signature": [ - "\"categorizer_stats\"" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.partition_field_name", - "type": "string", - "tags": [], - "label": "partition_field_name", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.partition_field_value", - "type": "string", - "tags": [], - "label": "partition_field_value", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.categorized_doc_count", - "type": "number", - "tags": [], - "label": "categorized_doc_count", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.total_category_count", - "type": "number", - "tags": [], - "label": "total_category_count", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.frequent_category_count", - "type": "number", - "tags": [], - "label": "frequent_category_count", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.rare_category_count", - "type": "number", - "tags": [], - "label": "rare_category_count", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.dead_category_count", - "type": "number", - "tags": [], - "label": "dead_category_count", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.failed_category_count", - "type": "number", - "tags": [], - "label": "failed_category_count", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.categorization_status", - "type": "CompoundType", - "tags": [], - "label": "categorization_status", - "description": [], - "signature": [ - "\"ok\" | \"warn\"" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.log_time", - "type": "number", - "tags": [], - "label": "log_time", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyCategorizerStatsDoc.timestamp", - "type": "number", - "tags": [], - "label": "timestamp", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, { "parentPluginId": "ml", "id": "def-server.AnomalyRecordDoc", @@ -2364,900 +2178,35 @@ } ], "initialIsOpen": false + } + ], + "enums": [], + "misc": [ + { + "parentPluginId": "ml", + "id": "def-server.AnomalyResultType", + "type": "Type", + "tags": [], + "label": "AnomalyResultType", + "description": [], + "signature": [ + "\"bucket\" | \"record\" | \"influencer\"" + ], + "path": "x-pack/plugins/ml/common/types/anomalies.ts", + "deprecated": false, + "initialIsOpen": false }, { "parentPluginId": "ml", - "id": "def-server.AuditMessage", - "type": "Interface", + "id": "def-server.DatafeedStats", + "type": "Type", "tags": [], - "label": "AuditMessage", + "label": "DatafeedStats", "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "ml", - "id": "def-server.AuditMessage.job_id", - "type": "string", - "tags": [], - "label": "job_id", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AuditMessage.msgTime", - "type": "number", - "tags": [], - "label": "msgTime", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AuditMessage.level", - "type": "string", - "tags": [], - "label": "level", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AuditMessage.highestLevel", - "type": "string", - "tags": [], - "label": "highestLevel", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AuditMessage.highestLevelText", - "type": "string", - "tags": [], - "label": "highestLevelText", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AuditMessage.text", - "type": "string", - "tags": [], - "label": "text", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AuditMessage.cleared", - "type": "CompoundType", - "tags": [], - "label": "cleared", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.CombinedJob", - "type": "Interface", - "tags": [], - "label": "CombinedJob", - "description": [], - "signature": [ - "CombinedJob", - " extends ", - "MlJob" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "ml", - "id": "def-server.CombinedJob.calendars", - "type": "Array", - "tags": [], - "label": "calendars", - "description": [], - "signature": [ - "string[] | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.CombinedJob.datafeed_config", - "type": "Object", - "tags": [], - "label": "datafeed_config", - "description": [], - "signature": [ - "MlDatafeed" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.CombinedJobWithStats", - "type": "Interface", - "tags": [], - "label": "CombinedJobWithStats", - "description": [], - "signature": [ - "CombinedJobWithStats", - " extends ", - "JobWithStats" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "ml", - "id": "def-server.CombinedJobWithStats.calendars", - "type": "Array", - "tags": [], - "label": "calendars", - "description": [], - "signature": [ - "string[] | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.CombinedJobWithStats.datafeed_config", - "type": "CompoundType", - "tags": [], - "label": "datafeed_config", - "description": [], - "signature": [ - "MlDatafeed", - " & ", - "MlDatafeedStats" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.Influencer", - "type": "Interface", - "tags": [], - "label": "Influencer", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "ml", - "id": "def-server.Influencer.influencer_field_name", - "type": "string", - "tags": [], - "label": "influencer_field_name", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.Influencer.influencer_field_values", - "type": "Array", - "tags": [], - "label": "influencer_field_values", - "description": [], - "signature": [ - "string[]" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlJobWithTimeRange", - "type": "Interface", - "tags": [], - "label": "MlJobWithTimeRange", - "description": [], - "signature": [ - "MlJobWithTimeRange", - " extends ", - "CombinedJobWithStats" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "ml", - "id": "def-server.MlJobWithTimeRange.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlJobWithTimeRange.isRunning", - "type": "CompoundType", - "tags": [], - "label": "isRunning", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlJobWithTimeRange.isNotSingleMetricViewerJobMessage", - "type": "string", - "tags": [], - "label": "isNotSingleMetricViewerJobMessage", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlJobWithTimeRange.timeRange", - "type": "Object", - "tags": [], - "label": "timeRange", - "description": [], - "signature": [ - "{ from: number; to: number; fromPx: number; toPx: number; fromMoment: moment.Moment; toMoment: moment.Moment; widthPx: number; label: string; }" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob", - "type": "Interface", - "tags": [], - "label": "MlSummaryJob", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.description", - "type": "string", - "tags": [], - "label": "description", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.groups", - "type": "Array", - "tags": [], - "label": "groups", - "description": [], - "signature": [ - "string[]" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.processed_record_count", - "type": "number", - "tags": [], - "label": "processed_record_count", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.memory_status", - "type": "string", - "tags": [], - "label": "memory_status", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.jobState", - "type": "string", - "tags": [], - "label": "jobState", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.datafeedIndices", - "type": "Array", - "tags": [], - "label": "datafeedIndices", - "description": [], - "signature": [ - "string[]" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.hasDatafeed", - "type": "boolean", - "tags": [], - "label": "hasDatafeed", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.datafeedId", - "type": "string", - "tags": [], - "label": "datafeedId", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.datafeedState", - "type": "string", - "tags": [], - "label": "datafeedState", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.latestTimestampMs", - "type": "number", - "tags": [], - "label": "latestTimestampMs", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.earliestTimestampMs", - "type": "number", - "tags": [], - "label": "earliestTimestampMs", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.latestResultsTimestampMs", - "type": "number", - "tags": [], - "label": "latestResultsTimestampMs", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.fullJob", - "type": "Object", - "tags": [], - "label": "fullJob", - "description": [], - "signature": [ - "CombinedJob", - " | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.nodeName", - "type": "string", - "tags": [], - "label": "nodeName", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.auditMessage", - "type": "Object", - "tags": [], - "label": "auditMessage", - "description": [], - "signature": [ - "Partial<", - "AuditMessage", - "> | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.isSingleMetricViewerJob", - "type": "boolean", - "tags": [], - "label": "isSingleMetricViewerJob", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.isNotSingleMetricViewerJobMessage", - "type": "string", - "tags": [], - "label": "isNotSingleMetricViewerJobMessage", - "description": [], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.blocked", - "type": "Object", - "tags": [], - "label": "blocked", - "description": [], - "signature": [ - "MlJobBlocked", - " | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.latestTimestampSortValue", - "type": "number", - "tags": [], - "label": "latestTimestampSortValue", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.earliestStartTimestampMs", - "type": "number", - "tags": [], - "label": "earliestStartTimestampMs", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.awaitingNodeAssignment", - "type": "boolean", - "tags": [], - "label": "awaitingNodeAssignment", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.alertingRules", - "type": "Array", - "tags": [], - "label": "alertingRules", - "description": [], - "signature": [ - "MlAnomalyDetectionAlertRule", - "[] | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.jobTags", - "type": "Object", - "tags": [], - "label": "jobTags", - "description": [], - "signature": [ - "{ [x: string]: string; }" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJob.bucketSpanSeconds", - "type": "number", - "tags": [], - "label": "bucketSpanSeconds", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.PerPartitionCategorization", - "type": "Interface", - "tags": [], - "label": "PerPartitionCategorization", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "ml", - "id": "def-server.PerPartitionCategorization.enabled", - "type": "CompoundType", - "tags": [], - "label": "enabled", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false - }, - { - "parentPluginId": "ml", - "id": "def-server.PerPartitionCategorization.stop_on_warn", - "type": "CompoundType", - "tags": [], - "label": "stop_on_warn", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false - } - ], - "initialIsOpen": false - } - ], - "enums": [], - "misc": [ - { - "parentPluginId": "ml", - "id": "def-server.Aggregation", - "type": "Type", - "tags": [], - "label": "Aggregation", - "description": [], - "signature": [ - "{ [x: string]: ", - "AggregationsAggregationContainer", - "; }" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/datafeed.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnalysisConfig", - "type": "Type", - "tags": [], - "label": "AnalysisConfig", - "description": [], - "signature": [ - "MlAnalysisConfig" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnalysisLimits", - "type": "Type", - "tags": [], - "label": "AnalysisLimits", - "description": [], - "signature": [ - "MlAnalysisLimits" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.AnomalyResultType", - "type": "Type", - "tags": [], - "label": "AnomalyResultType", - "description": [], - "signature": [ - "\"record\" | \"bucket\" | \"influencer\"" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.BucketSpan", - "type": "Type", - "tags": [], - "label": "BucketSpan", - "description": [], - "signature": [ - "string" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.ChunkingConfig", - "type": "Type", - "tags": [], - "label": "ChunkingConfig", - "description": [], - "signature": [ - "MlChunkingConfig" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/datafeed.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.CustomRule", - "type": "Type", - "tags": [], - "label": "CustomRule", - "description": [], - "signature": [ - "MlDetectionRule" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.CustomSettings", - "type": "Type", - "tags": [], - "label": "CustomSettings", - "description": [], - "signature": [ - "any" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.DataCounts", - "type": "Type", - "tags": [], - "label": "DataCounts", - "description": [], - "signature": [ - "MlDataCounts" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job_stats.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.DataDescription", - "type": "Type", - "tags": [], - "label": "DataDescription", - "description": [], - "signature": [ - "MlDataDescription" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.Datafeed", - "type": "Type", - "tags": [], - "label": "Datafeed", - "description": [], - "signature": [ - "MlDatafeed" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/datafeed.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.DatafeedId", - "type": "Type", - "tags": [], - "label": "DatafeedId", - "description": [], - "signature": [ - "string" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/datafeed.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.DatafeedStats", - "type": "Type", - "tags": [], - "label": "DatafeedStats", - "description": [], - "signature": [ - "MlDatafeedStats" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/datafeed_stats.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.DatafeedWithStats", - "type": "Type", - "tags": [], - "label": "DatafeedWithStats", - "description": [], - "signature": [ - "MlDatafeed", - " & ", - "MlDatafeedStats" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.Detector", - "type": "Type", - "tags": [], - "label": "Detector", - "description": [], - "signature": [ - "MlDetector" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.EntityFieldType", - "type": "Type", - "tags": [], - "label": "EntityFieldType", - "description": [], - "signature": [ - "\"partition_field\" | \"over_field\" | \"by_field\"" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.ForecastsStats", - "type": "Type", - "tags": [], - "label": "ForecastsStats", - "description": [], - "signature": [ - "MlJobForecastStatistics" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job_stats.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.IndicesOptions", - "type": "Type", - "tags": [], - "label": "IndicesOptions", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/datafeed.ts", + "signature": [ + "MlDatafeedStats" + ], + "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/datafeed_stats.ts", "deprecated": false, "initialIsOpen": false }, @@ -3274,190 +2223,6 @@ "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", "deprecated": false, "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.JobId", - "type": "Type", - "tags": [], - "label": "JobId", - "description": [], - "signature": [ - "string" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.JobStats", - "type": "Type", - "tags": [], - "label": "JobStats", - "description": [], - "signature": [ - "MlJobStats" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job_stats.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.JobWithStats", - "type": "Type", - "tags": [], - "label": "JobWithStats", - "description": [], - "signature": [ - "MlJob", - " & ", - "MlJobStats", - " & ", - "JobAlertingRuleStats" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/combined_job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MLAnomalyDoc", - "type": "Type", - "tags": [], - "label": "MLAnomalyDoc", - "description": [], - "signature": [ - "AnomalyRecordDoc" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlJobBlocked", - "type": "Type", - "tags": [], - "label": "MlJobBlocked", - "description": [], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.MlSummaryJobs", - "type": "Type", - "tags": [], - "label": "MlSummaryJobs", - "description": [], - "signature": [ - "MlSummaryJob", - "[]" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/summary_job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.ModelPlotConfig", - "type": "Type", - "tags": [], - "label": "ModelPlotConfig", - "description": [], - "signature": [ - "MlModelPlotConfig" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.ModelSizeStats", - "type": "Type", - "tags": [], - "label": "ModelSizeStats", - "description": [], - "signature": [ - "MlModelSizeStats" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job_stats.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.ModelSnapshot", - "type": "Type", - "tags": [], - "label": "ModelSnapshot", - "description": [], - "signature": [ - "MlModelSnapshot" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/model_snapshot.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.ModuleSetupPayload", - "type": "Type", - "tags": [], - "label": "ModuleSetupPayload", - "description": [], - "signature": [ - "Readonly<{} & { moduleId: string; }> & Readonly<{ start?: number | undefined; query?: any; prefix?: string | undefined; end?: number | undefined; groups?: string[] | undefined; indexPatternName?: string | undefined; useDedicatedIndex?: boolean | undefined; startDatafeed?: boolean | undefined; jobOverrides?: any; datafeedOverrides?: any; estimateModelMemory?: boolean | undefined; applyToAllSpaces?: boolean | undefined; } & {}>" - ], - "path": "x-pack/plugins/ml/server/shared_services/providers/modules.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.Node", - "type": "Type", - "tags": [], - "label": "Node", - "description": [], - "signature": [ - "MlDiscoveryNode" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job_stats.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.PartitionFieldsType", - "type": "Type", - "tags": [], - "label": "PartitionFieldsType", - "description": [], - "signature": [ - "\"partition_field\" | \"over_field\" | \"by_field\"" - ], - "path": "x-pack/plugins/ml/common/types/anomalies.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "ml", - "id": "def-server.TimingStats", - "type": "Type", - "tags": [], - "label": "TimingStats", - "description": [], - "signature": [ - "MlTimingStats" - ], - "path": "x-pack/plugins/ml/common/types/anomaly_detection_jobs/job_stats.ts", - "deprecated": false, - "initialIsOpen": false } ], "objects": [], @@ -3494,7 +2259,7 @@ "section": "def-server.KibanaRequest", "text": "KibanaRequest" }, - "): { preview: (args_0: Readonly<{} & { timeRange: string; alertParams: Readonly<{} & { severity: number; jobSelection: Readonly<{} & { groupIds: string[]; jobIds: string[]; }>; resultType: \"record\" | \"bucket\" | \"influencer\"; includeInterim: boolean; lookbackInterval: string | null; topNBuckets: number | null; }>; sampleSize: number; }>) => Promise; execute: (params: Readonly<{} & { severity: number; jobSelection: Readonly<{} & { groupIds: string[]; jobIds: string[]; }>; resultType: \"record\" | \"bucket\" | \"influencer\"; includeInterim: boolean; lookbackInterval: string | null; topNBuckets: number | null; }>, startedAt: Date, previousStartedAt: Date | null) => Promise<", + "): { preview: (args_0: Readonly<{} & { timeRange: string; alertParams: Readonly<{} & { severity: number; jobSelection: Readonly<{} & { groupIds: string[]; jobIds: string[]; }>; resultType: \"bucket\" | \"record\" | \"influencer\"; includeInterim: boolean; lookbackInterval: string | null; topNBuckets: number | null; }>; sampleSize: number; }>) => Promise; execute: (params: Readonly<{} & { severity: number; jobSelection: Readonly<{} & { groupIds: string[]; jobIds: string[]; }>; resultType: \"bucket\" | \"record\" | \"influencer\"; includeInterim: boolean; lookbackInterval: string | null; topNBuckets: number | null; }>, startedAt: Date, previousStartedAt: Date | null) => Promise<", "AnomalyDetectionAlertContext", " | undefined>; }; }" ], @@ -3896,6 +2661,28 @@ "path": "x-pack/plugins/ml/common/types/fields.ts", "deprecated": false, "initialIsOpen": false + }, + { + "parentPluginId": "ml", + "id": "def-common.SEVERITY_COLOR_RAMP", + "type": "Array", + "tags": [], + "label": "SEVERITY_COLOR_RAMP", + "description": [], + "signature": [ + "{ stop: ", + { + "pluginId": "ml", + "scope": "common", + "docId": "kibMlPluginApi", + "section": "def-common.ANOMALY_THRESHOLD", + "text": "ANOMALY_THRESHOLD" + }, + "; color: string; }[]" + ], + "path": "x-pack/plugins/ml/common/constants/anomalies.ts", + "deprecated": false, + "initialIsOpen": false } ], "objects": [ diff --git a/api_docs/ml.mdx b/api_docs/ml.mdx index 64105f354e5e3f..0bf283918e7555 100644 --- a/api_docs/ml.mdx +++ b/api_docs/ml.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ml'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import mlObj from './ml.json'; +import mlObj from './ml.devdocs.json'; This plugin provides access to the machine learning features provided by Elastic. @@ -18,7 +18,7 @@ Contact [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) for q | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 291 | 8 | 287 | 35 | +| 196 | 8 | 192 | 30 | ## Client diff --git a/api_docs/monitoring.json b/api_docs/monitoring.devdocs.json similarity index 89% rename from api_docs/monitoring.json rename to api_docs/monitoring.devdocs.json index 5283f208c79698..260f6222fb20ed 100644 --- a/api_docs/monitoring.json +++ b/api_docs/monitoring.devdocs.json @@ -149,7 +149,7 @@ "signature": [ "{ ui: { elasticsearch: ", "MonitoringElasticsearchConfig", - "; enabled: boolean; container: Readonly<{} & { logstash: Readonly<{} & { enabled: boolean; }>; apm: Readonly<{} & { enabled: boolean; }>; elasticsearch: Readonly<{} & { enabled: boolean; }>; }>; logs: Readonly<{} & { index: string; }>; metricbeat: Readonly<{} & { index: string; }>; debug_mode: boolean; debug_log_path: string; ccs: Readonly<{} & { enabled: boolean; }>; max_bucket_size: number; min_interval_seconds: number; show_license_expiration: boolean; }; tests: Readonly<{} & { cloud_detector: Readonly<{} & { enabled: boolean; }>; }>; kibana: Readonly<{} & { collection: Readonly<{} & { interval: number; enabled: boolean; }>; }>; agent: Readonly<{} & { interval: string; }>; licensing: Readonly<{} & { api_polling_frequency: moment.Duration; }>; cluster_alerts: Readonly<{} & { enabled: boolean; email_notifications: Readonly<{} & { enabled: boolean; email_address: string; }>; }>; }" + "; enabled: boolean; container: Readonly<{} & { logstash: Readonly<{} & { enabled: boolean; }>; apm: Readonly<{} & { enabled: boolean; }>; elasticsearch: Readonly<{} & { enabled: boolean; }>; }>; logs: Readonly<{} & { index: string; }>; debug_mode: boolean; debug_log_path: string; ccs: Readonly<{} & { enabled: boolean; }>; max_bucket_size: number; min_interval_seconds: number; show_license_expiration: boolean; }; tests: Readonly<{} & { cloud_detector: Readonly<{} & { enabled: boolean; }>; }>; kibana: Readonly<{} & { collection: Readonly<{} & { interval: number; enabled: boolean; }>; }>; agent: Readonly<{} & { interval: string; }>; licensing: Readonly<{} & { api_polling_frequency: moment.Duration; }>; cluster_alerts: Readonly<{} & { enabled: boolean; email_notifications: Readonly<{} & { enabled: boolean; email_address: string; }>; }>; }" ], "path": "x-pack/plugins/monitoring/server/config.ts", "deprecated": false, @@ -195,4 +195,4 @@ "misc": [], "objects": [] } -} +} \ No newline at end of file diff --git a/api_docs/monitoring.mdx b/api_docs/monitoring.mdx index 4eac90edd643fe..a96ab53a3426f0 100644 --- a/api_docs/monitoring.mdx +++ b/api_docs/monitoring.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'monitoring'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import monitoringObj from './monitoring.json'; +import monitoringObj from './monitoring.devdocs.json'; diff --git a/api_docs/navigation.json b/api_docs/navigation.devdocs.json similarity index 100% rename from api_docs/navigation.json rename to api_docs/navigation.devdocs.json diff --git a/api_docs/navigation.mdx b/api_docs/navigation.mdx index a22a769b4f4a7d..720848946de315 100644 --- a/api_docs/navigation.mdx +++ b/api_docs/navigation.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'navigation'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import navigationObj from './navigation.json'; +import navigationObj from './navigation.devdocs.json'; diff --git a/api_docs/newsfeed.json b/api_docs/newsfeed.devdocs.json similarity index 100% rename from api_docs/newsfeed.json rename to api_docs/newsfeed.devdocs.json diff --git a/api_docs/newsfeed.mdx b/api_docs/newsfeed.mdx index 07838740d1e337..003f17186d897c 100644 --- a/api_docs/newsfeed.mdx +++ b/api_docs/newsfeed.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'newsfeed'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import newsfeedObj from './newsfeed.json'; +import newsfeedObj from './newsfeed.devdocs.json'; diff --git a/api_docs/observability.json b/api_docs/observability.devdocs.json similarity index 91% rename from api_docs/observability.json rename to api_docs/observability.devdocs.json index 308b51bfea0e69..231e72cb1a2bd3 100644 --- a/api_docs/observability.json +++ b/api_docs/observability.devdocs.json @@ -524,9 +524,9 @@ }, " | undefined; }; selectedAlertId?: string | undefined; } & ", "CommonProps", - " & { as?: \"div\" | undefined; } & _EuiFlyoutProps & Omit, HTMLDivElement>, keyof _EuiFlyoutProps> & Omit, HTMLDivElement>, \"key\" | keyof React.HTMLAttributes | \"css\"> & { ref?: React.RefObject | ((instance: HTMLDivElement | null) => void) | null | undefined; }, \"children\" | \"onClick\" | \"onChange\" | \"color\" | \"onKeyDown\" | \"title\" | \"id\" | \"security\" | \"defaultChecked\" | \"defaultValue\" | \"suppressContentEditableWarning\" | \"suppressHydrationWarning\" | \"accessKey\" | \"contentEditable\" | \"contextMenu\" | \"dir\" | \"draggable\" | \"hidden\" | \"lang\" | \"placeholder\" | \"slot\" | \"spellCheck\" | \"tabIndex\" | \"translate\" | \"radioGroup\" | \"about\" | \"datatype\" | \"inlist\" | \"prefix\" | \"property\" | \"resource\" | \"typeof\" | \"vocab\" | \"autoCapitalize\" | \"autoCorrect\" | \"autoSave\" | \"itemProp\" | \"itemScope\" | \"itemType\" | \"itemID\" | \"itemRef\" | \"results\" | \"unselectable\" | \"inputMode\" | \"is\" | \"aria-activedescendant\" | \"aria-atomic\" | \"aria-autocomplete\" | \"aria-busy\" | \"aria-checked\" | \"aria-colcount\" | \"aria-colindex\" | \"aria-colspan\" | \"aria-controls\" | \"aria-current\" | \"aria-describedby\" | \"aria-details\" | \"aria-disabled\" | \"aria-dropeffect\" | \"aria-errormessage\" | \"aria-expanded\" | \"aria-flowto\" | \"aria-grabbed\" | \"aria-haspopup\" | \"aria-hidden\" | \"aria-invalid\" | \"aria-keyshortcuts\" | \"aria-labelledby\" | \"aria-level\" | \"aria-live\" | \"aria-modal\" | \"aria-multiline\" | \"aria-multiselectable\" | \"aria-orientation\" | \"aria-owns\" | \"aria-placeholder\" | \"aria-posinset\" | \"aria-pressed\" | \"aria-readonly\" | \"aria-relevant\" | \"aria-required\" | \"aria-roledescription\" | \"aria-rowcount\" | \"aria-rowindex\" | \"aria-rowspan\" | \"aria-selected\" | \"aria-setsize\" | \"aria-sort\" | \"aria-valuemax\" | \"aria-valuemin\" | \"aria-valuenow\" | \"aria-valuetext\" | \"dangerouslySetInnerHTML\" | \"onCopy\" | \"onCopyCapture\" | \"onCut\" | \"onCutCapture\" | \"onPaste\" | \"onPasteCapture\" | \"onCompositionEnd\" | \"onCompositionEndCapture\" | \"onCompositionStart\" | \"onCompositionStartCapture\" | \"onCompositionUpdate\" | \"onCompositionUpdateCapture\" | \"onFocus\" | \"onFocusCapture\" | \"onBlur\" | \"onBlurCapture\" | \"onChangeCapture\" | \"onBeforeInput\" | \"onBeforeInputCapture\" | \"onInput\" | \"onInputCapture\" | \"onReset\" | \"onResetCapture\" | \"onSubmit\" | \"onSubmitCapture\" | \"onInvalid\" | \"onInvalidCapture\" | \"onLoad\" | \"onLoadCapture\" | \"onError\" | \"onErrorCapture\" | \"onKeyDownCapture\" | \"onKeyPress\" | \"onKeyPressCapture\" | \"onKeyUp\" | \"onKeyUpCapture\" | \"onAbort\" | \"onAbortCapture\" | \"onCanPlay\" | \"onCanPlayCapture\" | \"onCanPlayThrough\" | \"onCanPlayThroughCapture\" | \"onDurationChange\" | \"onDurationChangeCapture\" | \"onEmptied\" | \"onEmptiedCapture\" | \"onEncrypted\" | \"onEncryptedCapture\" | \"onEnded\" | \"onEndedCapture\" | \"onLoadedData\" | \"onLoadedDataCapture\" | \"onLoadedMetadata\" | \"onLoadedMetadataCapture\" | \"onLoadStart\" | \"onLoadStartCapture\" | \"onPause\" | \"onPauseCapture\" | \"onPlay\" | \"onPlayCapture\" | \"onPlaying\" | \"onPlayingCapture\" | \"onProgress\" | \"onProgressCapture\" | \"onRateChange\" | \"onRateChangeCapture\" | \"onSeeked\" | \"onSeekedCapture\" | \"onSeeking\" | \"onSeekingCapture\" | \"onStalled\" | \"onStalledCapture\" | \"onSuspend\" | \"onSuspendCapture\" | \"onTimeUpdate\" | \"onTimeUpdateCapture\" | \"onVolumeChange\" | \"onVolumeChangeCapture\" | \"onWaiting\" | \"onWaitingCapture\" | \"onAuxClick\" | \"onAuxClickCapture\" | \"onClickCapture\" | \"onContextMenu\" | \"onContextMenuCapture\" | \"onDoubleClick\" | \"onDoubleClickCapture\" | \"onDrag\" | \"onDragCapture\" | \"onDragEnd\" | \"onDragEndCapture\" | \"onDragEnter\" | \"onDragEnterCapture\" | \"onDragExit\" | \"onDragExitCapture\" | \"onDragLeave\" | \"onDragLeaveCapture\" | \"onDragOver\" | \"onDragOverCapture\" | \"onDragStart\" | \"onDragStartCapture\" | \"onDrop\" | \"onDropCapture\" | \"onMouseDown\" | \"onMouseDownCapture\" | \"onMouseEnter\" | \"onMouseLeave\" | \"onMouseMove\" | \"onMouseMoveCapture\" | \"onMouseOut\" | \"onMouseOutCapture\" | \"onMouseOver\" | \"onMouseOverCapture\" | \"onMouseUp\" | \"onMouseUpCapture\" | \"onSelect\" | \"onSelectCapture\" | \"onTouchCancel\" | \"onTouchCancelCapture\" | \"onTouchEnd\" | \"onTouchEndCapture\" | \"onTouchMove\" | \"onTouchMoveCapture\" | \"onTouchStart\" | \"onTouchStartCapture\" | \"onPointerDown\" | \"onPointerDownCapture\" | \"onPointerMove\" | \"onPointerMoveCapture\" | \"onPointerUp\" | \"onPointerUpCapture\" | \"onPointerCancel\" | \"onPointerCancelCapture\" | \"onPointerEnter\" | \"onPointerEnterCapture\" | \"onPointerLeave\" | \"onPointerLeaveCapture\" | \"onPointerOver\" | \"onPointerOverCapture\" | \"onPointerOut\" | \"onPointerOutCapture\" | \"onGotPointerCapture\" | \"onGotPointerCaptureCapture\" | \"onLostPointerCapture\" | \"onLostPointerCaptureCapture\" | \"onScroll\" | \"onScrollCapture\" | \"onWheel\" | \"onWheelCapture\" | \"onAnimationStart\" | \"onAnimationStartCapture\" | \"onAnimationEnd\" | \"onAnimationEndCapture\" | \"onAnimationIteration\" | \"onAnimationIterationCapture\" | \"onTransitionEnd\" | \"onTransitionEndCapture\" | \"as\" | keyof ", + " & { as?: \"div\" | undefined; } & _EuiFlyoutProps & Omit, HTMLDivElement>, keyof _EuiFlyoutProps> & Omit, HTMLDivElement>, \"key\" | \"css\" | keyof React.HTMLAttributes> & { ref?: React.RefObject | ((instance: HTMLDivElement | null) => void) | null | undefined; }, \"children\" | \"onClick\" | \"onChange\" | \"color\" | \"onKeyDown\" | \"title\" | \"id\" | \"security\" | \"defaultChecked\" | \"defaultValue\" | \"suppressContentEditableWarning\" | \"suppressHydrationWarning\" | \"accessKey\" | \"contentEditable\" | \"contextMenu\" | \"dir\" | \"draggable\" | \"hidden\" | \"lang\" | \"placeholder\" | \"slot\" | \"spellCheck\" | \"tabIndex\" | \"translate\" | \"radioGroup\" | \"about\" | \"datatype\" | \"inlist\" | \"prefix\" | \"property\" | \"resource\" | \"typeof\" | \"vocab\" | \"autoCapitalize\" | \"autoCorrect\" | \"autoSave\" | \"itemProp\" | \"itemScope\" | \"itemType\" | \"itemID\" | \"itemRef\" | \"results\" | \"unselectable\" | \"inputMode\" | \"is\" | \"aria-activedescendant\" | \"aria-atomic\" | \"aria-autocomplete\" | \"aria-busy\" | \"aria-checked\" | \"aria-colcount\" | \"aria-colindex\" | \"aria-colspan\" | \"aria-controls\" | \"aria-current\" | \"aria-describedby\" | \"aria-details\" | \"aria-disabled\" | \"aria-dropeffect\" | \"aria-errormessage\" | \"aria-expanded\" | \"aria-flowto\" | \"aria-grabbed\" | \"aria-haspopup\" | \"aria-hidden\" | \"aria-invalid\" | \"aria-keyshortcuts\" | \"aria-labelledby\" | \"aria-level\" | \"aria-live\" | \"aria-modal\" | \"aria-multiline\" | \"aria-multiselectable\" | \"aria-orientation\" | \"aria-owns\" | \"aria-placeholder\" | \"aria-posinset\" | \"aria-pressed\" | \"aria-readonly\" | \"aria-relevant\" | \"aria-required\" | \"aria-roledescription\" | \"aria-rowcount\" | \"aria-rowindex\" | \"aria-rowspan\" | \"aria-selected\" | \"aria-setsize\" | \"aria-sort\" | \"aria-valuemax\" | \"aria-valuemin\" | \"aria-valuenow\" | \"aria-valuetext\" | \"dangerouslySetInnerHTML\" | \"onCopy\" | \"onCopyCapture\" | \"onCut\" | \"onCutCapture\" | \"onPaste\" | \"onPasteCapture\" | \"onCompositionEnd\" | \"onCompositionEndCapture\" | \"onCompositionStart\" | \"onCompositionStartCapture\" | \"onCompositionUpdate\" | \"onCompositionUpdateCapture\" | \"onFocus\" | \"onFocusCapture\" | \"onBlur\" | \"onBlurCapture\" | \"onChangeCapture\" | \"onBeforeInput\" | \"onBeforeInputCapture\" | \"onInput\" | \"onInputCapture\" | \"onReset\" | \"onResetCapture\" | \"onSubmit\" | \"onSubmitCapture\" | \"onInvalid\" | \"onInvalidCapture\" | \"onLoad\" | \"onLoadCapture\" | \"onError\" | \"onErrorCapture\" | \"onKeyDownCapture\" | \"onKeyPress\" | \"onKeyPressCapture\" | \"onKeyUp\" | \"onKeyUpCapture\" | \"onAbort\" | \"onAbortCapture\" | \"onCanPlay\" | \"onCanPlayCapture\" | \"onCanPlayThrough\" | \"onCanPlayThroughCapture\" | \"onDurationChange\" | \"onDurationChangeCapture\" | \"onEmptied\" | \"onEmptiedCapture\" | \"onEncrypted\" | \"onEncryptedCapture\" | \"onEnded\" | \"onEndedCapture\" | \"onLoadedData\" | \"onLoadedDataCapture\" | \"onLoadedMetadata\" | \"onLoadedMetadataCapture\" | \"onLoadStart\" | \"onLoadStartCapture\" | \"onPause\" | \"onPauseCapture\" | \"onPlay\" | \"onPlayCapture\" | \"onPlaying\" | \"onPlayingCapture\" | \"onProgress\" | \"onProgressCapture\" | \"onRateChange\" | \"onRateChangeCapture\" | \"onSeeked\" | \"onSeekedCapture\" | \"onSeeking\" | \"onSeekingCapture\" | \"onStalled\" | \"onStalledCapture\" | \"onSuspend\" | \"onSuspendCapture\" | \"onTimeUpdate\" | \"onTimeUpdateCapture\" | \"onVolumeChange\" | \"onVolumeChangeCapture\" | \"onWaiting\" | \"onWaitingCapture\" | \"onAuxClick\" | \"onAuxClickCapture\" | \"onClickCapture\" | \"onContextMenu\" | \"onContextMenuCapture\" | \"onDoubleClick\" | \"onDoubleClickCapture\" | \"onDrag\" | \"onDragCapture\" | \"onDragEnd\" | \"onDragEndCapture\" | \"onDragEnter\" | \"onDragEnterCapture\" | \"onDragExit\" | \"onDragExitCapture\" | \"onDragLeave\" | \"onDragLeaveCapture\" | \"onDragOver\" | \"onDragOverCapture\" | \"onDragStart\" | \"onDragStartCapture\" | \"onDrop\" | \"onDropCapture\" | \"onMouseDown\" | \"onMouseDownCapture\" | \"onMouseEnter\" | \"onMouseLeave\" | \"onMouseMove\" | \"onMouseMoveCapture\" | \"onMouseOut\" | \"onMouseOutCapture\" | \"onMouseOver\" | \"onMouseOverCapture\" | \"onMouseUp\" | \"onMouseUpCapture\" | \"onSelect\" | \"onSelectCapture\" | \"onTouchCancel\" | \"onTouchCancelCapture\" | \"onTouchEnd\" | \"onTouchEndCapture\" | \"onTouchMove\" | \"onTouchMoveCapture\" | \"onTouchStart\" | \"onTouchStartCapture\" | \"onPointerDown\" | \"onPointerDownCapture\" | \"onPointerMove\" | \"onPointerMoveCapture\" | \"onPointerUp\" | \"onPointerUpCapture\" | \"onPointerCancel\" | \"onPointerCancelCapture\" | \"onPointerEnter\" | \"onPointerEnterCapture\" | \"onPointerLeave\" | \"onPointerLeaveCapture\" | \"onPointerOver\" | \"onPointerOverCapture\" | \"onPointerOut\" | \"onPointerOutCapture\" | \"onGotPointerCapture\" | \"onGotPointerCaptureCapture\" | \"onLostPointerCapture\" | \"onLostPointerCaptureCapture\" | \"onScroll\" | \"onScrollCapture\" | \"onWheel\" | \"onWheelCapture\" | \"onAnimationStart\" | \"onAnimationStartCapture\" | \"onAnimationEnd\" | \"onAnimationEndCapture\" | \"onAnimationIteration\" | \"onAnimationIterationCapture\" | \"onTransitionEnd\" | \"onTransitionEndCapture\" | \"as\" | keyof ", "CommonProps", - " | keyof React.ClassAttributes | keyof _EuiFlyoutProps>, \"children\" | \"onClick\" | \"onChange\" | \"color\" | \"onKeyDown\" | \"alert\" | \"key\" | \"title\" | \"id\" | \"security\" | \"defaultChecked\" | \"defaultValue\" | \"suppressContentEditableWarning\" | \"suppressHydrationWarning\" | \"accessKey\" | \"contentEditable\" | \"contextMenu\" | \"dir\" | \"draggable\" | \"hidden\" | \"lang\" | \"placeholder\" | \"slot\" | \"spellCheck\" | \"tabIndex\" | \"translate\" | \"radioGroup\" | \"about\" | \"datatype\" | \"inlist\" | \"prefix\" | \"property\" | \"resource\" | \"typeof\" | \"vocab\" | \"autoCapitalize\" | \"autoCorrect\" | \"autoSave\" | \"itemProp\" | \"itemScope\" | \"itemType\" | \"itemID\" | \"itemRef\" | \"results\" | \"unselectable\" | \"inputMode\" | \"is\" | \"aria-activedescendant\" | \"aria-atomic\" | \"aria-autocomplete\" | \"aria-busy\" | \"aria-checked\" | \"aria-colcount\" | \"aria-colindex\" | \"aria-colspan\" | \"aria-controls\" | \"aria-current\" | \"aria-describedby\" | \"aria-details\" | \"aria-disabled\" | \"aria-dropeffect\" | \"aria-errormessage\" | \"aria-expanded\" | \"aria-flowto\" | \"aria-grabbed\" | \"aria-haspopup\" | \"aria-hidden\" | \"aria-invalid\" | \"aria-keyshortcuts\" | \"aria-labelledby\" | \"aria-level\" | \"aria-live\" | \"aria-modal\" | \"aria-multiline\" | \"aria-multiselectable\" | \"aria-orientation\" | \"aria-owns\" | \"aria-placeholder\" | \"aria-posinset\" | \"aria-pressed\" | \"aria-readonly\" | \"aria-relevant\" | \"aria-required\" | \"aria-roledescription\" | \"aria-rowcount\" | \"aria-rowindex\" | \"aria-rowspan\" | \"aria-selected\" | \"aria-setsize\" | \"aria-sort\" | \"aria-valuemax\" | \"aria-valuemin\" | \"aria-valuenow\" | \"aria-valuetext\" | \"dangerouslySetInnerHTML\" | \"onCopy\" | \"onCopyCapture\" | \"onCut\" | \"onCutCapture\" | \"onPaste\" | \"onPasteCapture\" | \"onCompositionEnd\" | \"onCompositionEndCapture\" | \"onCompositionStart\" | \"onCompositionStartCapture\" | \"onCompositionUpdate\" | \"onCompositionUpdateCapture\" | \"onFocus\" | \"onFocusCapture\" | \"onBlur\" | \"onBlurCapture\" | \"onChangeCapture\" | \"onBeforeInput\" | \"onBeforeInputCapture\" | \"onInput\" | \"onInputCapture\" | \"onReset\" | \"onResetCapture\" | \"onSubmit\" | \"onSubmitCapture\" | \"onInvalid\" | \"onInvalidCapture\" | \"onLoad\" | \"onLoadCapture\" | \"onError\" | \"onErrorCapture\" | \"onKeyDownCapture\" | \"onKeyPress\" | \"onKeyPressCapture\" | \"onKeyUp\" | \"onKeyUpCapture\" | \"onAbort\" | \"onAbortCapture\" | \"onCanPlay\" | \"onCanPlayCapture\" | \"onCanPlayThrough\" | \"onCanPlayThroughCapture\" | \"onDurationChange\" | \"onDurationChangeCapture\" | \"onEmptied\" | \"onEmptiedCapture\" | \"onEncrypted\" | \"onEncryptedCapture\" | \"onEnded\" | \"onEndedCapture\" | \"onLoadedData\" | \"onLoadedDataCapture\" | \"onLoadedMetadata\" | \"onLoadedMetadataCapture\" | \"onLoadStart\" | \"onLoadStartCapture\" | \"onPause\" | \"onPauseCapture\" | \"onPlay\" | \"onPlayCapture\" | \"onPlaying\" | \"onPlayingCapture\" | \"onProgress\" | \"onProgressCapture\" | \"onRateChange\" | \"onRateChangeCapture\" | \"onSeeked\" | \"onSeekedCapture\" | \"onSeeking\" | \"onSeekingCapture\" | \"onStalled\" | \"onStalledCapture\" | \"onSuspend\" | \"onSuspendCapture\" | \"onTimeUpdate\" | \"onTimeUpdateCapture\" | \"onVolumeChange\" | \"onVolumeChangeCapture\" | \"onWaiting\" | \"onWaitingCapture\" | \"onAuxClick\" | \"onAuxClickCapture\" | \"onClickCapture\" | \"onContextMenu\" | \"onContextMenuCapture\" | \"onDoubleClick\" | \"onDoubleClickCapture\" | \"onDrag\" | \"onDragCapture\" | \"onDragEnd\" | \"onDragEndCapture\" | \"onDragEnter\" | \"onDragEnterCapture\" | \"onDragExit\" | \"onDragExitCapture\" | \"onDragLeave\" | \"onDragLeaveCapture\" | \"onDragOver\" | \"onDragOverCapture\" | \"onDragStart\" | \"onDragStartCapture\" | \"onDrop\" | \"onDropCapture\" | \"onMouseDown\" | \"onMouseDownCapture\" | \"onMouseEnter\" | \"onMouseLeave\" | \"onMouseMove\" | \"onMouseMoveCapture\" | \"onMouseOut\" | \"onMouseOutCapture\" | \"onMouseOver\" | \"onMouseOverCapture\" | \"onMouseUp\" | \"onMouseUpCapture\" | \"onSelect\" | \"onSelectCapture\" | \"onTouchCancel\" | \"onTouchCancelCapture\" | \"onTouchEnd\" | \"onTouchEndCapture\" | \"onTouchMove\" | \"onTouchMoveCapture\" | \"onTouchStart\" | \"onTouchStartCapture\" | \"onPointerDown\" | \"onPointerDownCapture\" | \"onPointerMove\" | \"onPointerMoveCapture\" | \"onPointerUp\" | \"onPointerUpCapture\" | \"onPointerCancel\" | \"onPointerCancelCapture\" | \"onPointerEnter\" | \"onPointerEnterCapture\" | \"onPointerLeave\" | \"onPointerLeaveCapture\" | \"onPointerOver\" | \"onPointerOverCapture\" | \"onPointerOut\" | \"onPointerOutCapture\" | \"onGotPointerCapture\" | \"onGotPointerCaptureCapture\" | \"onLostPointerCapture\" | \"onLostPointerCaptureCapture\" | \"onScroll\" | \"onScrollCapture\" | \"onWheel\" | \"onWheelCapture\" | \"onAnimationStart\" | \"onAnimationStartCapture\" | \"onAnimationEnd\" | \"onAnimationEndCapture\" | \"onAnimationIteration\" | \"onAnimationIterationCapture\" | \"onTransitionEnd\" | \"onTransitionEndCapture\" | \"css\" | \"as\" | keyof ", + " | keyof React.ClassAttributes | keyof _EuiFlyoutProps>, \"children\" | \"onClick\" | \"onChange\" | \"color\" | \"onKeyDown\" | \"alert\" | \"key\" | \"title\" | \"id\" | \"css\" | \"security\" | \"defaultChecked\" | \"defaultValue\" | \"suppressContentEditableWarning\" | \"suppressHydrationWarning\" | \"accessKey\" | \"contentEditable\" | \"contextMenu\" | \"dir\" | \"draggable\" | \"hidden\" | \"lang\" | \"placeholder\" | \"slot\" | \"spellCheck\" | \"tabIndex\" | \"translate\" | \"radioGroup\" | \"about\" | \"datatype\" | \"inlist\" | \"prefix\" | \"property\" | \"resource\" | \"typeof\" | \"vocab\" | \"autoCapitalize\" | \"autoCorrect\" | \"autoSave\" | \"itemProp\" | \"itemScope\" | \"itemType\" | \"itemID\" | \"itemRef\" | \"results\" | \"unselectable\" | \"inputMode\" | \"is\" | \"aria-activedescendant\" | \"aria-atomic\" | \"aria-autocomplete\" | \"aria-busy\" | \"aria-checked\" | \"aria-colcount\" | \"aria-colindex\" | \"aria-colspan\" | \"aria-controls\" | \"aria-current\" | \"aria-describedby\" | \"aria-details\" | \"aria-disabled\" | \"aria-dropeffect\" | \"aria-errormessage\" | \"aria-expanded\" | \"aria-flowto\" | \"aria-grabbed\" | \"aria-haspopup\" | \"aria-hidden\" | \"aria-invalid\" | \"aria-keyshortcuts\" | \"aria-labelledby\" | \"aria-level\" | \"aria-live\" | \"aria-modal\" | \"aria-multiline\" | \"aria-multiselectable\" | \"aria-orientation\" | \"aria-owns\" | \"aria-placeholder\" | \"aria-posinset\" | \"aria-pressed\" | \"aria-readonly\" | \"aria-relevant\" | \"aria-required\" | \"aria-roledescription\" | \"aria-rowcount\" | \"aria-rowindex\" | \"aria-rowspan\" | \"aria-selected\" | \"aria-setsize\" | \"aria-sort\" | \"aria-valuemax\" | \"aria-valuemin\" | \"aria-valuenow\" | \"aria-valuetext\" | \"dangerouslySetInnerHTML\" | \"onCopy\" | \"onCopyCapture\" | \"onCut\" | \"onCutCapture\" | \"onPaste\" | \"onPasteCapture\" | \"onCompositionEnd\" | \"onCompositionEndCapture\" | \"onCompositionStart\" | \"onCompositionStartCapture\" | \"onCompositionUpdate\" | \"onCompositionUpdateCapture\" | \"onFocus\" | \"onFocusCapture\" | \"onBlur\" | \"onBlurCapture\" | \"onChangeCapture\" | \"onBeforeInput\" | \"onBeforeInputCapture\" | \"onInput\" | \"onInputCapture\" | \"onReset\" | \"onResetCapture\" | \"onSubmit\" | \"onSubmitCapture\" | \"onInvalid\" | \"onInvalidCapture\" | \"onLoad\" | \"onLoadCapture\" | \"onError\" | \"onErrorCapture\" | \"onKeyDownCapture\" | \"onKeyPress\" | \"onKeyPressCapture\" | \"onKeyUp\" | \"onKeyUpCapture\" | \"onAbort\" | \"onAbortCapture\" | \"onCanPlay\" | \"onCanPlayCapture\" | \"onCanPlayThrough\" | \"onCanPlayThroughCapture\" | \"onDurationChange\" | \"onDurationChangeCapture\" | \"onEmptied\" | \"onEmptiedCapture\" | \"onEncrypted\" | \"onEncryptedCapture\" | \"onEnded\" | \"onEndedCapture\" | \"onLoadedData\" | \"onLoadedDataCapture\" | \"onLoadedMetadata\" | \"onLoadedMetadataCapture\" | \"onLoadStart\" | \"onLoadStartCapture\" | \"onPause\" | \"onPauseCapture\" | \"onPlay\" | \"onPlayCapture\" | \"onPlaying\" | \"onPlayingCapture\" | \"onProgress\" | \"onProgressCapture\" | \"onRateChange\" | \"onRateChangeCapture\" | \"onSeeked\" | \"onSeekedCapture\" | \"onSeeking\" | \"onSeekingCapture\" | \"onStalled\" | \"onStalledCapture\" | \"onSuspend\" | \"onSuspendCapture\" | \"onTimeUpdate\" | \"onTimeUpdateCapture\" | \"onVolumeChange\" | \"onVolumeChangeCapture\" | \"onWaiting\" | \"onWaitingCapture\" | \"onAuxClick\" | \"onAuxClickCapture\" | \"onClickCapture\" | \"onContextMenu\" | \"onContextMenuCapture\" | \"onDoubleClick\" | \"onDoubleClickCapture\" | \"onDrag\" | \"onDragCapture\" | \"onDragEnd\" | \"onDragEndCapture\" | \"onDragEnter\" | \"onDragEnterCapture\" | \"onDragExit\" | \"onDragExitCapture\" | \"onDragLeave\" | \"onDragLeaveCapture\" | \"onDragOver\" | \"onDragOverCapture\" | \"onDragStart\" | \"onDragStartCapture\" | \"onDrop\" | \"onDropCapture\" | \"onMouseDown\" | \"onMouseDownCapture\" | \"onMouseEnter\" | \"onMouseLeave\" | \"onMouseMove\" | \"onMouseMoveCapture\" | \"onMouseOut\" | \"onMouseOutCapture\" | \"onMouseOver\" | \"onMouseOverCapture\" | \"onMouseUp\" | \"onMouseUpCapture\" | \"onSelect\" | \"onSelectCapture\" | \"onTouchCancel\" | \"onTouchCancelCapture\" | \"onTouchEnd\" | \"onTouchEndCapture\" | \"onTouchMove\" | \"onTouchMoveCapture\" | \"onTouchStart\" | \"onTouchStartCapture\" | \"onPointerDown\" | \"onPointerDownCapture\" | \"onPointerMove\" | \"onPointerMoveCapture\" | \"onPointerUp\" | \"onPointerUpCapture\" | \"onPointerCancel\" | \"onPointerCancelCapture\" | \"onPointerEnter\" | \"onPointerEnterCapture\" | \"onPointerLeave\" | \"onPointerLeaveCapture\" | \"onPointerOver\" | \"onPointerOverCapture\" | \"onPointerOut\" | \"onPointerOutCapture\" | \"onGotPointerCapture\" | \"onGotPointerCaptureCapture\" | \"onLostPointerCapture\" | \"onLostPointerCaptureCapture\" | \"onScroll\" | \"onScrollCapture\" | \"onWheel\" | \"onWheelCapture\" | \"onAnimationStart\" | \"onAnimationStartCapture\" | \"onAnimationEnd\" | \"onAnimationEndCapture\" | \"onAnimationIteration\" | \"onAnimationIterationCapture\" | \"onTransitionEnd\" | \"onTransitionEndCapture\" | \"as\" | keyof ", "CommonProps", " | \"alerts\" | keyof _EuiFlyoutProps | \"isInApp\" | \"observabilityRuleTypeRegistry\" | \"selectedAlertId\"> & { ref?: React.RefObject | ((instance: HTMLDivElement | null) => void) | null | undefined; }> & { readonly _result: ({ alert, alerts, isInApp, observabilityRuleTypeRegistry, onClose, selectedAlertId, }: AlertsFlyoutProps) => JSX.Element | null; }" ], @@ -2788,7 +2788,7 @@ "label": "format", "description": [], "signature": [ - "(options: { fields: OutputOf> & Record; formatters: { asDuration: (value: ", + "(options: { fields: OutputOf> & Record; formatters: { asDuration: (value: ", "Maybe", ", { defaultValue, extended }?: FormatterOptions) => string; asPercent: (numerator: ", "Maybe", @@ -2806,7 +2806,7 @@ "label": "options", "description": [], "signature": [ - "{ fields: OutputOf> & Record; formatters: { asDuration: (value: ", + "{ fields: OutputOf> & Record; formatters: { asDuration: (value: ", "Maybe", ", { defaultValue, extended }?: FormatterOptions) => string; asPercent: (numerator: ", "Maybe", @@ -3839,6 +3839,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "observability", + "id": "def-public.enableInfrastructureView", + "type": "string", + "tags": [], + "label": "enableInfrastructureView", + "description": [], + "signature": [ + "\"observability:enableInfrastructureView\"" + ], + "path": "x-pack/plugins/observability/common/ui_settings_keys.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "observability", "id": "def-public.enableInspectEsQueries", @@ -4008,7 +4022,7 @@ "label": "ObservabilityRuleTypeFormatter", "description": [], "signature": [ - "(options: { fields: OutputOf> & Record; formatters: { asDuration: (value: ", + "(options: { fields: OutputOf> & Record; formatters: { asDuration: (value: ", "Maybe", ", { defaultValue, extended }?: FormatterOptions) => string; asPercent: (numerator: ", "Maybe", @@ -4026,7 +4040,7 @@ "label": "options", "description": [], "signature": [ - "{ fields: OutputOf> & Record; formatters: { asDuration: (value: ", + "{ fields: OutputOf> & Record; formatters: { asDuration: (value: ", "Maybe", ", { defaultValue, extended }?: FormatterOptions) => string; asPercent: (numerator: ", "Maybe", @@ -4184,6 +4198,20 @@ } ], "initialIsOpen": false + }, + { + "parentPluginId": "observability", + "id": "def-public.uptimeOverviewLocatorID", + "type": "string", + "tags": [], + "label": "uptimeOverviewLocatorID", + "description": [], + "signature": [ + "\"uptime-overview-locator\"" + ], + "path": "x-pack/plugins/observability/common/index.ts", + "deprecated": false, + "initialIsOpen": false } ], "objects": [], @@ -4832,7 +4860,7 @@ "label": "unwrapEsResponse", "description": [], "signature": [ - "(responsePromise: T) => Promise" + "(responsePromise: T) => Promise[\"body\"]>" ], "path": "x-pack/plugins/observability/common/utils/unwrap_es_response.ts", "deprecated": false, @@ -5007,44 +5035,11 @@ "label": "AbstractObservabilityServerRouteRepository", "description": [], "signature": [ - "ServerRouteRepository", - "<", - { - "pluginId": "observability", - "scope": "server", - "docId": "kibObservabilityPluginApi", - "section": "def-server.ObservabilityRouteHandlerResources", - "text": "ObservabilityRouteHandlerResources" - }, - ", ", - { - "pluginId": "observability", - "scope": "server", - "docId": "kibObservabilityPluginApi", - "section": "def-server.ObservabilityRouteCreateOptions", - "text": "ObservabilityRouteCreateOptions" - }, - ", Record>>" + "RouteParamsRT", + " | undefined, any, any, Record>; }" ], "path": "x-pack/plugins/observability/server/routes/types.ts", "deprecated": false, @@ -5089,7 +5084,7 @@ "label": "ObservabilityAPIReturnType", "description": [], "signature": [ - "TEndpoint extends \"GET /api/observability/rules/alerts/dynamic_index_pattern\" ? { \"GET /api/observability/rules/alerts/dynamic_index_pattern\": ", + "Record<\"GET /api/observability/rules/alerts/dynamic_index_pattern\", ", "ServerRoute", "<\"GET /api/observability/rules/alerts/dynamic_index_pattern\", ", "TypeC", @@ -5117,9 +5112,9 @@ "section": "def-server.ObservabilityRouteCreateOptions", "text": "ObservabilityRouteCreateOptions" }, - ">; }[TEndpoint] extends ", + ">>[TEndpoint] extends ", "ServerRoute", - " ? TReturnType : never : never" + " ? TReturnType : never" ], "path": "x-pack/plugins/observability/server/routes/types.ts", "deprecated": false, @@ -5147,24 +5142,7 @@ "label": "ObservabilityServerRouteRepository", "description": [], "signature": [ - "ServerRouteRepository", - "<", - { - "pluginId": "observability", - "scope": "server", - "docId": "kibObservabilityPluginApi", - "section": "def-server.ObservabilityRouteHandlerResources", - "text": "ObservabilityRouteHandlerResources" - }, - ", ", - { - "pluginId": "observability", - "scope": "server", - "docId": "kibObservabilityPluginApi", - "section": "def-server.ObservabilityRouteCreateOptions", - "text": "ObservabilityRouteCreateOptions" - }, - ", { \"GET /api/observability/rules/alerts/dynamic_index_pattern\": ", + "{ \"GET /api/observability/rules/alerts/dynamic_index_pattern\": ", "ServerRoute", "<\"GET /api/observability/rules/alerts/dynamic_index_pattern\", ", "TypeC", @@ -5192,7 +5170,7 @@ "section": "def-server.ObservabilityRouteCreateOptions", "text": "ObservabilityRouteCreateOptions" }, - ">; }>" + ">; }" ], "path": "x-pack/plugins/observability/server/routes/get_global_observability_server_route_repository.ts", "deprecated": false, @@ -5206,7 +5184,13 @@ "label": "ScopedAnnotationsClient", "description": [], "signature": [ - "any" + "{ readonly index: string; create: (createParams: { annotation: { type: string; }; '@timestamp': string; message: string; } & { tags?: string[] | undefined; service?: { name?: string | undefined; environment?: string | undefined; version?: string | undefined; } | undefined; }) => Promise<{ _id: string; _index: string; _source: ", + "Annotation", + "; }>; getById: (getByIdParams: { id: string; }) => Promise<", + "GetResponse", + ">; delete: (deleteParams: { id: string; }) => Promise<", + "DeleteResponse", + ">; }" ], "path": "x-pack/plugins/observability/server/lib/annotations/bootstrap_annotations.ts", "deprecated": false, @@ -5222,7 +5206,37 @@ "label": "ObservabilityPluginSetup", "description": [], "signature": [ - "{ getScopedAnnotationsClient: (...args: unknown[]) => Promise; }" + "{ getScopedAnnotationsClient: (requestContext: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCorePluginApi", + "section": "def-server.RequestHandlerContext", + "text": "RequestHandlerContext" + }, + " & { licensing: ", + { + "pluginId": "licensing", + "scope": "server", + "docId": "kibLicensingPluginApi", + "section": "def-server.LicensingApiRequestHandlerContext", + "text": "LicensingApiRequestHandlerContext" + }, + "; }, request: ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreHttpPluginApi", + "section": "def-server.KibanaRequest", + "text": "KibanaRequest" + }, + ") => Promise<{ readonly index: string; create: (createParams: { annotation: { type: string; }; '@timestamp': string; message: string; } & { tags?: string[] | undefined; service?: { name?: string | undefined; environment?: string | undefined; version?: string | undefined; } | undefined; }) => Promise<{ _id: string; _index: string; _source: ", + "Annotation", + "; }>; getById: (getByIdParams: { id: string; }) => Promise<", + "GetResponse", + ">; delete: (deleteParams: { id: string; }) => Promise<", + "DeleteResponse", + ">; } | undefined>; }" ], "path": "x-pack/plugins/observability/server/plugin.ts", "deprecated": false, @@ -5232,7 +5246,67 @@ }, "common": { "classes": [], - "functions": [], + "functions": [ + { + "parentPluginId": "observability", + "id": "def-common.formatDurationFromTimeUnitChar", + "type": "Function", + "tags": [], + "label": "formatDurationFromTimeUnitChar", + "description": [], + "signature": [ + "(time: number, unit: ", + { + "pluginId": "observability", + "scope": "common", + "docId": "kibObservabilityPluginApi", + "section": "def-common.TimeUnitChar", + "text": "TimeUnitChar" + }, + ") => string" + ], + "path": "x-pack/plugins/observability/common/utils/formatters/duration.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-common.formatDurationFromTimeUnitChar.$1", + "type": "number", + "tags": [], + "label": "time", + "description": [], + "signature": [ + "number" + ], + "path": "x-pack/plugins/observability/common/utils/formatters/duration.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "observability", + "id": "def-common.formatDurationFromTimeUnitChar.$2", + "type": "CompoundType", + "tags": [], + "label": "unit", + "description": [], + "signature": [ + { + "pluginId": "observability", + "scope": "common", + "docId": "kibObservabilityPluginApi", + "section": "def-common.TimeUnitChar", + "text": "TimeUnitChar" + } + ], + "path": "x-pack/plugins/observability/common/utils/formatters/duration.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + } + ], "interfaces": [], "enums": [], "misc": [ @@ -5378,6 +5452,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "observability", + "id": "def-common.enableInfrastructureView", + "type": "string", + "tags": [], + "label": "enableInfrastructureView", + "description": [], + "signature": [ + "\"observability:enableInfrastructureView\"" + ], + "path": "x-pack/plugins/observability/common/ui_settings_keys.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "observability", "id": "def-common.enableInspectEsQueries", @@ -5433,6 +5521,34 @@ "path": "x-pack/plugins/observability/common/index.ts", "deprecated": false, "initialIsOpen": false + }, + { + "parentPluginId": "observability", + "id": "def-common.TimeUnitChar", + "type": "Type", + "tags": [], + "label": "TimeUnitChar", + "description": [], + "signature": [ + "\"d\" | \"h\" | \"m\" | \"s\"" + ], + "path": "x-pack/plugins/observability/common/utils/formatters/duration.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "observability", + "id": "def-common.uptimeOverviewLocatorID", + "type": "string", + "tags": [], + "label": "uptimeOverviewLocatorID", + "description": [], + "signature": [ + "\"uptime-overview-locator\"" + ], + "path": "x-pack/plugins/observability/common/index.ts", + "deprecated": false, + "initialIsOpen": false } ], "objects": [] diff --git a/api_docs/observability.mdx b/api_docs/observability.mdx index 1549a0cda79798..1b9dc72f0c1568 100644 --- a/api_docs/observability.mdx +++ b/api_docs/observability.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observability'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import observabilityObj from './observability.json'; +import observabilityObj from './observability.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Observability UI](https://github.com/orgs/elastic/teams/observability-u | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 311 | 1 | 308 | 24 | +| 319 | 1 | 316 | 25 | ## Client @@ -59,6 +59,9 @@ Contact [Observability UI](https://github.com/orgs/elastic/teams/observability-u ## Common +### Functions + + ### Consts, variables and types diff --git a/api_docs/osquery.json b/api_docs/osquery.devdocs.json similarity index 100% rename from api_docs/osquery.json rename to api_docs/osquery.devdocs.json diff --git a/api_docs/osquery.mdx b/api_docs/osquery.mdx index 587541a3857496..71a3c3ad64f557 100644 --- a/api_docs/osquery.mdx +++ b/api_docs/osquery.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'osquery'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import osqueryObj from './osquery.json'; +import osqueryObj from './osquery.devdocs.json'; diff --git a/api_docs/plugin_directory.mdx b/api_docs/plugin_directory.mdx index d038fa59ee9a3f..2477db7d36fa79 100644 --- a/api_docs/plugin_directory.mdx +++ b/api_docs/plugin_directory.mdx @@ -12,13 +12,13 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Count | Plugins or Packages with a
public API | Number of teams | |--------------|----------|------------------------| -| 209 | 166 | 31 | +| 210 | 166 | 31 | ### Public API health stats | API Count | Any Count | Missing comments | Missing exports | |--------------|----------|-----------------|--------| -| 23303 | 168 | 17866 | 1714 | +| 23213 | 169 | 17753 | 1709 | ## Plugin Directory @@ -26,40 +26,40 @@ warning: This document is auto-generated and is meant to be viewed inside our ex |--------------|----------------|-----------|--------------|----------|---------------|--------| | | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 125 | 0 | 125 | 11 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | - | 23 | 0 | 19 | 1 | -| | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 277 | 0 | 269 | 18 | -| | [APM UI](https://github.com/orgs/elastic/teams/apm-ui) | The user interface for Elastic APM | 40 | 0 | 40 | 45 | +| | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 283 | 0 | 275 | 19 | +| | [APM UI](https://github.com/orgs/elastic/teams/apm-ui) | The user interface for Elastic APM | 40 | 0 | 40 | 49 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 9 | 0 | 9 | 0 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Considering using bfetch capabilities when fetching large amounts of data. This services supports batching HTTP requests and streaming responses back. | 76 | 1 | 67 | 2 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds Canvas application to Kibana | 9 | 0 | 8 | 3 | | | [ResponseOps](https://github.com/orgs/elastic/teams/response-ops) | The Case management system in Kibana | 83 | 0 | 57 | 23 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | - | 314 | 2 | 281 | 4 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | - | 319 | 2 | 286 | 4 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 22 | 0 | 22 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 13 | 0 | 13 | 1 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | The Controls Plugin contains embeddable components intended to create a simple query interface for end users, and a powerful editing suite that allows dashboard authors to build controls | 118 | 0 | 117 | 3 | -| | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 2333 | 15 | 953 | 32 | +| | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 2353 | 15 | 968 | 32 | | crossClusterReplication | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | | | [Fleet](https://github.com/orgs/elastic/teams/fleet) | Add custom data integrations so they can be displayed in the Fleet integrations app | 96 | 0 | 77 | 1 | -| | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds the Dashboard app to Kibana | 154 | 0 | 141 | 13 | +| | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds the Dashboard app to Kibana | 155 | 0 | 142 | 13 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 51 | 0 | 50 | 0 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | 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. | 3341 | 39 | 2747 | 26 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | 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. | 3364 | 39 | 2767 | 26 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Enhanced data plugin. (See src/plugins/data.) Enhances the main data plugin with a search session management UI. Includes a reusable search session indicator component to use in other applications. Exposes routes for managing search sessions. Includes a service that monitors, updates, and cleans up search session saved objects. | 16 | 0 | 16 | 2 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | This plugin provides the ability to create data views via a modal flyout from any kibana app | 13 | 0 | 7 | 0 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Reusable data view field editor across Kibana | 42 | 0 | 37 | 3 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data view management app | 2 | 0 | 2 | 0 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | 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. | 721 | 3 | 579 | 6 | -| | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | The Data Visualizer tools help you understand your data, by analyzing the metrics and fields in a log file or an existing Elasticsearch index. | 85 | 2 | 81 | 0 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | 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. | 734 | 3 | 592 | 7 | +| | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | The Data Visualizer tools help you understand your data, by analyzing the metrics and fields in a log file or an existing Elasticsearch index. | 23 | 2 | 19 | 1 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 10 | 0 | 8 | 2 | | | [Data Discovery](https://github.com/orgs/elastic/teams/kibana-data-discovery) | This plugin contains the Discover application and the saved search embeddable. | 89 | 0 | 61 | 7 | | | [Data Discovery](https://github.com/orgs/elastic/teams/kibana-data-discovery) | - | 37 | 0 | 35 | 2 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds embeddables service to Kibana | 452 | 0 | 368 | 4 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds embeddables service to Kibana | 467 | 0 | 380 | 4 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Extends embeddable plugin with more functionality | 14 | 0 | 14 | 0 | | | [Platform Security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides encryption and decryption utilities for saved objects containing sensitive information. | 48 | 0 | 44 | 0 | | | [Enterprise Search](https://github.com/orgs/elastic/teams/enterprise-search-frontend) | Adds dashboards for discovering and managing Enterprise Search products. | 2 | 0 | 2 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 110 | 3 | 106 | 3 | -| | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 82 | 0 | 82 | 5 | +| | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 82 | 0 | 82 | 6 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'error' renderer to expressions | 17 | 0 | 15 | 2 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Gauge plugin adds a `gauge` renderer and function to the expression plugin. The renderer will display the `gauge` chart. | 62 | 0 | 62 | 1 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Heatmap plugin adds a `heatmap` renderer and function to the expression plugin. The renderer will display the `heatmap` chart. | 115 | 0 | 111 | 3 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Heatmap plugin adds a `heatmap` renderer and function to the expression plugin. The renderer will display the `heatmap` chart. | 99 | 0 | 95 | 3 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'image' function and renderer to expressions | 26 | 0 | 26 | 0 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'metric' function and renderer to expressions | 32 | 0 | 27 | 0 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression MetricVis plugin adds a `metric` renderer and function to the expression plugin. The renderer will display the `metric` chart. | 40 | 0 | 40 | 0 | @@ -71,8 +71,8 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds expression runtime to Kibana | 2093 | 26 | 1645 | 3 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 222 | 0 | 98 | 2 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Index pattern fields and ambiguous values formatters | 286 | 6 | 247 | 3 | -| | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | The file upload plugin contains components and services for uploading a file, analyzing its data, and then importing the data into an Elasticsearch index. Supported file types include CSV, TSV, newline-delimited JSON and GeoJSON. | 133 | 2 | 133 | 1 | -| | [Fleet](https://github.com/orgs/elastic/teams/fleet) | - | 1268 | 8 | 1152 | 10 | +| | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | The file upload plugin contains components and services for uploading a file, analyzing its data, and then importing the data into an Elasticsearch index. Supported file types include CSV, TSV, newline-delimited JSON and GeoJSON. | 62 | 0 | 62 | 2 | +| | [Fleet](https://github.com/orgs/elastic/teams/fleet) | - | 1284 | 8 | 1168 | 10 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 68 | 0 | 14 | 5 | | globalSearchBar | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 0 | 0 | 0 | 0 | | globalSearchProviders | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 0 | 0 | 0 | 0 | @@ -81,37 +81,37 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 133 | 0 | 97 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 4 | 0 | 4 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 169 | 3 | 164 | 3 | -| | [Logs and Metrics UI](https://github.com/orgs/elastic/teams/logs-metrics-ui) | This plugin visualizes data from Filebeat and Metricbeat, and integrates with other Observability solutions | 25 | 0 | 22 | 3 | +| | [Logs and Metrics UI](https://github.com/orgs/elastic/teams/logs-metrics-ui) | This plugin visualizes data from Filebeat and Metricbeat, and integrates with other Observability solutions | 28 | 0 | 25 | 3 | | ingestPipelines | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | | inputControlVis | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds Input Control visualization to Kibana | 0 | 0 | 0 | 0 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 123 | 2 | 96 | 4 | | | [Platform Security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides UI and APIs for the interactive setup mode. | 28 | 0 | 18 | 0 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 6 | 0 | 6 | 0 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 235 | 0 | 200 | 5 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 236 | 0 | 201 | 5 | | kibanaUsageCollection | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 0 | 0 | 0 | 0 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 613 | 3 | 418 | 9 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Visualization editor allowing to quickly and easily configure compelling visualizations to use on dashboards and canvas workpads. Exposes components to embed visualizations and link into the Lens editor from within other apps in Kibana. | 263 | 0 | 246 | 31 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 615 | 3 | 420 | 9 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Visualization editor allowing to quickly and easily configure compelling visualizations to use on dashboards and canvas workpads. Exposes components to embed visualizations and link into the Lens editor from within other apps in Kibana. | 274 | 0 | 252 | 31 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 8 | 0 | 8 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 3 | 0 | 3 | 0 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 117 | 0 | 42 | 10 | -| | [Security detections response](https://github.com/orgs/elastic/teams/security-detections-response) | - | 173 | 0 | 150 | 42 | +| | [Security detections response](https://github.com/orgs/elastic/teams/security-detections-response) | - | 178 | 0 | 155 | 48 | | logstash | [Logstash](https://github.com/orgs/elastic/teams/logstash) | - | 0 | 0 | 0 | 0 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | - | 41 | 0 | 41 | 6 | -| | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 207 | 0 | 206 | 30 | -| | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 64 | 0 | 64 | 0 | +| | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 215 | 0 | 214 | 27 | +| | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 67 | 0 | 67 | 0 | | | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 4 | 0 | 4 | 1 | -| | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | This plugin provides access to the machine learning features provided by Elastic. | 291 | 8 | 287 | 35 | +| | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | This plugin provides access to the machine learning features provided by Elastic. | 196 | 8 | 192 | 30 | | | [Stack Monitoring](https://github.com/orgs/elastic/teams/stack-monitoring-ui) | - | 10 | 0 | 10 | 2 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 31 | 0 | 31 | 2 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 17 | 0 | 17 | 0 | -| | [Observability UI](https://github.com/orgs/elastic/teams/observability-ui) | - | 311 | 1 | 308 | 24 | +| | [Observability UI](https://github.com/orgs/elastic/teams/observability-ui) | - | 319 | 1 | 316 | 25 | | | [Security asset management](https://github.com/orgs/elastic/teams/security-asset-management) | - | 10 | 0 | 10 | 0 | | painlessLab | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | -| | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | The Presentation Utility Plugin is a set of common, shared components and toolkits for solutions within the Presentation space, (e.g. Dashboards, Canvas). | 223 | 2 | 172 | 10 | +| | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | The Presentation Utility Plugin is a set of common, shared components and toolkits for solutions within the Presentation space, (e.g. Dashboards, Canvas). | 228 | 2 | 177 | 11 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 4 | 0 | 4 | 0 | -| | [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana-reporting-services) | Reporting Services enables applications to feature reports that the user can automate with Watcher and download later. | 27 | 0 | 27 | 0 | +| | [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana-reporting-services) | Reporting Services enables applications to feature reports that the user can automate with Watcher and download later. | 30 | 0 | 30 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 21 | 0 | 21 | 0 | -| | [RAC](https://github.com/orgs/elastic/teams/rac) | - | 175 | 0 | 148 | 7 | +| | [RAC](https://github.com/orgs/elastic/teams/rac) | - | 176 | 0 | 149 | 7 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 24 | 0 | 19 | 2 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 221 | 3 | 177 | 5 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 103 | 0 | 90 | 0 | @@ -120,11 +120,11 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 29 | 0 | 24 | 1 | | | [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana-reporting-services) | Kibana Screenshotting Plugin | 25 | 0 | 11 | 5 | | searchprofiler | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | -| | [Platform Security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides authentication and authorization features, and exposes functionality to understand the capabilities of the currently authenticated user. | 180 | 0 | 104 | 0 | -| | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 45 | 0 | 45 | 19 | +| | [Platform Security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides authentication and authorization features, and exposes functionality to understand the capabilities of the currently authenticated user. | 181 | 0 | 102 | 0 | +| | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 45 | 0 | 45 | 18 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds URL Service and sharing capabilities to Kibana | 132 | 0 | 79 | 10 | | | [Shared UX](https://github.com/orgs/elastic/teams/shared-ux) | A plugin providing components and services for shared user experiences in Kibana. | 10 | 0 | 0 | 1 | -| | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 23 | 1 | 23 | 1 | +| | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 20 | 1 | 20 | 1 | | | [Platform Security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides the Spaces feature, which allows saved objects to be organized into meaningful categories. | 248 | 0 | 61 | 0 | | | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 4 | 0 | 4 | 0 | | | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 70 | 0 | 32 | 7 | @@ -132,7 +132,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 33 | 0 | 33 | 6 | | | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 1 | 0 | 1 | 0 | | | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 11 | 0 | 10 | 0 | -| | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 442 | 1 | 336 | 34 | +| | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 443 | 1 | 337 | 34 | | | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | This plugin provides access to the transforms features provided by Elastic. Transforms enable you to convert existing Elasticsearch indices into summarized indices, which provide opportunities for new insights and analytics. | 4 | 0 | 4 | 1 | | translations | [Kibana Localization](https://github.com/orgs/elastic/teams/kibana-localization) | - | 0 | 0 | 0 | 0 | | | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 246 | 0 | 234 | 18 | @@ -155,8 +155,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Registers the vega visualization. Is the elastic version of vega and vega-lite libraries. | 2 | 0 | 2 | 0 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Contains the vislib visualizations. These are the classical area/line/bar, pie, gauge/goal and heatmap charts. We want to replace them with elastic-charts. | 26 | 0 | 25 | 1 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | 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. | 57 | 0 | 51 | 5 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Contains the shared architecture among all the legacy visualizations, e.g. the visualization type registry or the visualization embeddable. | 307 | 11 | 288 | 16 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Contains the visualize application which includes the listing page and the app frame, which will load the visualization's editor. | 24 | 0 | 23 | 1 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Contains the shared architecture among all the legacy visualizations, e.g. the visualization type registry or the visualization embeddable. | 303 | 11 | 283 | 15 | | watcher | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | ## Package Directory @@ -171,17 +170,17 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [Owner missing] | - | 16 | 0 | 16 | 0 | | | [Owner missing] | - | 11 | 0 | 11 | 0 | | | [Owner missing] | - | 2 | 0 | 2 | 0 | -| | [Owner missing] | - | 66 | 0 | 46 | 1 | +| | [Owner missing] | - | 66 | 0 | 46 | 2 | | | [Owner missing] | - | 125 | 3 | 123 | 17 | | | [Owner missing] | - | 13 | 0 | 7 | 0 | | | [Owner missing] | - | 250 | 3 | 194 | 0 | | | [Owner missing] | - | 1 | 0 | 1 | 0 | | | [Owner missing] | - | 27 | 0 | 14 | 1 | -| | [Owner missing] | - | 210 | 1 | 158 | 11 | +| | [Owner missing] | - | 211 | 1 | 159 | 11 | | | [Owner missing] | - | 20 | 0 | 16 | 0 | | | [Owner missing] | - | 51 | 0 | 48 | 0 | -| | [Owner missing] | - | 30 | 1 | 30 | 1 | -| | [Owner missing] | - | 18 | 0 | 18 | 3 | +| | [Owner missing] | - | 35 | 3 | 35 | 1 | +| | [Owner missing] | - | 20 | 0 | 20 | 2 | | | [Owner missing] | - | 30 | 0 | 5 | 36 | | | [Owner missing] | - | 466 | 1 | 1 | 0 | | | [Owner missing] | - | 55 | 0 | 55 | 2 | @@ -190,7 +189,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [Owner missing] | Just some helpers for kibana plugin devs. | 1 | 0 | 1 | 0 | | | [Owner missing] | - | 63 | 0 | 49 | 5 | | | [Owner missing] | - | 21 | 0 | 10 | 0 | -| | [Owner missing] | - | 71 | 0 | 68 | 0 | +| | [Owner missing] | - | 72 | 0 | 69 | 0 | | | [Owner missing] | Security Solution auto complete | 47 | 1 | 34 | 0 | | | [Owner missing] | security solution elastic search utilities to use across plugins such lists, security_solution, cases, etc... | 57 | 0 | 51 | 1 | | | [Owner missing] | Security Solution utilities for React hooks | 14 | 0 | 6 | 0 | @@ -206,12 +205,13 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [Owner missing] | security solution t-grid packages will allow sharing components between timelines and security_solution plugin until we transfer all functionality to timelines plugin | 120 | 0 | 116 | 0 | | | [Owner missing] | security solution utilities to use across plugins such lists, security_solution, cases, etc... | 6 | 0 | 4 | 0 | | | [Owner missing] | - | 53 | 0 | 50 | 1 | -| | [Owner missing] | - | 30 | 0 | 29 | 1 | +| | [Owner missing] | - | 25 | 0 | 24 | 1 | | | [Owner missing] | - | 96 | 1 | 63 | 2 | | | [Owner missing] | - | 22 | 2 | 21 | 0 | | | [Owner missing] | - | 2 | 0 | 2 | 0 | -| | [Owner missing] | - | 203 | 4 | 180 | 10 | -| | [Owner missing] | - | 78 | 0 | 78 | 0 | +| | [Owner missing] | - | 221 | 5 | 195 | 10 | +| | [Owner missing] | - | 83 | 0 | 83 | 1 | +| | [Owner missing] | - | 7 | 0 | 6 | 0 | | | [Owner missing] | - | 27 | 0 | 10 | 1 | | | [Owner missing] | - | 31 | 1 | 21 | 0 | diff --git a/api_docs/presentation_util.json b/api_docs/presentation_util.devdocs.json similarity index 97% rename from api_docs/presentation_util.json rename to api_docs/presentation_util.devdocs.json index 52640ac208289c..d90f46c200913a 100644 --- a/api_docs/presentation_util.json +++ b/api_docs/presentation_util.devdocs.json @@ -19,7 +19,7 @@ "section": "def-public.PluginServiceProvider", "text": "PluginServiceProvider" }, - "" + "" ], "path": "src/plugins/presentation_util/public/services/create/provider.tsx", "deprecated": false, @@ -82,11 +82,27 @@ "section": "def-public.PluginServiceFactory", "text": "PluginServiceFactory" }, - "" + ">" ], "path": "src/plugins/presentation_util/public/services/create/provider.tsx", "deprecated": false, "isRequired": true + }, + { + "parentPluginId": "presentationUtil", + "id": "def-public.PluginServiceProvider.Unnamed.$2", + "type": "Uncategorized", + "tags": [], + "label": "requiredServices", + "description": [], + "signature": [ + "RequiredServices | undefined" + ], + "path": "src/plugins/presentation_util/public/services/create/provider.tsx", + "deprecated": false, + "isRequired": false } ], "returnComment": [] @@ -118,7 +134,9 @@ "\nStart the service.\n" ], "signature": [ - "(params: StartParameters) => void" + "(params: StartParameters, requiredServices: ", + "PluginServiceRequiredServices", + ") => void" ], "path": "src/plugins/presentation_util/public/services/create/provider.tsx", "deprecated": false, @@ -138,6 +156,21 @@ "path": "src/plugins/presentation_util/public/services/create/provider.tsx", "deprecated": false, "isRequired": true + }, + { + "parentPluginId": "presentationUtil", + "id": "def-public.PluginServiceProvider.start.$2", + "type": "Object", + "tags": [], + "label": "requiredServices", + "description": [], + "signature": [ + "PluginServiceRequiredServices", + "" + ], + "path": "src/plugins/presentation_util/public/services/create/provider.tsx", + "deprecated": false, + "isRequired": true } ], "returnComment": [] @@ -175,6 +208,19 @@ "deprecated": false, "children": [], "returnComment": [] + }, + { + "parentPluginId": "presentationUtil", + "id": "def-public.PluginServiceProvider.requiredServices", + "type": "CompoundType", + "tags": [], + "label": "requiredServices", + "description": [], + "signature": [ + "never[] | NonNullable" + ], + "path": "src/plugins/presentation_util/public/services/create/provider.tsx", + "deprecated": false } ], "initialIsOpen": false @@ -2519,7 +2565,7 @@ "section": "def-public.KibanaPluginServiceParams", "text": "KibanaPluginServiceParams" }, - ") => Service" + ", requiredServices: RequiredServices) => Service" ], "path": "src/plugins/presentation_util/public/services/create/factory.ts", "deprecated": false, @@ -2544,6 +2590,19 @@ ], "path": "src/plugins/presentation_util/public/services/create/factory.ts", "deprecated": false + }, + { + "parentPluginId": "presentationUtil", + "id": "def-public.KibanaPluginServiceFactory.$2", + "type": "Uncategorized", + "tags": [], + "label": "requiredServices", + "description": [], + "signature": [ + "RequiredServices" + ], + "path": "src/plugins/presentation_util/public/services/create/factory.ts", + "deprecated": false } ], "initialIsOpen": false @@ -2558,7 +2617,7 @@ "\nA factory function for creating a service.\n\nThe `Service` generic determines the shape of the API being produced.\nThe `StartParameters` generic determines what parameters are expected to\ncreate the service." ], "signature": [ - "(params: Parameters) => Service" + "(params: Parameters, requiredServices: RequiredServices) => Service" ], "path": "src/plugins/presentation_util/public/services/create/factory.ts", "deprecated": false, @@ -2576,6 +2635,19 @@ ], "path": "src/plugins/presentation_util/public/services/create/factory.ts", "deprecated": false + }, + { + "parentPluginId": "presentationUtil", + "id": "def-public.PluginServiceFactory.$2", + "type": "Uncategorized", + "tags": [], + "label": "requiredServices", + "description": [], + "signature": [ + "RequiredServices" + ], + "path": "src/plugins/presentation_util/public/services/create/factory.ts", + "deprecated": false } ], "initialIsOpen": false @@ -2598,7 +2670,7 @@ "section": "def-public.PluginServiceProvider", "text": "PluginServiceProvider" }, - "; }" + "; }" ], "path": "src/plugins/presentation_util/public/services/create/provider.tsx", "deprecated": false, diff --git a/api_docs/presentation_util.mdx b/api_docs/presentation_util.mdx index 5bb6491ca8ae4f..455c184064d88a 100644 --- a/api_docs/presentation_util.mdx +++ b/api_docs/presentation_util.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'presentationUtil'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import presentationUtilObj from './presentation_util.json'; +import presentationUtilObj from './presentation_util.devdocs.json'; The Presentation Utility Plugin is a set of common, shared components and toolkits for solutions within the Presentation space, (e.g. Dashboards, Canvas). @@ -18,7 +18,7 @@ Contact [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-prese | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 223 | 2 | 172 | 10 | +| 228 | 2 | 177 | 11 | ## Client diff --git a/api_docs/remote_clusters.json b/api_docs/remote_clusters.devdocs.json similarity index 100% rename from api_docs/remote_clusters.json rename to api_docs/remote_clusters.devdocs.json diff --git a/api_docs/remote_clusters.mdx b/api_docs/remote_clusters.mdx index 26fd58a52f38af..764acfed741169 100644 --- a/api_docs/remote_clusters.mdx +++ b/api_docs/remote_clusters.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'remoteClusters'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import remoteClustersObj from './remote_clusters.json'; +import remoteClustersObj from './remote_clusters.devdocs.json'; diff --git a/api_docs/reporting.json b/api_docs/reporting.devdocs.json similarity index 89% rename from api_docs/reporting.json rename to api_docs/reporting.devdocs.json index 7749853e02328a..486bc5dcb32dbc 100644 --- a/api_docs/reporting.json +++ b/api_docs/reporting.devdocs.json @@ -119,7 +119,7 @@ "section": "def-server.PluginInitializerContext", "text": "PluginInitializerContext" }, - "; loadDelay: number | moment.Duration; maxAttempts: number; }>; roles: Readonly<{} & { enabled: boolean; allow: string[]; }>; kibanaServer: Readonly<{ port?: number | undefined; hostname?: string | undefined; protocol?: string | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; csv: Readonly<{} & { scroll: Readonly<{} & { size: number; duration: string; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; enablePanelActionDownload: boolean; maxSizeBytes: number | ", + "; loadDelay: number | moment.Duration; maxAttempts: number; }>; roles: Readonly<{} & { enabled: boolean; allow: string[]; }>; kibanaServer: Readonly<{ hostname?: string | undefined; protocol?: string | undefined; port?: number | undefined; } & {}>; queue: Readonly<{} & { timeout: number | moment.Duration; pollInterval: number | moment.Duration; indexInterval: string; pollEnabled: boolean; pollIntervalErrorMultiplier: number; }>; csv: Readonly<{} & { scroll: Readonly<{} & { size: number; duration: string; }>; checkForFormulas: boolean; escapeFormulaValues: boolean; enablePanelActionDownload: boolean; maxSizeBytes: number | ", "ByteSizeValue", "; useByteOrderMarkEncoding: boolean; }>; poll: Readonly<{} & { jobCompletionNotifier: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; jobsRefresh: Readonly<{} & { interval: number; intervalErrorMultiplier: number; }>; }>; }>>" ], @@ -307,18 +307,18 @@ "children": [ { "parentPluginId": "reporting", - "id": "def-server.ReportingSetupDeps.licensing", + "id": "def-server.ReportingSetupDeps.eventLog", "type": "Object", "tags": [], - "label": "licensing", + "label": "eventLog", "description": [], "signature": [ { - "pluginId": "licensing", + "pluginId": "eventLog", "scope": "server", - "docId": "kibLicensingPluginApi", - "section": "def-server.LicensingPluginSetup", - "text": "LicensingPluginSetup" + "docId": "kibEventLogPluginApi", + "section": "def-server.IEventLogService", + "text": "IEventLogService" } ], "path": "x-pack/plugins/reporting/server/types.ts", @@ -473,6 +473,44 @@ "path": "x-pack/plugins/reporting/server/types.ts", "deprecated": false }, + { + "parentPluginId": "reporting", + "id": "def-server.ReportingStartDeps.fieldFormats", + "type": "Object", + "tags": [], + "label": "fieldFormats", + "description": [], + "signature": [ + { + "pluginId": "fieldFormats", + "scope": "server", + "docId": "kibFieldFormatsPluginApi", + "section": "def-server.FieldFormatsStart", + "text": "FieldFormatsStart" + } + ], + "path": "x-pack/plugins/reporting/server/types.ts", + "deprecated": false + }, + { + "parentPluginId": "reporting", + "id": "def-server.ReportingStartDeps.licensing", + "type": "Object", + "tags": [], + "label": "licensing", + "description": [], + "signature": [ + { + "pluginId": "licensing", + "scope": "server", + "docId": "kibLicensingPluginApi", + "section": "def-server.LicensingPluginStart", + "text": "LicensingPluginStart" + } + ], + "path": "x-pack/plugins/reporting/server/types.ts", + "deprecated": false + }, { "parentPluginId": "reporting", "id": "def-server.ReportingStartDeps.screenshotting", @@ -492,6 +530,26 @@ "path": "x-pack/plugins/reporting/server/types.ts", "deprecated": false }, + { + "parentPluginId": "reporting", + "id": "def-server.ReportingStartDeps.security", + "type": "Object", + "tags": [], + "label": "security", + "description": [], + "signature": [ + { + "pluginId": "security", + "scope": "server", + "docId": "kibSecurityPluginApi", + "section": "def-server.SecurityPluginStart", + "text": "SecurityPluginStart" + }, + " | undefined" + ], + "path": "x-pack/plugins/reporting/server/types.ts", + "deprecated": false + }, { "parentPluginId": "reporting", "id": "def-server.ReportingStartDeps.taskManager", diff --git a/api_docs/reporting.mdx b/api_docs/reporting.mdx index 14f7a476446936..38a10b3ed9dd06 100644 --- a/api_docs/reporting.mdx +++ b/api_docs/reporting.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'reporting'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import reportingObj from './reporting.json'; +import reportingObj from './reporting.devdocs.json'; Reporting Services enables applications to feature reports that the user can automate with Watcher and download later. @@ -18,7 +18,7 @@ Contact [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 27 | 0 | 27 | 0 | +| 30 | 0 | 30 | 0 | ## Client diff --git a/api_docs/rollup.json b/api_docs/rollup.devdocs.json similarity index 100% rename from api_docs/rollup.json rename to api_docs/rollup.devdocs.json diff --git a/api_docs/rollup.mdx b/api_docs/rollup.mdx index 7cb6bf4fcf84f9..2ab83d6b7c70fd 100644 --- a/api_docs/rollup.mdx +++ b/api_docs/rollup.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'rollup'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import rollupObj from './rollup.json'; +import rollupObj from './rollup.devdocs.json'; diff --git a/api_docs/rule_registry.json b/api_docs/rule_registry.devdocs.json similarity index 92% rename from api_docs/rule_registry.json rename to api_docs/rule_registry.devdocs.json index d119e0185c6319..f8c41be72aa9f7 100644 --- a/api_docs/rule_registry.json +++ b/api_docs/rule_registry.devdocs.json @@ -60,7 +60,7 @@ "label": "get", "description": [], "signature": [ - "({ id, index }: GetAlertParams) => Promise> | undefined>" + "({ id, index }: GetAlertParams) => Promise> | undefined>" ], "path": "x-pack/plugins/rule_registry/server/alert_data_client/alerts_client.ts", "deprecated": false, @@ -102,7 +102,7 @@ "UpdateOptions", ") => Promise<{ _version: string | undefined; get?: ", "InlineGet", - ">> | undefined; _id: string; _index: string; _primary_term: number; result: ", + ">> | undefined; _id: string; _index: string; _primary_term: number; result: ", "Result", "; _seq_no: number; _shards: ", "ShardStatistics", @@ -196,7 +196,7 @@ }, " = never>({ query, aggs, _source, track_total_hits: trackTotalHits, size, index, }: { query?: object | undefined; aggs?: object | undefined; index: string | undefined; track_total_hits?: boolean | undefined; _source?: string[] | undefined; size?: number | undefined; }) => Promise<", "SearchResponse", - ">, unknown>>" + ">, unknown>>" ], "path": "x-pack/plugins/rule_registry/server/alert_data_client/alerts_client.ts", "deprecated": false, @@ -2039,7 +2039,7 @@ "SearchRequest", ">(request: TSearchRequest) => Promise<", "ESSearchResponse", - "> & OutputOf>>, TSearchRequest, { restTotalHitsAsInt: false; }>>" + "> & OutputOf>>, TSearchRequest, { restTotalHitsAsInt: false; }>>" ], "path": "x-pack/plugins/rule_registry/server/rule_data_client/types.ts", "deprecated": false, @@ -2560,6 +2560,19 @@ ], "path": "x-pack/plugins/rule_registry/server/utils/persistence_types.ts", "deprecated": false + }, + { + "parentPluginId": "ruleRegistry", + "id": "def-server.PersistenceAlertServiceResult.errors", + "type": "Object", + "tags": [], + "label": "errors", + "description": [], + "signature": [ + "{ [x: string]: { count: number; statusCode: number; }; }" + ], + "path": "x-pack/plugins/rule_registry/server/utils/persistence_types.ts", + "deprecated": false } ], "initialIsOpen": false @@ -3359,7 +3372,7 @@ "label": "parseTechnicalFields", "description": [], "signature": [ - "(input: unknown) => OutputOf>" + "(input: unknown) => OutputOf>" ], "path": "x-pack/plugins/rule_registry/common/parse_technical_fields.ts", "deprecated": false, diff --git a/api_docs/rule_registry.mdx b/api_docs/rule_registry.mdx index 70812ec5ecd919..0915109310ac48 100644 --- a/api_docs/rule_registry.mdx +++ b/api_docs/rule_registry.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ruleRegistry'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import ruleRegistryObj from './rule_registry.json'; +import ruleRegistryObj from './rule_registry.devdocs.json'; @@ -18,7 +18,7 @@ Contact [RAC](https://github.com/orgs/elastic/teams/rac) for questions regarding | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 175 | 0 | 148 | 7 | +| 176 | 0 | 149 | 7 | ## Server diff --git a/api_docs/runtime_fields.json b/api_docs/runtime_fields.devdocs.json similarity index 100% rename from api_docs/runtime_fields.json rename to api_docs/runtime_fields.devdocs.json diff --git a/api_docs/runtime_fields.mdx b/api_docs/runtime_fields.mdx index 6c8f3f3376bca2..b9adc74de4d46c 100644 --- a/api_docs/runtime_fields.mdx +++ b/api_docs/runtime_fields.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'runtimeFields'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import runtimeFieldsObj from './runtime_fields.json'; +import runtimeFieldsObj from './runtime_fields.devdocs.json'; diff --git a/api_docs/saved_objects.json b/api_docs/saved_objects.devdocs.json similarity index 99% rename from api_docs/saved_objects.json rename to api_docs/saved_objects.devdocs.json index 5fc7d039bebf55..dae2d6ffb190a8 100644 --- a/api_docs/saved_objects.json +++ b/api_docs/saved_objects.devdocs.json @@ -3690,6 +3690,14 @@ "path": "src/plugins/saved_objects/public/plugin.ts", "deprecated": true, "references": [ + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_listing.tsx" + }, + { + "plugin": "visualizations", + "path": "src/plugins/visualizations/public/visualize_app/components/visualize_listing.tsx" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/listing/dashboard_listing.tsx" @@ -3717,14 +3725,6 @@ { "plugin": "graph", "path": "x-pack/plugins/graph/public/apps/listing_route.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_listing.tsx" - }, - { - "plugin": "visualize", - "path": "src/plugins/visualize/public/application/components/visualize_listing.tsx" } ] } diff --git a/api_docs/saved_objects.mdx b/api_docs/saved_objects.mdx index 0078bbef46c627..8a206d05b61e76 100644 --- a/api_docs/saved_objects.mdx +++ b/api_docs/saved_objects.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjects'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import savedObjectsObj from './saved_objects.json'; +import savedObjectsObj from './saved_objects.devdocs.json'; diff --git a/api_docs/saved_objects_management.json b/api_docs/saved_objects_management.devdocs.json similarity index 99% rename from api_docs/saved_objects_management.json rename to api_docs/saved_objects_management.devdocs.json index 67e3efdba1b40d..f99cbc11cffced 100644 --- a/api_docs/saved_objects_management.json +++ b/api_docs/saved_objects_management.devdocs.json @@ -324,7 +324,7 @@ "label": "obj", "description": [], "signature": [ - "{ title?: string | undefined; id: string; type: string; meta: { title?: string | undefined; icon?: string | undefined; }; overwrite?: boolean | undefined; }" + "{ type: string; title?: string | undefined; id: string; meta: { title?: string | undefined; icon?: string | undefined; }; overwrite?: boolean | undefined; }" ], "path": "src/plugins/saved_objects_management/public/lib/process_import_response.ts", "deprecated": false @@ -834,7 +834,7 @@ "section": "def-public.SavedObjectsManagementRecord", "text": "SavedObjectsManagementRecord" }, - "; defaultChecked?: boolean | undefined; defaultValue?: string | number | string[] | undefined; suppressContentEditableWarning?: boolean | undefined; suppressHydrationWarning?: boolean | undefined; accessKey?: string | undefined; contentEditable?: Booleanish | \"inherit\" | undefined; contextMenu?: string | undefined; dir?: string | undefined; draggable?: Booleanish | undefined; hidden?: boolean | undefined; lang?: string | undefined; placeholder?: string | undefined; slot?: string | undefined; spellCheck?: Booleanish | undefined; style?: React.CSSProperties | undefined; tabIndex?: number | undefined; translate?: \"yes\" | \"no\" | undefined; radioGroup?: string | undefined; role?: string | undefined; about?: string | undefined; datatype?: string | undefined; inlist?: any; prefix?: string | undefined; property?: string | undefined; resource?: string | undefined; typeof?: string | undefined; vocab?: string | undefined; autoCapitalize?: string | undefined; autoCorrect?: string | undefined; autoSave?: string | undefined; itemProp?: string | undefined; itemScope?: boolean | undefined; itemType?: string | undefined; itemID?: string | undefined; itemRef?: string | undefined; results?: number | undefined; unselectable?: \"on\" | \"off\" | undefined; inputMode?: \"none\" | \"email\" | \"search\" | \"text\" | \"tel\" | \"url\" | \"numeric\" | \"decimal\" | undefined; is?: string | undefined; 'aria-activedescendant'?: string | undefined; 'aria-atomic'?: boolean | \"true\" | \"false\" | undefined; 'aria-autocomplete'?: \"none\" | \"list\" | \"inline\" | \"both\" | undefined; 'aria-busy'?: boolean | \"true\" | \"false\" | undefined; 'aria-checked'?: boolean | \"mixed\" | \"true\" | \"false\" | undefined; 'aria-colcount'?: number | undefined; 'aria-colindex'?: number | undefined; 'aria-colspan'?: number | undefined; 'aria-controls'?: string | undefined; 'aria-current'?: boolean | \"date\" | \"page\" | \"time\" | \"true\" | \"false\" | \"step\" | \"location\" | undefined; 'aria-describedby'?: string | undefined; 'aria-details'?: string | undefined; 'aria-disabled'?: boolean | \"true\" | \"false\" | undefined; 'aria-dropeffect'?: \"none\" | \"copy\" | \"link\" | \"execute\" | \"move\" | \"popup\" | undefined; 'aria-errormessage'?: string | undefined; 'aria-expanded'?: boolean | \"true\" | \"false\" | undefined; 'aria-flowto'?: string | undefined; 'aria-grabbed'?: boolean | \"true\" | \"false\" | undefined; 'aria-haspopup'?: boolean | \"grid\" | \"menu\" | \"true\" | \"false\" | \"listbox\" | \"tree\" | \"dialog\" | undefined; 'aria-hidden'?: boolean | \"true\" | \"false\" | undefined; 'aria-invalid'?: boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\" | undefined; 'aria-keyshortcuts'?: string | undefined; 'aria-label'?: string | undefined; 'aria-labelledby'?: string | undefined; 'aria-level'?: number | undefined; 'aria-live'?: \"off\" | \"assertive\" | \"polite\" | undefined; 'aria-modal'?: boolean | \"true\" | \"false\" | undefined; 'aria-multiline'?: boolean | \"true\" | \"false\" | undefined; 'aria-multiselectable'?: boolean | \"true\" | \"false\" | undefined; 'aria-orientation'?: \"horizontal\" | \"vertical\" | undefined; 'aria-owns'?: string | undefined; 'aria-placeholder'?: string | undefined; 'aria-posinset'?: number | undefined; 'aria-pressed'?: boolean | \"mixed\" | \"true\" | \"false\" | undefined; 'aria-readonly'?: boolean | \"true\" | \"false\" | undefined; 'aria-relevant'?: \"all\" | \"text\" | \"additions\" | \"additions text\" | \"removals\" | undefined; 'aria-required'?: boolean | \"true\" | \"false\" | undefined; 'aria-roledescription'?: string | undefined; 'aria-rowcount'?: number | undefined; 'aria-rowindex'?: number | undefined; 'aria-rowspan'?: number | undefined; 'aria-selected'?: boolean | \"true\" | \"false\" | undefined; 'aria-setsize'?: number | undefined; 'aria-sort'?: \"none\" | \"other\" | \"ascending\" | \"descending\" | undefined; 'aria-valuemax'?: number | undefined; 'aria-valuemin'?: number | undefined; 'aria-valuenow'?: number | undefined; 'aria-valuetext'?: string | undefined; dangerouslySetInnerHTML?: { __html: string; } | undefined; onCopy?: React.ClipboardEventHandler | undefined; onCopyCapture?: React.ClipboardEventHandler | undefined; onCut?: React.ClipboardEventHandler | undefined; onCutCapture?: React.ClipboardEventHandler | undefined; onPaste?: React.ClipboardEventHandler | undefined; onPasteCapture?: React.ClipboardEventHandler | undefined; onCompositionEnd?: React.CompositionEventHandler | undefined; onCompositionEndCapture?: React.CompositionEventHandler | undefined; onCompositionStart?: React.CompositionEventHandler | undefined; onCompositionStartCapture?: React.CompositionEventHandler | undefined; onCompositionUpdate?: React.CompositionEventHandler | undefined; onCompositionUpdateCapture?: React.CompositionEventHandler | undefined; onFocus?: React.FocusEventHandler | undefined; onFocusCapture?: React.FocusEventHandler | undefined; onBlur?: React.FocusEventHandler | undefined; onBlurCapture?: React.FocusEventHandler | undefined; onChangeCapture?: React.FormEventHandler | undefined; onBeforeInput?: React.FormEventHandler | undefined; onBeforeInputCapture?: React.FormEventHandler | undefined; onInput?: React.FormEventHandler | undefined; onInputCapture?: React.FormEventHandler | undefined; onReset?: React.FormEventHandler | undefined; onResetCapture?: React.FormEventHandler | undefined; onSubmit?: React.FormEventHandler | undefined; onSubmitCapture?: React.FormEventHandler | undefined; onInvalid?: React.FormEventHandler | undefined; onInvalidCapture?: React.FormEventHandler | undefined; onLoad?: React.ReactEventHandler | undefined; onLoadCapture?: React.ReactEventHandler | undefined; onError?: React.ReactEventHandler | undefined; onErrorCapture?: React.ReactEventHandler | undefined; onKeyDownCapture?: React.KeyboardEventHandler | undefined; onKeyPress?: React.KeyboardEventHandler | undefined; onKeyPressCapture?: React.KeyboardEventHandler | undefined; onKeyUp?: React.KeyboardEventHandler | undefined; onKeyUpCapture?: React.KeyboardEventHandler | undefined; onAbort?: React.ReactEventHandler | undefined; onAbortCapture?: React.ReactEventHandler | undefined; onCanPlay?: React.ReactEventHandler | undefined; onCanPlayCapture?: React.ReactEventHandler | undefined; onCanPlayThrough?: React.ReactEventHandler | undefined; onCanPlayThroughCapture?: React.ReactEventHandler | undefined; onDurationChange?: React.ReactEventHandler | undefined; onDurationChangeCapture?: React.ReactEventHandler | undefined; onEmptied?: React.ReactEventHandler | undefined; onEmptiedCapture?: React.ReactEventHandler | undefined; onEncrypted?: React.ReactEventHandler | undefined; onEncryptedCapture?: React.ReactEventHandler | undefined; onEnded?: React.ReactEventHandler | undefined; onEndedCapture?: React.ReactEventHandler | undefined; onLoadedData?: React.ReactEventHandler | undefined; onLoadedDataCapture?: React.ReactEventHandler | undefined; onLoadedMetadata?: React.ReactEventHandler | undefined; onLoadedMetadataCapture?: React.ReactEventHandler | undefined; onLoadStart?: React.ReactEventHandler | undefined; onLoadStartCapture?: React.ReactEventHandler | undefined; onPause?: React.ReactEventHandler | undefined; onPauseCapture?: React.ReactEventHandler | undefined; onPlay?: React.ReactEventHandler | undefined; onPlayCapture?: React.ReactEventHandler | undefined; onPlaying?: React.ReactEventHandler | undefined; onPlayingCapture?: React.ReactEventHandler | undefined; onProgress?: React.ReactEventHandler | undefined; onProgressCapture?: React.ReactEventHandler | undefined; onRateChange?: React.ReactEventHandler | undefined; onRateChangeCapture?: React.ReactEventHandler | undefined; onSeeked?: React.ReactEventHandler | undefined; onSeekedCapture?: React.ReactEventHandler | undefined; onSeeking?: React.ReactEventHandler | undefined; onSeekingCapture?: React.ReactEventHandler | undefined; onStalled?: React.ReactEventHandler | undefined; onStalledCapture?: React.ReactEventHandler | undefined; onSuspend?: React.ReactEventHandler | undefined; onSuspendCapture?: React.ReactEventHandler | undefined; onTimeUpdate?: React.ReactEventHandler | undefined; onTimeUpdateCapture?: React.ReactEventHandler | undefined; onVolumeChange?: React.ReactEventHandler | undefined; onVolumeChangeCapture?: React.ReactEventHandler | undefined; onWaiting?: React.ReactEventHandler | undefined; onWaitingCapture?: React.ReactEventHandler | undefined; onAuxClick?: React.MouseEventHandler | undefined; onAuxClickCapture?: React.MouseEventHandler | undefined; onClickCapture?: React.MouseEventHandler | undefined; onContextMenu?: React.MouseEventHandler | undefined; onContextMenuCapture?: React.MouseEventHandler | undefined; onDoubleClick?: React.MouseEventHandler | undefined; onDoubleClickCapture?: React.MouseEventHandler | undefined; onDrag?: React.DragEventHandler | undefined; onDragCapture?: React.DragEventHandler | undefined; onDragEnd?: React.DragEventHandler | undefined; onDragEndCapture?: React.DragEventHandler | undefined; onDragEnter?: React.DragEventHandler | undefined; onDragEnterCapture?: React.DragEventHandler | undefined; onDragExit?: React.DragEventHandler | undefined; onDragExitCapture?: React.DragEventHandler | undefined; onDragLeave?: React.DragEventHandler | undefined; onDragLeaveCapture?: React.DragEventHandler | undefined; onDragOver?: React.DragEventHandler | undefined; onDragOverCapture?: React.DragEventHandler | undefined; onDragStart?: React.DragEventHandler | undefined; onDragStartCapture?: React.DragEventHandler | undefined; onDrop?: React.DragEventHandler | undefined; onDropCapture?: React.DragEventHandler | undefined; onMouseDown?: React.MouseEventHandler | undefined; onMouseDownCapture?: React.MouseEventHandler | undefined; onMouseEnter?: React.MouseEventHandler | undefined; onMouseLeave?: React.MouseEventHandler | undefined; onMouseMove?: React.MouseEventHandler | undefined; onMouseMoveCapture?: React.MouseEventHandler | undefined; onMouseOut?: React.MouseEventHandler | undefined; onMouseOutCapture?: React.MouseEventHandler | undefined; onMouseOver?: React.MouseEventHandler | undefined; onMouseOverCapture?: React.MouseEventHandler | undefined; onMouseUp?: React.MouseEventHandler | undefined; onMouseUpCapture?: React.MouseEventHandler | undefined; onSelect?: React.ReactEventHandler | undefined; onSelectCapture?: React.ReactEventHandler | undefined; onTouchCancel?: React.TouchEventHandler | undefined; onTouchCancelCapture?: React.TouchEventHandler | undefined; onTouchEnd?: React.TouchEventHandler | undefined; onTouchEndCapture?: React.TouchEventHandler | undefined; onTouchMove?: React.TouchEventHandler | undefined; onTouchMoveCapture?: React.TouchEventHandler | undefined; onTouchStart?: React.TouchEventHandler | undefined; onTouchStartCapture?: React.TouchEventHandler | undefined; onPointerDown?: React.PointerEventHandler | undefined; onPointerDownCapture?: React.PointerEventHandler | undefined; onPointerMove?: React.PointerEventHandler | undefined; onPointerMoveCapture?: React.PointerEventHandler | undefined; onPointerUp?: React.PointerEventHandler | undefined; onPointerUpCapture?: React.PointerEventHandler | undefined; onPointerCancel?: React.PointerEventHandler | undefined; onPointerCancelCapture?: React.PointerEventHandler | undefined; onPointerEnter?: React.PointerEventHandler | undefined; onPointerEnterCapture?: React.PointerEventHandler | undefined; onPointerLeave?: React.PointerEventHandler | undefined; onPointerLeaveCapture?: React.PointerEventHandler | undefined; onPointerOver?: React.PointerEventHandler | undefined; onPointerOverCapture?: React.PointerEventHandler | undefined; onPointerOut?: React.PointerEventHandler | undefined; onPointerOutCapture?: React.PointerEventHandler | undefined; onGotPointerCapture?: React.PointerEventHandler | undefined; onGotPointerCaptureCapture?: React.PointerEventHandler | undefined; onLostPointerCapture?: React.PointerEventHandler | undefined; onLostPointerCaptureCapture?: React.PointerEventHandler | undefined; onScroll?: React.UIEventHandler | undefined; onScrollCapture?: React.UIEventHandler | undefined; onWheel?: React.WheelEventHandler | undefined; onWheelCapture?: React.WheelEventHandler | undefined; onAnimationStart?: React.AnimationEventHandler | undefined; onAnimationStartCapture?: React.AnimationEventHandler | undefined; onAnimationEnd?: React.AnimationEventHandler | undefined; onAnimationEndCapture?: React.AnimationEventHandler | undefined; onAnimationIteration?: React.AnimationEventHandler | undefined; onAnimationIterationCapture?: React.AnimationEventHandler | undefined; onTransitionEnd?: React.TransitionEventHandler | undefined; onTransitionEndCapture?: React.TransitionEventHandler | undefined; 'data-test-subj'?: string | undefined; width?: string | undefined; readOnly?: boolean | undefined; render?: ((value: any, record: ", + "; defaultChecked?: boolean | undefined; defaultValue?: string | number | string[] | undefined; suppressContentEditableWarning?: boolean | undefined; suppressHydrationWarning?: boolean | undefined; accessKey?: string | undefined; contentEditable?: Booleanish | \"inherit\" | undefined; contextMenu?: string | undefined; dir?: string | undefined; draggable?: Booleanish | undefined; hidden?: boolean | undefined; lang?: string | undefined; placeholder?: string | undefined; slot?: string | undefined; spellCheck?: Booleanish | undefined; style?: React.CSSProperties | undefined; tabIndex?: number | undefined; translate?: \"yes\" | \"no\" | undefined; radioGroup?: string | undefined; role?: string | undefined; about?: string | undefined; datatype?: string | undefined; inlist?: any; prefix?: string | undefined; property?: string | undefined; resource?: string | undefined; typeof?: string | undefined; vocab?: string | undefined; autoCapitalize?: string | undefined; autoCorrect?: string | undefined; autoSave?: string | undefined; itemProp?: string | undefined; itemScope?: boolean | undefined; itemType?: string | undefined; itemID?: string | undefined; itemRef?: string | undefined; results?: number | undefined; unselectable?: \"on\" | \"off\" | undefined; inputMode?: \"none\" | \"email\" | \"search\" | \"text\" | \"tel\" | \"url\" | \"numeric\" | \"decimal\" | undefined; is?: string | undefined; 'aria-activedescendant'?: string | undefined; 'aria-atomic'?: boolean | \"true\" | \"false\" | undefined; 'aria-autocomplete'?: \"none\" | \"list\" | \"inline\" | \"both\" | undefined; 'aria-busy'?: boolean | \"true\" | \"false\" | undefined; 'aria-checked'?: boolean | \"mixed\" | \"true\" | \"false\" | undefined; 'aria-colcount'?: number | undefined; 'aria-colindex'?: number | undefined; 'aria-colspan'?: number | undefined; 'aria-controls'?: string | undefined; 'aria-current'?: boolean | \"date\" | \"page\" | \"time\" | \"true\" | \"false\" | \"step\" | \"location\" | undefined; 'aria-describedby'?: string | undefined; 'aria-details'?: string | undefined; 'aria-disabled'?: boolean | \"true\" | \"false\" | undefined; 'aria-dropeffect'?: \"none\" | \"copy\" | \"link\" | \"execute\" | \"move\" | \"popup\" | undefined; 'aria-errormessage'?: string | undefined; 'aria-expanded'?: boolean | \"true\" | \"false\" | undefined; 'aria-flowto'?: string | undefined; 'aria-grabbed'?: boolean | \"true\" | \"false\" | undefined; 'aria-haspopup'?: boolean | \"grid\" | \"menu\" | \"true\" | \"false\" | \"listbox\" | \"tree\" | \"dialog\" | undefined; 'aria-hidden'?: boolean | \"true\" | \"false\" | undefined; 'aria-invalid'?: boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\" | undefined; 'aria-keyshortcuts'?: string | undefined; 'aria-label'?: string | undefined; 'aria-labelledby'?: string | undefined; 'aria-level'?: number | undefined; 'aria-live'?: \"off\" | \"assertive\" | \"polite\" | undefined; 'aria-modal'?: boolean | \"true\" | \"false\" | undefined; 'aria-multiline'?: boolean | \"true\" | \"false\" | undefined; 'aria-multiselectable'?: boolean | \"true\" | \"false\" | undefined; 'aria-orientation'?: \"horizontal\" | \"vertical\" | undefined; 'aria-owns'?: string | undefined; 'aria-placeholder'?: string | undefined; 'aria-posinset'?: number | undefined; 'aria-pressed'?: boolean | \"mixed\" | \"true\" | \"false\" | undefined; 'aria-readonly'?: boolean | \"true\" | \"false\" | undefined; 'aria-relevant'?: \"all\" | \"text\" | \"additions\" | \"additions text\" | \"removals\" | undefined; 'aria-required'?: boolean | \"true\" | \"false\" | undefined; 'aria-roledescription'?: string | undefined; 'aria-rowcount'?: number | undefined; 'aria-rowindex'?: number | undefined; 'aria-rowspan'?: number | undefined; 'aria-selected'?: boolean | \"true\" | \"false\" | undefined; 'aria-setsize'?: number | undefined; 'aria-sort'?: \"none\" | \"other\" | \"ascending\" | \"descending\" | undefined; 'aria-valuemax'?: number | undefined; 'aria-valuemin'?: number | undefined; 'aria-valuenow'?: number | undefined; 'aria-valuetext'?: string | undefined; dangerouslySetInnerHTML?: { __html: string; } | undefined; onCopy?: React.ClipboardEventHandler | undefined; onCopyCapture?: React.ClipboardEventHandler | undefined; onCut?: React.ClipboardEventHandler | undefined; onCutCapture?: React.ClipboardEventHandler | undefined; onPaste?: React.ClipboardEventHandler | undefined; onPasteCapture?: React.ClipboardEventHandler | undefined; onCompositionEnd?: React.CompositionEventHandler | undefined; onCompositionEndCapture?: React.CompositionEventHandler | undefined; onCompositionStart?: React.CompositionEventHandler | undefined; onCompositionStartCapture?: React.CompositionEventHandler | undefined; onCompositionUpdate?: React.CompositionEventHandler | undefined; onCompositionUpdateCapture?: React.CompositionEventHandler | undefined; onFocus?: React.FocusEventHandler | undefined; onFocusCapture?: React.FocusEventHandler | undefined; onBlur?: React.FocusEventHandler | undefined; onBlurCapture?: React.FocusEventHandler | undefined; onChangeCapture?: React.FormEventHandler | undefined; onBeforeInput?: React.FormEventHandler | undefined; onBeforeInputCapture?: React.FormEventHandler | undefined; onInput?: React.FormEventHandler | undefined; onInputCapture?: React.FormEventHandler | undefined; onReset?: React.FormEventHandler | undefined; onResetCapture?: React.FormEventHandler | undefined; onSubmit?: React.FormEventHandler | undefined; onSubmitCapture?: React.FormEventHandler | undefined; onInvalid?: React.FormEventHandler | undefined; onInvalidCapture?: React.FormEventHandler | undefined; onLoad?: React.ReactEventHandler | undefined; onLoadCapture?: React.ReactEventHandler | undefined; onError?: React.ReactEventHandler | undefined; onErrorCapture?: React.ReactEventHandler | undefined; onKeyDownCapture?: React.KeyboardEventHandler | undefined; onKeyPress?: React.KeyboardEventHandler | undefined; onKeyPressCapture?: React.KeyboardEventHandler | undefined; onKeyUp?: React.KeyboardEventHandler | undefined; onKeyUpCapture?: React.KeyboardEventHandler | undefined; onAbort?: React.ReactEventHandler | undefined; onAbortCapture?: React.ReactEventHandler | undefined; onCanPlay?: React.ReactEventHandler | undefined; onCanPlayCapture?: React.ReactEventHandler | undefined; onCanPlayThrough?: React.ReactEventHandler | undefined; onCanPlayThroughCapture?: React.ReactEventHandler | undefined; onDurationChange?: React.ReactEventHandler | undefined; onDurationChangeCapture?: React.ReactEventHandler | undefined; onEmptied?: React.ReactEventHandler | undefined; onEmptiedCapture?: React.ReactEventHandler | undefined; onEncrypted?: React.ReactEventHandler | undefined; onEncryptedCapture?: React.ReactEventHandler | undefined; onEnded?: React.ReactEventHandler | undefined; onEndedCapture?: React.ReactEventHandler | undefined; onLoadedData?: React.ReactEventHandler | undefined; onLoadedDataCapture?: React.ReactEventHandler | undefined; onLoadedMetadata?: React.ReactEventHandler | undefined; onLoadedMetadataCapture?: React.ReactEventHandler | undefined; onLoadStart?: React.ReactEventHandler | undefined; onLoadStartCapture?: React.ReactEventHandler | undefined; onPause?: React.ReactEventHandler | undefined; onPauseCapture?: React.ReactEventHandler | undefined; onPlay?: React.ReactEventHandler | undefined; onPlayCapture?: React.ReactEventHandler | undefined; onPlaying?: React.ReactEventHandler | undefined; onPlayingCapture?: React.ReactEventHandler | undefined; onProgress?: React.ReactEventHandler | undefined; onProgressCapture?: React.ReactEventHandler | undefined; onRateChange?: React.ReactEventHandler | undefined; onRateChangeCapture?: React.ReactEventHandler | undefined; onSeeked?: React.ReactEventHandler | undefined; onSeekedCapture?: React.ReactEventHandler | undefined; onSeeking?: React.ReactEventHandler | undefined; onSeekingCapture?: React.ReactEventHandler | undefined; onStalled?: React.ReactEventHandler | undefined; onStalledCapture?: React.ReactEventHandler | undefined; onSuspend?: React.ReactEventHandler | undefined; onSuspendCapture?: React.ReactEventHandler | undefined; onTimeUpdate?: React.ReactEventHandler | undefined; onTimeUpdateCapture?: React.ReactEventHandler | undefined; onVolumeChange?: React.ReactEventHandler | undefined; onVolumeChangeCapture?: React.ReactEventHandler | undefined; onWaiting?: React.ReactEventHandler | undefined; onWaitingCapture?: React.ReactEventHandler | undefined; onAuxClick?: React.MouseEventHandler | undefined; onAuxClickCapture?: React.MouseEventHandler | undefined; onClickCapture?: React.MouseEventHandler | undefined; onContextMenu?: React.MouseEventHandler | undefined; onContextMenuCapture?: React.MouseEventHandler | undefined; onDoubleClick?: React.MouseEventHandler | undefined; onDoubleClickCapture?: React.MouseEventHandler | undefined; onDrag?: React.DragEventHandler | undefined; onDragCapture?: React.DragEventHandler | undefined; onDragEnd?: React.DragEventHandler | undefined; onDragEndCapture?: React.DragEventHandler | undefined; onDragEnter?: React.DragEventHandler | undefined; onDragEnterCapture?: React.DragEventHandler | undefined; onDragExit?: React.DragEventHandler | undefined; onDragExitCapture?: React.DragEventHandler | undefined; onDragLeave?: React.DragEventHandler | undefined; onDragLeaveCapture?: React.DragEventHandler | undefined; onDragOver?: React.DragEventHandler | undefined; onDragOverCapture?: React.DragEventHandler | undefined; onDragStart?: React.DragEventHandler | undefined; onDragStartCapture?: React.DragEventHandler | undefined; onDrop?: React.DragEventHandler | undefined; onDropCapture?: React.DragEventHandler | undefined; onMouseDown?: React.MouseEventHandler | undefined; onMouseDownCapture?: React.MouseEventHandler | undefined; onMouseEnter?: React.MouseEventHandler | undefined; onMouseLeave?: React.MouseEventHandler | undefined; onMouseMove?: React.MouseEventHandler | undefined; onMouseMoveCapture?: React.MouseEventHandler | undefined; onMouseOut?: React.MouseEventHandler | undefined; onMouseOutCapture?: React.MouseEventHandler | undefined; onMouseOver?: React.MouseEventHandler | undefined; onMouseOverCapture?: React.MouseEventHandler | undefined; onMouseUp?: React.MouseEventHandler | undefined; onMouseUpCapture?: React.MouseEventHandler | undefined; onSelect?: React.ReactEventHandler | undefined; onSelectCapture?: React.ReactEventHandler | undefined; onTouchCancel?: React.TouchEventHandler | undefined; onTouchCancelCapture?: React.TouchEventHandler | undefined; onTouchEnd?: React.TouchEventHandler | undefined; onTouchEndCapture?: React.TouchEventHandler | undefined; onTouchMove?: React.TouchEventHandler | undefined; onTouchMoveCapture?: React.TouchEventHandler | undefined; onTouchStart?: React.TouchEventHandler | undefined; onTouchStartCapture?: React.TouchEventHandler | undefined; onPointerDown?: React.PointerEventHandler | undefined; onPointerDownCapture?: React.PointerEventHandler | undefined; onPointerMove?: React.PointerEventHandler | undefined; onPointerMoveCapture?: React.PointerEventHandler | undefined; onPointerUp?: React.PointerEventHandler | undefined; onPointerUpCapture?: React.PointerEventHandler | undefined; onPointerCancel?: React.PointerEventHandler | undefined; onPointerCancelCapture?: React.PointerEventHandler | undefined; onPointerEnter?: React.PointerEventHandler | undefined; onPointerEnterCapture?: React.PointerEventHandler | undefined; onPointerLeave?: React.PointerEventHandler | undefined; onPointerLeaveCapture?: React.PointerEventHandler | undefined; onPointerOver?: React.PointerEventHandler | undefined; onPointerOverCapture?: React.PointerEventHandler | undefined; onPointerOut?: React.PointerEventHandler | undefined; onPointerOutCapture?: React.PointerEventHandler | undefined; onGotPointerCapture?: React.PointerEventHandler | undefined; onGotPointerCaptureCapture?: React.PointerEventHandler | undefined; onLostPointerCapture?: React.PointerEventHandler | undefined; onLostPointerCaptureCapture?: React.PointerEventHandler | undefined; onScroll?: React.UIEventHandler | undefined; onScrollCapture?: React.UIEventHandler | undefined; onWheel?: React.WheelEventHandler | undefined; onWheelCapture?: React.WheelEventHandler | undefined; onAnimationStart?: React.AnimationEventHandler | undefined; onAnimationStartCapture?: React.AnimationEventHandler | undefined; onAnimationEnd?: React.AnimationEventHandler | undefined; onAnimationEndCapture?: React.AnimationEventHandler | undefined; onAnimationIteration?: React.AnimationEventHandler | undefined; onAnimationIterationCapture?: React.AnimationEventHandler | undefined; onTransitionEnd?: React.TransitionEventHandler | undefined; onTransitionEndCapture?: React.TransitionEventHandler | undefined; 'data-test-subj'?: string | undefined; width?: string | undefined; render?: ((value: any, record: ", { "pluginId": "savedObjectsManagement", "scope": "public", @@ -842,7 +842,7 @@ "section": "def-public.SavedObjectsManagementRecord", "text": "SavedObjectsManagementRecord" }, - ") => React.ReactNode) | undefined; align?: ", + ") => React.ReactNode) | undefined; readOnly?: boolean | undefined; align?: ", "HorizontalAlignment", " | undefined; abbr?: string | undefined; footer?: string | React.ReactElement> | ((props: ", "EuiTableFooterProps", diff --git a/api_docs/saved_objects_management.mdx b/api_docs/saved_objects_management.mdx index c9905f7b00597f..5d0479487ea312 100644 --- a/api_docs/saved_objects_management.mdx +++ b/api_docs/saved_objects_management.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsManagement'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import savedObjectsManagementObj from './saved_objects_management.json'; +import savedObjectsManagementObj from './saved_objects_management.devdocs.json'; diff --git a/api_docs/saved_objects_tagging.json b/api_docs/saved_objects_tagging.devdocs.json similarity index 100% rename from api_docs/saved_objects_tagging.json rename to api_docs/saved_objects_tagging.devdocs.json diff --git a/api_docs/saved_objects_tagging.mdx b/api_docs/saved_objects_tagging.mdx index 0b7bcdbab5b209..de7333a2f140e6 100644 --- a/api_docs/saved_objects_tagging.mdx +++ b/api_docs/saved_objects_tagging.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTagging'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import savedObjectsTaggingObj from './saved_objects_tagging.json'; +import savedObjectsTaggingObj from './saved_objects_tagging.devdocs.json'; diff --git a/api_docs/saved_objects_tagging_oss.json b/api_docs/saved_objects_tagging_oss.devdocs.json similarity index 100% rename from api_docs/saved_objects_tagging_oss.json rename to api_docs/saved_objects_tagging_oss.devdocs.json diff --git a/api_docs/saved_objects_tagging_oss.mdx b/api_docs/saved_objects_tagging_oss.mdx index 960f72582725ad..16b6a646e0cd89 100644 --- a/api_docs/saved_objects_tagging_oss.mdx +++ b/api_docs/saved_objects_tagging_oss.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTaggingOss'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import savedObjectsTaggingOssObj from './saved_objects_tagging_oss.json'; +import savedObjectsTaggingOssObj from './saved_objects_tagging_oss.devdocs.json'; diff --git a/api_docs/screenshot_mode.json b/api_docs/screenshot_mode.devdocs.json similarity index 100% rename from api_docs/screenshot_mode.json rename to api_docs/screenshot_mode.devdocs.json diff --git a/api_docs/screenshot_mode.mdx b/api_docs/screenshot_mode.mdx index 329c0738d798ce..0a3b46a31d9aef 100644 --- a/api_docs/screenshot_mode.mdx +++ b/api_docs/screenshot_mode.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotMode'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import screenshotModeObj from './screenshot_mode.json'; +import screenshotModeObj from './screenshot_mode.devdocs.json'; diff --git a/api_docs/screenshotting.json b/api_docs/screenshotting.devdocs.json similarity index 100% rename from api_docs/screenshotting.json rename to api_docs/screenshotting.devdocs.json diff --git a/api_docs/screenshotting.mdx b/api_docs/screenshotting.mdx index 429d81eb1b8651..5a0d3abdd9ab05 100644 --- a/api_docs/screenshotting.mdx +++ b/api_docs/screenshotting.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotting'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import screenshottingObj from './screenshotting.json'; +import screenshottingObj from './screenshotting.devdocs.json'; Kibana Screenshotting Plugin diff --git a/api_docs/security.json b/api_docs/security.devdocs.json similarity index 98% rename from api_docs/security.json rename to api_docs/security.devdocs.json index 6c016e2f94f15a..537377bc339e77 100644 --- a/api_docs/security.json +++ b/api_docs/security.devdocs.json @@ -941,7 +941,9 @@ "type": "Function", "tags": [], "label": "log", - "description": [], + "description": [ + "\nLogs an {@link AuditEvent} and automatically adds meta data about the\ncurrent user, space and correlation id.\n\nGuidelines around what events should be logged and how they should be\nstructured can be found in: `/x-pack/plugins/security/README.md`\n" + ], "signature": [ "(event: ", { @@ -999,7 +1001,9 @@ "type": "Function", "tags": [], "label": "asScoped", - "description": [], + "description": [ + "\nCreates an {@link AuditLogger} scoped to the current request.\n\nThis audit logger logs events with all required user and session info and should be used for\nall user-initiated actions.\n" + ], "signature": [ "(request: ", { @@ -1044,6 +1048,27 @@ } ], "returnComment": [] + }, + { + "parentPluginId": "security", + "id": "def-server.AuditServiceSetup.withoutRequest", + "type": "Object", + "tags": [], + "label": "withoutRequest", + "description": [ + "\n{@link AuditLogger} for background tasks only.\n\nThis audit logger logs events without any user or session info and should never be used to log\nuser-initiated actions.\n" + ], + "signature": [ + { + "pluginId": "security", + "scope": "server", + "docId": "kibSecurityPluginApi", + "section": "def-server.AuditLogger", + "text": "AuditLogger" + } + ], + "path": "x-pack/plugins/security/server/audit/audit_service.ts", + "deprecated": false } ], "initialIsOpen": false @@ -1733,10 +1758,6 @@ "plugin": "ml", "path": "x-pack/plugins/ml/server/routes/annotations.ts" }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/routes/lib/get_user.ts" - }, { "plugin": "dataEnhanced", "path": "x-pack/plugins/data_enhanced/server/search/session/session_service.ts" @@ -1749,6 +1770,10 @@ "plugin": "securitySolution", "path": "x-pack/plugins/security_solution/server/request_context_factory.ts" }, + { + "plugin": "securitySolution", + "path": "x-pack/plugins/security_solution/server/request_context_factory.ts" + }, { "plugin": "securitySolution", "path": "x-pack/plugins/security_solution/server/lib/detection_engine/routes/signals/create_signals_migration_route.ts" diff --git a/api_docs/security.mdx b/api_docs/security.mdx index 99e66fbe4914bc..02f4a118e21bdf 100644 --- a/api_docs/security.mdx +++ b/api_docs/security.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'security'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import securityObj from './security.json'; +import securityObj from './security.devdocs.json'; This plugin provides authentication and authorization features, and exposes functionality to understand the capabilities of the currently authenticated user. @@ -18,7 +18,7 @@ Contact [Platform Security](https://github.com/orgs/elastic/teams/kibana-securit | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 180 | 0 | 104 | 0 | +| 181 | 0 | 102 | 0 | ## Client diff --git a/api_docs/security_solution.json b/api_docs/security_solution.devdocs.json similarity index 97% rename from api_docs/security_solution.json rename to api_docs/security_solution.devdocs.json index 66592a05234d02..1ba7557881b9a1 100644 --- a/api_docs/security_solution.json +++ b/api_docs/security_solution.devdocs.json @@ -62,7 +62,7 @@ "label": "experimentalFeatures", "description": [], "signature": [ - "{ readonly metricsEntitiesEnabled: boolean; readonly ruleRegistryEnabled: boolean; readonly tGridEnabled: boolean; readonly tGridEventRenderedViewEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly uebaEnabled: boolean; readonly disableIsolationUIPendingStatuses: boolean; readonly riskyHostsEnabled: boolean; readonly securityRulesCancelEnabled: boolean; readonly pendingActionResponsesWithAck: boolean; }" + "{ readonly metricsEntitiesEnabled: boolean; readonly ruleRegistryEnabled: boolean; readonly tGridEnabled: boolean; readonly tGridEventRenderedViewEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly uebaEnabled: boolean; readonly disableIsolationUIPendingStatuses: boolean; readonly riskyHostsEnabled: boolean; readonly securityRulesCancelEnabled: boolean; readonly pendingActionResponsesWithAck: boolean; readonly policyListEnabled: boolean; }" ], "path": "x-pack/plugins/security_solution/public/plugin.tsx", "deprecated": false @@ -887,9 +887,7 @@ "label": "ConfigType", "description": [], "signature": [ - "Readonly<{} & { signalsIndex: string; maxRuleImportExportSize: number; maxRuleImportPayloadBytes: number; maxTimelineImportExportSize: number; maxTimelineImportPayloadBytes: number; alertMergeStrategy: \"allFields\" | \"missingFields\" | \"noFields\"; alertIgnoreFields: string[]; enableExperimental: string[]; ruleExecutionLog: Readonly<{} & { underlyingClient: ", - "UnderlyingLogClient", - "; }>; packagerTaskInterval: string; prebuiltRulesFromFileSystem: boolean; prebuiltRulesFromSavedObjects: boolean; }> & { experimentalFeatures: Readonly<{ metricsEntitiesEnabled: boolean; ruleRegistryEnabled: boolean; tGridEnabled: boolean; tGridEventRenderedViewEnabled: boolean; excludePoliciesInFilterEnabled: boolean; uebaEnabled: boolean; disableIsolationUIPendingStatuses: boolean; riskyHostsEnabled: boolean; securityRulesCancelEnabled: boolean; pendingActionResponsesWithAck: boolean; }>; }" + "Readonly<{} & { signalsIndex: string; maxRuleImportExportSize: number; maxRuleImportPayloadBytes: number; maxTimelineImportExportSize: number; maxTimelineImportPayloadBytes: number; alertMergeStrategy: \"allFields\" | \"missingFields\" | \"noFields\"; alertIgnoreFields: string[]; enableExperimental: string[]; packagerTaskInterval: string; prebuiltRulesFromFileSystem: boolean; prebuiltRulesFromSavedObjects: boolean; }> & { experimentalFeatures: Readonly<{ metricsEntitiesEnabled: boolean; ruleRegistryEnabled: boolean; tGridEnabled: boolean; tGridEventRenderedViewEnabled: boolean; excludePoliciesInFilterEnabled: boolean; uebaEnabled: boolean; disableIsolationUIPendingStatuses: boolean; riskyHostsEnabled: boolean; securityRulesCancelEnabled: boolean; pendingActionResponsesWithAck: boolean; policyListEnabled: boolean; }>; }" ], "path": "x-pack/plugins/security_solution/server/config.ts", "deprecated": false, diff --git a/api_docs/security_solution.mdx b/api_docs/security_solution.mdx index 68a48e8c6f86ea..a47a10d8c4d522 100644 --- a/api_docs/security_solution.mdx +++ b/api_docs/security_solution.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'securitySolution'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import securitySolutionObj from './security_solution.json'; +import securitySolutionObj from './security_solution.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Security solution](https://github.com/orgs/elastic/teams/security-solut | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 45 | 0 | 45 | 19 | +| 45 | 0 | 45 | 18 | ## Client diff --git a/api_docs/share.json b/api_docs/share.devdocs.json similarity index 98% rename from api_docs/share.json rename to api_docs/share.devdocs.json index 604bf19c246087..58935cb956d5ef 100644 --- a/api_docs/share.json +++ b/api_docs/share.devdocs.json @@ -619,7 +619,7 @@ }, { "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/components/navigation_menu/main_tabs.tsx" + "path": "x-pack/plugins/ml/public/application/components/ml_page/side_nav.tsx" }, { "plugin": "ml", @@ -631,7 +631,7 @@ }, { "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/anomaly_detection_panel.tsx" + "path": "x-pack/plugins/ml/public/application/jobs/jobs_list/components/anomaly_detection_empty_state/anomaly_detection_empty_state.tsx" }, { "plugin": "ml", @@ -653,6 +653,10 @@ "plugin": "ml", "path": "x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx" }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/application/jobs/components/jobs_action_menu/jobs_action_menu.tsx" + }, { "plugin": "ml", "path": "x-pack/plugins/ml/public/application/jobs/new_job/pages/job_type/page.tsx" @@ -713,10 +717,6 @@ "plugin": "infra", "path": "x-pack/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx" }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/public/management/components/ilm_policy_link.tsx" - }, { "plugin": "ingestPipelines", "path": "x-pack/plugins/ingest_pipelines/public/locator.test.ts" @@ -725,6 +725,14 @@ "plugin": "upgradeAssistant", "path": "x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx" }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/application/services/dashboard_service.ts" + }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/application/services/dashboard_service.test.ts" + }, { "plugin": "upgradeAssistant", "path": "x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts" @@ -2315,7 +2323,7 @@ }, { "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/components/navigation_menu/main_tabs.tsx" + "path": "x-pack/plugins/ml/public/application/components/ml_page/side_nav.tsx" }, { "plugin": "ml", @@ -2327,7 +2335,7 @@ }, { "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/anomaly_detection_panel.tsx" + "path": "x-pack/plugins/ml/public/application/jobs/jobs_list/components/anomaly_detection_empty_state/anomaly_detection_empty_state.tsx" }, { "plugin": "ml", @@ -2349,6 +2357,10 @@ "plugin": "ml", "path": "x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx" }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/application/jobs/components/jobs_action_menu/jobs_action_menu.tsx" + }, { "plugin": "ml", "path": "x-pack/plugins/ml/public/application/jobs/new_job/pages/job_type/page.tsx" @@ -2409,10 +2421,6 @@ "plugin": "infra", "path": "x-pack/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx" }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/public/management/components/ilm_policy_link.tsx" - }, { "plugin": "ingestPipelines", "path": "x-pack/plugins/ingest_pipelines/public/locator.test.ts" @@ -2421,6 +2429,14 @@ "plugin": "upgradeAssistant", "path": "x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx" }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/application/services/dashboard_service.ts" + }, + { + "plugin": "ml", + "path": "x-pack/plugins/ml/public/application/services/dashboard_service.test.ts" + }, { "plugin": "upgradeAssistant", "path": "x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts" diff --git a/api_docs/share.mdx b/api_docs/share.mdx index 896a9b72875c45..fde07adc1a8f1b 100644 --- a/api_docs/share.mdx +++ b/api_docs/share.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'share'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import shareObj from './share.json'; +import shareObj from './share.devdocs.json'; Adds URL Service and sharing capabilities to Kibana diff --git a/api_docs/shared_u_x.json b/api_docs/shared_u_x.devdocs.json similarity index 100% rename from api_docs/shared_u_x.json rename to api_docs/shared_u_x.devdocs.json diff --git a/api_docs/shared_u_x.mdx b/api_docs/shared_u_x.mdx index d49c1f6e4a448c..6153e6643994ef 100644 --- a/api_docs/shared_u_x.mdx +++ b/api_docs/shared_u_x.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'sharedUX'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import sharedUXObj from './shared_u_x.json'; +import sharedUXObj from './shared_u_x.devdocs.json'; A plugin providing components and services for shared user experiences in Kibana. diff --git a/api_docs/snapshot_restore.json b/api_docs/snapshot_restore.devdocs.json similarity index 80% rename from api_docs/snapshot_restore.json rename to api_docs/snapshot_restore.devdocs.json index 1c18673b2e47c4..c16e7c3ee72f4d 100644 --- a/api_docs/snapshot_restore.json +++ b/api_docs/snapshot_restore.devdocs.json @@ -212,26 +212,6 @@ "path": "x-pack/plugins/snapshot_restore/common/constants.ts", "deprecated": false, "children": [ - { - "parentPluginId": "snapshotRestore", - "id": "def-common.REPOSITORY_PLUGINS_MAP.repositorys3", - "type": "string", - "tags": [], - "label": "'repository-s3'", - "description": [], - "signature": [ - { - "pluginId": "snapshotRestore", - "scope": "common", - "docId": "kibSnapshotRestorePluginApi", - "section": "def-common.REPOSITORY_TYPES", - "text": "REPOSITORY_TYPES" - }, - ".s3" - ], - "path": "x-pack/plugins/snapshot_restore/common/constants.ts", - "deprecated": false - }, { "parentPluginId": "snapshotRestore", "id": "def-common.REPOSITORY_PLUGINS_MAP.repositoryhdfs", @@ -251,46 +231,6 @@ ], "path": "x-pack/plugins/snapshot_restore/common/constants.ts", "deprecated": false - }, - { - "parentPluginId": "snapshotRestore", - "id": "def-common.REPOSITORY_PLUGINS_MAP.repositoryazure", - "type": "string", - "tags": [], - "label": "'repository-azure'", - "description": [], - "signature": [ - { - "pluginId": "snapshotRestore", - "scope": "common", - "docId": "kibSnapshotRestorePluginApi", - "section": "def-common.REPOSITORY_TYPES", - "text": "REPOSITORY_TYPES" - }, - ".azure" - ], - "path": "x-pack/plugins/snapshot_restore/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "snapshotRestore", - "id": "def-common.REPOSITORY_PLUGINS_MAP.repositorygcs", - "type": "string", - "tags": [], - "label": "'repository-gcs'", - "description": [], - "signature": [ - { - "pluginId": "snapshotRestore", - "scope": "common", - "docId": "kibSnapshotRestorePluginApi", - "section": "def-common.REPOSITORY_TYPES", - "text": "REPOSITORY_TYPES" - }, - ".gcs" - ], - "path": "x-pack/plugins/snapshot_restore/common/constants.ts", - "deprecated": false } ], "initialIsOpen": false diff --git a/api_docs/snapshot_restore.mdx b/api_docs/snapshot_restore.mdx index 8ddb1cc9167a1d..b7b63200e97054 100644 --- a/api_docs/snapshot_restore.mdx +++ b/api_docs/snapshot_restore.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'snapshotRestore'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import snapshotRestoreObj from './snapshot_restore.json'; +import snapshotRestoreObj from './snapshot_restore.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-ma | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 23 | 1 | 23 | 1 | +| 20 | 1 | 20 | 1 | ## Common diff --git a/api_docs/spaces.json b/api_docs/spaces.devdocs.json similarity index 100% rename from api_docs/spaces.json rename to api_docs/spaces.devdocs.json diff --git a/api_docs/spaces.mdx b/api_docs/spaces.mdx index 740263db2b051c..c3d99ae66d8a52 100644 --- a/api_docs/spaces.mdx +++ b/api_docs/spaces.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'spaces'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import spacesObj from './spaces.json'; +import spacesObj from './spaces.devdocs.json'; This plugin provides the Spaces feature, which allows saved objects to be organized into meaningful categories. diff --git a/api_docs/stack_alerts.json b/api_docs/stack_alerts.devdocs.json similarity index 100% rename from api_docs/stack_alerts.json rename to api_docs/stack_alerts.devdocs.json diff --git a/api_docs/stack_alerts.mdx b/api_docs/stack_alerts.mdx index cd22a406eb8b13..50b88186a1368a 100644 --- a/api_docs/stack_alerts.mdx +++ b/api_docs/stack_alerts.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'stackAlerts'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import stackAlertsObj from './stack_alerts.json'; +import stackAlertsObj from './stack_alerts.devdocs.json'; diff --git a/api_docs/task_manager.json b/api_docs/task_manager.devdocs.json similarity index 100% rename from api_docs/task_manager.json rename to api_docs/task_manager.devdocs.json diff --git a/api_docs/task_manager.mdx b/api_docs/task_manager.mdx index 74673ddfa539cb..eb62f916a1f72a 100644 --- a/api_docs/task_manager.mdx +++ b/api_docs/task_manager.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'taskManager'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import taskManagerObj from './task_manager.json'; +import taskManagerObj from './task_manager.devdocs.json'; diff --git a/api_docs/telemetry.json b/api_docs/telemetry.devdocs.json similarity index 100% rename from api_docs/telemetry.json rename to api_docs/telemetry.devdocs.json diff --git a/api_docs/telemetry.mdx b/api_docs/telemetry.mdx index 6040f09f52ec1c..1fda3e1be1d867 100644 --- a/api_docs/telemetry.mdx +++ b/api_docs/telemetry.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetry'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import telemetryObj from './telemetry.json'; +import telemetryObj from './telemetry.devdocs.json'; diff --git a/api_docs/telemetry_collection_manager.json b/api_docs/telemetry_collection_manager.devdocs.json similarity index 100% rename from api_docs/telemetry_collection_manager.json rename to api_docs/telemetry_collection_manager.devdocs.json diff --git a/api_docs/telemetry_collection_manager.mdx b/api_docs/telemetry_collection_manager.mdx index a56df53b137a0b..5de467cede62a6 100644 --- a/api_docs/telemetry_collection_manager.mdx +++ b/api_docs/telemetry_collection_manager.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryCollectionManager'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import telemetryCollectionManagerObj from './telemetry_collection_manager.json'; +import telemetryCollectionManagerObj from './telemetry_collection_manager.devdocs.json'; diff --git a/api_docs/telemetry_collection_xpack.json b/api_docs/telemetry_collection_xpack.devdocs.json similarity index 100% rename from api_docs/telemetry_collection_xpack.json rename to api_docs/telemetry_collection_xpack.devdocs.json diff --git a/api_docs/telemetry_collection_xpack.mdx b/api_docs/telemetry_collection_xpack.mdx index 13f2ff13cb655c..99f0fc03c8e031 100644 --- a/api_docs/telemetry_collection_xpack.mdx +++ b/api_docs/telemetry_collection_xpack.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryCollectionXpack'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import telemetryCollectionXpackObj from './telemetry_collection_xpack.json'; +import telemetryCollectionXpackObj from './telemetry_collection_xpack.devdocs.json'; diff --git a/api_docs/telemetry_management_section.json b/api_docs/telemetry_management_section.devdocs.json similarity index 100% rename from api_docs/telemetry_management_section.json rename to api_docs/telemetry_management_section.devdocs.json diff --git a/api_docs/telemetry_management_section.mdx b/api_docs/telemetry_management_section.mdx index b48a1f17e1bcc6..1aee905a09db3a 100644 --- a/api_docs/telemetry_management_section.mdx +++ b/api_docs/telemetry_management_section.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryManagementSection'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import telemetryManagementSectionObj from './telemetry_management_section.json'; +import telemetryManagementSectionObj from './telemetry_management_section.devdocs.json'; diff --git a/api_docs/timelines.json b/api_docs/timelines.devdocs.json similarity index 99% rename from api_docs/timelines.json rename to api_docs/timelines.devdocs.json index c0b592e5db8304..a729f89d17332c 100644 --- a/api_docs/timelines.json +++ b/api_docs/timelines.devdocs.json @@ -2367,6 +2367,19 @@ "path": "x-pack/plugins/timelines/public/store/t_grid/model.ts", "deprecated": false }, + { + "parentPluginId": "timelines", + "id": "def-public.TGridModel.timelineType", + "type": "CompoundType", + "tags": [], + "label": "timelineType", + "description": [], + "signature": [ + "\"default\" | \"template\"" + ], + "path": "x-pack/plugins/timelines/public/store/t_grid/model.ts", + "deprecated": false + }, { "parentPluginId": "timelines", "id": "def-public.TGridModel.version", @@ -2645,7 +2658,7 @@ }, "; description?: string | null | undefined; example?: string | number | null | undefined; format?: string | undefined; linkField?: string | undefined; placeholder?: string | undefined; subType?: ", "IFieldSubType", - " | undefined; type?: string | undefined; })[]; savedObjectId: string | null; unit?: ((n: number) => React.ReactNode) | undefined; dataProviders: ", + " | undefined; type?: string | undefined; })[]; savedObjectId: string | null; dataProviders: ", { "pluginId": "timelines", "scope": "common", @@ -2667,7 +2680,7 @@ "section": "def-common.TimelineNonEcsData", "text": "TimelineNonEcsData" }, - "[]>; }" + "[]>; unit?: ((n: number) => React.ReactNode) | undefined; }" ], "path": "x-pack/plugins/timelines/public/store/t_grid/model.ts", "deprecated": false, @@ -6546,7 +6559,7 @@ "label": "DataProvidersAnd", "description": [], "signature": [ - "{ id: string; type?: ", + "{ type?: ", { "pluginId": "timelines", "scope": "common", @@ -6554,7 +6567,7 @@ "section": "def-common.DataProviderType", "text": "DataProviderType" }, - " | undefined; name: string; enabled: boolean; excluded: boolean; kqlQuery: string; queryMatch: ", + " | undefined; id: string; name: string; enabled: boolean; excluded: boolean; kqlQuery: string; queryMatch: ", { "pluginId": "timelines", "scope": "common", @@ -6882,7 +6895,7 @@ "label": "TimelineKpiStrategyRequest", "description": [], "signature": [ - "{ id?: string | undefined; defaultIndex: string[]; params?: ", + "{ id?: string | undefined; params?: ", { "pluginId": "data", "scope": "common", @@ -6890,7 +6903,7 @@ "section": "def-common.ISearchRequestParams", "text": "ISearchRequestParams" }, - " | undefined; timerange: ", + " | undefined; defaultIndex: string[]; timerange: ", { "pluginId": "timelines", "scope": "common", diff --git a/api_docs/timelines.mdx b/api_docs/timelines.mdx index 3193308f9544cb..aaadb0375ca46a 100644 --- a/api_docs/timelines.mdx +++ b/api_docs/timelines.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'timelines'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import timelinesObj from './timelines.json'; +import timelinesObj from './timelines.devdocs.json'; @@ -18,7 +18,7 @@ Contact [Security solution](https://github.com/orgs/elastic/teams/security-solut | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 442 | 1 | 336 | 34 | +| 443 | 1 | 337 | 34 | ## Client diff --git a/api_docs/transform.json b/api_docs/transform.devdocs.json similarity index 100% rename from api_docs/transform.json rename to api_docs/transform.devdocs.json diff --git a/api_docs/transform.mdx b/api_docs/transform.mdx index e3ff7fa1c5dad5..dcb2fceedf8b2b 100644 --- a/api_docs/transform.mdx +++ b/api_docs/transform.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'transform'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import transformObj from './transform.json'; +import transformObj from './transform.devdocs.json'; This plugin provides access to the transforms features provided by Elastic. Transforms enable you to convert existing Elasticsearch indices into summarized indices, which provide opportunities for new insights and analytics. diff --git a/api_docs/triggers_actions_ui.json b/api_docs/triggers_actions_ui.devdocs.json similarity index 99% rename from api_docs/triggers_actions_ui.json rename to api_docs/triggers_actions_ui.devdocs.json index 4e8452c6dbca9f..905eb1592c5ce7 100644 --- a/api_docs/triggers_actions_ui.json +++ b/api_docs/triggers_actions_ui.devdocs.json @@ -1645,7 +1645,7 @@ "label": "setRuleProperty", "description": [], "signature": [ - "(key: Prop, value: ", + "(key: Prop, value: ", { "pluginId": "alerting", "scope": "common", @@ -2324,7 +2324,15 @@ "label": "Rule", "description": [], "signature": [ - "{ id: string; name: string; tags: string[]; enabled: boolean; params: ", + "{ id: string; monitoring?: ", + { + "pluginId": "alerting", + "scope": "common", + "docId": "kibAlertingPluginApi", + "section": "def-common.RuleMonitoring", + "text": "RuleMonitoring" + }, + " | undefined; name: string; tags: string[]; enabled: boolean; params: ", { "pluginId": "alerting", "scope": "common", diff --git a/api_docs/triggers_actions_ui.mdx b/api_docs/triggers_actions_ui.mdx index 64b2210e4f64f4..aff1f9c6b0f58e 100644 --- a/api_docs/triggers_actions_ui.mdx +++ b/api_docs/triggers_actions_ui.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'triggersActionsUi'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import triggersActionsUiObj from './triggers_actions_ui.json'; +import triggersActionsUiObj from './triggers_actions_ui.devdocs.json'; diff --git a/api_docs/ui_actions.json b/api_docs/ui_actions.devdocs.json similarity index 100% rename from api_docs/ui_actions.json rename to api_docs/ui_actions.devdocs.json diff --git a/api_docs/ui_actions.mdx b/api_docs/ui_actions.mdx index 0d78abbc1ae7cd..ffb35430700ef1 100644 --- a/api_docs/ui_actions.mdx +++ b/api_docs/ui_actions.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActions'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import uiActionsObj from './ui_actions.json'; +import uiActionsObj from './ui_actions.devdocs.json'; Adds UI Actions service to Kibana diff --git a/api_docs/ui_actions_enhanced.json b/api_docs/ui_actions_enhanced.devdocs.json similarity index 99% rename from api_docs/ui_actions_enhanced.json rename to api_docs/ui_actions_enhanced.devdocs.json index a7d9dfff60bc76..3b0d84d8d7efce 100644 --- a/api_docs/ui_actions_enhanced.json +++ b/api_docs/ui_actions_enhanced.devdocs.json @@ -548,20 +548,26 @@ { "parentPluginId": "uiActionsEnhanced", "id": "def-public.ActionFactory.migrations", - "type": "Object", + "type": "CompoundType", "tags": [], "label": "migrations", "description": [], "signature": [ - "{ [semver: string]: ", { "pluginId": "kibanaUtils", "scope": "common", "docId": "kibKibanaUtilsPluginApi", - "section": "def-common.MigrateFunction", - "text": "MigrateFunction" + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" }, - "; }" + " | ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.GetMigrationFunctionObjectFn", + "text": "GetMigrationFunctionObjectFn" + } ], "path": "x-pack/plugins/ui_actions_enhanced/public/dynamic_actions/action_factory.ts", "deprecated": false diff --git a/api_docs/ui_actions_enhanced.mdx b/api_docs/ui_actions_enhanced.mdx index 41f95f7367cb8e..2e1df86a1e7494 100644 --- a/api_docs/ui_actions_enhanced.mdx +++ b/api_docs/ui_actions_enhanced.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActionsEnhanced'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import uiActionsEnhancedObj from './ui_actions_enhanced.json'; +import uiActionsEnhancedObj from './ui_actions_enhanced.devdocs.json'; Extends UI Actions plugin with more functionality diff --git a/api_docs/url_forwarding.json b/api_docs/url_forwarding.devdocs.json similarity index 100% rename from api_docs/url_forwarding.json rename to api_docs/url_forwarding.devdocs.json diff --git a/api_docs/url_forwarding.mdx b/api_docs/url_forwarding.mdx index 0a3ac122b235e6..861d73e29126c6 100644 --- a/api_docs/url_forwarding.mdx +++ b/api_docs/url_forwarding.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'urlForwarding'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import urlForwardingObj from './url_forwarding.json'; +import urlForwardingObj from './url_forwarding.devdocs.json'; diff --git a/api_docs/usage_collection.json b/api_docs/usage_collection.devdocs.json similarity index 100% rename from api_docs/usage_collection.json rename to api_docs/usage_collection.devdocs.json diff --git a/api_docs/usage_collection.mdx b/api_docs/usage_collection.mdx index aba6a100c0f1b2..5232cffff0b442 100644 --- a/api_docs/usage_collection.mdx +++ b/api_docs/usage_collection.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'usageCollection'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import usageCollectionObj from './usage_collection.json'; +import usageCollectionObj from './usage_collection.devdocs.json'; diff --git a/api_docs/vis_default_editor.json b/api_docs/vis_default_editor.devdocs.json similarity index 99% rename from api_docs/vis_default_editor.json rename to api_docs/vis_default_editor.devdocs.json index 2a417f3f945bce..f073badd0ffd1f 100644 --- a/api_docs/vis_default_editor.json +++ b/api_docs/vis_default_editor.devdocs.json @@ -19,9 +19,9 @@ }, " implements ", { - "pluginId": "visualize", + "pluginId": "visualizations", "scope": "public", - "docId": "kibVisualizePluginApi", + "docId": "kibVisualizationsPluginApi", "section": "def-public.IEditorController", "text": "IEditorController" } @@ -132,9 +132,9 @@ "signature": [ "(props: ", { - "pluginId": "visualize", + "pluginId": "visualizations", "scope": "public", - "docId": "kibVisualizePluginApi", + "docId": "kibVisualizationsPluginApi", "section": "def-public.EditorRenderProps", "text": "EditorRenderProps" }, @@ -152,9 +152,9 @@ "description": [], "signature": [ { - "pluginId": "visualize", + "pluginId": "visualizations", "scope": "public", - "docId": "kibVisualizePluginApi", + "docId": "kibVisualizationsPluginApi", "section": "def-public.EditorRenderProps", "text": "EditorRenderProps" } diff --git a/api_docs/vis_default_editor.mdx b/api_docs/vis_default_editor.mdx index db07ab012ab874..d7adf220a38001 100644 --- a/api_docs/vis_default_editor.mdx +++ b/api_docs/vis_default_editor.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visDefaultEditor'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visDefaultEditorObj from './vis_default_editor.json'; +import visDefaultEditorObj from './vis_default_editor.devdocs.json'; The default editor used in most aggregation-based visualizations. diff --git a/api_docs/vis_type_heatmap.json b/api_docs/vis_type_heatmap.devdocs.json similarity index 100% rename from api_docs/vis_type_heatmap.json rename to api_docs/vis_type_heatmap.devdocs.json diff --git a/api_docs/vis_type_heatmap.mdx b/api_docs/vis_type_heatmap.mdx index c0b0d2d78a5f56..feabafde5a7517 100644 --- a/api_docs/vis_type_heatmap.mdx +++ b/api_docs/vis_type_heatmap.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeHeatmap'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visTypeHeatmapObj from './vis_type_heatmap.json'; +import visTypeHeatmapObj from './vis_type_heatmap.devdocs.json'; Contains the heatmap implementation using the elastic-charts library. The goal is to eventually deprecate the old implementation and keep only this. Until then, the library used is defined by the Legacy heatmap charts library advanced setting. diff --git a/api_docs/vis_type_pie.json b/api_docs/vis_type_pie.devdocs.json similarity index 100% rename from api_docs/vis_type_pie.json rename to api_docs/vis_type_pie.devdocs.json diff --git a/api_docs/vis_type_pie.mdx b/api_docs/vis_type_pie.mdx index 5f752866a9cf8c..b65ec9a34e2cdf 100644 --- a/api_docs/vis_type_pie.mdx +++ b/api_docs/vis_type_pie.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypePie'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visTypePieObj from './vis_type_pie.json'; +import visTypePieObj from './vis_type_pie.devdocs.json'; Contains the pie chart implementation using the elastic-charts library. The goal is to eventually deprecate the old implementation and keep only this. Until then, the library used is defined by the Legacy charts library advanced setting. diff --git a/api_docs/vis_type_table.json b/api_docs/vis_type_table.devdocs.json similarity index 100% rename from api_docs/vis_type_table.json rename to api_docs/vis_type_table.devdocs.json diff --git a/api_docs/vis_type_table.mdx b/api_docs/vis_type_table.mdx index 8104d30e52b805..982994e396e427 100644 --- a/api_docs/vis_type_table.mdx +++ b/api_docs/vis_type_table.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTable'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visTypeTableObj from './vis_type_table.json'; +import visTypeTableObj from './vis_type_table.devdocs.json'; Registers the datatable aggregation-based visualization. diff --git a/api_docs/vis_type_timelion.json b/api_docs/vis_type_timelion.devdocs.json similarity index 100% rename from api_docs/vis_type_timelion.json rename to api_docs/vis_type_timelion.devdocs.json diff --git a/api_docs/vis_type_timelion.mdx b/api_docs/vis_type_timelion.mdx index 3283bc2944cd22..d8458d6d974f86 100644 --- a/api_docs/vis_type_timelion.mdx +++ b/api_docs/vis_type_timelion.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimelion'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visTypeTimelionObj from './vis_type_timelion.json'; +import visTypeTimelionObj from './vis_type_timelion.devdocs.json'; Registers the timelion visualization. Also contains the backend for both timelion app and timelion visualization. diff --git a/api_docs/vis_type_timeseries.json b/api_docs/vis_type_timeseries.devdocs.json similarity index 100% rename from api_docs/vis_type_timeseries.json rename to api_docs/vis_type_timeseries.devdocs.json diff --git a/api_docs/vis_type_timeseries.mdx b/api_docs/vis_type_timeseries.mdx index fa04cb7c600d1e..e8c6c39d97e688 100644 --- a/api_docs/vis_type_timeseries.mdx +++ b/api_docs/vis_type_timeseries.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimeseries'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visTypeTimeseriesObj from './vis_type_timeseries.json'; +import visTypeTimeseriesObj from './vis_type_timeseries.devdocs.json'; Registers the TSVB visualization. TSVB has its one editor, works with index patterns and index strings and contains 6 types of charts: timeseries, topN, table. markdown, metric and gauge. diff --git a/api_docs/vis_type_vega.json b/api_docs/vis_type_vega.devdocs.json similarity index 100% rename from api_docs/vis_type_vega.json rename to api_docs/vis_type_vega.devdocs.json diff --git a/api_docs/vis_type_vega.mdx b/api_docs/vis_type_vega.mdx index 25b8c1d02ecdef..6a8cffb34b1269 100644 --- a/api_docs/vis_type_vega.mdx +++ b/api_docs/vis_type_vega.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVega'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visTypeVegaObj from './vis_type_vega.json'; +import visTypeVegaObj from './vis_type_vega.devdocs.json'; Registers the vega visualization. Is the elastic version of vega and vega-lite libraries. diff --git a/api_docs/vis_type_vislib.json b/api_docs/vis_type_vislib.devdocs.json similarity index 100% rename from api_docs/vis_type_vislib.json rename to api_docs/vis_type_vislib.devdocs.json diff --git a/api_docs/vis_type_vislib.mdx b/api_docs/vis_type_vislib.mdx index 2bd319848a50e8..79b0594c646d36 100644 --- a/api_docs/vis_type_vislib.mdx +++ b/api_docs/vis_type_vislib.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVislib'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visTypeVislibObj from './vis_type_vislib.json'; +import visTypeVislibObj from './vis_type_vislib.devdocs.json'; Contains the vislib visualizations. These are the classical area/line/bar, pie, gauge/goal and heatmap charts. We want to replace them with elastic-charts. diff --git a/api_docs/vis_type_xy.json b/api_docs/vis_type_xy.devdocs.json similarity index 100% rename from api_docs/vis_type_xy.json rename to api_docs/vis_type_xy.devdocs.json diff --git a/api_docs/vis_type_xy.mdx b/api_docs/vis_type_xy.mdx index 5a9e22dc8efb66..69ac6f406be0f3 100644 --- a/api_docs/vis_type_xy.mdx +++ b/api_docs/vis_type_xy.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeXy'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visTypeXyObj from './vis_type_xy.json'; +import visTypeXyObj from './vis_type_xy.devdocs.json'; 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. diff --git a/api_docs/visualizations.json b/api_docs/visualizations.devdocs.json similarity index 91% rename from api_docs/visualizations.json rename to api_docs/visualizations.devdocs.json index 46fa87dff03f9d..00e88ef0d2723b 100644 --- a/api_docs/visualizations.json +++ b/api_docs/visualizations.devdocs.json @@ -1495,6 +1495,149 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "visualizations", + "id": "def-public.EditorRenderProps", + "type": "Interface", + "tags": [], + "label": "EditorRenderProps", + "description": [], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "visualizations", + "id": "def-public.EditorRenderProps.core", + "type": "Object", + "tags": [], + "label": "core", + "description": [], + "signature": [ + { + "pluginId": "core", + "scope": "public", + "docId": "kibCorePluginApi", + "section": "def-public.CoreStart", + "text": "CoreStart" + } + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false + }, + { + "parentPluginId": "visualizations", + "id": "def-public.EditorRenderProps.data", + "type": "Object", + "tags": [], + "label": "data", + "description": [], + "signature": [ + { + "pluginId": "data", + "scope": "public", + "docId": "kibDataPluginApi", + "section": "def-public.DataPublicPluginStart", + "text": "DataPublicPluginStart" + } + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false + }, + { + "parentPluginId": "visualizations", + "id": "def-public.EditorRenderProps.filters", + "type": "Array", + "tags": [], + "label": "filters", + "description": [], + "signature": [ + "Filter", + "[]" + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false + }, + { + "parentPluginId": "visualizations", + "id": "def-public.EditorRenderProps.timeRange", + "type": "Object", + "tags": [], + "label": "timeRange", + "description": [], + "signature": [ + "{ from: string; to: string; mode?: \"absolute\" | \"relative\" | undefined; }" + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false + }, + { + "parentPluginId": "visualizations", + "id": "def-public.EditorRenderProps.query", + "type": "Object", + "tags": [], + "label": "query", + "description": [], + "signature": [ + "Query", + " | undefined" + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false + }, + { + "parentPluginId": "visualizations", + "id": "def-public.EditorRenderProps.savedSearch", + "type": "Object", + "tags": [], + "label": "savedSearch", + "description": [], + "signature": [ + { + "pluginId": "discover", + "scope": "public", + "docId": "kibDiscoverPluginApi", + "section": "def-public.SavedSearch", + "text": "SavedSearch" + }, + " | undefined" + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false + }, + { + "parentPluginId": "visualizations", + "id": "def-public.EditorRenderProps.uiState", + "type": "Object", + "tags": [], + "label": "uiState", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "public", + "docId": "kibVisualizationsPluginApi", + "section": "def-public.PersistedState", + "text": "PersistedState" + } + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false + }, + { + "parentPluginId": "visualizations", + "id": "def-public.EditorRenderProps.linked", + "type": "boolean", + "tags": [], + "label": "linked", + "description": [ + "\nFlag to determine if visualiztion is linked to the saved search" + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "visualizations", "id": "def-public.FakeParams", @@ -1633,6 +1776,78 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "visualizations", + "id": "def-public.IEditorController", + "type": "Interface", + "tags": [], + "label": "IEditorController", + "description": [], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "visualizations", + "id": "def-public.IEditorController.render", + "type": "Function", + "tags": [], + "label": "render", + "description": [], + "signature": [ + "(props: ", + { + "pluginId": "visualizations", + "scope": "public", + "docId": "kibVisualizationsPluginApi", + "section": "def-public.EditorRenderProps", + "text": "EditorRenderProps" + }, + ") => void | Promise" + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "visualizations", + "id": "def-public.IEditorController.render.$1", + "type": "Object", + "tags": [], + "label": "props", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "public", + "docId": "kibVisualizationsPluginApi", + "section": "def-public.EditorRenderProps", + "text": "EditorRenderProps" + } + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "visualizations", + "id": "def-public.IEditorController.destroy", + "type": "Function", + "tags": [], + "label": "destroy", + "description": [], + "signature": [ + "() => void" + ], + "path": "src/plugins/visualizations/public/visualize_app/types.ts", + "deprecated": false, + "children": [], + "returnComment": [] + } + ], + "initialIsOpen": false + }, { "parentPluginId": "visualizations", "id": "def-public.ISavedVis", @@ -4403,7 +4618,15 @@ "label": "VisualizeEmbeddableContract", "description": [], "signature": [ - "{ readonly id: string; readonly type: \"visualization\"; getDescription: () => string; destroy: () => void; readonly parent?: ", + "{ readonly type: \"visualization\"; readonly id: string; getExplicitInput: () => ", + { + "pluginId": "visualizations", + "scope": "public", + "docId": "kibVisualizationsPluginApi", + "section": "def-public.VisualizeInput", + "text": "VisualizeInput" + }, + "; getDescription: () => string; destroy: () => void; readonly parent?: ", { "pluginId": "embeddable", "scope": "public", @@ -4427,7 +4650,15 @@ "section": "def-public.ContainerOutput", "text": "ContainerOutput" }, - "> | undefined; render: (domNode: HTMLElement) => Promise; getInspectorAdapters: () => ", + "> | undefined; render: (domNode: HTMLElement) => Promise; updateInput: (changes: Partial<", + { + "pluginId": "visualizations", + "scope": "public", + "docId": "kibVisualizationsPluginApi", + "section": "def-public.VisualizeInput", + "text": "VisualizeInput" + }, + ">) => void; getInspectorAdapters: () => ", { "pluginId": "inspector", "scope": "common", @@ -4517,7 +4748,23 @@ "VisualizeOutput", ">>; getOutput: () => Readonly<", "VisualizeOutput", - ">; getInput: () => Readonly<", + ">; getExplicitInputIsEqual: (lastExplicitInput: Partial<", + { + "pluginId": "visualizations", + "scope": "public", + "docId": "kibVisualizationsPluginApi", + "section": "def-public.VisualizeInput", + "text": "VisualizeInput" + }, + ">) => Promise; getPersistableInput: () => ", + { + "pluginId": "visualizations", + "scope": "public", + "docId": "kibVisualizationsPluginApi", + "section": "def-public.VisualizeInput", + "text": "VisualizeInput" + }, + "; getInput: () => Readonly<", { "pluginId": "visualizations", "scope": "public", @@ -4573,15 +4820,7 @@ "section": "def-public.ContainerOutput", "text": "ContainerOutput" }, - ">; updateInput: (changes: Partial<", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.VisualizeInput", - "text": "VisualizeInput" - }, - ">) => void; }" + ">; }" ], "path": "src/plugins/visualizations/public/index.ts", "deprecated": false, @@ -4595,7 +4834,7 @@ "label": "VisualizeEmbeddableFactoryContract", "description": [], "signature": [ - "{ create: (input: ", + "{ readonly type: \"visualization\"; create: (input: ", { "pluginId": "visualizations", "scope": "public", @@ -4655,7 +4894,7 @@ "VisualizeEmbeddable", " | ", "DisabledLabEmbeddable", - " | undefined>; readonly type: \"visualization\"; isEditable: () => Promise; getDisplayName: () => string; createFromSavedObject: (savedObjectId: string, input: Partial<", + " | undefined>; isEditable: () => Promise; getDisplayName: () => string; createFromSavedObject: (savedObjectId: string, input: Partial<", { "pluginId": "visualizations", "scope": "public", @@ -4851,7 +5090,21 @@ "section": "def-public.VisTypeAlias", "text": "VisTypeAlias" }, - ") => void; hideTypes: (typeNames: string[]) => void; }" + ") => void; hideTypes: (typeNames: string[]) => void; } & { visEditorsRegistry: { registerDefault: (editor: ", + "VisEditorConstructor", + "<", + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.VisParams", + "text": "VisParams" + }, + ">) => void; register: (name: string, editor: ", + "VisEditorConstructor", + ") => void; get: (name: string) => ", + "VisEditorConstructor", + " | undefined; }; }" ], "path": "src/plugins/visualizations/public/plugin.ts", "deprecated": false, @@ -4926,223 +5179,6 @@ "path": "src/plugins/visualizations/public/plugin.ts", "deprecated": false, "children": [ - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.createVis", - "type": "Function", - "tags": [], - "label": "createVis", - "description": [], - "signature": [ - "(visType: string, visState: ", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.SerializedVis", - "text": "SerializedVis" - }, - "<", - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.VisParams", - "text": "VisParams" - }, - ">) => Promise<", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.Vis", - "text": "Vis" - }, - "<", - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.VisParams", - "text": "VisParams" - }, - ">>" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.createVis.$1", - "type": "string", - "tags": [], - "label": "visType", - "description": [], - "signature": [ - "string" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.createVis.$2", - "type": "Object", - "tags": [], - "label": "visState", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.SerializedVis", - "text": "SerializedVis" - }, - "<", - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.VisParams", - "text": "VisParams" - }, - ">" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.convertToSerializedVis", - "type": "Function", - "tags": [], - "label": "convertToSerializedVis", - "description": [], - "signature": [ - "(savedVis: ", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.VisSavedObject", - "text": "VisSavedObject" - }, - ") => ", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.SerializedVis", - "text": "SerializedVis" - }, - "<", - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.VisParams", - "text": "VisParams" - }, - ">" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.convertToSerializedVis.$1", - "type": "Object", - "tags": [], - "label": "savedVis", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.VisSavedObject", - "text": "VisSavedObject" - } - ], - "path": "src/plugins/visualizations/public/utils/saved_visualize_utils.ts", - "deprecated": false - } - ] - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.convertFromSerializedVis", - "type": "Function", - "tags": [], - "label": "convertFromSerializedVis", - "description": [], - "signature": [ - "(vis: ", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.SerializedVis", - "text": "SerializedVis" - }, - "<", - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.VisParams", - "text": "VisParams" - }, - ">) => ", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.ISavedVis", - "text": "ISavedVis" - } - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "returnComment": [], - "children": [ - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.convertFromSerializedVis.$1", - "type": "Object", - "tags": [], - "label": "vis", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.SerializedVis", - "text": "SerializedVis" - }, - "<", - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.VisParams", - "text": "VisParams" - }, - ">" - ], - "path": "src/plugins/visualizations/public/utils/saved_visualize_utils.ts", - "deprecated": false - } - ] - }, { "parentPluginId": "visualizations", "id": "def-public.VisualizationsStart.showNewVisModal", @@ -5173,280 +5209,6 @@ "deprecated": false } ] - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.getSavedVisualization", - "type": "Function", - "tags": [], - "label": "getSavedVisualization", - "description": [], - "signature": [ - "(opts?: string | ", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.GetVisOptions", - "text": "GetVisOptions" - }, - " | undefined) => Promise<", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.VisSavedObject", - "text": "VisSavedObject" - }, - ">" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.getSavedVisualization.$1", - "type": "CompoundType", - "tags": [], - "label": "opts", - "description": [], - "signature": [ - "string | ", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.GetVisOptions", - "text": "GetVisOptions" - }, - " | undefined" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "isRequired": false - } - ], - "returnComment": [] - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.saveVisualization", - "type": "Function", - "tags": [], - "label": "saveVisualization", - "description": [], - "signature": [ - "(savedVis: ", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.VisSavedObject", - "text": "VisSavedObject" - }, - ", saveOptions: ", - "SaveVisOptions", - ") => Promise" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.saveVisualization.$1", - "type": "Object", - "tags": [], - "label": "savedVis", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.VisSavedObject", - "text": "VisSavedObject" - } - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.saveVisualization.$2", - "type": "Object", - "tags": [], - "label": "saveOptions", - "description": [], - "signature": [ - "SaveVisOptions" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.findListItems", - "type": "Function", - "tags": [], - "label": "findListItems", - "description": [], - "signature": [ - "(searchTerm: string, listingLimit: number, references?: ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsFindOptionsReference", - "text": "SavedObjectsFindOptionsReference" - }, - "[] | undefined) => Promise<{ hits: Record[]; total: number; }>" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.findListItems.$1", - "type": "string", - "tags": [], - "label": "searchTerm", - "description": [], - "signature": [ - "string" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.findListItems.$2", - "type": "number", - "tags": [], - "label": "listingLimit", - "description": [], - "signature": [ - "number" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.findListItems.$3", - "type": "Array", - "tags": [], - "label": "references", - "description": [], - "signature": [ - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsFindOptionsReference", - "text": "SavedObjectsFindOptionsReference" - }, - "[] | undefined" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false, - "isRequired": false - } - ], - "returnComment": [] - }, - { - "parentPluginId": "visualizations", - "id": "def-public.VisualizationsStart.__LEGACY", - "type": "Object", - "tags": [], - "label": "__LEGACY", - "description": [], - "signature": [ - "{ createVisEmbeddableFromObject: (vis: ", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.Vis", - "text": "Vis" - }, - "<", - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.VisParams", - "text": "VisParams" - }, - ">, input: Partial<", - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.VisualizeInput", - "text": "VisualizeInput" - }, - "> & { id: string; }, attributeService?: ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.AttributeService", - "text": "AttributeService" - }, - "<", - "VisualizeSavedObjectAttributes", - ", ", - "VisualizeByValueInput", - ", ", - "VisualizeByReferenceInput", - ", unknown> | undefined, parent?: ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.IContainer", - "text": "IContainer" - }, - "<{}, ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ContainerInput", - "text": "ContainerInput" - }, - "<{}>, ", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ContainerOutput", - "text": "ContainerOutput" - }, - "> | undefined) => Promise<", - { - "pluginId": "embeddable", - "scope": "public", - "docId": "kibEmbeddablePluginApi", - "section": "def-public.ErrorEmbeddable", - "text": "ErrorEmbeddable" - }, - " | ", - "VisualizeEmbeddable", - " | ", - "DisabledLabEmbeddable", - ">; }" - ], - "path": "src/plugins/visualizations/public/plugin.ts", - "deprecated": false } ], "lifecycle": "start", diff --git a/api_docs/visualizations.mdx b/api_docs/visualizations.mdx index e3dd5526c261d7..d199ce3c552c12 100644 --- a/api_docs/visualizations.mdx +++ b/api_docs/visualizations.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visualizations'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import visualizationsObj from './visualizations.json'; +import visualizationsObj from './visualizations.devdocs.json'; Contains the shared architecture among all the legacy visualizations, e.g. the visualization type registry or the visualization embeddable. @@ -18,7 +18,7 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 307 | 11 | 288 | 16 | +| 303 | 11 | 283 | 15 | ## Client diff --git a/api_docs/visualize.json b/api_docs/visualize.json deleted file mode 100644 index 033c38ac831b26..00000000000000 --- a/api_docs/visualize.json +++ /dev/null @@ -1,378 +0,0 @@ -{ - "id": "visualize", - "client": { - "classes": [], - "functions": [], - "interfaces": [ - { - "parentPluginId": "visualize", - "id": "def-public.EditorRenderProps", - "type": "Interface", - "tags": [], - "label": "EditorRenderProps", - "description": [], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "visualize", - "id": "def-public.EditorRenderProps.core", - "type": "Object", - "tags": [], - "label": "core", - "description": [], - "signature": [ - { - "pluginId": "core", - "scope": "public", - "docId": "kibCorePluginApi", - "section": "def-public.CoreStart", - "text": "CoreStart" - } - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.EditorRenderProps.data", - "type": "Object", - "tags": [], - "label": "data", - "description": [], - "signature": [ - { - "pluginId": "data", - "scope": "public", - "docId": "kibDataPluginApi", - "section": "def-public.DataPublicPluginStart", - "text": "DataPublicPluginStart" - } - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.EditorRenderProps.filters", - "type": "Array", - "tags": [], - "label": "filters", - "description": [], - "signature": [ - "Filter", - "[]" - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.EditorRenderProps.timeRange", - "type": "Object", - "tags": [], - "label": "timeRange", - "description": [], - "signature": [ - "{ from: string; to: string; mode?: \"absolute\" | \"relative\" | undefined; }" - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.EditorRenderProps.query", - "type": "Object", - "tags": [], - "label": "query", - "description": [], - "signature": [ - "Query", - " | undefined" - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.EditorRenderProps.savedSearch", - "type": "Object", - "tags": [], - "label": "savedSearch", - "description": [], - "signature": [ - { - "pluginId": "discover", - "scope": "public", - "docId": "kibDiscoverPluginApi", - "section": "def-public.SavedSearch", - "text": "SavedSearch" - }, - " | undefined" - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.EditorRenderProps.uiState", - "type": "Object", - "tags": [], - "label": "uiState", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "public", - "docId": "kibVisualizationsPluginApi", - "section": "def-public.PersistedState", - "text": "PersistedState" - } - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.EditorRenderProps.linked", - "type": "boolean", - "tags": [], - "label": "linked", - "description": [ - "\nFlag to determine if visualiztion is linked to the saved search" - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.IEditorController", - "type": "Interface", - "tags": [], - "label": "IEditorController", - "description": [], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "visualize", - "id": "def-public.IEditorController.render", - "type": "Function", - "tags": [], - "label": "render", - "description": [], - "signature": [ - "(props: ", - { - "pluginId": "visualize", - "scope": "public", - "docId": "kibVisualizePluginApi", - "section": "def-public.EditorRenderProps", - "text": "EditorRenderProps" - }, - ") => void | Promise" - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "visualize", - "id": "def-public.IEditorController.render.$1", - "type": "Object", - "tags": [], - "label": "props", - "description": [], - "signature": [ - { - "pluginId": "visualize", - "scope": "public", - "docId": "kibVisualizePluginApi", - "section": "def-public.EditorRenderProps", - "text": "EditorRenderProps" - } - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "visualize", - "id": "def-public.IEditorController.destroy", - "type": "Function", - "tags": [], - "label": "destroy", - "description": [], - "signature": [ - "() => void" - ], - "path": "src/plugins/visualize/public/application/types.ts", - "deprecated": false, - "children": [], - "returnComment": [] - } - ], - "initialIsOpen": false - } - ], - "enums": [], - "misc": [], - "objects": [ - { - "parentPluginId": "visualize", - "id": "def-public.VisualizeConstants", - "type": "Object", - "tags": [], - "label": "VisualizeConstants", - "description": [], - "path": "src/plugins/visualize/common/constants.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "visualize", - "id": "def-public.VisualizeConstants.VISUALIZE_BASE_PATH", - "type": "string", - "tags": [], - "label": "VISUALIZE_BASE_PATH", - "description": [], - "path": "src/plugins/visualize/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.VisualizeConstants.LANDING_PAGE_PATH", - "type": "string", - "tags": [], - "label": "LANDING_PAGE_PATH", - "description": [], - "path": "src/plugins/visualize/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.VisualizeConstants.WIZARD_STEP_1_PAGE_PATH", - "type": "string", - "tags": [], - "label": "WIZARD_STEP_1_PAGE_PATH", - "description": [], - "path": "src/plugins/visualize/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.VisualizeConstants.WIZARD_STEP_2_PAGE_PATH", - "type": "string", - "tags": [], - "label": "WIZARD_STEP_2_PAGE_PATH", - "description": [], - "path": "src/plugins/visualize/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.VisualizeConstants.CREATE_PATH", - "type": "string", - "tags": [], - "label": "CREATE_PATH", - "description": [], - "path": "src/plugins/visualize/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.VisualizeConstants.EDIT_PATH", - "type": "string", - "tags": [], - "label": "EDIT_PATH", - "description": [], - "path": "src/plugins/visualize/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.VisualizeConstants.EDIT_BY_VALUE_PATH", - "type": "string", - "tags": [], - "label": "EDIT_BY_VALUE_PATH", - "description": [], - "path": "src/plugins/visualize/common/constants.ts", - "deprecated": false - }, - { - "parentPluginId": "visualize", - "id": "def-public.VisualizeConstants.APP_ID", - "type": "string", - "tags": [], - "label": "APP_ID", - "description": [], - "path": "src/plugins/visualize/common/constants.ts", - "deprecated": false - } - ], - "initialIsOpen": false - } - ], - "setup": { - "parentPluginId": "visualize", - "id": "def-public.VisualizePluginSetup", - "type": "Interface", - "tags": [], - "label": "VisualizePluginSetup", - "description": [], - "path": "src/plugins/visualize/public/plugin.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "visualize", - "id": "def-public.VisualizePluginSetup.visEditorsRegistry", - "type": "Object", - "tags": [], - "label": "visEditorsRegistry", - "description": [], - "signature": [ - "{ registerDefault: (editor: ", - "VisEditorConstructor", - "<", - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.VisParams", - "text": "VisParams" - }, - ">) => void; register: (name: string, editor: ", - "VisEditorConstructor", - ") => void; get: (name: string) => ", - "VisEditorConstructor", - " | undefined; }" - ], - "path": "src/plugins/visualize/public/plugin.ts", - "deprecated": false - } - ], - "lifecycle": "setup", - "initialIsOpen": true - } - }, - "server": { - "classes": [], - "functions": [], - "interfaces": [], - "enums": [], - "misc": [], - "objects": [] - }, - "common": { - "classes": [], - "functions": [], - "interfaces": [], - "enums": [], - "misc": [], - "objects": [] - } -} \ No newline at end of file diff --git a/api_docs/visualize.mdx b/api_docs/visualize.mdx deleted file mode 100644 index f1b6e78e482c05..00000000000000 --- a/api_docs/visualize.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: kibVisualizePluginApi -slug: /kibana-dev-docs/api/visualize -title: "visualize" -image: https://source.unsplash.com/400x175/?github -summary: API docs for the visualize plugin -date: 2020-11-16 -tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visualize'] -warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. ---- -import visualizeObj from './visualize.json'; - -Contains the visualize application which includes the listing page and the app frame, which will load the visualization's editor. - -Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) for questions regarding this plugin. - -**Code health stats** - -| Public API count | Any count | Items lacking comments | Missing exports | -|-------------------|-----------|------------------------|-----------------| -| 24 | 0 | 23 | 1 | - -## Client - -### Setup - - -### Objects - - -### Interfaces - - diff --git a/docs/canvas/canvas-tutorial.asciidoc b/docs/canvas/canvas-tutorial.asciidoc index 8700161df2bf61..389cac89cde822 100644 --- a/docs/canvas/canvas-tutorial.asciidoc +++ b/docs/canvas/canvas-tutorial.asciidoc @@ -26,10 +26,14 @@ To customize your workpad to look the way you want, add your own images. + The default Elastic logo image appears on the page. -. To add your own image, click the Elastic logo, then drag the image file to the *Select or drag and drop an image* field. +. Add your own image. + +.. Click the Elastic logo. + +.. Drag the image file to the *Select or drag and drop an image* field. + [role="screenshot"] -image::images/canvas-image-element.png[Image showing how to add the image element] +image::images/canvas_tutorialCustomImage_7.17.0.png[The Analytics logo added to the workpad] [float] === Customize your data with metrics @@ -42,9 +46,12 @@ By default, the element is connected to the demo data, which enables you to expe . To connect the element to your own data source, make sure that the element is selected, click *Data > Demo data > Elasticsearch SQL*. -.. In the *Query* field, enter the following: +.. In the *Query* field, enter: + -`SELECT sum(taxless_total_price) AS sum_total_price FROM "kibana_sample_data_ecommerce"` +[source,text] +-- +SELECT sum(taxless_total_price) AS sum_total_price FROM "kibana_sample_data_ecommerce" +-- .. Click *Save*. + @@ -54,7 +61,7 @@ The query selects the total price field and sets it to the sum_total_price field .. Click *Display* -.. From the *Value* drop-down lists, make sure that *Unique* is selected, then select *sum_total_price*. +.. From the *Value* dropdowns, make sure *Unique* is selected, then select *sum_total_price*. .. Change the *Label* to `Total sales`. @@ -69,7 +76,7 @@ You're now looking at the raw data syntax that Canvas uses to display the elemen .. Click *Run*. [role="screenshot"] -image::images/canvas-metric-element.png[Image showing changes to the Canvas workpad] +image::images/canvas_tutorialCustomMetric_7.17.0.png[The total sales metric added to the workpad using Elasticsearch SQL] [float] === Show off your data with charts @@ -82,7 +89,10 @@ To show what your data can do, add charts, graphs, progress monitors, and more t .. To obtain the taxless total price by date, enter the following in the *Query* field: + -`SELECT order_date, taxless_total_price FROM "kibana_sample_data_ecommerce" ORDER BY order_date` +[source,text] +-- +SELECT order_date, taxless_total_price FROM "kibana_sample_data_ecommerce" ORDER BY order_date +-- .. Click *Save*. @@ -95,7 +105,7 @@ To show what your data can do, add charts, graphs, progress monitors, and more t .. From the *Y-axis* drop-down lists, select *Value*, then select *taxless_total_price*. [role="screenshot"] -image::images/canvas-chart-element.png[Image showing Canvas workpad with sample data graph] +image::images/canvas_tutorialCustomChart_7.17.0.png[Custom line chart added to the workpad using Elasticsearch SQL] [float] === Show how your data changes over time @@ -109,7 +119,7 @@ To focus your data on a specific time range, add the time filter. . To use the date time field from the sample data, enter `order_date` in the *Column* field, then click *Set*. [role="screenshot"] -image::images/canvas-timefilter-element.png[Image showing Canvas workpad with filtered sample data graph] +image::images/canvas_tutorialCustomTimeFilter_7.17.0.png[Custom time filter added to the workpad] To see how the data changes, set the time filter to *Last 7 days*. As you change the time filter options, the elements automatically update. diff --git a/docs/canvas/images/canvas-add-pages.gif b/docs/canvas/images/canvas-add-pages.gif deleted file mode 100644 index 0b001c5f8b10c2..00000000000000 Binary files a/docs/canvas/images/canvas-add-pages.gif and /dev/null differ diff --git a/docs/canvas/images/canvas-chart-element.png b/docs/canvas/images/canvas-chart-element.png deleted file mode 100644 index c6942dfb61a3f4..00000000000000 Binary files a/docs/canvas/images/canvas-chart-element.png and /dev/null differ diff --git a/docs/canvas/images/canvas-image-element.png b/docs/canvas/images/canvas-image-element.png deleted file mode 100644 index ef1ab3bb3f105d..00000000000000 Binary files a/docs/canvas/images/canvas-image-element.png and /dev/null differ diff --git a/docs/canvas/images/canvas-metric-element.png b/docs/canvas/images/canvas-metric-element.png deleted file mode 100644 index 8dcdb8d42cc9d8..00000000000000 Binary files a/docs/canvas/images/canvas-metric-element.png and /dev/null differ diff --git a/docs/canvas/images/canvas-timefilter-element.png b/docs/canvas/images/canvas-timefilter-element.png deleted file mode 100644 index b79adbfeea0942..00000000000000 Binary files a/docs/canvas/images/canvas-timefilter-element.png and /dev/null differ diff --git a/docs/canvas/images/canvas_logWebTrafficWorkpadTemplate_7.17.0.png b/docs/canvas/images/canvas_logWebTrafficWorkpadTemplate_7.17.0.png new file mode 100644 index 00000000000000..0b3557cbeaf0f2 Binary files /dev/null and b/docs/canvas/images/canvas_logWebTrafficWorkpadTemplate_7.17.0.png differ diff --git a/docs/canvas/images/canvas_tutorialCustomChart_7.17.0.png b/docs/canvas/images/canvas_tutorialCustomChart_7.17.0.png new file mode 100644 index 00000000000000..e9ebdd42987d22 Binary files /dev/null and b/docs/canvas/images/canvas_tutorialCustomChart_7.17.0.png differ diff --git a/docs/canvas/images/canvas_tutorialCustomImage_7.17.0.png b/docs/canvas/images/canvas_tutorialCustomImage_7.17.0.png new file mode 100644 index 00000000000000..5cca761ccc6d19 Binary files /dev/null and b/docs/canvas/images/canvas_tutorialCustomImage_7.17.0.png differ diff --git a/docs/canvas/images/canvas_tutorialCustomMetric_7.17.0.png b/docs/canvas/images/canvas_tutorialCustomMetric_7.17.0.png new file mode 100644 index 00000000000000..6d746ebebcbc20 Binary files /dev/null and b/docs/canvas/images/canvas_tutorialCustomMetric_7.17.0.png differ diff --git a/docs/canvas/images/canvas_tutorialCustomTimeFilter_7.17.0.png b/docs/canvas/images/canvas_tutorialCustomTimeFilter_7.17.0.png new file mode 100644 index 00000000000000..7eb78efa5f5911 Binary files /dev/null and b/docs/canvas/images/canvas_tutorialCustomTimeFilter_7.17.0.png differ diff --git a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md index 03862cedf5477b..7864f2ca828db1 100644 --- a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md +++ b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md @@ -197,6 +197,7 @@ readonly links: { readonly kibana: { readonly guide: string; readonly autocompleteSuggestions: string; + readonly xpackSecurity: string; }; readonly upgradeAssistant: { readonly overview: string; diff --git a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md index 618aef54423bb0..ed7fd160f8f3f2 100644 --- a/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md +++ b/docs/development/core/public/kibana-plugin-core-public.doclinksstart.md @@ -17,5 +17,5 @@ export interface DocLinksStart | --- | --- | --- | | [DOC\_LINK\_VERSION](./kibana-plugin-core-public.doclinksstart.doc_link_version.md) | string | | | [ELASTIC\_WEBSITE\_URL](./kibana-plugin-core-public.doclinksstart.elastic_website_url.md) | string | | -| [links](./kibana-plugin-core-public.doclinksstart.links.md) | { readonly settings: string; readonly elasticStackGetStarted: string; readonly upgrade: { readonly upgradingElasticStack: string; }; readonly apm: { readonly kibanaSettings: string; readonly supportedServiceMaps: string; readonly customLinks: string; readonly droppedTransactionSpans: string; readonly upgrading: string; readonly metaData: string; }; readonly canvas: { readonly guide: string; }; readonly cloud: { readonly indexManagement: string; }; readonly console: { readonly guide: string; }; readonly dashboard: { readonly guide: string; readonly drilldowns: string; readonly drilldownsTriggerPicker: string; readonly urlDrilldownTemplateSyntax: string; readonly urlDrilldownVariables: string; }; readonly discover: Record<string, string>; readonly filebeat: { readonly base: string; readonly installation: string; readonly configuration: string; readonly elasticsearchOutput: string; readonly elasticsearchModule: string; readonly startup: string; readonly exportedFields: string; readonly suricataModule: string; readonly zeekModule: string; }; readonly auditbeat: { readonly base: string; readonly auditdModule: string; readonly systemModule: string; }; readonly metricbeat: { readonly base: string; readonly configure: string; readonly httpEndpoint: string; readonly install: string; readonly start: string; }; readonly appSearch: { readonly apiRef: string; readonly apiClients: string; readonly apiKeys: string; readonly authentication: string; readonly crawlRules: string; readonly curations: string; readonly duplicateDocuments: string; readonly entryPoints: string; readonly guide: string; readonly indexingDocuments: string; readonly indexingDocumentsSchema: string; readonly logSettings: string; readonly metaEngines: string; readonly precisionTuning: string; readonly relevanceTuning: string; readonly resultSettings: string; readonly searchUI: string; readonly security: string; readonly synonyms: string; readonly webCrawler: string; readonly webCrawlerEventLogs: string; }; readonly enterpriseSearch: { readonly configuration: string; readonly licenseManagement: string; readonly mailService: string; readonly usersAccess: string; }; readonly workplaceSearch: { readonly apiKeys: string; readonly box: string; readonly confluenceCloud: string; readonly confluenceServer: string; readonly customSources: string; readonly customSourcePermissions: string; readonly documentPermissions: string; readonly dropbox: string; readonly externalIdentities: string; readonly gitHub: string; readonly gettingStarted: string; readonly gmail: string; readonly googleDrive: string; readonly indexingSchedule: string; readonly jiraCloud: string; readonly jiraServer: string; readonly oneDrive: string; readonly permissions: string; readonly salesforce: string; readonly security: string; readonly serviceNow: string; readonly sharePoint: string; readonly slack: string; readonly synch: string; readonly zendesk: string; }; readonly heartbeat: { readonly base: string; }; readonly libbeat: { readonly getStarted: string; }; readonly logstash: { readonly base: string; }; readonly functionbeat: { readonly base: string; }; readonly winlogbeat: { readonly base: string; }; readonly aggs: { readonly composite: string; readonly composite\_missing\_bucket: string; readonly date\_histogram: string; readonly date\_range: string; readonly date\_format\_pattern: string; readonly filter: string; readonly filters: string; readonly geohash\_grid: string; readonly histogram: string; readonly ip\_range: string; readonly range: string; readonly significant\_terms: string; readonly terms: string; readonly terms\_doc\_count\_error: string; readonly rare\_terms: string; readonly avg: string; readonly avg\_bucket: string; readonly max\_bucket: string; readonly min\_bucket: string; readonly sum\_bucket: string; readonly cardinality: string; readonly count: string; readonly cumulative\_sum: string; readonly derivative: string; readonly geo\_bounds: string; readonly geo\_centroid: string; readonly max: string; readonly median: string; readonly min: string; readonly moving\_avg: string; readonly percentile\_ranks: string; readonly serial\_diff: string; readonly std\_dev: string; readonly sum: string; readonly top\_hits: string; }; readonly runtimeFields: { readonly overview: string; readonly mapping: string; }; readonly scriptedFields: { readonly scriptFields: string; readonly scriptAggs: string; readonly painless: string; readonly painlessApi: string; readonly painlessLangSpec: string; readonly painlessSyntax: string; readonly painlessWalkthrough: string; readonly luceneExpressions: string; }; readonly search: { readonly sessions: string; readonly sessionLimits: string; }; readonly indexPatterns: { readonly introduction: string; readonly fieldFormattersNumber: string; readonly fieldFormattersString: string; readonly runtimeFields: string; }; readonly addData: string; readonly kibana: string; readonly upgradeAssistant: { readonly overview: string; readonly batchReindex: string; readonly remoteReindex: string; }; readonly rollupJobs: string; readonly elasticsearch: Record<string, string>; readonly siem: { readonly privileges: string; readonly guide: string; readonly gettingStarted: string; readonly ml: string; readonly ruleChangeLog: string; readonly detectionsReq: string; readonly networkMap: string; readonly troubleshootGaps: string; }; readonly securitySolution: { readonly trustedApps: string; readonly eventFilters: string; }; readonly query: { readonly eql: string; readonly kueryQuerySyntax: string; readonly luceneQuerySyntax: string; readonly percolate: string; readonly queryDsl: string; }; readonly date: { readonly dateMath: string; readonly dateMathIndexNames: string; }; readonly management: Record<string, string>; readonly ml: Record<string, string>; readonly transforms: Record<string, string>; readonly visualize: Record<string, string>; readonly apis: Readonly<{ bulkIndexAlias: string; byteSizeUnits: string; createAutoFollowPattern: string; createFollower: string; createIndex: string; createSnapshotLifecyclePolicy: string; createRoleMapping: string; createRoleMappingTemplates: string; createRollupJobsRequest: string; createApiKey: string; createPipeline: string; createTransformRequest: string; cronExpressions: string; executeWatchActionModes: string; indexExists: string; openIndex: string; putComponentTemplate: string; painlessExecute: string; painlessExecuteAPIContexts: string; putComponentTemplateMetadata: string; putSnapshotLifecyclePolicy: string; putIndexTemplateV1: string; putWatch: string; simulatePipeline: string; timeUnits: string; updateTransform: string; }>; readonly observability: Readonly<{ guide: string; infrastructureThreshold: string; logsThreshold: string; metricsThreshold: string; monitorStatus: string; monitorUptime: string; tlsCertificate: string; uptimeDurationAnomaly: string; }>; readonly alerting: Record<string, string>; readonly maps: Readonly<{ guide: string; importGeospatialPrivileges: string; gdalTutorial: string; }>; readonly monitoring: Record<string, string>; readonly security: Readonly<{ apiKeyServiceSettings: string; clusterPrivileges: string; elasticsearchSettings: string; elasticsearchEnableSecurity: string; elasticsearchEnableApiKeys: string; indicesPrivileges: string; kibanaTLS: string; kibanaPrivileges: string; mappingRoles: string; mappingRolesFieldRules: string; runAsPrivilege: string; }>; readonly spaces: Readonly<{ kibanaLegacyUrlAliases: string; kibanaDisableLegacyUrlAliasesApi: string; }>; readonly watcher: Record<string, string>; readonly ccs: Record<string, string>; readonly plugins: { azureRepo: string; gcsRepo: string; hdfsRepo: string; s3Repo: string; snapshotRestoreRepos: string; mapperSize: string; }; readonly snapshotRestore: Record<string, string>; readonly ingest: Record<string, string>; readonly fleet: Readonly<{ beatsAgentComparison: string; guide: string; fleetServer: string; fleetServerAddFleetServer: string; settings: string; settingsFleetServerHostSettings: string; settingsFleetServerProxySettings: string; troubleshooting: string; elasticAgent: string; datastreams: string; datastreamsNamingScheme: string; installElasticAgent: string; installElasticAgentStandalone: string; upgradeElasticAgent: string; upgradeElasticAgent712lower: string; learnMoreBlog: string; apiKeysLearnMore: string; onPremRegistry: string; }>; readonly ecs: { readonly guide: string; }; readonly clients: { readonly guide: string; readonly goOverview: string; readonly javaIndex: string; readonly jsIntro: string; readonly netGuide: string; readonly perlGuide: string; readonly phpGuide: string; readonly pythonGuide: string; readonly rubyOverview: string; readonly rustGuide: string; }; readonly endpoints: { readonly troubleshooting: string; }; } | | +| [links](./kibana-plugin-core-public.doclinksstart.links.md) | { readonly settings: string; readonly elasticStackGetStarted: string; readonly upgrade: { readonly upgradingElasticStack: string; }; readonly apm: { readonly kibanaSettings: string; readonly supportedServiceMaps: string; readonly customLinks: string; readonly droppedTransactionSpans: string; readonly upgrading: string; readonly metaData: string; }; readonly canvas: { readonly guide: string; }; readonly cloud: { readonly indexManagement: string; }; readonly console: { readonly guide: string; }; readonly dashboard: { readonly guide: string; readonly drilldowns: string; readonly drilldownsTriggerPicker: string; readonly urlDrilldownTemplateSyntax: string; readonly urlDrilldownVariables: string; }; readonly discover: Record<string, string>; readonly filebeat: { readonly base: string; readonly installation: string; readonly configuration: string; readonly elasticsearchOutput: string; readonly elasticsearchModule: string; readonly startup: string; readonly exportedFields: string; readonly suricataModule: string; readonly zeekModule: string; }; readonly auditbeat: { readonly base: string; readonly auditdModule: string; readonly systemModule: string; }; readonly metricbeat: { readonly base: string; readonly configure: string; readonly httpEndpoint: string; readonly install: string; readonly start: string; }; readonly appSearch: { readonly apiRef: string; readonly apiClients: string; readonly apiKeys: string; readonly authentication: string; readonly crawlRules: string; readonly curations: string; readonly duplicateDocuments: string; readonly entryPoints: string; readonly guide: string; readonly indexingDocuments: string; readonly indexingDocumentsSchema: string; readonly logSettings: string; readonly metaEngines: string; readonly precisionTuning: string; readonly relevanceTuning: string; readonly resultSettings: string; readonly searchUI: string; readonly security: string; readonly synonyms: string; readonly webCrawler: string; readonly webCrawlerEventLogs: string; }; readonly enterpriseSearch: { readonly configuration: string; readonly licenseManagement: string; readonly mailService: string; readonly usersAccess: string; }; readonly workplaceSearch: { readonly apiKeys: string; readonly box: string; readonly confluenceCloud: string; readonly confluenceServer: string; readonly customSources: string; readonly customSourcePermissions: string; readonly documentPermissions: string; readonly dropbox: string; readonly externalIdentities: string; readonly gitHub: string; readonly gettingStarted: string; readonly gmail: string; readonly googleDrive: string; readonly indexingSchedule: string; readonly jiraCloud: string; readonly jiraServer: string; readonly oneDrive: string; readonly permissions: string; readonly salesforce: string; readonly security: string; readonly serviceNow: string; readonly sharePoint: string; readonly slack: string; readonly synch: string; readonly zendesk: string; }; readonly heartbeat: { readonly base: string; }; readonly libbeat: { readonly getStarted: string; }; readonly logstash: { readonly base: string; }; readonly functionbeat: { readonly base: string; }; readonly winlogbeat: { readonly base: string; }; readonly aggs: { readonly composite: string; readonly composite\_missing\_bucket: string; readonly date\_histogram: string; readonly date\_range: string; readonly date\_format\_pattern: string; readonly filter: string; readonly filters: string; readonly geohash\_grid: string; readonly histogram: string; readonly ip\_range: string; readonly range: string; readonly significant\_terms: string; readonly terms: string; readonly terms\_doc\_count\_error: string; readonly rare\_terms: string; readonly avg: string; readonly avg\_bucket: string; readonly max\_bucket: string; readonly min\_bucket: string; readonly sum\_bucket: string; readonly cardinality: string; readonly count: string; readonly cumulative\_sum: string; readonly derivative: string; readonly geo\_bounds: string; readonly geo\_centroid: string; readonly max: string; readonly median: string; readonly min: string; readonly moving\_avg: string; readonly percentile\_ranks: string; readonly serial\_diff: string; readonly std\_dev: string; readonly sum: string; readonly top\_hits: string; }; readonly runtimeFields: { readonly overview: string; readonly mapping: string; }; readonly scriptedFields: { readonly scriptFields: string; readonly scriptAggs: string; readonly painless: string; readonly painlessApi: string; readonly painlessLangSpec: string; readonly painlessSyntax: string; readonly painlessWalkthrough: string; readonly luceneExpressions: string; }; readonly search: { readonly sessions: string; readonly sessionLimits: string; }; readonly indexPatterns: { readonly introduction: string; readonly fieldFormattersNumber: string; readonly fieldFormattersString: string; readonly runtimeFields: string; }; readonly addData: string; readonly kibana: { readonly guide: string; readonly autocompleteSuggestions: string; readonly xpackSecurity: string; }; readonly upgradeAssistant: { readonly overview: string; readonly batchReindex: string; readonly remoteReindex: string; }; readonly rollupJobs: string; readonly elasticsearch: Record<string, string>; readonly siem: { readonly privileges: string; readonly guide: string; readonly gettingStarted: string; readonly ml: string; readonly ruleChangeLog: string; readonly detectionsReq: string; readonly networkMap: string; readonly troubleshootGaps: string; }; readonly securitySolution: { readonly trustedApps: string; readonly eventFilters: string; }; readonly query: { readonly eql: string; readonly kueryQuerySyntax: string; readonly luceneQuery: string; readonly luceneQuerySyntax: string; readonly percolate: string; readonly queryDsl: string; }; readonly date: { readonly dateMath: string; readonly dateMathIndexNames: string; }; readonly management: Record<string, string>; readonly ml: Record<string, string>; readonly transforms: Record<string, string>; readonly visualize: Record<string, string>; readonly apis: Readonly<{ bulkIndexAlias: string; byteSizeUnits: string; createAutoFollowPattern: string; createFollower: string; createIndex: string; createSnapshotLifecyclePolicy: string; createRoleMapping: string; createRoleMappingTemplates: string; createRollupJobsRequest: string; createApiKey: string; createPipeline: string; createTransformRequest: string; cronExpressions: string; executeWatchActionModes: string; indexExists: string; multiSearch: string; openIndex: string; putComponentTemplate: string; painlessExecute: string; painlessExecuteAPIContexts: string; putComponentTemplateMetadata: string; putSnapshotLifecyclePolicy: string; putIndexTemplateV1: string; putWatch: string; searchPreference: string; simulatePipeline: string; timeUnits: string; unfreezeIndex: string; updateTransform: string; }>; readonly observability: Readonly<{ guide: string; infrastructureThreshold: string; logsThreshold: string; metricsThreshold: string; monitorStatus: string; monitorUptime: string; tlsCertificate: string; uptimeDurationAnomaly: string; }>; readonly alerting: Record<string, string>; readonly maps: Readonly<{ guide: string; importGeospatialPrivileges: string; gdalTutorial: string; }>; readonly monitoring: Record<string, string>; readonly security: Readonly<{ apiKeyServiceSettings: string; clusterPrivileges: string; elasticsearchSettings: string; elasticsearchEnableSecurity: string; elasticsearchEnableApiKeys: string; indicesPrivileges: string; kibanaTLS: string; kibanaPrivileges: string; mappingRoles: string; mappingRolesFieldRules: string; runAsPrivilege: string; }>; readonly spaces: Readonly<{ kibanaLegacyUrlAliases: string; kibanaDisableLegacyUrlAliasesApi: string; }>; readonly watcher: Record<string, string>; readonly ccs: Record<string, string>; readonly plugins: { azureRepo: string; gcsRepo: string; hdfsRepo: string; s3Repo: string; snapshotRestoreRepos: string; mapperSize: string; }; readonly snapshotRestore: Record<string, string>; readonly ingest: Record<string, string>; readonly fleet: Readonly<{ beatsAgentComparison: string; guide: string; fleetServer: string; fleetServerAddFleetServer: string; settings: string; settingsFleetServerHostSettings: string; settingsFleetServerProxySettings: string; troubleshooting: string; elasticAgent: string; datastreams: string; datastreamsNamingScheme: string; installElasticAgent: string; installElasticAgentStandalone: string; upgradeElasticAgent: string; upgradeElasticAgent712lower: string; learnMoreBlog: string; apiKeysLearnMore: string; onPremRegistry: string; }>; readonly ecs: { readonly guide: string; }; readonly clients: { readonly guide: string; readonly goOverview: string; readonly javaIndex: string; readonly jsIntro: string; readonly netGuide: string; readonly perlGuide: string; readonly phpGuide: string; readonly pythonGuide: string; readonly rubyOverview: string; readonly rustGuide: string; }; readonly endpoints: { readonly troubleshooting: string; }; } | | diff --git a/docs/setup/images/canvas_tutorialCustomTimeFilter_7.17.0.png b/docs/setup/images/canvas_tutorialCustomTimeFilter_7.17.0.png new file mode 100644 index 00000000000000..4ba96c43003ace Binary files /dev/null and b/docs/setup/images/canvas_tutorialCustomTimeFilter_7.17.0.png differ diff --git a/docs/user/canvas.asciidoc b/docs/user/canvas.asciidoc index df95dc06ee0b82..372a8285fdbe08 100644 --- a/docs/user/canvas.asciidoc +++ b/docs/user/canvas.asciidoc @@ -19,14 +19,7 @@ With *Canvas*, you can: * Focus the data you want to display with filters. -++++ - -
-++++ +image::images/canvas_logWebTrafficWorkpadTemplate_7.17.0.png[Logs Web Traffic workpad template] [float] [[create-workpads]] @@ -138,15 +131,13 @@ To access your saved elements, click *Add element > My elements*. Add a panel that you saved in *Visualize Library* to your workpad. -. Click *Add element > Add from {kib}*. - -. Select the panel you want to add. +. Click *Add from library*, then select the panel you want to add. . To use the customization options, open the panel menu, then select one of the following options: * *Edit map* — Opens <> so that you can edit the panel. -* *Edit visualization* — Opens the visualization editor so that you can edit the panel. +* *Edit Visualization* — Opens the visualization editor so that you can edit the panel. * *Edit panel title* — Allows you to change the panel title. @@ -164,7 +155,7 @@ To personalize your workpad, add your own logos and graphics. . On the *Manage workpad assets* window, drag and drop your images. -. To add the image to the workpad, click the *Create image element* icon. +. To add the image to the workpad, click *Create image element*. [float] [[add-more-pages]] @@ -175,9 +166,6 @@ Organize and separate your ideas by adding more pages. . Click *Page 1*, then click *+*. . On the *Page* editor panel, select the page transition from the *Transition* dropdown. -+ -[role="screenshot"] -image::images/canvas-add-pages.gif[Add pages] [float] [[workpad-share-options]] diff --git a/docs/user/security/audit-logging.asciidoc b/docs/user/security/audit-logging.asciidoc index 1e7eb1971af087..15d5db7395ec69 100644 --- a/docs/user/security/audit-logging.asciidoc +++ b/docs/user/security/audit-logging.asciidoc @@ -24,8 +24,9 @@ an <> to write the audit log to a location of Refer to the table of events that can be logged for auditing purposes. -Each event is broken down into <>, <>, <> and <> fields -to make it easy to filter, query and aggregate the resulting logs. +Each event is broken down into <>, <>, <> and +<> fields to make it easy to filter, query and aggregate the resulting logs. The <> +field can be used to correlate multiple events that originate from the same request. Refer to <> for a table of fields that get logged with audit event. @@ -423,7 +424,57 @@ Example: `https` | *Field* | *Description* -| `trace.id` +| [[field-trace-id]] `trace.id` | Unique identifier allowing events of the same transaction from {kib} and {es} to be be correlated. |====== + +[[xpack-security-ecs-audit-correlation]] +==== Correlating audit events + +Audit events can be correlated in two ways: + +1. Multiple {kib} audit events that resulted from the same request can be correlated together. +2. If {ref}/enable-audit-logging.html[{es} audit logging] is enabled, {kib} audit events from one request can be correlated with backend + calls that create {es} audit events. + +NOTE: The examples below are simplified, many fields have been omitted and values have been shortened for clarity. + +===== Example 1: correlating multiple {kib} audit events + +When "thom" creates a new alerting rule, five audit events are written: + +[source,json] +------------- +{"event":{"action":"http_request","category":["web"],"outcome":"unknown"},"http":{"request":{"method":"post"}},"url":{"domain":"localhost","path":"/api/alerting/rule","port":5601,"scheme":"https"},"user":{"name":"thom","roles":["superuser"]},"kibana":{"space_id":"default","session_id":"3dHCZRB..."},"@timestamp":"2022-01-25T13:05:34.449-05:00","message":"User is requesting [/api/alerting/rule] endpoint","trace":{"id":"e300e06..."}} +{"event":{"action":"space_get","category":["database"],"type":["access"],"outcome":"success"},"kibana":{"space_id":"default","session_id":"3dHCZRB...","saved_object":{"type":"space","id":"default"}},"user":{"name":"thom","roles":["superuser"]},"@timestamp":"2022-01-25T13:05:34.454-05:00","message":"User has accessed space [id=default]","trace":{"id":"e300e06..."}} +{"event":{"action":"connector_get","category":["database"],"type":["access"],"outcome":"success"},"kibana":{"space_id":"default","session_id":"3dHCZRB...","saved_object":{"type":"action","id":"5e3b1ae..."}},"user":{"name":"thom","roles":["superuser"]},"@timestamp":"2022-01-25T13:05:34.948-05:00","message":"User has accessed connector [id=5e3b1ae...]","trace":{"id":"e300e06..."}} +{"event":{"action":"connector_get","category":["database"],"type":["access"],"outcome":"success"},"kibana":{"space_id":"default","session_id":"3dHCZRB...","saved_object":{"type":"action","id":"5e3b1ae..."}},"user":{"name":"thom","roles":["superuser"]},"@timestamp":"2022-01-25T13:05:34.956-05:00","message":"User has accessed connector [id=5e3b1ae...]","trace":{"id":"e300e06..."}} +{"event":{"action":"rule_create","category":["database"],"type":["creation"],"outcome":"unknown"},"kibana":{"space_id":"default","session_id":"3dHCZRB...","saved_object":{"type":"alert","id":"64517c3..."}},"user":{"name":"thom","roles":["superuser"]},"@timestamp":"2022-01-25T13:05:34.956-05:00","message":"User is creating rule [id=64517c3...]","trace":{"id":"e300e06..."}} +------------- + +All of these audit events can be correlated together by the same `trace.id` value `"e300e06..."`. The first event is the HTTP API call, the +next audit events are checks to validate the space and the connectors, and the last audit event is the actual rule creation. + +===== Example 2: correlating a {kib} audit event with {es} audit events + +When "thom" logs in, a "user_login" {kib} audit event is written: + +[source,json] +------------- +{"event":{"action":"user_login","category":["authentication"],"outcome":"success"},"user":{"name":"thom","roles":["superuser"]},"@timestamp":"2022-01-25T09:40:39.267-05:00","message":"User [thom] has logged in using basic provider [name=basic]","trace":{"id":"818cbf3..."}} +------------- + +The `trace.id` value `"818cbf3..."` in the {kib} audit event can be correlated with the `opaque_id` value in these six {es} audit events: + +[source,json] +------------- +{"type":"audit", "timestamp":"2022-01-25T09:40:38,604-0500", "event.action":"access_granted", "user.name":"thom", "user.roles":["superuser"], "request.id":"YCx8wxs...", "action":"cluster:admin/xpack/security/user/authenticate", "request.name":"AuthenticateRequest", "opaque_id":"818cbf3..."} +{"type":"audit", "timestamp":"2022-01-25T09:40:38,613-0500", "event.action":"access_granted", "user.name":"kibana_system", "user.roles":["kibana_system"], "request.id":"Ksx73Ad...", "action":"indices:data/write/index", "request.name":"IndexRequest", "indices":[".kibana_security_session_1"], "opaque_id":"818cbf3..."} +{"type":"audit", "timestamp":"2022-01-25T09:40:38,613-0500", "event.action":"access_granted", "user.name":"kibana_system", "user.roles":["kibana_system"], "request.id":"Ksx73Ad...", "action":"indices:data/write/bulk", "request.name":"BulkRequest", "opaque_id":"818cbf3..."} +{"type":"audit", "timestamp":"2022-01-25T09:40:38,613-0500", "event.action":"access_granted", "user.name":"kibana_system", "user.roles":["kibana_system"], "request.id":"Ksx73Ad...", "action":"indices:data/write/bulk[s]", "request.name":"BulkShardRequest", "indices":[".kibana_security_session_1"], "opaque_id":"818cbf3..."} +{"type":"audit", "timestamp":"2022-01-25T09:40:38,613-0500", "event.action":"access_granted", "user.name":"kibana_system", "user.roles":["kibana_system"], "request.id":"Ksx73Ad...", "action":"indices:data/write/index:op_type/create", "request.name":"BulkItemRequest", "indices":[".kibana_security_session_1"], "opaque_id":"818cbf3..."} +{"type":"audit", "timestamp":"2022-01-25T09:40:38,613-0500", "event.action":"access_granted", "user.name":"kibana_system", "user.roles":["kibana_system"], "request.id":"Ksx73Ad...", "action":"indices:data/write/bulk[s][p]", "request.name":"BulkShardRequest", "indices":[".kibana_security_session_1"], "opaque_id":"818cbf3..."} +------------- + +The {es} audit events show that "thom" authenticated, then subsequently "kibana_system" created a session for that user. diff --git a/package.json b/package.json index 3c1284644a1ad3..f17b4017058d8f 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "@elastic/apm-rum": "^5.10.1", "@elastic/apm-rum-react": "^1.3.3", "@elastic/apm-synthtrace": "link:bazel-bin/packages/elastic-apm-synthtrace", - "@elastic/charts": "40.2.0", + "@elastic/charts": "43.1.1", "@elastic/datemath": "link:bazel-bin/packages/elastic-datemath", "@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.1.0-canary.2", "@elastic/ems-client": "8.0.0", @@ -722,7 +722,7 @@ "callsites": "^3.1.0", "chai": "3.5.0", "chance": "1.0.18", - "chromedriver": "^97.0.0", + "chromedriver": "^97.0.2", "clean-webpack-plugin": "^3.0.0", "cmd-shim": "^2.1.0", "compression-webpack-plugin": "^4.0.0", diff --git a/packages/kbn-docs-utils/src/api_docs/mdx/write_plugin_mdx_docs.ts b/packages/kbn-docs-utils/src/api_docs/mdx/write_plugin_mdx_docs.ts index fabe55d93c8ef2..562296418bbbe5 100644 --- a/packages/kbn-docs-utils/src/api_docs/mdx/write_plugin_mdx_docs.ts +++ b/packages/kbn-docs-utils/src/api_docs/mdx/write_plugin_mdx_docs.ts @@ -84,7 +84,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', '${doc.id}'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import ${json} from './${fileName}.json'; +import ${json} from './${fileName}.devdocs.json'; ${plugin.manifest.description ?? ''} @@ -112,7 +112,10 @@ ${ common: groupPluginApi(doc.common), server: groupPluginApi(doc.server), }; - fs.writeFileSync(Path.resolve(folder, fileName + '.json'), JSON.stringify(scopedDoc, null, 2)); + fs.writeFileSync( + Path.resolve(folder, fileName + '.devdocs.json'), + JSON.stringify(scopedDoc, null, 2) + ); mdx += scopApiToMdx(scopedDoc.client, 'Client', json, 'client'); mdx += scopApiToMdx(scopedDoc.server, 'Server', json, 'server'); diff --git a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.json b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.devdocs.json similarity index 99% rename from packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.json rename to packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.devdocs.json index a3b3cdcbe28d00..ff977517cb5a71 100644 --- a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.json +++ b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.devdocs.json @@ -1000,7 +1000,7 @@ "id": "def-public.InterfaceWithIndexSignature.Unnamed", "type": "IndexSignature", "tags": [], - "label": "[key: string}]: { foo: string; }", + "label": "[key: string]: { foo: string; }", "description": [], "signature": [ "[key: string]: { foo: string; }" diff --git a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.mdx b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.mdx index f6a7893fe5998b..9d3b2f5d3cf99d 100644 --- a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.mdx +++ b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'pluginA'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import pluginAObj from './plugin_a.json'; +import pluginAObj from './plugin_a.devdocs.json'; diff --git a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a_foo.json b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a_foo.devdocs.json similarity index 100% rename from packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a_foo.json rename to packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a_foo.devdocs.json diff --git a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a_foo.mdx b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a_foo.mdx index 13754ad452b014..6d7f42982b89b0 100644 --- a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a_foo.mdx +++ b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_a_foo.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'pluginA.foo'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import pluginAFooObj from './plugin_a_foo.json'; +import pluginAFooObj from './plugin_a_foo.devdocs.json'; diff --git a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_b.json b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_b.devdocs.json similarity index 100% rename from packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_b.json rename to packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_b.devdocs.json diff --git a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_b.mdx b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_b.mdx index afc42a59ee96da..c86fbed82c23c0 100644 --- a/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_b.mdx +++ b/packages/kbn-docs-utils/src/api_docs/tests/snapshots/plugin_b.mdx @@ -8,7 +8,7 @@ date: 2020-11-16 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'pluginB'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. --- -import pluginBObj from './plugin_b.json'; +import pluginBObj from './plugin_b.devdocs.json'; diff --git a/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js b/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js index 7ec57b65d6d988..5ef61456988115 100644 --- a/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js +++ b/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js @@ -69,6 +69,16 @@ const { ES_KEY_PATH, ES_CERT_PATH } = require('@kbn/dev-utils'); }); } + if (url.pathname === '/_cluster/health') { + return send( + 200, + { + status: 'green', + }, + { 'x-elastic-product': 'Elasticsearch' } + ); + } + return send(404, { error: { reason: 'not found', diff --git a/packages/kbn-es/src/utils/native_realm.js b/packages/kbn-es/src/utils/native_realm.js index 62480ba4b537e1..52d6ae807777bf 100644 --- a/packages/kbn-es/src/utils/native_realm.js +++ b/packages/kbn-es/src/utils/native_realm.js @@ -53,7 +53,18 @@ exports.NativeRealm = class NativeRealm { }); } + async clusterReady() { + return await this._autoRetry({ maxAttempts: 10 }, async () => { + const { status } = await this._client.cluster.health(); + if (status === 'red') { + throw new Error(`not ready, cluster health is ${status}`); + } + }); + } + async setPasswords(options) { + await this.clusterReady(); + if (!(await this.isSecurityEnabled())) { this._log.info('security is not enabled, unable to set native realm passwords'); return; @@ -97,7 +108,7 @@ exports.NativeRealm = class NativeRealm { } async _autoRetry(opts, fn) { - const { attempt = 1, maxAttempts = 3 } = opts; + const { attempt = 1, maxAttempts = 3, sleep = 1000 } = opts; try { return await fn(attempt); @@ -108,7 +119,7 @@ exports.NativeRealm = class NativeRealm { const sec = 1.5 * attempt; this._log.warning(`assuming ES isn't initialized completely, trying again in ${sec} seconds`); - await new Promise((resolve) => setTimeout(resolve, sec * 1000)); + await new Promise((resolve) => setTimeout(resolve, sleep)); const nextOpts = { ...opts, diff --git a/packages/kbn-es/src/utils/native_realm.test.js b/packages/kbn-es/src/utils/native_realm.test.js index 132fe3ba4aee2e..a567c15e743aff 100644 --- a/packages/kbn-es/src/utils/native_realm.test.js +++ b/packages/kbn-es/src/utils/native_realm.test.js @@ -18,6 +18,9 @@ const mockClient = { xpack: { info: jest.fn(), }, + cluster: { + health: jest.fn(), + }, security: { changePassword: jest.fn(), getUser: jest.fn(), @@ -49,6 +52,12 @@ function mockXPackInfo(available, enabled) { })); } +function mockClusterStatus(status) { + mockClient.cluster.health.mockImplementation(() => { + return status; + }); +} + describe('isSecurityEnabled', () => { test('returns true if enabled and available', async () => { mockXPackInfo(true, true); @@ -95,6 +104,7 @@ describe('isSecurityEnabled', () => { describe('setPasswords', () => { it('uses provided passwords', async () => { mockXPackInfo(true, true); + mockClusterStatus('green'); mockClient.security.getUser.mockImplementation(() => ({ kibana_system: { diff --git a/packages/kbn-interpreter/package.json b/packages/kbn-interpreter/package.json index b27bc0f9d5059d..1480e7e808370d 100644 --- a/packages/kbn-interpreter/package.json +++ b/packages/kbn-interpreter/package.json @@ -1,5 +1,6 @@ { "name": "@kbn/interpreter", + "author": "App Services", "main": "./target_node/index.js", "version": "1.0.0", "license": "SSPL-1.0 OR Elastic License 2.0", diff --git a/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.mock.ts b/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.mock.ts index 384f093d0884aa..ad023385c82e88 100644 --- a/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.mock.ts +++ b/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.mock.ts @@ -6,11 +6,12 @@ * Side Public License, v 1. */ -import { ID, LIST_ID, NAMESPACE_TYPE } from '../../constants/index.mock'; +import { FILTER, ID, LIST_ID, NAMESPACE_TYPE } from '../../constants/index.mock'; import { SummaryExceptionListSchema } from '.'; export const getSummaryExceptionListSchemaMock = (): SummaryExceptionListSchema => ({ + filter: FILTER, id: ID, list_id: LIST_ID, namespace_type: NAMESPACE_TYPE, diff --git a/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.test.ts b/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.test.ts index ade015b0d26bfa..8619e1d260d40c 100644 --- a/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.test.ts +++ b/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.test.ts @@ -23,6 +23,17 @@ describe('summary_exception_list_schema', () => { expect(message.schema).toEqual(payload); }); + test('it should accept an undefined for "filter"', () => { + const payload = getSummaryExceptionListSchemaMock(); + delete payload.filter; + const decoded = summaryExceptionListSchema.decode(payload); + const checked = exactCheck(payload, decoded); + const message = foldLeftRight(checked); + + expect(getPaths(left(message.errors))).toEqual([]); + expect(message.schema).toEqual(payload); + }); + test('it should accept an undefined for "id"', () => { const payload = getSummaryExceptionListSchemaMock(); delete payload.id; diff --git a/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.ts b/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.ts index 990091882df7bd..4d0e33f4934090 100644 --- a/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.ts +++ b/packages/kbn-securitysolution-io-ts-list-types/src/request/summary_exception_list_schema/index.ts @@ -11,11 +11,13 @@ import * as t from 'io-ts'; import { NamespaceType } from '../../common/default_namespace'; import { RequiredKeepUndefined } from '../../common/required_keep_undefined'; import { id } from '../../common/id'; +import { filter, Filter } from '../../common/filter'; import { list_id } from '../../common/list_id'; import { namespace_type } from '../../common/namespace_type'; export const summaryExceptionListSchema = t.exact( t.partial({ + filter, id, list_id, namespace_type, // defaults to 'single' if not set during decode @@ -30,4 +32,5 @@ export type SummaryExceptionListSchemaDecoded = Omit< 'namespace_type' > & { namespace_type: NamespaceType; + filter: Filter; }; diff --git a/packages/kbn-storybook/package.json b/packages/kbn-storybook/package.json index 5360e4a5c547b4..ba03240262e9cf 100644 --- a/packages/kbn-storybook/package.json +++ b/packages/kbn-storybook/package.json @@ -1,5 +1,6 @@ { "name": "@kbn/storybook", + "author": "Operations", "version": "1.0.0", "private": true, "license": "SSPL-1.0 OR Elastic License 2.0", diff --git a/packages/kbn-test/package.json b/packages/kbn-test/package.json index c937d1e0be85c1..a94b3198e24a49 100644 --- a/packages/kbn-test/package.json +++ b/packages/kbn-test/package.json @@ -1,5 +1,6 @@ { "name": "@kbn/test", + "author": "Operations", "version": "1.0.0", "private": true, "license": "SSPL-1.0 OR Elastic License 2.0", diff --git a/packages/kbn-test/src/es/es_test_config.ts b/packages/kbn-test/src/es/es_test_config.ts index 70000c8068e9f1..7abfe25545cd2d 100644 --- a/packages/kbn-test/src/es/es_test_config.ts +++ b/packages/kbn-test/src/es/es_test_config.ts @@ -8,7 +8,7 @@ import { kibanaPackageJson as pkg } from '@kbn/utils'; import Url from 'url'; -import { adminTestUser } from '../kbn'; +import { systemIndicesSuperuser } from '../kbn'; class EsTestConfig { getVersion() { @@ -51,8 +51,8 @@ class EsTestConfig { }; } - const username = process.env.TEST_ES_USERNAME || adminTestUser.username; - const password = process.env.TEST_ES_PASSWORD || adminTestUser.password; + const username = process.env.TEST_ES_USERNAME || systemIndicesSuperuser.username; + const password = process.env.TEST_ES_PASSWORD || systemIndicesSuperuser.password; const port = process.env.TEST_ES_PORT ? parseInt(process.env.TEST_ES_PORT, 10) : 9220; diff --git a/src/core/public/doc_links/doc_links_service.ts b/src/core/public/doc_links/doc_links_service.ts index 3face209a90dca..186f6b337fbde4 100644 --- a/src/core/public/doc_links/doc_links_service.ts +++ b/src/core/public/doc_links/doc_links_service.ts @@ -226,6 +226,7 @@ export class DocLinksService { kibana: { guide: `${KIBANA_DOCS}index.html`, autocompleteSuggestions: `${KIBANA_DOCS}kibana-concepts-analysts.html#autocomplete-suggestions`, + xpackSecurity: `${KIBANA_DOCS}xpack-security.html`, }, upgradeAssistant: { overview: `${KIBANA_DOCS}upgrade-assistant.html`, @@ -508,9 +509,9 @@ export class DocLinksService { changeIndexSettings: `${ELASTICSEARCH_DOCS}index-modules.html`, createSnapshot: `${ELASTICSEARCH_DOCS}snapshots-take-snapshot.html`, getSnapshot: `${ELASTICSEARCH_DOCS}get-snapshot-api.html`, - registerSharedFileSystem: `${ELASTICSEARCH_DOCS}snapshots-register-repository.html#snapshots-filesystem-repository`, - registerSourceOnly: `${ELASTICSEARCH_DOCS}snapshots-register-repository.html#snapshots-source-only-repository`, - registerUrl: `${ELASTICSEARCH_DOCS}snapshots-register-repository.html#snapshots-read-only-repository`, + registerSharedFileSystem: `${ELASTICSEARCH_DOCS}snapshots-filesystem-repository.html#filesystem-repository-settings`, + registerSourceOnly: `${ELASTICSEARCH_DOCS}snapshots-source-only-repository.html#source-only-repository-settings`, + registerUrl: `${ELASTICSEARCH_DOCS}snapshots-read-only-repository.html#read-only-url-repository-settings`, restoreSnapshot: `${ELASTICSEARCH_DOCS}snapshots-restore-snapshot.html`, restoreSnapshotApi: `${ELASTICSEARCH_DOCS}restore-snapshot-api.html#restore-snapshot-api-request-body`, searchableSnapshotSharedCache: `${ELASTICSEARCH_DOCS}searchable-snapshots.html#searchable-snapshots-shared-cache`, @@ -797,6 +798,7 @@ export interface DocLinksStart { readonly kibana: { readonly guide: string; readonly autocompleteSuggestions: string; + readonly xpackSecurity: string; }; readonly upgradeAssistant: { readonly overview: string; diff --git a/src/core/public/public.api.md b/src/core/public/public.api.md index 603d6f184dd6fe..a29b8d0b5cc683 100644 --- a/src/core/public/public.api.md +++ b/src/core/public/public.api.md @@ -680,6 +680,7 @@ export interface DocLinksStart { readonly kibana: { readonly guide: string; readonly autocompleteSuggestions: string; + readonly xpackSecurity: string; }; readonly upgradeAssistant: { readonly overview: string; diff --git a/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts b/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts index cd3634ec16fb08..008bc3d301d9fb 100644 --- a/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts +++ b/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts @@ -48,7 +48,10 @@ const { startES } = kbnTestServer.createTestServers({ settings: { es: { license: 'basic', - dataArchive: Path.join(__dirname, './archives', '7.7.2_xpack_100k_obj.zip'), + dataArchive: Path.resolve( + __dirname, + '../../integration_tests/archives/7.7.2_xpack_100k_obj.zip' + ), esArgs: ['http.max_content_length=10Kb'], }, }, diff --git a/src/core/server/saved_objects/migrations/actions/integration_tests/archives/7.7.2_xpack_100k_obj.zip b/src/core/server/saved_objects/migrations/actions/integration_tests/archives/7.7.2_xpack_100k_obj.zip deleted file mode 100644 index 13afaa04b06f90..00000000000000 Binary files a/src/core/server/saved_objects/migrations/actions/integration_tests/archives/7.7.2_xpack_100k_obj.zip and /dev/null differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_5k_so_node_01.zip b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_5k_so_node_01.zip index 70966debbaf0e4..43965fd5842567 100644 Binary files a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_5k_so_node_01.zip and b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_5k_so_node_01.zip differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_5k_so_node_02.zip b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_5k_so_node_02.zip index 451c48d8107c89..d4d404e7c19522 100644 Binary files a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_5k_so_node_02.zip and b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_5k_so_node_02.zip differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_with_corrupted_so.zip b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_with_corrupted_so.zip index 44f2fc9ba19eb5..f4a89fbcb25148 100644 Binary files a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_with_corrupted_so.zip and b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_with_corrupted_so.zip differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_with_unknown_so.zip b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_with_unknown_so.zip index 30ee6ee23dbf3f..3312515024b918 100644 Binary files a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_with_unknown_so.zip and b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.0_with_unknown_so.zip differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.2_so_with_multiple_namespaces.zip b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.2_so_with_multiple_namespaces.zip index e4dce85f15e38e..bc305de2d45606 100644 Binary files a/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.2_so_with_multiple_namespaces.zip and b/src/core/server/saved_objects/migrations/integration_tests/archives/7.13.2_so_with_multiple_namespaces.zip differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/archives/7.14.0_xpack_sample_saved_objects.zip b/src/core/server/saved_objects/migrations/integration_tests/archives/7.14.0_xpack_sample_saved_objects.zip index 70d68587e3603b..7b498c945680c6 100644 Binary files a/src/core/server/saved_objects/migrations/integration_tests/archives/7.14.0_xpack_sample_saved_objects.zip and b/src/core/server/saved_objects/migrations/integration_tests/archives/7.14.0_xpack_sample_saved_objects.zip differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/archives/7.3.0_xpack_sample_saved_objects.zip b/src/core/server/saved_objects/migrations/integration_tests/archives/7.3.0_xpack_sample_saved_objects.zip index 5745a3e07d4884..b79a497d069416 100644 Binary files a/src/core/server/saved_objects/migrations/integration_tests/archives/7.3.0_xpack_sample_saved_objects.zip and b/src/core/server/saved_objects/migrations/integration_tests/archives/7.3.0_xpack_sample_saved_objects.zip differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/archives/7.7.2_xpack_100k_obj.zip b/src/core/server/saved_objects/migrations/integration_tests/archives/7.7.2_xpack_100k_obj.zip index 13afaa04b06f90..68d740dd21f69f 100644 Binary files a/src/core/server/saved_objects/migrations/integration_tests/archives/7.7.2_xpack_100k_obj.zip and b/src/core/server/saved_objects/migrations/integration_tests/archives/7.7.2_xpack_100k_obj.zip differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/archives/7_13_corrupt_and_transform_failures_docs.zip b/src/core/server/saved_objects/migrations/integration_tests/archives/7_13_corrupt_and_transform_failures_docs.zip index 30ee6ee23dbf3f..b808bdc4f59cec 100644 Binary files a/src/core/server/saved_objects/migrations/integration_tests/archives/7_13_corrupt_and_transform_failures_docs.zip and b/src/core/server/saved_objects/migrations/integration_tests/archives/7_13_corrupt_and_transform_failures_docs.zip differ diff --git a/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes.test.ts b/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes.test.ts index 331284c14cf042..a86177b59ee3b2 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes.test.ts @@ -51,8 +51,7 @@ async function fetchDocuments(esClient: ElasticsearchClient, index: string) { const assertMigratedDocuments = (arr: any[], target: any[]) => target.every((v) => arr.includes(v)); -// dataArchive not compatible with ES 8.0+ -describe.skip('migration v2', () => { +describe('migration v2', () => { let esServer: kbnTestServer.TestElasticsearchUtils; let root: Root; let startES: () => Promise; diff --git a/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes_exceeds_es_content_length.test.ts b/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes_exceeds_es_content_length.test.ts index 8098735ecfdb56..ae9dc76b134a59 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes_exceeds_es_content_length.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes_exceeds_es_content_length.test.ts @@ -20,8 +20,7 @@ async function removeLogFile() { await fs.unlink(logFilePath).catch(() => void 0); } -// dataArchive not compatible with ES 8.0+ -describe.skip('migration v2', () => { +describe('migration v2', () => { let esServer: kbnTestServer.TestElasticsearchUtils; let root: Root; let startES: () => Promise; diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap b/src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap index b588c1d341a75b..bd393448076438 100644 --- a/src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap +++ b/src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap @@ -4,11 +4,11 @@ exports[`GaugeComponent renders the chart 1`] = ` - - = memo( } }; - const config: HeatmapSpec['config'] = { - grid: { - stroke: { - width: - args.gridConfig.strokeWidth ?? chartTheme.axes?.gridLine?.horizontal?.strokeWidth ?? 1, - color: - args.gridConfig.strokeColor ?? - chartTheme.axes?.gridLine?.horizontal?.stroke ?? - '#D3DAE6', - }, - cellHeight: { - max: 'fill', - min: 1, + const themeOverrides: PartialTheme = { + legend: { + labelOptions: { + maxLines: args.legend.shouldTruncate ? args.legend?.maxLines ?? 1 : 0, }, }, - cell: { - maxWidth: 'fill', - maxHeight: 'fill', - label: { - visible: args.gridConfig.isCellLabelVisible ?? false, - minFontSize: 8, - maxFontSize: 18, - useGlobalMinFontSize: true, // override the min if there's a different directive upstream + heatmap: { + grid: { + stroke: { + width: + args.gridConfig.strokeWidth ?? + chartTheme.axes?.gridLine?.horizontal?.strokeWidth ?? + 1, + color: + args.gridConfig.strokeColor ?? + chartTheme.axes?.gridLine?.horizontal?.stroke ?? + '#D3DAE6', + }, + cellHeight: { + max: 'fill', + min: 1, + }, }, - border: { - strokeWidth: 0, + cell: { + maxWidth: 'fill', + maxHeight: 'fill', + label: { + visible: args.gridConfig.isCellLabelVisible ?? false, + minFontSize: 8, + maxFontSize: 18, + useGlobalMinFontSize: true, // override the min if there's a different directive upstream + }, + border: { + strokeWidth: 0, + }, + }, + yAxisLabel: { + visible: !!yAxisColumn && args.gridConfig.isYAxisLabelVisible, + // eui color subdued + textColor: chartTheme.axes?.tickLabel?.fill ?? '#6a717d', + padding: yAxisColumn?.name ? 8 : 0, + }, + xAxisLabel: { + visible: Boolean(args.gridConfig.isXAxisLabelVisible && xAxisColumn), + // eui color subdued + textColor: chartTheme.axes?.tickLabel?.fill ?? `#6a717d`, + padding: xAxisColumn?.name ? 8 : 0, + }, + brushMask: { + fill: isDarkTheme ? 'rgb(30,31,35,80%)' : 'rgb(247,247,247,50%)', + }, + brushArea: { + stroke: isDarkTheme ? 'rgb(255, 255, 255)' : 'rgb(105, 112, 125)', }, }, - yAxisLabel: { - visible: !!yAxisColumn && args.gridConfig.isYAxisLabelVisible, - // eui color subdued - textColor: chartTheme.axes?.tickLabel?.fill ?? '#6a717d', - padding: yAxisColumn?.name ? 8 : 0, - name: yAxisColumn?.name ?? '', - ...(yAxisColumn - ? { - formatter: (v: number | string) => - `${formatFactory(yAxisColumn.meta.params).convert(v) ?? ''}`, - } - : {}), - }, - xAxisLabel: { - visible: Boolean(args.gridConfig.isXAxisLabelVisible && xAxisColumn), - // eui color subdued - textColor: chartTheme.axes?.tickLabel?.fill ?? `#6a717d`, - padding: xAxisColumn?.name ? 8 : 0, - formatter: (v: number | string) => `${xValuesFormatter.convert(v) ?? ''}`, - name: xAxisColumn?.name ?? '', - }, - brushMask: { - fill: isDarkTheme ? 'rgb(30,31,35,80%)' : 'rgb(247,247,247,50%)', - }, - brushArea: { - stroke: isDarkTheme ? 'rgb(255, 255, 255)' : 'rgb(105, 112, 125)', - }, - timeZone, }; return ( @@ -456,14 +456,7 @@ export const HeatmapComponent: FC = memo( legendColorPicker={uiState ? legendColorPicker : undefined} debugState={window._echDebugStateFlag ?? false} tooltip={tooltip} - theme={{ - ...chartTheme, - legend: { - labelOptions: { - maxLines: args.legend.shouldTruncate ? args.legend?.maxLines ?? 1 : 0, - }, - }, - }} + theme={[themeOverrides, chartTheme]} xDomain={{ min: dateHistogramMeta && dateHistogramMeta.timeRange @@ -483,6 +476,7 @@ export const HeatmapComponent: FC = memo( type: 'bands', bands, }} + timeZone={timeZone} data={chartData} xAccessor={xAccessor} yAccessor={yAccessor || 'unifiedY'} @@ -490,8 +484,15 @@ export const HeatmapComponent: FC = memo( valueFormatter={valueFormatter} xScale={xScale} ySortPredicate={yAxisColumn ? getSortPredicate(yAxisColumn) : 'dataIndex'} - config={config} xSortPredicate={xAxisColumn ? getSortPredicate(xAxisColumn) : 'dataIndex'} + xAxisLabelName={xAxisColumn?.name} + yAxisLabelName={yAxisColumn?.name} + xAxisLabelFormatter={(v) => `${xValuesFormatter.convert(v) ?? ''}`} + yAxisLabelFormatter={ + yAxisColumn + ? (v) => `${formatFactory(yAxisColumn.meta.params).convert(v) ?? ''}` + : undefined + } /> diff --git a/src/plugins/chart_expressions/expression_pie/public/components/pie_vis_component.tsx b/src/plugins/chart_expressions/expression_pie/public/components/pie_vis_component.tsx index 02e1617b3b294c..dff56c34e6c1a2 100644 --- a/src/plugins/chart_expressions/expression_pie/public/components/pie_vis_component.tsx +++ b/src/plugins/chart_expressions/expression_pie/public/components/pie_vis_component.tsx @@ -18,6 +18,7 @@ import { TooltipProps, TooltipType, SeriesIdentifier, + PartitionLayout, } from '@elastic/charts'; import { useEuiTheme } from '@elastic/eui'; import { @@ -47,7 +48,7 @@ import { canFilter, getFilterClickData, getFilterEventData, - getConfig, + getPartitionTheme, getColumns, getSplitDimensionAccessor, getColumnByAccessor, @@ -251,8 +252,8 @@ const PieComponent = (props: PieComponentProps) => { return 1; }, [visData.rows, metricColumn]); - const config = useMemo( - () => getConfig(visParams, chartTheme, dimensions, rescaleFactor), + const themeOverrides = useMemo( + () => getPartitionTheme(visParams, chartTheme, dimensions, rescaleFactor), [chartTheme, visParams, dimensions, rescaleFactor] ); const tooltip: TooltipProps = { @@ -369,7 +370,9 @@ const PieComponent = (props: PieComponentProps) => { )} theme={[ // Chart background should be transparent for the usage at Canvas. - { ...chartTheme, background: { color: 'transparent' } }, + { background: { color: 'transparent' } }, + themeOverrides, + chartTheme, { legend: { labelOptions: { @@ -385,6 +388,8 @@ const PieComponent = (props: PieComponentProps) => { id="pie" smallMultiples={SMALL_MULTIPLES_ID} data={visData.rows} + layout={PartitionLayout.sunburst} + specialFirstInnermostSector={false} valueAccessor={(d: Datum) => getSliceValue(d, metricColumn)} percentFormatter={(d: number) => percentFormatter.convert(d / 100)} valueGetter={ @@ -400,7 +405,6 @@ const PieComponent = (props: PieComponentProps) => { : metricFieldFormatter.convert(d) } layers={layers} - config={config} topGroove={!visParams.labels.show ? 0 : undefined} /> diff --git a/src/plugins/chart_expressions/expression_pie/public/utils/get_config.ts b/src/plugins/chart_expressions/expression_pie/public/utils/get_config.ts deleted file mode 100644 index 0da439884ae68b..00000000000000 --- a/src/plugins/chart_expressions/expression_pie/public/utils/get_config.ts +++ /dev/null @@ -1,81 +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 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 or the Server - * Side Public License, v 1. - */ - -import { PartitionConfig, PartitionLayout, RecursivePartial, Theme } from '@elastic/charts'; -import { LabelPositions, PieVisParams, PieContainerDimensions } from '../../common/types'; - -const MAX_SIZE = 1000; - -export const getConfig = ( - visParams: PieVisParams, - chartTheme: RecursivePartial, - dimensions?: PieContainerDimensions, - rescaleFactor: number = 1 -): RecursivePartial => { - // On small multiples we want the labels to only appear inside - const isSplitChart = Boolean(visParams.dimensions.splitColumn || visParams.dimensions.splitRow); - const usingMargin = - dimensions && !isSplitChart - ? { - margin: { - top: (1 - Math.min(1, MAX_SIZE / dimensions?.height)) / 2, - bottom: (1 - Math.min(1, MAX_SIZE / dimensions?.height)) / 2, - left: (1 - Math.min(1, MAX_SIZE / dimensions?.width)) / 2, - right: (1 - Math.min(1, MAX_SIZE / dimensions?.width)) / 2, - }, - } - : null; - - const usingOuterSizeRatio = - dimensions && !isSplitChart - ? { - outerSizeRatio: - // Cap the ratio to 1 and then rescale - rescaleFactor * Math.min(MAX_SIZE / Math.min(dimensions?.width, dimensions?.height), 1), - } - : null; - const config: RecursivePartial = { - partitionLayout: PartitionLayout.sunburst, - fontFamily: chartTheme.barSeriesStyle?.displayValue?.fontFamily, - ...usingOuterSizeRatio, - specialFirstInnermostSector: false, - minFontSize: 10, - maxFontSize: 16, - linkLabel: { - maxCount: 5, - fontSize: 11, - textColor: chartTheme.axes?.axisTitle?.fill, - maxTextLength: visParams.labels.truncate ?? undefined, - }, - sectorLineStroke: chartTheme.lineSeriesStyle?.point?.fill, - sectorLineWidth: 1.5, - circlePadding: 4, - emptySizeRatio: visParams.isDonut ? visParams.emptySizeRatio : 0, - ...usingMargin, - }; - if (!visParams.labels.show) { - // Force all labels to be linked, then prevent links from showing - config.linkLabel = { maxCount: 0, maximumSection: Number.POSITIVE_INFINITY }; - } - - if (visParams.labels.last_level && visParams.labels.show) { - config.linkLabel = { - maxCount: Number.POSITIVE_INFINITY, - maximumSection: Number.POSITIVE_INFINITY, - maxTextLength: visParams.labels.truncate ?? undefined, - }; - } - - if ( - (visParams.labels.position === LabelPositions.INSIDE || isSplitChart) && - visParams.labels.show - ) { - config.linkLabel = { maxCount: 0 }; - } - return config; -}; diff --git a/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.ts b/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.ts index 05512eab72fe0a..9268f5631e7357 100644 --- a/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.ts +++ b/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.ts @@ -6,13 +6,7 @@ * Side Public License, v 1. */ -import { - Datum, - PartitionFillLabel, - PartitionLayer, - ShapeTreeNode, - ArrayEntry, -} from '@elastic/charts'; +import { Datum, PartitionLayer, ShapeTreeNode, ArrayEntry } from '@elastic/charts'; import { isEqual } from 'lodash'; import type { FieldFormatsStart } from 'src/plugins/field_formats/public'; import { SeriesLayer, PaletteRegistry, lightenColor } from '../../../../charts/public'; @@ -137,7 +131,7 @@ export const getLayers = ( formatter: FieldFormatsStart, syncColors: boolean ): PartitionLayer[] => { - const fillLabel: Partial = { + const fillLabel: PartitionLayer['fillLabel'] = { valueFont: { fontWeight: 700, }, diff --git a/src/plugins/chart_expressions/expression_pie/public/utils/get_config.test.ts b/src/plugins/chart_expressions/expression_pie/public/utils/get_partition_theme.test.ts similarity index 80% rename from src/plugins/chart_expressions/expression_pie/public/utils/get_config.test.ts rename to src/plugins/chart_expressions/expression_pie/public/utils/get_partition_theme.test.ts index 5eaa1bb9b28483..1cccdf8a5e47bd 100644 --- a/src/plugins/chart_expressions/expression_pie/public/utils/get_config.test.ts +++ b/src/plugins/chart_expressions/expression_pie/public/utils/get_partition_theme.test.ts @@ -6,19 +6,21 @@ * Side Public License, v 1. */ -import { getConfig } from './get_config'; +import { getPartitionTheme } from './get_partition_theme'; import { createMockPieParams } from '../mocks'; const visParams = createMockPieParams(); describe('getConfig', () => { it('should cap the outerSizeRatio to 1', () => { - expect(getConfig(visParams, {}, { width: 400, height: 400 }).outerSizeRatio).toBe(1); + expect( + getPartitionTheme(visParams, {}, { width: 400, height: 400 }).partition?.outerSizeRatio + ).toBe(1); }); it('should not have outerSizeRatio for split chart', () => { expect( - getConfig( + getPartitionTheme( { ...visParams, dimensions: { @@ -37,11 +39,11 @@ describe('getConfig', () => { }, {}, { width: 400, height: 400 } - ).outerSizeRatio + ).partition?.outerSizeRatio ).toBeUndefined(); expect( - getConfig( + getPartitionTheme( { ...visParams, dimensions: { @@ -60,11 +62,11 @@ describe('getConfig', () => { }, {}, { width: 400, height: 400 } - ).outerSizeRatio + ).partition?.outerSizeRatio ).toBeUndefined(); }); it('should not set outerSizeRatio if dimensions are not defined', () => { - expect(getConfig(visParams, {}).outerSizeRatio).toBeUndefined(); + expect(getPartitionTheme(visParams, {}).partition?.outerSizeRatio).toBeUndefined(); }); }); diff --git a/src/plugins/chart_expressions/expression_pie/public/utils/get_partition_theme.ts b/src/plugins/chart_expressions/expression_pie/public/utils/get_partition_theme.ts new file mode 100644 index 00000000000000..4daaf835fa782b --- /dev/null +++ b/src/plugins/chart_expressions/expression_pie/public/utils/get_partition_theme.ts @@ -0,0 +1,85 @@ +/* + * 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 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 or the Server + * Side Public License, v 1. + */ + +import { PartialTheme } from '@elastic/charts'; +import { Required } from '@kbn/utility-types'; +import { LabelPositions, PieVisParams, PieContainerDimensions } from '../../common/types'; + +const MAX_SIZE = 1000; + +export const getPartitionTheme = ( + visParams: PieVisParams, + chartTheme: PartialTheme, + dimensions?: PieContainerDimensions, + rescaleFactor: number = 1 +): PartialTheme => { + // On small multiples we want the labels to only appear inside + const isSplitChart = Boolean(visParams.dimensions.splitColumn || visParams.dimensions.splitRow); + const paddingProps: PartialTheme | null = + dimensions && !isSplitChart + ? { + chartPaddings: { + // TODO: simplify ratio logic to be static px units + top: ((1 - Math.min(1, MAX_SIZE / dimensions?.height)) / 2) * dimensions?.height, + bottom: ((1 - Math.min(1, MAX_SIZE / dimensions?.height)) / 2) * dimensions?.height, + left: ((1 - Math.min(1, MAX_SIZE / dimensions?.width)) / 2) * dimensions?.height, + right: ((1 - Math.min(1, MAX_SIZE / dimensions?.width)) / 2) * dimensions?.height, + }, + } + : null; + + const outerSizeRatio: PartialTheme['partition'] | null = + dimensions && !isSplitChart + ? { + outerSizeRatio: + // Cap the ratio to 1 and then rescale + rescaleFactor * Math.min(MAX_SIZE / Math.min(dimensions?.width, dimensions?.height), 1), + } + : null; + const theme: Required = { + chartMargins: { top: 0, bottom: 0, left: 0, right: 0 }, + ...paddingProps, + partition: { + fontFamily: chartTheme.barSeriesStyle?.displayValue?.fontFamily, + ...outerSizeRatio, + minFontSize: 10, + maxFontSize: 16, + linkLabel: { + maxCount: 5, + fontSize: 11, + textColor: chartTheme.axes?.axisTitle?.fill, + maxTextLength: visParams.labels.truncate ?? undefined, + }, + sectorLineStroke: chartTheme.lineSeriesStyle?.point?.fill, + sectorLineWidth: 1.5, + circlePadding: 4, + emptySizeRatio: visParams.isDonut ? visParams.emptySizeRatio : 0, + }, + }; + if (!visParams.labels.show) { + // Force all labels to be linked, then prevent links from showing + theme.partition.linkLabel = { maxCount: 0, maximumSection: Number.POSITIVE_INFINITY }; + } + + if (visParams.labels.last_level && visParams.labels.show) { + theme.partition.linkLabel = { + maxCount: Number.POSITIVE_INFINITY, + maximumSection: Number.POSITIVE_INFINITY, + maxTextLength: visParams.labels.truncate ?? undefined, + }; + } + + if ( + (visParams.labels.position === LabelPositions.INSIDE || isSplitChart) && + visParams.labels.show + ) { + theme.partition.linkLabel = { maxCount: 0 }; + } + + return theme; +}; diff --git a/src/plugins/chart_expressions/expression_pie/public/utils/index.ts b/src/plugins/chart_expressions/expression_pie/public/utils/index.ts index 3ee51003ca1e9b..e1b779c511bfcb 100644 --- a/src/plugins/chart_expressions/expression_pie/public/utils/index.ts +++ b/src/plugins/chart_expressions/expression_pie/public/utils/index.ts @@ -10,7 +10,7 @@ export { getLayers } from './get_layers'; export { getColorPicker } from './get_color_picker'; export { getLegendActions } from './get_legend_actions'; export { canFilter, getFilterClickData, getFilterEventData } from './filter_helpers'; -export { getConfig } from './get_config'; +export { getPartitionTheme } from './get_partition_theme'; export { getColumns } from './get_columns'; export { getSplitDimensionAccessor } from './get_split_dimension_accessor'; export { getDistinctSeries } from './get_distinct_series'; diff --git a/src/plugins/charts/public/services/theme/theme.test.tsx b/src/plugins/charts/public/services/theme/theme.test.tsx index 079acbb5fefbcf..5154c1ce5ad63a 100644 --- a/src/plugins/charts/public/services/theme/theme.test.tsx +++ b/src/plugins/charts/public/services/theme/theme.test.tsx @@ -12,11 +12,11 @@ import { take } from 'rxjs/operators'; import { renderHook, act } from '@testing-library/react-hooks'; import { render, act as renderAct } from '@testing-library/react'; +import { LIGHT_THEME, DARK_THEME } from '@elastic/charts'; import { EUI_CHARTS_THEME_DARK, EUI_CHARTS_THEME_LIGHT } from '@elastic/eui/dist/eui_charts_theme'; import { ThemeService } from './theme'; import { coreMock } from '../../../../../core/public/mocks'; -import { LIGHT_THEME, DARK_THEME } from '@elastic/charts'; const { uiSettings: setupMockUiSettings } = coreMock.createSetup(); diff --git a/src/plugins/charts/public/services/theme/theme.ts b/src/plugins/charts/public/services/theme/theme.ts index 1aad4f0ab6328f..4397084d890ae1 100644 --- a/src/plugins/charts/public/services/theme/theme.ts +++ b/src/plugins/charts/public/services/theme/theme.ts @@ -89,9 +89,8 @@ export class ThemeService { public init(uiSettings: CoreSetup['uiSettings']) { this._uiSettingsDarkMode$ = uiSettings.get$('theme:darkMode'); this._uiSettingsDarkMode$.subscribe((darkMode) => { - this._chartsTheme$.next( - darkMode ? EUI_CHARTS_THEME_DARK.theme : EUI_CHARTS_THEME_LIGHT.theme - ); + const theme = darkMode ? EUI_CHARTS_THEME_DARK.theme : EUI_CHARTS_THEME_LIGHT.theme; + this._chartsTheme$.next(theme); this._chartsBaseTheme$.next(darkMode ? DARK_THEME : LIGHT_THEME); }); } diff --git a/src/plugins/charts/public/static/utils/transform_click_event.ts b/src/plugins/charts/public/static/utils/transform_click_event.ts index d175046b20ebb2..ae255455b39b14 100644 --- a/src/plugins/charts/public/static/utils/transform_click_event.ts +++ b/src/plugins/charts/public/static/utils/transform_click_event.ts @@ -28,19 +28,21 @@ export interface BrushTriggerEvent { data: RangeSelectContext['data']; } -type AllSeriesAccessors = Array<[accessor: Accessor | AccessorFn, value: string | number]>; +type AllSeriesAccessors = Array< + [accessor: Accessor | AccessorFn, value: string | number] +>; /** * returns accessor value from string or function accessor * @param datum * @param accessor */ -function getAccessorValue(datum: Datum, accessor: Accessor | AccessorFn) { +function getAccessorValue(datum: D, accessor: Accessor | AccessorFn) { if (typeof accessor === 'function') { return accessor(datum); } - return datum[accessor]; + return (datum as Datum)[accessor]; } /** @@ -259,9 +261,11 @@ export const getFilterFromSeriesFn = /** * Helper function to transform `@elastic/charts` brush event into brush action event */ -export const getBrushFromChartBrushEventFn = - (table: Datatable, xAccessor: Accessor | AccessorFn) => - ({ x: selectedRange }: XYBrushEvent): BrushTriggerEvent => { +export function getBrushFromChartBrushEventFn( + table: Datatable, + xAccessor: Accessor | AccessorFn +) { + return ({ x: selectedRange }: XYBrushEvent): BrushTriggerEvent => { const [start, end] = selectedRange ?? [0, 0]; const range: [number, number] = [start, end]; const column = table.columns.findIndex(({ id }) => validateAccessorId(id, xAccessor)); @@ -275,3 +279,4 @@ export const getBrushFromChartBrushEventFn = name: 'brush', }; }; +} diff --git a/src/plugins/data/public/index.ts b/src/plugins/data/public/index.ts index 2e746e4ecec933..ec380a0845985e 100644 --- a/src/plugins/data/public/index.ts +++ b/src/plugins/data/public/index.ts @@ -206,6 +206,7 @@ export { isEsError, SearchSessionState, SortDirection, + handleResponse, } from './search'; export type { diff --git a/src/plugins/data/public/search/index.ts b/src/plugins/data/public/search/index.ts index 810436dc30b980..6923ec7e8705b1 100644 --- a/src/plugins/data/public/search/index.ts +++ b/src/plugins/data/public/search/index.ts @@ -54,6 +54,7 @@ export { waitUntilNextSessionCompletes$, } from './session'; export { getEsPreference } from './es_search'; +export { handleResponse } from './fetch'; export type { SearchInterceptorDeps } from './search_interceptor'; export { SearchInterceptor } from './search_interceptor'; diff --git a/src/plugins/discover/public/application/main/discover_main_route.tsx b/src/plugins/discover/public/application/main/discover_main_route.tsx index dd1d036b811a20..f1d7cc2385cd09 100644 --- a/src/plugins/discover/public/application/main/discover_main_route.tsx +++ b/src/plugins/discover/public/application/main/discover_main_route.tsx @@ -5,7 +5,7 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -import React, { useEffect, useState, memo } from 'react'; +import React, { useEffect, useState, memo, useCallback } from 'react'; import { History } from 'history'; import { useParams } from 'react-router-dom'; @@ -21,10 +21,10 @@ import { DiscoverMainApp } from './discover_main_app'; import { getRootBreadcrumbs, getSavedSearchBreadcrumbs } from '../../utils/breadcrumbs'; import { redirectWhenMissing } from '../../../../kibana_utils/public'; import { DataViewSavedObjectConflictError } from '../../../../data_views/common'; -import { getUrlTracker } from '../../kibana_services'; import { LoadingIndicator } from '../../components/common/loading_indicator'; import { DiscoverError } from '../../components/common/error_alert'; import { DiscoverRouteProps } from '../types'; +import { getUrlTracker } from '../../kibana_services'; const DiscoverMainAppMemoized = memo(DiscoverMainApp); @@ -54,15 +54,29 @@ export function DiscoverMainRoute({ services, history }: DiscoverMainProps) { const [indexPatternList, setIndexPatternList] = useState< Array> >([]); - const { id } = useParams(); + const navigateToOverview = useCallback(() => { + core.application.navigateToApp('kibanaOverview', { path: '#' }); + }, [core.application]); + + const checkForDataViews = useCallback(async () => { + const hasUserDataView = await data.dataViews.hasUserDataView().catch(() => true); + if (!hasUserDataView) { + navigateToOverview(); + } + const defaultDataView = await data.dataViews.getDefaultDataView(); + if (!defaultDataView) { + navigateToOverview(); + } + }, [navigateToOverview, data.dataViews]); + useEffect(() => { const savedSearchId = id; async function loadDefaultOrCurrentIndexPattern(searchSource: ISearchSource) { try { - await data.indexPatterns.ensureDefaultDataView(); + await checkForDataViews(); const { appStateContainer } = getState({ history, uiSettings: config }); const { index } = appStateContainer.getState(); const ip = await loadIndexPattern(index || '', data.indexPatterns, config); @@ -90,6 +104,10 @@ export function DiscoverMainRoute({ services, history }: DiscoverMainProps) { currentSavedSearch.searchSource ); + if (!loadedIndexPattern) { + return; + } + if (!currentSavedSearch.searchSource.getField('index')) { currentSavedSearch.searchSource.setField('index', loadedIndexPattern); } @@ -141,6 +159,7 @@ export function DiscoverMainRoute({ services, history }: DiscoverMainProps) { services, toastNotifications, core.theme, + checkForDataViews, ]); useEffect(() => { diff --git a/src/plugins/discover/public/components/discover_grid/get_render_cell_value.test.tsx b/src/plugins/discover/public/components/discover_grid/get_render_cell_value.test.tsx index 4479e051b1f264..07ed170258fb11 100644 --- a/src/plugins/discover/public/components/discover_grid/get_render_cell_value.test.tsx +++ b/src/plugins/discover/public/components/discover_grid/get_render_cell_value.test.tsx @@ -96,6 +96,50 @@ describe('Discover grid cell rendering', function () { expect(component.html()).toMatchInlineSnapshot(`"100"`); }); + it('renders bytes column correctly using _source when details is true', () => { + const DiscoverGridCellValue = getRenderCellValueFn( + indexPatternMock, + rowsSource, + rowsSource.map(flatten), + false, + [], + 100 + ); + const component = shallow( + + ); + expect(component.html()).toMatchInlineSnapshot(`"100"`); + }); + + it('renders bytes column correctly using fields when details is true', () => { + const DiscoverGridCellValue = getRenderCellValueFn( + indexPatternMock, + rowsFields, + rowsFields.map(flatten), + false, + [], + 100 + ); + const component = shallow( + + ); + expect(component.html()).toMatchInlineSnapshot(`"100"`); + }); + it('renders _source column correctly', () => { const DiscoverGridCellValue = getRenderCellValueFn( indexPatternMock, @@ -514,13 +558,16 @@ describe('Discover grid cell rendering', function () { /> ); expect(component).toMatchInlineSnapshot(` - - { - "object.value": [ - 100 - ] - } - + `); }); @@ -634,9 +681,15 @@ describe('Discover grid cell rendering', function () { /> ); expect(component).toMatchInlineSnapshot(` - - .gz - + `); const componentWithDetails = shallow( @@ -650,13 +703,14 @@ describe('Discover grid cell rendering', function () { /> ); expect(componentWithDetails).toMatchInlineSnapshot(` - `); }); diff --git a/src/plugins/discover/public/components/discover_grid/get_render_cell_value.tsx b/src/plugins/discover/public/components/discover_grid/get_render_cell_value.tsx index 436281b119bff4..5e1a1a7e39db87 100644 --- a/src/plugins/discover/public/components/discover_grid/get_render_cell_value.tsx +++ b/src/plugins/discover/public/components/discover_grid/get_render_cell_value.tsx @@ -8,8 +8,7 @@ import React, { Fragment, useContext, useEffect } from 'react'; import { euiLightVars as themeLight, euiDarkVars as themeDark } from '@kbn/ui-theme'; -import type { DataView } from 'src/plugins/data/common'; - +import type { DataView, DataViewField } from 'src/plugins/data/common'; import { EuiDataGridCellValueElementProps, EuiDescriptionList, @@ -64,89 +63,35 @@ export const getRenderCellValueFn = return -; } - if ( + /** + * when using the fields api this code is used to show top level objects + * this is used for legacy stuff like displaying products of our ecommerce dataset + */ + const useTopLevelObjectColumns = Boolean( useNewFieldsApi && - !field && - row && - row.fields && - !(row.fields as Record)[columnId] - ) { - const innerColumns = Object.fromEntries( - Object.entries(row.fields as Record).filter(([key]) => { - return key.indexOf(`${columnId}.`) === 0; - }) - ); - if (isDetails) { - // nicely formatted JSON for the expanded view - return {JSON.stringify(innerColumns, null, 2)}; - } - - // Put the most important fields first - const highlights: Record = (row.highlight as Record) ?? {}; - const highlightPairs: Array<[string, string]> = []; - const sourcePairs: Array<[string, string]> = []; - Object.entries(innerColumns).forEach(([key, values]) => { - const subField = indexPattern.getFieldByName(key); - const displayKey = indexPattern.fields.getByName - ? indexPattern.fields.getByName(key)?.displayName - : undefined; - const formatter = subField - ? indexPattern.getFormatterForField(subField) - : { convert: (v: unknown, ...rest: unknown[]) => String(v) }; - const formatted = (values as unknown[]) - .map((val: unknown) => - formatter.convert(val, 'html', { - field: subField, - hit: row, - indexPattern, - }) - ) - .join(', '); - const pairs = highlights[key] ? highlightPairs : sourcePairs; - if (displayKey) { - if (fieldsToShow.includes(displayKey)) { - pairs.push([displayKey, formatted]); - } - } else { - pairs.push([key, formatted]); - } - }); - - return ( - // If you change the styling of this list (specifically something that will change the line-height) - // make sure to adjust the img overwrites attached to dscDiscoverGrid__descriptionListDescription - // in discover_grid.scss - - {[...highlightPairs, ...sourcePairs] - .slice(0, maxDocFieldsDisplayed) - .map(([key, value]) => ( - - {key} - - - ))} - - ); - } + !field && + row?.fields && + !(row.fields as Record)[columnId] + ); - if (typeof rowFlattened[columnId] === 'object' && isDetails) { - return ( - } - width={defaultMonacoEditorWidth} - /> + if (isDetails) { + return renderPopoverContent( + row, + rowFlattened, + field, + columnId, + indexPattern, + useTopLevelObjectColumns ); } - if (field && field.type === '_source') { - if (isDetails) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return ; - } - const pairs = formatHit(row, indexPattern, fieldsToShow); + if (field?.type === '_source' || useTopLevelObjectColumns) { + const pairs = useTopLevelObjectColumns + ? getTopLevelObjectPairs(row, columnId, indexPattern, fieldsToShow).slice( + 0, + maxDocFieldsDisplayed + ) + : formatHit(row, indexPattern, fieldsToShow); return ( @@ -163,20 +108,6 @@ export const getRenderCellValueFn = ); } - if (!field?.type && rowFlattened && typeof rowFlattened[columnId] === 'object') { - if (isDetails) { - // nicely formatted JSON for the expanded view - return ( - } - width={defaultMonacoEditorWidth} - /> - ); - } - - return <>{formatFieldValue(rowFlattened[columnId], row, indexPattern, field)}; - } - return ( ); }; + +/** + * Helper function to show top level objects + * this is used for legacy stuff like displaying products of our ecommerce dataset + */ +function getInnerColumns(fields: Record, columnId: string) { + return Object.fromEntries( + Object.entries(fields).filter(([key]) => { + return key.indexOf(`${columnId}.`) === 0; + }) + ); +} + +/** + * Helper function for the cell popover + */ +function renderPopoverContent( + rowRaw: ElasticSearchHit, + rowFlattened: Record, + field: DataViewField | undefined, + columnId: string, + dataView: DataView, + useTopLevelObjectColumns: boolean +) { + if (useTopLevelObjectColumns || field?.type === '_source') { + const json = useTopLevelObjectColumns + ? getInnerColumns(rowRaw.fields as Record, columnId) + : rowRaw; + return ( + } width={defaultMonacoEditorWidth} /> + ); + } + + return ( + + ); +} +/** + * Helper function to show top level objects + * this is used for legacy stuff like displaying products of our ecommerce dataset + */ +function getTopLevelObjectPairs( + row: ElasticSearchHit, + columnId: string, + dataView: DataView, + fieldsToShow: string[] +) { + const innerColumns = getInnerColumns(row.fields as Record, columnId); + // Put the most important fields first + const highlights: Record = (row.highlight as Record) ?? {}; + const highlightPairs: Array<[string, string]> = []; + const sourcePairs: Array<[string, string]> = []; + Object.entries(innerColumns).forEach(([key, values]) => { + const subField = dataView.getFieldByName(key); + const displayKey = dataView.fields.getByName + ? dataView.fields.getByName(key)?.displayName + : undefined; + const formatter = subField + ? dataView.getFormatterForField(subField) + : { convert: (v: unknown, ...rest: unknown[]) => String(v) }; + const formatted = (values as unknown[]) + .map((val: unknown) => + formatter.convert(val, 'html', { + field: subField, + hit: row, + indexPattern: dataView, + }) + ) + .join(', '); + const pairs = highlights[key] ? highlightPairs : sourcePairs; + if (displayKey) { + if (fieldsToShow.includes(displayKey)) { + pairs.push([displayKey, formatted]); + } + } else { + pairs.push([key, formatted]); + } + }); + return [...highlightPairs, ...sourcePairs]; +} diff --git a/src/plugins/inspector/common/adapters/request/request_responder.ts b/src/plugins/inspector/common/adapters/request/request_responder.ts index 1b8da2e57e7f21..1d3a999e4834d1 100644 --- a/src/plugins/inspector/common/adapters/request/request_responder.ts +++ b/src/plugins/inspector/common/adapters/request/request_responder.ts @@ -51,7 +51,7 @@ export class RequestResponder { } public finish(status: RequestStatus, response: Response): void { - this.request.time = Date.now() - this.request.startTime; + this.request.time = response.time ?? Date.now() - this.request.startTime; this.request.status = status; this.request.response = response; this.onChange(); diff --git a/src/plugins/inspector/common/adapters/request/types.ts b/src/plugins/inspector/common/adapters/request/types.ts index a204a7aa00a4ad..4e6a8d324559f4 100644 --- a/src/plugins/inspector/common/adapters/request/types.ts +++ b/src/plugins/inspector/common/adapters/request/types.ts @@ -53,4 +53,5 @@ export interface RequestStatistic { export interface Response { json?: object; + time?: number; } diff --git a/src/plugins/vis_types/timelion/public/components/series/area.tsx b/src/plugins/vis_types/timelion/public/components/series/area.tsx index d149d675d63d76..50c52f69de5bbb 100644 --- a/src/plugins/vis_types/timelion/public/components/series/area.tsx +++ b/src/plugins/vis_types/timelion/public/components/series/area.tsx @@ -38,30 +38,32 @@ const getPointFillColor = (points: VisSeries['points'], color: string | undefine ); }; -const getAreaSeriesStyle = ({ color, lines, points }: AreaSeriesComponentProps['visData']) => - ({ - line: { - opacity: isShowLines(lines, points) ? 1 : 0, - stroke: color, - strokeWidth: lines?.lineWidth !== undefined ? Number(lines.lineWidth) : 3, - visible: isShowLines(lines, points), - }, - area: { - fill: color, - opacity: lines?.fill ?? 0, - visible: lines?.show ?? points?.show ?? true, - }, - point: { - fill: getPointFillColor(points, color), - opacity: 1, - radius: points?.radius ?? 3, - stroke: color, - strokeWidth: points?.lineWidth ?? 2, - visible: points?.show ?? false, - shape: points?.symbol === 'cross' ? PointShape.X : points?.symbol, - }, - curve: lines?.steps ? CurveType.CURVE_STEP : CurveType.LINEAR, - } as RecursivePartial); +const getAreaSeriesStyle = ({ + color, + lines, + points, +}: AreaSeriesComponentProps['visData']): RecursivePartial => ({ + line: { + opacity: isShowLines(lines, points) ? 1 : 0, + stroke: color, + strokeWidth: lines?.lineWidth !== undefined ? Number(lines.lineWidth) : 3, + visible: isShowLines(lines, points), + }, + area: { + fill: color, + opacity: lines?.fill ?? 0, + visible: lines?.show ?? points?.show ?? true, + }, + point: { + fill: getPointFillColor(points, color), + opacity: 1, + radius: points?.radius ?? 3, + stroke: color, + strokeWidth: points?.lineWidth ?? 2, + visible: points?.show ?? false, + shape: points?.symbol === 'cross' ? PointShape.X : points?.symbol, + }, +}); export const AreaSeriesComponent = ({ index, groupId, visData }: AreaSeriesComponentProps) => ( diff --git a/src/plugins/vis_types/timeseries/common/constants.ts b/src/plugins/vis_types/timeseries/common/constants.ts index 4f15cea7faad33..30fb814990925f 100644 --- a/src/plugins/vis_types/timeseries/common/constants.ts +++ b/src/plugins/vis_types/timeseries/common/constants.ts @@ -9,6 +9,7 @@ export const UI_SETTINGS = { MAX_BUCKETS_SETTING: 'metrics:max_buckets', ALLOW_STRING_INDICES: 'metrics:allowStringIndices', + ALLOW_CHECKING_FOR_FAILED_SHARDS: 'metrics:allowCheckingForFailedShards', }; export const INDEXES_SEPARATOR = ','; export const AUTO_INTERVAL = 'auto'; diff --git a/src/plugins/vis_types/timeseries/common/types/index.ts b/src/plugins/vis_types/timeseries/common/types/index.ts index 7a355328026788..01b200c6774d1a 100644 --- a/src/plugins/vis_types/timeseries/common/types/index.ts +++ b/src/plugins/vis_types/timeseries/common/types/index.ts @@ -11,7 +11,15 @@ import { IndexPattern, Query } from '../../../../data/common'; import { Panel } from './panel_model'; export type { Metric, Series, Panel, MetricType } from './panel_model'; -export type { TimeseriesVisData, PanelData, SeriesData, TableData } from './vis_data'; +export type { + TimeseriesVisData, + PanelData, + SeriesData, + TableData, + DataResponseMeta, + TrackedEsSearches, + PanelSeries, +} from './vis_data'; export interface FetchedIndexPattern { indexPattern: IndexPattern | undefined | null; diff --git a/src/plugins/vis_types/timeseries/common/types/vis_data.ts b/src/plugins/vis_types/timeseries/common/types/vis_data.ts index 1a7be0b467004b..07c078a6e8aaec 100644 --- a/src/plugins/vis_types/timeseries/common/types/vis_data.ts +++ b/src/plugins/vis_types/timeseries/common/types/vis_data.ts @@ -7,30 +7,38 @@ */ import { PANEL_TYPES } from '../enums'; -import { TimeseriesUIRestrictions } from '../ui_restrictions'; +import type { TimeseriesUIRestrictions } from '../ui_restrictions'; export type TimeseriesVisData = SeriesData | TableData; -export interface TableData { - type: PANEL_TYPES.TABLE; +export type TrackedEsSearches = Record< + string, + { + body: Record; + label?: string; + time: number; + response?: Record; + } +>; + +export interface DataResponseMeta { + type: PANEL_TYPES; uiRestrictions: TimeseriesUIRestrictions; + trackedEsSearches: TrackedEsSearches; +} + +export interface TableData extends DataResponseMeta { series?: PanelData[]; pivot_label?: string; } // series data is not fully typed yet -export type SeriesData = { - type: Exclude; - uiRestrictions: TimeseriesUIRestrictions; +export type SeriesData = DataResponseMeta & { error?: string; -} & { - [key: string]: PanelSeries; -}; +} & Record; export interface PanelSeries { - annotations: { - [key: string]: Annotation[]; - }; + annotations: Record; id: string; series: PanelData[]; error?: string; diff --git a/src/plugins/vis_types/timeseries/kibana.json b/src/plugins/vis_types/timeseries/kibana.json index 40f934e5319739..66c5b416a0d962 100644 --- a/src/plugins/vis_types/timeseries/kibana.json +++ b/src/plugins/vis_types/timeseries/kibana.json @@ -4,7 +4,7 @@ "kibanaVersion": "kibana", "server": true, "ui": true, - "requiredPlugins": ["charts", "data", "expressions", "visualizations"], + "requiredPlugins": ["charts", "data", "expressions", "visualizations", "inspector"], "optionalPlugins": ["home","usageCollection"], "requiredBundles": ["kibanaUtils", "kibanaReact", "fieldFormats"], "owner": { diff --git a/src/plugins/vis_types/timeseries/public/application/components/annotation_row.tsx b/src/plugins/vis_types/timeseries/public/application/components/annotation_row.tsx index bc408aef7092a1..856948cb7601ec 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/annotation_row.tsx +++ b/src/plugins/vis_types/timeseries/public/application/components/annotation_row.tsx @@ -80,7 +80,9 @@ export const AnnotationRow = ({ try { fetchedIndexPattern = index - ? await fetchIndexPattern(index, indexPatterns) + ? await fetchIndexPattern(index, indexPatterns, { + fetchKibanaIndexForStringIndexes: true, + }) : { ...fetchedIndexPattern, defaultIndex: await indexPatterns.getDefault(), diff --git a/src/plugins/vis_types/timeseries/public/application/components/lib/check_if_series_have_same_formatters.test.ts b/src/plugins/vis_types/timeseries/public/application/components/lib/check_if_series_have_same_formatters.test.ts index 71aed8c7315e2c..674973b1173f51 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/lib/check_if_series_have_same_formatters.test.ts +++ b/src/plugins/vis_types/timeseries/public/application/components/lib/check_if_series_have_same_formatters.test.ts @@ -26,7 +26,7 @@ describe('checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap)', () => { expect(result).toBe(true); }); - it('should return false for the different value_template series formatters', () => { + it('should return true for the different value_template series formatters', () => { const seriesModel = [ { formatter: DATA_FORMATTERS.PERCENT, @@ -39,13 +39,13 @@ describe('checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap)', () => { ] as Series[]; const result = checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap); - expect(result).toBe(false); + expect(result).toBe(true); }); it('should return true for the same field formatters', () => { const seriesModel = [ - { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ field: 'someField' }] }, - { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ field: 'someField' }] }, + { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ type: 'avg', field: 'someField' }] }, + { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ type: 'avg', field: 'someField' }] }, ] as Series[]; const result = checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap); @@ -54,11 +54,11 @@ describe('checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap)', () => { it('should return false for the different field formatters', () => { const seriesModel = [ - { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ field: 'someField' }] }, + { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ type: 'avg', field: 'someField' }] }, { formatter: DATA_FORMATTERS.DEFAULT, - metrics: [{ field: 'anotherField' }], + metrics: [{ id: 'avg', field: 'anotherField' }], }, ] as Series[]; const result = checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap); @@ -71,9 +71,12 @@ describe('checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap)', () => { { formatter: DATA_FORMATTERS.DEFAULT, - metrics: [{ field: 'someField' }, { field: 'field' }], + metrics: [ + { type: 'avg', field: 'someField' }, + { type: 'avg', field: 'field' }, + ], }, - { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ field: 'someField' }] }, + { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ type: 'avg', field: 'someField' }] }, ] as Series[]; const result = checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap); diff --git a/src/plugins/vis_types/timeseries/public/application/components/lib/check_if_series_have_same_formatters.ts b/src/plugins/vis_types/timeseries/public/application/components/lib/check_if_series_have_same_formatters.ts index 44715d1262d050..c92b7e7aedd3e6 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/lib/check_if_series_have_same_formatters.ts +++ b/src/plugins/vis_types/timeseries/public/application/components/lib/check_if_series_have_same_formatters.ts @@ -6,8 +6,8 @@ * Side Public License, v 1. */ -import { last, isEqual } from 'lodash'; import { DATA_FORMATTERS } from '../../../../common/enums'; +import { aggs } from '../../../../common/agg_utils'; import type { Series } from '../../../../common/types'; import type { FieldFormatMap } from '../../../../../../data/common'; @@ -15,19 +15,28 @@ export const checkIfSeriesHaveSameFormatters = ( seriesModel: Series[], fieldFormatMap?: FieldFormatMap ) => { - const allSeriesHaveDefaultFormatting = seriesModel.every( - (seriesGroup) => seriesGroup.formatter === DATA_FORMATTERS.DEFAULT - ); + const uniqFormatters = new Set(); - return allSeriesHaveDefaultFormatting && fieldFormatMap - ? seriesModel - .map(({ metrics }) => fieldFormatMap[last(metrics)?.field ?? '']) - .every((fieldFormat, index, [firstSeriesFieldFormat]) => - isEqual(fieldFormat, firstSeriesFieldFormat) - ) - : seriesModel.every( - (series) => - series.formatter === seriesModel[0].formatter && - series.value_template === seriesModel[0].value_template - ); + seriesModel.forEach((seriesGroup) => { + if (seriesGroup.formatter === DATA_FORMATTERS.DEFAULT) { + const activeMetric = seriesGroup.metrics[seriesGroup.metrics.length - 1]; + const aggMeta = aggs.find((agg) => agg.id === activeMetric.type); + + if ( + activeMetric.field && + aggMeta?.meta.isFieldRequired && + fieldFormatMap?.[activeMetric.field] + ) { + return uniqFormatters.add(JSON.stringify(fieldFormatMap[activeMetric.field])); + } + } + uniqFormatters.add( + JSON.stringify({ + // requirement: in the case of using TSVB formatters, we do not need to check the value_template, just formatter! + formatter: seriesGroup.formatter, + }) + ); + }); + + return uniqFormatters.size === 1; }; diff --git a/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/field_text_select.tsx b/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/field_text_select.tsx index 86d1758932301a..682279d5639e51 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/field_text_select.tsx +++ b/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/field_text_select.tsx @@ -37,7 +37,7 @@ export const FieldTextSelect = ({ useDebounce( () => { - if (inputValue !== indexPatternString) { + if ((inputValue ?? '') !== (indexPatternString ?? '')) { onIndexChange(inputValue); } }, diff --git a/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/index_pattern_select.tsx b/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/index_pattern_select.tsx index 840787e2af1af4..6c095a9074bb70 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/index_pattern_select.tsx +++ b/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/index_pattern_select.tsx @@ -111,7 +111,7 @@ export const IndexPatternSelect = ({ label={indexPatternLabel} helpText={fetchedIndex.defaultIndex && getIndexPatternHelpText(useKibanaIndices)} labelAppend={ - fetchedIndex.indexPatternString && !fetchedIndex.indexPattern ? ( + !useKibanaIndices && fetchedIndex.indexPatternString && !fetchedIndex.indexPattern ? ( val; + : createTickFormatter(undefined, undefined, getConfig); TimeseriesVisualization.addYAxis(yAxis, { tickFormatter, diff --git a/src/plugins/vis_types/timeseries/public/application/components/vis_types/timeseries/vis.test.js b/src/plugins/vis_types/timeseries/public/application/components/vis_types/timeseries/vis.test.js index 12ae70cca10362..0fd909af7376de 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/vis_types/timeseries/vis.test.js +++ b/src/plugins/vis_types/timeseries/public/application/components/vis_types/timeseries/vis.test.js @@ -153,7 +153,7 @@ describe('TimeseriesVisualization', () => { const yAxisFormattedValue = timeSeriesProps.yAxis[0].tickFormatter(value); - expect(yAxisFormattedValue).toBe(value); + expect(yAxisFormattedValue).toBe(`${value}`); }); test('should return the same stringified number from yAxis formatter for byte and percent series', () => { @@ -173,18 +173,6 @@ describe('TimeseriesVisualization', () => { expect(yAxis[0].tickFormatter(value)).toBe('500B'); }); - test('should return simple number from yAxis formatter and different values from the same byte formatters, but with different value templates', () => { - const timeSeriesProps = setupTimeSeriesProps( - ['byte', 'byte'], - ['{{value}}', '{{value}} value'] - ); - const { series, yAxis } = timeSeriesProps; - - expect(series[0].tickFormat(value)).toBe('500B'); - expect(series[1].tickFormat(value)).toBe('500B value'); - expect(yAxis[0].tickFormatter(value)).toBe(value); - }); - test('should return percent formatted value from yAxis formatter and three percent formatted series with the same value templates', () => { const timeSeriesProps = setupTimeSeriesProps(['percent', 'percent', 'percent']); @@ -204,7 +192,7 @@ describe('TimeseriesVisualization', () => { expect(series[0].tickFormat(value)).toBe('500 template'); expect(series[1].tickFormat(value)).toBe('500B template'); - expect(yAxis[0].tickFormatter(value)).toBe(value); + expect(yAxis[0].tickFormatter(value)).toBe(`${value}`); }); test('should return field formatted value for yAxis and single series with default formatter', () => { @@ -232,7 +220,7 @@ describe('TimeseriesVisualization', () => { expect(series[1].tickFormat(value)).toBe('500 years'); expect(series[2].tickFormat(value)).toBe('42 years'); expect(series[3].tickFormat(value)).toBe('$500'); - expect(yAxis[0].tickFormatter(value)).toBe(value); + expect(yAxis[0].tickFormatter(value)).toBe(`${value}`); }); test('should return simple number from yAxis formatter and correctly formatted series values', () => { @@ -243,7 +231,7 @@ describe('TimeseriesVisualization', () => { expect(series[1].tickFormat(value)).toBe('500B'); expect(series[2].tickFormat(value)).toBe('50000%'); expect(series[3].tickFormat(value)).toBe('$500'); - expect(yAxis[0].tickFormatter(value)).toBe(value); + expect(yAxis[0].tickFormatter(value)).toBe(`${value}`); }); }); }); diff --git a/src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/decorators/__snapshots__/area_decorator.test.js.snap b/src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/decorators/__snapshots__/area_decorator.test.js.snap index fceb9c3fdb8197..7ded8e2254aa98 100644 --- a/src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/decorators/__snapshots__/area_decorator.test.js.snap +++ b/src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/decorators/__snapshots__/area_decorator.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`src/legacy/core_plugins/metrics/public/visualizations/views/timeseries/decorators/area_decorator.js should render and match a snapshot 1`] = ` - should render and match a snapshot 1`] = ` - ({ help: '', }, }, - async fn(input, args, { getSearchSessionId, isSyncColorsEnabled, getExecutionContext }) { + async fn( + input, + args, + { getSearchSessionId, isSyncColorsEnabled, getExecutionContext, inspectorAdapters } + ) { const visParams: TimeseriesVisParams = JSON.parse(args.params); const uiState = JSON.parse(args.uiState); const syncColors = isSyncColorsEnabled?.() ?? false; @@ -65,6 +69,7 @@ export const createMetricsFn = (): TimeseriesExpressionFunctionDefinition => ({ uiState, searchSessionId: getSearchSessionId(), executionContext: getExecutionContext(), + inspectorAdapters, }); return { diff --git a/src/plugins/vis_types/timeseries/public/metrics_type.ts b/src/plugins/vis_types/timeseries/public/metrics_type.ts index a51e0a48c3212d..548368b30759ab 100644 --- a/src/plugins/vis_types/timeseries/public/metrics_type.ts +++ b/src/plugins/vis_types/timeseries/public/metrics_type.ts @@ -27,6 +27,7 @@ import { import { getDataStart } from './services'; import type { TimeseriesVisDefaultParams, TimeseriesVisParams } from './types'; import type { IndexPatternValue, Panel } from '../common/types'; +import { RequestAdapter } from '../../../inspector/public'; export const withReplacedIds = ( vis: Vis @@ -153,7 +154,9 @@ export const metricsVisDefinition: VisTypeDefinition< } return []; }, - inspectorAdapters: {}, + inspectorAdapters: () => ({ + requests: new RequestAdapter(), + }), requiresSearch: true, getUsedIndexPattern: getUsedIndexPatterns, }; diff --git a/src/plugins/vis_types/timeseries/public/request_handler.ts b/src/plugins/vis_types/timeseries/public/request_handler.ts index e9037c0b84a5e6..bb15f32886cdc7 100644 --- a/src/plugins/vis_types/timeseries/public/request_handler.ts +++ b/src/plugins/vis_types/timeseries/public/request_handler.ts @@ -6,13 +6,14 @@ * Side Public License, v 1. */ import type { KibanaExecutionContext } from 'src/core/public'; +import type { Adapters } from 'src/plugins/inspector'; import { getTimezone } from './application/lib/get_timezone'; import { getUISettings, getDataStart, getCoreStart } from './services'; -import { ROUTES } from '../common/constants'; +import { ROUTES, UI_SETTINGS } from '../common/constants'; +import { KibanaContext, handleResponse } from '../../../data/public'; import type { TimeseriesVisParams } from './types'; import type { TimeseriesVisData } from '../common/types'; -import type { KibanaContext } from '../../../data/public'; interface MetricsRequestHandlerParams { input: KibanaContext | null; @@ -20,6 +21,7 @@ interface MetricsRequestHandlerParams { visParams: TimeseriesVisParams; searchSessionId?: string; executionContext?: KibanaExecutionContext; + inspectorAdapters?: Adapters; } export const metricsRequestHandler = async ({ @@ -28,9 +30,11 @@ export const metricsRequestHandler = async ({ visParams, searchSessionId, executionContext, + inspectorAdapters, }: MetricsRequestHandlerParams): Promise => { const config = getUISettings(); const data = getDataStart(); + const theme = getCoreStart().theme; const timezone = getTimezone(config); const uiStateObj = uiState[visParams.type] ?? {}; @@ -48,7 +52,8 @@ export const metricsRequestHandler = async ({ try { const searchSessionOptions = dataSearch.session.getSearchOptions(searchSessionId); - return await getCoreStart().http.post(ROUTES.VIS_DATA, { + + const visData: TimeseriesVisData = await getCoreStart().http.post(ROUTES.VIS_DATA, { body: JSON.stringify({ timerange: { timezone, @@ -64,6 +69,21 @@ export const metricsRequestHandler = async ({ }), context: executionContext, }); + + inspectorAdapters?.requests?.reset(); + + Object.entries(visData.trackedEsSearches || {}).forEach(([key, query]) => { + inspectorAdapters?.requests + ?.start(query.label ?? key, { searchSessionId }) + .json(query.body) + .ok({ time: query.time }); + + if (query.response && config.get(UI_SETTINGS.ALLOW_CHECKING_FOR_FAILED_SHARDS)) { + handleResponse({ body: query.body }, { rawResponse: query.response }, theme); + } + }); + + return visData; } finally { if (untrackSearch && dataSearch.session.isCurrentSession(searchSessionId)) { // untrack if this search still belongs to current session diff --git a/src/plugins/vis_types/timeseries/server/lib/search_strategies/index.ts b/src/plugins/vis_types/timeseries/server/lib/search_strategies/index.ts index ca0c50a79564a9..721e1dad473f07 100644 --- a/src/plugins/vis_types/timeseries/server/lib/search_strategies/index.ts +++ b/src/plugins/vis_types/timeseries/server/lib/search_strategies/index.ts @@ -11,6 +11,7 @@ import { AbstractSearchStrategy } from './strategies'; export { SearchStrategyRegistry } from './search_strategy_registry'; export { AbstractSearchStrategy, RollupSearchStrategy, DefaultSearchStrategy } from './strategies'; +export type { EsSearchRequest } from './strategies/abstract_search_strategy'; export type SearchCapabilities = DefaultSearchCapabilities; export type SearchStrategy = AbstractSearchStrategy; diff --git a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.test.ts b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.test.ts index 6216bce00fc7de..1a52132612f718 100644 --- a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.test.ts +++ b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.test.ts @@ -9,7 +9,7 @@ import { IndexPatternsService } from '../../../../../../data/common'; import { from } from 'rxjs'; -import { AbstractSearchStrategy } from './abstract_search_strategy'; +import { AbstractSearchStrategy, EsSearchRequest } from './abstract_search_strategy'; import type { FieldSpec } from '../../../../../../data/common'; import type { CachedIndexPatternFetcher } from '../lib/cached_index_pattern_fetcher'; import type { @@ -64,7 +64,7 @@ describe('AbstractSearchStrategy', () => { }); test('should return response', async () => { - const searches = [{ body: 'body', index: 'index' }]; + const searches: EsSearchRequest[] = [{ body: {}, index: 'index' }]; const responses = await abstractSearchStrategy.search( requestContext, @@ -84,7 +84,7 @@ describe('AbstractSearchStrategy', () => { expect(requestContext.search.search).toHaveBeenCalledWith( { params: { - body: 'body', + body: {}, index: 'index', }, indexType: undefined, diff --git a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts index bce07d2cdb3000..1d3650ccedbd38 100644 --- a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts +++ b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts @@ -6,40 +6,67 @@ * Side Public License, v 1. */ +import { tap } from 'rxjs/operators'; +import { omit } from 'lodash'; import { IndexPatternsService } from '../../../../../../data/server'; import { toSanitizedFieldType } from '../../../../common/fields_utils'; -import type { FetchedIndexPattern } from '../../../../common/types'; +import type { FetchedIndexPattern, TrackedEsSearches } from '../../../../common/types'; import type { VisTypeTimeseriesRequest, VisTypeTimeseriesRequestHandlerContext, VisTypeTimeseriesVisDataRequest, } from '../../../types'; +export interface EsSearchRequest { + body: Record; + index?: string; + trackingEsSearchMeta?: { + requestId: string; + requestLabel?: string; + }; +} + export abstract class AbstractSearchStrategy { async search( requestContext: VisTypeTimeseriesRequestHandlerContext, req: VisTypeTimeseriesVisDataRequest, - bodies: any[], + esRequests: EsSearchRequest[], + trackedEsSearches?: TrackedEsSearches, indexType?: string ) { const requests: any[] = []; - bodies.forEach((body) => { + esRequests.forEach(({ body, index, trackingEsSearchMeta }) => { + const startTime = Date.now(); requests.push( requestContext.search .search( { indexType, params: { - ...body, + body, + index, }, }, req.body.searchSession ) + .pipe( + tap((data) => { + if (trackingEsSearchMeta?.requestId && trackedEsSearches) { + trackedEsSearches[trackingEsSearchMeta.requestId] = { + body, + time: Date.now() - startTime, + label: trackingEsSearchMeta.requestLabel, + response: omit(data.rawResponse, 'aggregations'), + }; + } + }) + ) .toPromise() ); }); + return Promise.all(requests); } diff --git a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts index e3ede577742243..2508c68066017c 100644 --- a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts +++ b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts @@ -10,10 +10,10 @@ import { getCapabilitiesForRollupIndices, IndexPatternsService, } from '../../../../../../data/server'; -import { AbstractSearchStrategy } from './abstract_search_strategy'; +import { AbstractSearchStrategy, EsSearchRequest } from './abstract_search_strategy'; import { RollupSearchCapabilities } from '../capabilities/rollup_search_capabilities'; -import type { FetchedIndexPattern } from '../../../../common/types'; +import type { FetchedIndexPattern, TrackedEsSearches } from '../../../../common/types'; import type { CachedIndexPatternFetcher } from '../lib/cached_index_pattern_fetcher'; import type { VisTypeTimeseriesRequest, @@ -29,9 +29,10 @@ export class RollupSearchStrategy extends AbstractSearchStrategy { async search( requestContext: VisTypeTimeseriesRequestHandlerContext, req: VisTypeTimeseriesVisDataRequest, - bodies: any[] + esRequests: EsSearchRequest[], + trackedEsSearches?: TrackedEsSearches ) { - return super.search(requestContext, req, bodies, 'rollup'); + return super.search(requestContext, req, esRequests, trackedEsSearches, 'rollup'); } async getRollupData( diff --git a/src/plugins/vis_types/timeseries/server/lib/vis_data/annotations/get_request_params.ts b/src/plugins/vis_types/timeseries/server/lib/vis_data/annotations/get_request_params.ts index 1973e3b85b966d..41f7e7c86708f7 100644 --- a/src/plugins/vis_types/timeseries/server/lib/vis_data/annotations/get_request_params.ts +++ b/src/plugins/vis_types/timeseries/server/lib/vis_data/annotations/get_request_params.ts @@ -5,7 +5,7 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ - +import { i18n } from '@kbn/i18n'; import type { Annotation, Panel } from '../../../../common/types'; import { buildAnnotationRequest } from './build_request_body'; import type { @@ -13,7 +13,7 @@ import type { VisTypeTimeseriesRequestServices, VisTypeTimeseriesVisDataRequest, } from '../../../types'; -import type { SearchStrategy, SearchCapabilities } from '../../search_strategies'; +import type { SearchStrategy, SearchCapabilities, EsSearchRequest } from '../../search_strategies'; export type AnnotationServices = VisTypeTimeseriesRequestServices & { capabilities: SearchCapabilities; @@ -32,7 +32,7 @@ export async function getAnnotationRequestParams( uiSettings, cachedIndexPatternFetcher, }: AnnotationServices -) { +): Promise { const annotationIndex = await cachedIndexPatternFetcher(annotation.index_pattern); const request = await buildAnnotationRequest({ @@ -52,5 +52,14 @@ export async function getAnnotationRequestParams( runtime_mappings: annotationIndex.indexPattern?.getComputedFields().runtimeFields ?? {}, timeout: esShardTimeout > 0 ? `${esShardTimeout}ms` : undefined, }, + trackingEsSearchMeta: { + requestId: annotation.id, + requestLabel: i18n.translate('visTypeTimeseries.annotationRequest.label', { + defaultMessage: 'Annotation: {id}', + values: { + id: annotation.id, + }, + }), + }, }; } diff --git a/src/plugins/vis_types/timeseries/server/lib/vis_data/get_annotations.ts b/src/plugins/vis_types/timeseries/server/lib/vis_data/get_annotations.ts index 8a005deccaea94..481ddc78918174 100644 --- a/src/plugins/vis_types/timeseries/server/lib/vis_data/get_annotations.ts +++ b/src/plugins/vis_types/timeseries/server/lib/vis_data/get_annotations.ts @@ -10,8 +10,7 @@ import { handleAnnotationResponse } from './response_processors/annotations'; import { AnnotationServices, getAnnotationRequestParams } from './annotations/get_request_params'; import { getLastSeriesTimestamp } from './helpers/timestamp'; import type { VisTypeTimeseriesVisDataRequest } from '../../types'; -import type { Annotation, Panel } from '../../../common/types'; -import type { PanelSeries } from '../../../common/types/vis_data'; +import type { Annotation, Panel, TrackedEsSearches, PanelSeries } from '../../../common/types'; function validAnnotation(annotation: Annotation) { return annotation.fields && annotation.icon && annotation.template && !annotation.hidden; @@ -22,26 +21,33 @@ interface GetAnnotationsParams { panel: Panel; series: Array; services: AnnotationServices; + trackedEsSearches: TrackedEsSearches; } -export async function getAnnotations({ req, panel, series, services }: GetAnnotationsParams) { +export async function getAnnotations({ + req, + panel, + series, + services, + trackedEsSearches, +}: GetAnnotationsParams) { const annotations = panel.annotations!.filter(validAnnotation); const lastSeriesTimestamp = getLastSeriesTimestamp(series); const handleAnnotationResponseBy = handleAnnotationResponse(lastSeriesTimestamp); - const bodiesPromises = annotations.map((annotation) => - getAnnotationRequestParams(req, panel, annotation, services) - ); - - const searches = (await Promise.all(bodiesPromises)).reduce( - (acc, items) => acc.concat(items as any), - [] + const searches = await Promise.all( + annotations.map((annotation) => getAnnotationRequestParams(req, panel, annotation, services)) ); if (!searches.length) return { responses: [] }; try { - const data = await services.searchStrategy.search(services.requestContext, req, searches); + const data = await services.searchStrategy.search( + services.requestContext, + req, + searches, + trackedEsSearches + ); return annotations.reduce((acc, annotation, index) => { acc[annotation.id] = handleAnnotationResponseBy(data[index].rawResponse, annotation); diff --git a/src/plugins/vis_types/timeseries/server/lib/vis_data/get_series_data.ts b/src/plugins/vis_types/timeseries/server/lib/vis_data/get_series_data.ts index e67592271728dd..9b111b0469d22c 100644 --- a/src/plugins/vis_types/timeseries/server/lib/vis_data/get_series_data.ts +++ b/src/plugins/vis_types/timeseries/server/lib/vis_data/get_series_data.ts @@ -20,7 +20,7 @@ import type { VisTypeTimeseriesVisDataRequest, VisTypeTimeseriesRequestServices, } from '../../types'; -import type { Panel } from '../../../common/types'; +import type { Panel, DataResponseMeta } from '../../../common/types'; import { PANEL_TYPES } from '../../../common/enums'; export async function getSeriesData( @@ -52,13 +52,14 @@ export async function getSeriesData( } const { searchStrategy, capabilities } = strategy; - const meta = { + const handleError = handleErrorResponse(panel); + + const meta: DataResponseMeta = { type: panel.type, uiRestrictions: capabilities.uiRestrictions, + trackedEsSearches: {}, }; - const handleError = handleErrorResponse(panel); - try { const bodiesPromises = getActiveSeries(panel).map((series) => { isAggSupported(series.metrics, capabilities); @@ -80,7 +81,7 @@ export async function getSeriesData( ); const searches = await Promise.all(bodiesPromises); - const data = await searchStrategy.search(requestContext, req, searches); + const data = await searchStrategy.search(requestContext, req, searches, meta.trackedEsSearches); const series = await Promise.all( data.map( @@ -101,6 +102,7 @@ export async function getSeriesData( searchStrategy, capabilities, }, + trackedEsSearches: meta.trackedEsSearches, }); } diff --git a/src/plugins/vis_types/timeseries/server/lib/vis_data/get_table_data.ts b/src/plugins/vis_types/timeseries/server/lib/vis_data/get_table_data.ts index d810fba50abced..2b63749fac6427 100644 --- a/src/plugins/vis_types/timeseries/server/lib/vis_data/get_table_data.ts +++ b/src/plugins/vis_types/timeseries/server/lib/vis_data/get_table_data.ts @@ -24,7 +24,8 @@ import type { VisTypeTimeseriesRequestServices, VisTypeTimeseriesVisDataRequest, } from '../../types'; -import type { Panel } from '../../../common/types'; +import type { Panel, DataResponseMeta } from '../../../common/types'; +import type { EsSearchRequest } from '../search_strategies'; export async function getTableData( requestContext: VisTypeTimeseriesRequestHandlerContext, @@ -69,11 +70,11 @@ export async function getTableData( return panel.pivot_id; }; - const meta = { + const meta: DataResponseMeta = { type: panel.type, uiRestrictions: capabilities.uiRestrictions, + trackedEsSearches: {}, }; - const handleError = handleErrorResponse(panel); try { @@ -88,29 +89,38 @@ export async function getTableData( throw new PivotNotSelectedForTableError(); } - const body = await buildTableRequest({ - req, - panel, - esQueryConfig: services.esQueryConfig, - seriesIndex: panelIndex, - capabilities, - uiSettings: services.uiSettings, - buildSeriesMetaParams: () => - services.buildSeriesMetaParams(panelIndex, Boolean(panel.use_kibana_indexes)), - }); - - const [resp] = await searchStrategy.search(requestContext, req, [ + const searches: EsSearchRequest[] = [ { + index: panelIndex.indexPatternString, body: { - ...body, + ...(await buildTableRequest({ + req, + panel, + esQueryConfig: services.esQueryConfig, + seriesIndex: panelIndex, + capabilities, + uiSettings: services.uiSettings, + buildSeriesMetaParams: () => + services.buildSeriesMetaParams(panelIndex, Boolean(panel.use_kibana_indexes)), + })), runtime_mappings: panelIndex.indexPattern?.getComputedFields().runtimeFields ?? {}, }, - index: panelIndex.indexPatternString, + trackingEsSearchMeta: { + requestId: panel.id, + requestLabel: i18n.translate('visTypeTimeseries.tableRequest.label', { + defaultMessage: 'Table: {id}', + values: { + id: panel.id, + }, + }), + }, }, - ]); + ]; + + const data = await searchStrategy.search(requestContext, req, searches, meta.trackedEsSearches); const buckets = get( - resp.rawResponse ? resp.rawResponse : resp, + data[0].rawResponse ? data[0].rawResponse : data[0], 'aggregations.pivot.buckets', [] ); diff --git a/src/plugins/vis_types/timeseries/server/lib/vis_data/series/get_request_params.ts b/src/plugins/vis_types/timeseries/server/lib/vis_data/series/get_request_params.ts index 046b207050ca08..d176eb8b99392c 100644 --- a/src/plugins/vis_types/timeseries/server/lib/vis_data/series/get_request_params.ts +++ b/src/plugins/vis_types/timeseries/server/lib/vis_data/series/get_request_params.ts @@ -5,7 +5,7 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ - +import { i18n } from '@kbn/i18n'; import { buildRequestBody } from './build_request_body'; import type { FetchedIndexPattern, Panel, Series } from '../../../../common/types'; @@ -13,7 +13,7 @@ import type { VisTypeTimeseriesRequestServices, VisTypeTimeseriesVisDataRequest, } from '../../../types'; -import type { SearchCapabilities } from '../../search_strategies'; +import type { SearchCapabilities, EsSearchRequest } from '../../search_strategies'; export async function getSeriesRequestParams( req: VisTypeTimeseriesVisDataRequest, @@ -28,7 +28,7 @@ export async function getSeriesRequestParams( cachedIndexPatternFetcher, buildSeriesMetaParams, }: VisTypeTimeseriesRequestServices -) { +): Promise { let seriesIndex = panelIndex; if (series.override_index_pattern) { @@ -53,5 +53,14 @@ export async function getSeriesRequestParams( runtime_mappings: seriesIndex.indexPattern?.getComputedFields().runtimeFields ?? {}, timeout: esShardTimeout > 0 ? `${esShardTimeout}ms` : undefined, }, + trackingEsSearchMeta: { + requestId: series.id, + requestLabel: i18n.translate('visTypeTimeseries.seriesRequest.label', { + defaultMessage: 'Series: {id}', + values: { + id: series.id, + }, + }), + }, }; } diff --git a/src/plugins/vis_types/timeseries/server/ui_settings.ts b/src/plugins/vis_types/timeseries/server/ui_settings.ts index 2adbc31482f04b..c64d5771479b6b 100644 --- a/src/plugins/vis_types/timeseries/server/ui_settings.ts +++ b/src/plugins/vis_types/timeseries/server/ui_settings.ts @@ -36,4 +36,18 @@ export const getUiSettings: () => Record = () => ({ }), schema: schema.boolean(), }, + [UI_SETTINGS.ALLOW_CHECKING_FOR_FAILED_SHARDS]: { + name: i18n.translate('visTypeTimeseries.advancedSettings.allowCheckingForFailedShardsTitle', { + defaultMessage: 'Show TSVB request shard failures', + }), + value: true, + description: i18n.translate( + 'visTypeTimeseries.advancedSettings.allowCheckingForFailedShardsText', + { + defaultMessage: + 'Show warning message for partial data in TSVB charts if the request succeeds for some shards but fails for others.', + } + ), + schema: schema.boolean(), + }, }); diff --git a/src/plugins/vis_types/xy/public/components/xy_settings.tsx b/src/plugins/vis_types/xy/public/components/xy_settings.tsx index 304b0756c30b61..1393fc252fcf6a 100644 --- a/src/plugins/vis_types/xy/public/components/xy_settings.tsx +++ b/src/plugins/vis_types/xy/public/components/xy_settings.tsx @@ -11,7 +11,7 @@ import React, { FC } from 'react'; import { Direction, Settings, - SettingsSpecProps, + SettingsProps, DomainRange, Position, PartialTheme, @@ -50,7 +50,7 @@ type XYSettingsProps = Pick< | 'xAxis' | 'orderBucketsBySum' > & { - onPointerUpdate: SettingsSpecProps['onPointerUpdate']; + onPointerUpdate: SettingsProps['onPointerUpdate']; xDomain?: DomainRange; adjustedXDomain?: DomainRange; showLegend: boolean; diff --git a/src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx b/src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx index bc15cbc83ace06..0ef26a8b72f05e 100644 --- a/src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx +++ b/src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx @@ -68,8 +68,8 @@ const TopNav = ({ // start a new session to make sure all data is up to date services.data.search.session.start(); - await visInstance.embeddableHandler.reload(); - }, [visInstance.embeddableHandler, services.data.search.session]); + // embeddable handler is subscribed to session service and will refresh + }, [services.data.search.session]); const handleRefresh = useCallback( (_payload: any, isUpdate?: boolean) => { diff --git a/src/plugins/visualizations/public/visualize_app/utils/use/use_editor_updates.ts b/src/plugins/visualizations/public/visualize_app/utils/use/use_editor_updates.ts index fd962f3f1afbdf..a8a6fa3eea2a4a 100644 --- a/src/plugins/visualizations/public/visualize_app/utils/use/use_editor_updates.ts +++ b/src/plugins/visualizations/public/visualize_app/utils/use/use_editor_updates.ts @@ -60,12 +60,16 @@ export const useEditorUpdates = ( timeRange: timefilter.getTime(), filters: filterManager.getFilters(), query: queryString.getQuery(), + searchSessionId: services.data.search.session.getSessionId(), }); } }; const subscriptions = state$.subscribe({ - next: reloadVisualization, + next: () => { + services.data.search.session.start(); + reloadVisualization(); + }, error: services.fatalErrors.add, }); @@ -97,6 +101,16 @@ export const useEditorUpdates = ( vis.uiState.on('change', updateOnChange); + const sessionSubscription = services.data.search.session + .getSession$() + .subscribe((sessionId) => { + if (embeddableHandler.getInput().searchSessionId !== sessionId) { + embeddableHandler.updateInput({ + searchSessionId: sessionId, + }); + } + }); + const unsubscribeStateUpdates = appState.subscribe((state) => { setCurrentAppState(state); if (savedVis && savedVis.id && !services.history.location.pathname.includes(savedVis.id)) { @@ -152,6 +166,7 @@ export const useEditorUpdates = ( subscriptions.unsubscribe(); vis.uiState.off('change', updateOnChange); unsubscribeStateUpdates(); + sessionSubscription.unsubscribe(); }; } }, [appState, eventEmitter, visInstance, services, setHasUnsavedChanges, visEditorController]); diff --git a/test/functional/apps/discover/_empty_state.ts b/test/functional/apps/discover/_empty_state.ts new file mode 100644 index 00000000000000..e78f5de8bd7805 --- /dev/null +++ b/test/functional/apps/discover/_empty_state.ts @@ -0,0 +1,30 @@ +/* + * 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 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 or the Server + * Side Public License, v 1. + */ + +import expect from '@kbn/expect'; +import { FtrProviderContext } from '../../ftr_provider_context'; + +export default function ({ getService, getPageObjects }: FtrProviderContext) { + const testSubjects = getService('testSubjects'); + const kibanaServer = getService('kibanaServer'); + const PageObjects = getPageObjects(['common', 'timePicker', 'discover']); + + describe('empty state', () => { + before(async () => { + await kibanaServer.uiSettings.unset('defaultIndex'); + await kibanaServer.savedObjects.clean({ types: ['search', 'index-pattern'] }); + }); + + it('redirects to Overview app', async () => { + await PageObjects.common.navigateToApp('discover'); + const selector = await testSubjects.find('kibanaChrome'); + const content = await selector.findByCssSelector('.kbnNoDataPageContents'); + expect(content).not.to.be(null); + }); + }); +} diff --git a/test/functional/apps/discover/index.ts b/test/functional/apps/discover/index.ts index 1241b0e892e9c2..b5eb160526876f 100644 --- a/test/functional/apps/discover/index.ts +++ b/test/functional/apps/discover/index.ts @@ -54,5 +54,6 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { loadTestFile(require.resolve('./_search_on_page_load')); loadTestFile(require.resolve('./_chart_hidden')); loadTestFile(require.resolve('./_context_encoded_url_param')); + loadTestFile(require.resolve('./_empty_state')); }); } diff --git a/test/functional/apps/visualize/_tsvb_chart.ts b/test/functional/apps/visualize/_tsvb_chart.ts index 1958cc4699f926..4080ca2a0ba75d 100644 --- a/test/functional/apps/visualize/_tsvb_chart.ts +++ b/test/functional/apps/visualize/_tsvb_chart.ts @@ -52,8 +52,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await visualBuilder.clickDataTab('metric'); }); - it('should not have inspector enabled', async () => { - await inspector.expectIsNotEnabled(); + it('should have inspector enabled', async () => { + await inspector.expectIsEnabled(); }); it('should show correct data', async () => { diff --git a/test/functional/page_objects/visualize_chart_page.ts b/test/functional/page_objects/visualize_chart_page.ts index dc361970346912..a3fbd631722f50 100644 --- a/test/functional/page_objects/visualize_chart_page.ts +++ b/test/functional/page_objects/visualize_chart_page.ts @@ -255,7 +255,7 @@ export class VisualizeChartPageObject extends FtrService { if (isVisTypeHeatmapChart) { const legendItems = - (await this.getEsChartDebugState(heatmapChartSelector))?.legend!.items ?? []; + (await this.getEsChartDebugState(heatmapChartSelector))?.legend?.items ?? []; return legendItems.map(({ name }) => name); } diff --git a/x-pack/plugins/alerting/server/lib/is_alert_not_found_error.test.ts b/x-pack/plugins/alerting/server/lib/is_alerting_error.test.ts similarity index 59% rename from x-pack/plugins/alerting/server/lib/is_alert_not_found_error.test.ts rename to x-pack/plugins/alerting/server/lib/is_alerting_error.test.ts index c168b561eeac72..643ca9b3f752bc 100644 --- a/x-pack/plugins/alerting/server/lib/is_alert_not_found_error.test.ts +++ b/x-pack/plugins/alerting/server/lib/is_alerting_error.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { isAlertSavedObjectNotFoundError } from './is_alert_not_found_error'; +import { isAlertSavedObjectNotFoundError, isEsUnavailableError } from './is_alerting_error'; import { ErrorWithReason } from './error_with_reason'; import { SavedObjectsErrorHelpers } from '../../../../../src/core/server'; import uuid from 'uuid'; @@ -31,3 +31,24 @@ describe('isAlertSavedObjectNotFoundError', () => { expect(isAlertSavedObjectNotFoundError(error, id)).toBe(true); }); }); + +describe('isEsUnavailableError', () => { + const id = uuid.v4(); + const errorSONF = SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError('alert', id); + + test('identifies es unavailable errors', () => { + // ensure the error created by SO parses as a string with the format we expect + expect(`${errorSONF}`.includes(`alert/${id}`)).toBe(true); + + expect(isEsUnavailableError(errorSONF, id)).toBe(true); + }); + + test('identifies generic errors', () => { + expect(isEsUnavailableError(new Error(`not found`), id)).toBe(false); + }); + + test('identifies es unavailable errors wrapped in an ErrorWithReason', () => { + const error = new ErrorWithReason(AlertExecutionStatusErrorReasons.Read, errorSONF); + expect(isEsUnavailableError(error, id)).toBe(true); + }); +}); diff --git a/x-pack/plugins/alerting/server/lib/is_alert_not_found_error.ts b/x-pack/plugins/alerting/server/lib/is_alerting_error.ts similarity index 53% rename from x-pack/plugins/alerting/server/lib/is_alert_not_found_error.ts rename to x-pack/plugins/alerting/server/lib/is_alerting_error.ts index e6ddbe65ef5c3a..abd6ac64bf8b7a 100644 --- a/x-pack/plugins/alerting/server/lib/is_alert_not_found_error.ts +++ b/x-pack/plugins/alerting/server/lib/is_alerting_error.ts @@ -8,11 +8,15 @@ import { SavedObjectsErrorHelpers } from '../../../../../src/core/server'; import { isErrorWithReason } from './error_with_reason'; -export function isAlertSavedObjectNotFoundError(err: Error, alertId: string) { +export function isAlertSavedObjectNotFoundError(err: Error, ruleId: string) { // if this is an error with a reason, the actual error needs to be extracted const actualError = isErrorWithReason(err) ? err.error : err; - return ( - SavedObjectsErrorHelpers.isNotFoundError(actualError) && `${actualError}`.includes(alertId) - ); + return SavedObjectsErrorHelpers.isNotFoundError(actualError) && `${actualError}`.includes(ruleId); +} + +export function isEsUnavailableError(err: Error, ruleId: string) { + // if this is an error with a reason, the actual error needs to be extracted + const actualError = isErrorWithReason(err) ? err.error : err; + return SavedObjectsErrorHelpers.isEsUnavailableError(actualError); } diff --git a/x-pack/plugins/alerting/server/plugin.ts b/x-pack/plugins/alerting/server/plugin.ts index 0273bda209b7cb..70aad0d6921e16 100644 --- a/x-pack/plugins/alerting/server/plugin.ts +++ b/x-pack/plugins/alerting/server/plugin.ts @@ -8,7 +8,7 @@ import type { PublicMethodsOf } from '@kbn/utility-types'; import { first } from 'rxjs/operators'; import { BehaviorSubject } from 'rxjs'; -import { UsageCollectionSetup } from 'src/plugins/usage_collection/server'; +import { UsageCollectionSetup, UsageCounter } from 'src/plugins/usage_collection/server'; import { SecurityPluginSetup, SecurityPluginStart } from '../../security/server'; import { EncryptedSavedObjectsPluginSetup, @@ -51,7 +51,7 @@ import { AlertTypeState, Services, } from './types'; -import { registerAlertsUsageCollector } from './usage'; +import { registerAlertingUsageCollector } from './usage'; import { initializeAlertingTelemetry, scheduleAlertingTelemetry } from './usage/task'; import { IEventLogger, IEventLogService, IEventLogClientService } from '../../event_log/server'; import { PluginStartContract as FeaturesPluginStart } from '../../features/server'; @@ -153,6 +153,7 @@ export class AlertingPlugin { private eventLogService?: IEventLogService; private eventLogger?: IEventLogger; private kibanaBaseUrl: string | undefined; + private usageCounter: UsageCounter | undefined; constructor(initializerContext: PluginInitializerContext) { this.config = initializerContext.config.create().pipe(first()).toPromise(); @@ -208,7 +209,7 @@ export class AlertingPlugin { const usageCollection = plugins.usageCollection; if (usageCollection) { - registerAlertsUsageCollector( + registerAlertingUsageCollector( usageCollection, core.getStartServices().then(([_, { taskManager }]) => taskManager) ); @@ -223,7 +224,7 @@ export class AlertingPlugin { } // Usage counter for telemetry - const usageCounter = plugins.usageCollection?.createUsageCounter(ALERTS_FEATURE_ID); + this.usageCounter = plugins.usageCollection?.createUsageCounter(ALERTS_FEATURE_ID); setupSavedObjects( core.savedObjects, @@ -259,7 +260,7 @@ export class AlertingPlugin { defineRoutes({ router, licenseState: this.licenseState, - usageCounter, + usageCounter: this.usageCounter, encryptedSavedObjects: plugins.encryptedSavedObjects, }); @@ -393,6 +394,7 @@ export class AlertingPlugin { supportsEphemeralTasks: plugins.taskManager.supportsEphemeralTasks(), maxEphemeralActionsPerRule: config.maxEphemeralActionsPerAlert, cancelAlertsOnRuleTimeout: config.cancelAlertsOnRuleTimeout, + usageCounter: this.usageCounter, }); }); diff --git a/x-pack/plugins/alerting/server/task_runner/task_runner.test.ts b/x-pack/plugins/alerting/server/task_runner/task_runner.test.ts index a466583cd3bd39..30336a7d5fc485 100644 --- a/x-pack/plugins/alerting/server/task_runner/task_runner.test.ts +++ b/x-pack/plugins/alerting/server/task_runner/task_runner.test.ts @@ -7,6 +7,7 @@ import sinon from 'sinon'; import { schema } from '@kbn/config-schema'; +import { usageCountersServiceMock } from 'src/plugins/usage_collection/server/usage_counters/usage_counters_service.mock'; import { AlertExecutorOptions, AlertTypeParams, @@ -59,6 +60,9 @@ const ruleType: jest.Mocked = { let fakeTimer: sinon.SinonFakeTimers; +const mockUsageCountersSetup = usageCountersServiceMock.createSetupContract(); +const mockUsageCounter = mockUsageCountersSetup.createUsageCounter('test'); + describe('Task Runner', () => { let mockedTaskInstance: ConcreteTaskInstance; @@ -113,6 +117,7 @@ describe('Task Runner', () => { supportsEphemeralTasks: false, maxEphemeralActionsPerRule: 10, cancelAlertsOnRuleTimeout: true, + usageCounter: mockUsageCounter, }; function testAgainstEphemeralSupport( @@ -397,6 +402,7 @@ describe('Task Runner', () => { }, expect.any(Function) ); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); testAgainstEphemeralSupport( @@ -683,6 +689,7 @@ describe('Task Runner', () => { ruleset: 'alerts', }, }); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); } ); @@ -899,6 +906,7 @@ describe('Task Runner', () => { ruleset: 'alerts', }, }); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); testAgainstEphemeralSupport( @@ -965,6 +973,7 @@ describe('Task Runner', () => { 4, 'ruleExecutionStatus for test:1: {"lastExecutionDate":"1970-01-01T00:00:00.000Z","status":"active"}' ); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); } ); @@ -1157,6 +1166,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); testAgainstEphemeralSupport( @@ -1218,6 +1228,7 @@ describe('Task Runner', () => { }); await taskRunner.run(); expect(enqueueFunction).toHaveBeenCalledTimes(1); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); } ); @@ -1287,6 +1298,7 @@ describe('Task Runner', () => { }); await taskRunner.run(); expect(enqueueFunction).toHaveBeenCalledTimes(1); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); } ); @@ -1607,6 +1619,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); } ); @@ -2013,6 +2026,7 @@ describe('Task Runner', () => { }, ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); } ); @@ -2112,6 +2126,7 @@ describe('Task Runner', () => { expect(enqueueFunction).toHaveBeenCalledTimes(2); expect((enqueueFunction as jest.Mock).mock.calls[1][0].id).toEqual('1'); expect((enqueueFunction as jest.Mock).mock.calls[0][0].id).toEqual('2'); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); } ); @@ -2246,6 +2261,7 @@ describe('Task Runner', () => { }, ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); } ); @@ -2501,6 +2517,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('validates params before executing the alert type', async () => { @@ -2557,6 +2574,7 @@ describe('Task Runner', () => { expect(taskRunnerFactoryInitializerParams.logger.error).toHaveBeenCalledWith( `Executing Rule foo:test:1 has resulted in Error: params invalid: [param1]: expected value of type [string] but got [undefined]` ); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('uses API key when provided', async () => { @@ -2591,6 +2609,7 @@ describe('Task Runner', () => { request, '/' ); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test(`doesn't use API key when not provided`, async () => { @@ -2623,6 +2642,7 @@ describe('Task Runner', () => { request, '/' ); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('rescheduled the Alert if the schedule has update during a task run', async () => { @@ -2673,6 +2693,7 @@ describe('Task Runner', () => { }, } `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('recovers gracefully when the RuleType executor throws an exception', async () => { @@ -2826,6 +2847,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('recovers gracefully when the Alert Task Runner throws an exception when fetching the encrypted attributes', async () => { @@ -2960,6 +2982,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('recovers gracefully when the Alert Task Runner throws an exception when license is higher than supported', async () => { @@ -3103,6 +3126,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('recovers gracefully when the Alert Task Runner throws an exception when getting internal Services', async () => { @@ -3246,6 +3270,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('recovers gracefully when the Alert Task Runner throws an exception when fetching attributes', async () => { @@ -3388,6 +3413,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('recovers gracefully when the Runner of a legacy Alert task which has no schedule throws an exception when fetching attributes', async () => { @@ -3438,6 +3464,7 @@ describe('Task Runner', () => { "state": Object {}, } `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test(`doesn't change previousStartedAt when it fails to run`, async () => { @@ -3484,6 +3511,7 @@ describe('Task Runner', () => { expect(runnerResult.state.previousStartedAt).toEqual( new Date(originalAlertSate.previousStartedAt) ); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('avoids rescheduling a failed Alert Task Runner when it throws due to failing to fetch the alert', async () => { @@ -3525,9 +3553,66 @@ describe('Task Runner', () => { `Unable to execute rule "1" in the "foo" space because Saved object [alert/1] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.` ); expect(isUnrecoverableError(ex)).toBeTruthy(); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); }); + test('reschedules for next schedule interval if es connectivity error encountered and schedule interval is less than connectivity retry', async () => { + rulesClient.get.mockImplementation(() => { + throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError('alert', '1'); + }); + + const taskRunner = new TaskRunner( + ruleType, + mockedTaskInstance, + taskRunnerFactoryInitializerParams + ); + + encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValue({ + id: '1', + type: 'alert', + attributes: { + apiKey: Buffer.from('123:abc').toString('base64'), + enabled: true, + }, + references: [], + }); + + const runnerResult = await taskRunner.run(); + expect(runnerResult.schedule!.interval).toEqual(mockedTaskInstance.schedule!.interval); + }); + + test('reschedules for smaller interval if es connectivity error encountered and schedule interval is greater than connectivity retry', async () => { + rulesClient.get.mockImplementation(() => { + throw SavedObjectsErrorHelpers.createGenericNotFoundEsUnavailableError('alert', '1'); + }); + + const taskRunner = new TaskRunner( + ruleType, + { + ...mockedTaskInstance, + schedule: { + interval: '1d', + }, + }, + taskRunnerFactoryInitializerParams + ); + + encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValue({ + id: '1', + type: 'alert', + attributes: { + apiKey: Buffer.from('123:abc').toString('base64'), + enabled: true, + }, + references: [], + }); + + const runnerResult = await taskRunner.run(); + + expect(runnerResult.schedule!.interval).toEqual('5m'); + }); + test('correctly logs warning when Alert Task Runner throws due to failing to fetch the alert in a space', async () => { rulesClient.get.mockImplementation(() => { throw SavedObjectsErrorHelpers.createGenericNotFoundError('alert', '1'); @@ -3566,6 +3651,7 @@ describe('Task Runner', () => { 1, `Unable to execute rule "1" in the "test space" space because Saved object [alert/1] not found - this rule will not be rescheduled. To restart rule execution, try disabling and re-enabling this rule.` ); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); }); @@ -3877,6 +3963,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('duration is updated for active alerts when alert state contains start time', async () => { @@ -4118,6 +4205,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('duration is not calculated for active alerts when alert state does not contain start time', async () => { @@ -4347,6 +4435,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('end is logged for active alerts when alert state contains start time and alert recovers', async () => { @@ -4575,6 +4664,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('end calculation is skipped for active alerts when alert state does not contain start time and alert recovers', async () => { @@ -4799,6 +4889,7 @@ describe('Task Runner', () => { ], ] `); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('successfully executes the task with ephemeral tasks enabled', async () => { @@ -4989,6 +5080,7 @@ describe('Task Runner', () => { }, { refresh: false, namespace: undefined } ); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('successfully bails on execution if the rule is disabled', async () => { @@ -5083,6 +5175,7 @@ describe('Task Runner', () => { }, message: 'test:1: execution failed', }); + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('successfully stores successful runs', async () => { diff --git a/x-pack/plugins/alerting/server/task_runner/task_runner.ts b/x-pack/plugins/alerting/server/task_runner/task_runner.ts index 9640dd9038ce76..d8b4ea04a01845 100644 --- a/x-pack/plugins/alerting/server/task_runner/task_runner.ts +++ b/x-pack/plugins/alerting/server/task_runner/task_runner.ts @@ -8,6 +8,7 @@ import apm from 'elastic-apm-node'; import type { PublicMethodsOf } from '@kbn/utility-types'; import { Dictionary, pickBy, mapValues, without, cloneDeep } from 'lodash'; import type { Request } from '@hapi/hapi'; +import { UsageCounter } from 'src/plugins/usage_collection/server'; import uuid from 'uuid'; import { addSpaceIdToPath } from '../../../spaces/server'; import { Logger, KibanaRequest } from '../../../../../src/core/server'; @@ -41,7 +42,7 @@ import { promiseResult, map, Resultable, asOk, asErr, resolveErr } from '../lib/ import { taskInstanceToAlertTaskInstance } from './alert_task_instance'; import { EVENT_LOG_ACTIONS } from '../plugin'; import { IEvent, IEventLogger, SAVED_OBJECT_REL_PRIMARY } from '../../../event_log/server'; -import { isAlertSavedObjectNotFoundError } from '../lib/is_alert_not_found_error'; +import { isAlertSavedObjectNotFoundError, isEsUnavailableError } from '../lib/is_alerting_error'; import { RulesClient } from '../rules_client'; import { partiallyUpdateAlert } from '../saved_objects'; import { @@ -51,6 +52,7 @@ import { AlertInstanceState, AlertInstanceContext, WithoutReservedActionGroups, + parseDuration, } from '../../common'; import { NormalizedRuleType, UntypedNormalizedRuleType } from '../rule_type_registry'; import { getEsErrorMessage } from '../lib/errors'; @@ -61,6 +63,7 @@ import { import { createAbortableEsClientFactory } from '../lib/create_abortable_es_client_factory'; const FALLBACK_RETRY_INTERVAL = '5m'; +const CONNECTIVITY_RETRY_INTERVAL = '5m'; const MONITORING_HISTORY_LIMIT = 200; // 1,000,000 nanoseconds in 1 millisecond @@ -109,6 +112,7 @@ export class TaskRunner< >; private readonly executionId: string; private readonly ruleTypeRegistry: RuleTypeRegistry; + private usageCounter?: UsageCounter; private searchAbortController: AbortController; private cancelled: boolean; @@ -127,6 +131,7 @@ export class TaskRunner< ) { this.context = context; this.logger = context.logger; + this.usageCounter = context.usageCounter; this.ruleType = ruleType; this.ruleName = null; this.taskInstance = taskInstanceToAlertTaskInstance(taskInstance); @@ -256,6 +261,18 @@ export class TaskRunner< return !this.context.cancelAlertsOnRuleTimeout || !this.ruleType.cancelAlertsOnRuleTimeout; } + private countUsageOfActionExecutionAfterRuleCancellation() { + if (this.cancelled && this.usageCounter) { + if (this.context.cancelAlertsOnRuleTimeout && this.ruleType.cancelAlertsOnRuleTimeout) { + // Increment usage counter for skipped actions + this.usageCounter.incrementCounter({ + counterName: `alertsSkippedDueToRuleExecutionTimeout_${this.ruleType.id}`, + incrementBy: 1, + }); + } + } + } + async executeAlert( alertId: string, alert: AlertInstance, @@ -378,6 +395,7 @@ export class TaskRunner< event.error.message = err.message; event.event = event.event || {}; event.event.outcome = 'failure'; + throw new ErrorWithReason(AlertExecutionStatusErrorReasons.Execute, err); } @@ -483,6 +501,12 @@ export class TaskRunner< this.logger.debug( `no scheduling of actions for rule ${ruleLabel}: rule execution has been cancelled.` ); + // Usage counter for telemetry + // This keeps track of how many times action executions were skipped after rule + // execution completed successfully after the execution timeout + // This can occur when rule executors do not short circuit execution in response + // to timeout + this.countUsageOfActionExecutionAfterRuleCancellation(); } } @@ -751,7 +775,18 @@ export class TaskRunner< ); throwUnrecoverableError(error); } - return { interval: taskSchedule?.interval ?? FALLBACK_RETRY_INTERVAL }; + + let retryInterval = taskSchedule?.interval ?? FALLBACK_RETRY_INTERVAL; + + // Set retry interval smaller for ES connectivity errors + if (isEsUnavailableError(error, ruleId)) { + retryInterval = + parseDuration(retryInterval) > parseDuration(CONNECTIVITY_RETRY_INTERVAL) + ? CONNECTIVITY_RETRY_INTERVAL + : retryInterval; + } + + return { interval: retryInterval }; }), monitoring: ruleMonitoring, }; diff --git a/x-pack/plugins/alerting/server/task_runner/task_runner_cancel.test.ts b/x-pack/plugins/alerting/server/task_runner/task_runner_cancel.test.ts index e24be639c7fcc2..f071af53bc10e5 100644 --- a/x-pack/plugins/alerting/server/task_runner/task_runner_cancel.test.ts +++ b/x-pack/plugins/alerting/server/task_runner/task_runner_cancel.test.ts @@ -6,6 +6,7 @@ */ import sinon from 'sinon'; +import { usageCountersServiceMock } from 'src/plugins/usage_collection/server/usage_counters/usage_counters_service.mock'; import { AlertExecutorOptions, AlertTypeParams, @@ -52,6 +53,9 @@ const ruleType: jest.Mocked = { let fakeTimer: sinon.SinonFakeTimers; +const mockUsageCountersSetup = usageCountersServiceMock.createSetupContract(); +const mockUsageCounter = mockUsageCountersSetup.createUsageCounter('test'); + describe('Task Runner Cancel', () => { let mockedTaskInstance: ConcreteTaskInstance; @@ -106,6 +110,7 @@ describe('Task Runner Cancel', () => { supportsEphemeralTasks: false, maxEphemeralActionsPerRule: 10, cancelAlertsOnRuleTimeout: true, + usageCounter: mockUsageCounter, }; const mockDate = new Date('2019-02-12T21:01:22.479Z'); @@ -333,6 +338,11 @@ describe('Task Runner Cancel', () => { }, { refresh: false, namespace: undefined } ); + expect(mockUsageCounter.incrementCounter).toHaveBeenCalledTimes(1); + expect(mockUsageCounter.incrementCounter).toHaveBeenCalledWith({ + counterName: 'alertsSkippedDueToRuleExecutionTimeout_test', + incrementBy: 1, + }); }); test('actionsPlugin.execute is called if rule execution is cancelled but cancelAlertsOnRuleTimeout from config is false', async () => { @@ -361,6 +371,8 @@ describe('Task Runner Cancel', () => { await promise; testActionsExecute(); + + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('actionsPlugin.execute is called if rule execution is cancelled but cancelAlertsOnRuleTimeout for ruleType is false', async () => { @@ -397,6 +409,8 @@ describe('Task Runner Cancel', () => { await promise; testActionsExecute(); + + expect(mockUsageCounter.incrementCounter).not.toHaveBeenCalled(); }); test('actionsPlugin.execute is skipped if rule execution is cancelled and cancelAlertsOnRuleTimeout for both config and ruleType are true', async () => { @@ -563,6 +577,12 @@ describe('Task Runner Cancel', () => { ruleset: 'alerts', }, }); + + expect(mockUsageCounter.incrementCounter).toHaveBeenCalledTimes(1); + expect(mockUsageCounter.incrementCounter).toHaveBeenCalledWith({ + counterName: 'alertsSkippedDueToRuleExecutionTimeout_test', + incrementBy: 1, + }); }); function testActionsExecute() { diff --git a/x-pack/plugins/alerting/server/task_runner/task_runner_factory.test.ts b/x-pack/plugins/alerting/server/task_runner/task_runner_factory.test.ts index 038eecda349a1d..2e321f73544580 100644 --- a/x-pack/plugins/alerting/server/task_runner/task_runner_factory.test.ts +++ b/x-pack/plugins/alerting/server/task_runner/task_runner_factory.test.ts @@ -6,6 +6,7 @@ */ import sinon from 'sinon'; +import { usageCountersServiceMock } from 'src/plugins/usage_collection/server/usage_counters/usage_counters_service.mock'; import { ConcreteTaskInstance, TaskStatus } from '../../../task_manager/server'; import { TaskRunnerContext, TaskRunnerFactory } from './task_runner_factory'; import { encryptedSavedObjectsMock } from '../../../encrypted_saved_objects/server/mocks'; @@ -22,7 +23,8 @@ import { ruleTypeRegistryMock } from '../rule_type_registry.mock'; import { executionContextServiceMock } from '../../../../../src/core/server/mocks'; const executionContext = executionContextServiceMock.createSetupContract(); - +const mockUsageCountersSetup = usageCountersServiceMock.createSetupContract(); +const mockUsageCounter = mockUsageCountersSetup.createUsageCounter('test'); const ruleType: UntypedNormalizedRuleType = { id: 'test', name: 'My test alert', @@ -86,6 +88,7 @@ describe('Task Runner Factory', () => { maxEphemeralActionsPerRule: 10, cancelAlertsOnRuleTimeout: true, executionContext, + usageCounter: mockUsageCounter, }; beforeEach(() => { diff --git a/x-pack/plugins/alerting/server/task_runner/task_runner_factory.ts b/x-pack/plugins/alerting/server/task_runner/task_runner_factory.ts index 69c8ff471c8bb4..f410e55eaab1c2 100644 --- a/x-pack/plugins/alerting/server/task_runner/task_runner_factory.ts +++ b/x-pack/plugins/alerting/server/task_runner/task_runner_factory.ts @@ -6,6 +6,7 @@ */ import type { PublicMethodsOf } from '@kbn/utility-types'; +import { UsageCounter } from 'src/plugins/usage_collection/server'; import type { Logger, KibanaRequest, @@ -46,6 +47,7 @@ export interface TaskRunnerContext { supportsEphemeralTasks: boolean; maxEphemeralActionsPerRule: number; cancelAlertsOnRuleTimeout: boolean; + usageCounter?: UsageCounter; } export class TaskRunnerFactory { diff --git a/x-pack/plugins/alerting/server/usage/alerts_telemetry.test.ts b/x-pack/plugins/alerting/server/usage/alerting_telemetry.test.ts similarity index 71% rename from x-pack/plugins/alerting/server/usage/alerts_telemetry.test.ts rename to x-pack/plugins/alerting/server/usage/alerting_telemetry.test.ts index 848c5e9b72168b..2ed7ca2d02c5d4 100644 --- a/x-pack/plugins/alerting/server/usage/alerts_telemetry.test.ts +++ b/x-pack/plugins/alerting/server/usage/alerting_telemetry.test.ts @@ -5,22 +5,25 @@ * 2.0. */ +/* eslint-disable @typescript-eslint/naming-convention */ + // eslint-disable-next-line @kbn/eslint/no-restricted-paths import { elasticsearchClientMock } from '../../../../../src/core/server/elasticsearch/client/mocks'; import { getTotalCountAggregations, getTotalCountInUse, getExecutionsPerDayCount, -} from './alerts_telemetry'; + getExecutionTimeoutsPerDayCount, +} from './alerting_telemetry'; -describe('alerts telemetry', () => { - test('getTotalCountInUse should replace first "." symbol to "__" in alert types names', async () => { +describe('alerting telemetry', () => { + test('getTotalCountInUse should replace "." symbols with "__" in rule types names', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; mockEsClient.search.mockReturnValue( // @ts-expect-error @elastic/elasticsearch Aggregate only allows unknown values elasticsearchClientMock.createSuccessTransportRequestPromise({ aggregations: { - byAlertTypeId: { + byRuleTypeId: { value: { ruleTypes: { '.index-threshold': 2, @@ -47,8 +50,8 @@ describe('alerts telemetry', () => { Object { "countByType": Object { "__index-threshold": 2, - "document.test__": 1, - "logs.alert.document.count": 1, + "document__test__": 1, + "logs__alert__document__count": 1, }, "countNamespaces": 1, "countTotal": 4, @@ -62,7 +65,7 @@ Object { // @ts-expect-error @elastic/elasticsearch Aggregate only allows unknown values elasticsearchClientMock.createSuccessTransportRequestPromise({ aggregations: { - byAlertTypeId: { + byRuleTypeId: { value: { ruleTypes: { '.index-threshold': 2, @@ -100,8 +103,8 @@ Object { }, "count_by_type": Object { "__index-threshold": 2, - "document.test__": 1, - "logs.alert.document.count": 1, + "document__test__": 1, + "logs__alert__document__count": 1, }, "count_rules_namespaces": 0, "count_total": 4, @@ -129,7 +132,7 @@ Object { `); }); - test('getTotalExecutionsCount should return execution aggregations for total count, count by rule type and number of failed executions', async () => { + test('getExecutionsPerDayCount should return execution aggregations for total count, count by rule type and number of failed executions', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; mockEsClient.search.mockReturnValue( // @ts-expect-error @elastic/elasticsearch Aggregate only allows unknown values @@ -176,26 +179,62 @@ Object { avgExecutionTime: 0, avgExecutionTimeByType: { '__index-threshold': 1043934, - 'document.test__': 17687687, - 'logs.alert.document.count': 1675765, + document__test__: 17687687, + logs__alert__document__count: 1675765, }, countByType: { '__index-threshold': 2, - 'document.test__': 1, - 'logs.alert.document.count': 1, + document__test__: 1, + logs__alert__document__count: 1, }, countFailuresByReason: { unknown: 4, }, countFailuresByReasonByType: { unknown: { - '.index-threshold': 2, - 'document.test.': 1, - 'logs.alert.document.count': 1, + '__index-threshold': 2, + document__test__: 1, + logs__alert__document__count: 1, }, }, countTotal: 4, countTotalFailures: 4, }); }); + + test('getExecutionTimeoutsPerDayCount should return execution aggregations for total timeout count and count by rule type', async () => { + const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; + mockEsClient.search.mockReturnValue( + // @ts-expect-error @elastic/elasticsearch Aggregate only allows unknown values + elasticsearchClientMock.createSuccessTransportRequestPromise({ + aggregations: { + byRuleTypeId: { + value: { + ruleTypes: { + '.index-threshold': 2, + 'logs.alert.document.count': 1, + 'document.test.': 1, + }, + }, + }, + }, + hits: { + hits: [], + }, + }) + ); + + const telemetry = await getExecutionTimeoutsPerDayCount(mockEsClient, 'test'); + + expect(mockEsClient.search).toHaveBeenCalledTimes(1); + + expect(telemetry).toStrictEqual({ + countTotal: 4, + countByType: { + '__index-threshold': 2, + document__test__: 1, + logs__alert__document__count: 1, + }, + }); + }); }); diff --git a/x-pack/plugins/alerting/server/usage/alerts_telemetry.ts b/x-pack/plugins/alerting/server/usage/alerting_telemetry.ts similarity index 77% rename from x-pack/plugins/alerting/server/usage/alerts_telemetry.ts rename to x-pack/plugins/alerting/server/usage/alerting_telemetry.ts index 075404e82e1a92..b21e1d4b00ef1c 100644 --- a/x-pack/plugins/alerting/server/usage/alerts_telemetry.ts +++ b/x-pack/plugins/alerting/server/usage/alerting_telemetry.ts @@ -6,15 +6,15 @@ */ import { ElasticsearchClient } from 'kibana/server'; -import { AlertsUsage } from './types'; +import { AlertingUsage } from './types'; -const alertTypeMetric = { +const ruleTypeMetric = { scripted_metric: { init_script: 'state.ruleTypes = [:]; state.namespaces = [:]', map_script: ` - String alertType = doc['alert.alertTypeId'].value; + String ruleType = doc['alert.alertTypeId'].value; String namespace = doc['namespaces'] !== null && doc['namespaces'].size() > 0 ? doc['namespaces'].value : 'default'; - state.ruleTypes.put(alertType, state.ruleTypes.containsKey(alertType) ? state.ruleTypes.get(alertType) + 1 : 1); + state.ruleTypes.put(ruleType, state.ruleTypes.containsKey(ruleType) ? state.ruleTypes.get(ruleType) + 1 : 1); if (state.namespaces.containsKey(namespace) === false) { state.namespaces.put(namespace, 1); } @@ -38,7 +38,7 @@ const alertTypeMetric = { }, }; -const ruleTypeExecutionsMetric = { +const ruleTypeExecutionsWithDurationMetric = { scripted_metric: { init_script: 'state.ruleTypes = [:]; state.ruleTypesDuration = [:];', map_script: ` @@ -66,6 +66,32 @@ const ruleTypeExecutionsMetric = { }, }; +const ruleTypeExecutionsMetric = { + scripted_metric: { + init_script: 'state.ruleTypes = [:]', + map_script: ` + String ruleType = doc['rule.category'].value; + state.ruleTypes.put(ruleType, state.ruleTypes.containsKey(ruleType) ? state.ruleTypes.get(ruleType) + 1 : 1); + `, + // Combine script is executed per cluster, but we already have a key-value pair per cluster. + // Despite docs that say this is optional, this script can't be blank. + combine_script: 'return state', + // Reduce script is executed across all clusters, so we need to add up all the total from each cluster + // This also needs to account for having no data + reduce_script: ` + Map result = [:]; + for (Map m : states.toArray()) { + if (m !== null) { + for (String k : m.keySet()) { + result.put(k, result.containsKey(k) ? result.get(k) + m.get(k) : m.get(k)); + } + } + } + return result; + `, + }, +}; + const ruleTypeFailureExecutionsMetric = { scripted_metric: { init_script: 'state.reasons = [:]', @@ -99,10 +125,10 @@ const ruleTypeFailureExecutionsMetric = { export async function getTotalCountAggregations( esClient: ElasticsearchClient, - kibanaInex: string + kibanaIndex: string ): Promise< Pick< - AlertsUsage, + AlertingUsage, | 'count_total' | 'count_by_type' | 'throttle_time' @@ -114,7 +140,7 @@ export async function getTotalCountAggregations( > > { const { body: results } = await esClient.search({ - index: kibanaInex, + index: kibanaIndex, body: { size: 0, query: { @@ -210,7 +236,7 @@ export async function getTotalCountAggregations( }, }, aggs: { - byAlertTypeId: alertTypeMetric, + byRuleTypeId: ruleTypeMetric, max_throttle_time: { max: { field: 'alert_throttle' } }, min_throttle_time: { min: { field: 'alert_throttle' } }, avg_throttle_time: { avg: { field: 'alert_throttle' } }, @@ -225,7 +251,7 @@ export async function getTotalCountAggregations( }); const aggregations = results.aggregations as { - byAlertTypeId: { value: { ruleTypes: Record } }; + byRuleTypeId: { value: { ruleTypes: Record } }; max_throttle_time: { value: number }; min_throttle_time: { value: number }; avg_throttle_time: { value: number }; @@ -237,23 +263,15 @@ export async function getTotalCountAggregations( avg_actions_count: { value: number }; }; - const totalAlertsCount = Object.keys(aggregations.byAlertTypeId.value.ruleTypes).reduce( + const totalRulesCount = Object.keys(aggregations.byRuleTypeId.value.ruleTypes).reduce( (total: number, key: string) => - parseInt(aggregations.byAlertTypeId.value.ruleTypes[key], 10) + total, + parseInt(aggregations.byRuleTypeId.value.ruleTypes[key], 10) + total, 0 ); return { - count_total: totalAlertsCount, - count_by_type: Object.keys(aggregations.byAlertTypeId.value.ruleTypes).reduce( - // ES DSL aggregations are returned as `any` by esClient.search - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (obj: any, key: string) => ({ - ...obj, - [replaceFirstAndLastDotSymbols(key)]: aggregations.byAlertTypeId.value.ruleTypes[key], - }), - {} - ), + count_total: totalRulesCount, + count_by_type: replaceDotSymbolsInRuleTypeIds(aggregations.byRuleTypeId.value.ruleTypes), throttle_time: { min: `${aggregations.min_throttle_time.value}s`, avg: `${aggregations.avg_throttle_time.value}s`, @@ -283,9 +301,9 @@ export async function getTotalCountAggregations( }; } -export async function getTotalCountInUse(esClient: ElasticsearchClient, kibanaInex: string) { +export async function getTotalCountInUse(esClient: ElasticsearchClient, kibanaIndex: string) { const { body: searchResult } = await esClient.search({ - index: kibanaInex, + index: kibanaIndex, size: 0, body: { query: { @@ -294,43 +312,28 @@ export async function getTotalCountInUse(esClient: ElasticsearchClient, kibanaIn }, }, aggs: { - byAlertTypeId: alertTypeMetric, + byRuleTypeId: ruleTypeMetric, }, }, }); const aggregations = searchResult.aggregations as { - byAlertTypeId: { + byRuleTypeId: { value: { ruleTypes: Record; namespaces: Record }; }; }; return { - countTotal: Object.keys(aggregations.byAlertTypeId.value.ruleTypes).reduce( + countTotal: Object.keys(aggregations.byRuleTypeId.value.ruleTypes).reduce( (total: number, key: string) => - parseInt(aggregations.byAlertTypeId.value.ruleTypes[key], 10) + total, + parseInt(aggregations.byRuleTypeId.value.ruleTypes[key], 10) + total, 0 ), - countByType: Object.keys(aggregations.byAlertTypeId.value.ruleTypes).reduce( - // ES DSL aggregations are returned as `any` by esClient.search - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (obj: any, key: string) => ({ - ...obj, - [replaceFirstAndLastDotSymbols(key)]: aggregations.byAlertTypeId.value.ruleTypes[key], - }), - {} - ), - countNamespaces: Object.keys(aggregations.byAlertTypeId.value.namespaces).length, + countByType: replaceDotSymbolsInRuleTypeIds(aggregations.byRuleTypeId.value.ruleTypes), + countNamespaces: Object.keys(aggregations.byRuleTypeId.value.namespaces).length, }; } -function replaceFirstAndLastDotSymbols(strToReplace: string) { - const hasFirstSymbolDot = strToReplace.startsWith('.'); - const appliedString = hasFirstSymbolDot ? strToReplace.replace('.', '__') : strToReplace; - const hasLastSymbolDot = strToReplace.endsWith('.'); - return hasLastSymbolDot ? `${appliedString.slice(0, -1)}__` : appliedString; -} - export async function getExecutionsPerDayCount( esClient: ElasticsearchClient, eventLogIndex: string @@ -363,7 +366,7 @@ export async function getExecutionsPerDayCount( }, }, aggs: { - byRuleTypeId: ruleTypeExecutionsMetric, + byRuleTypeId: ruleTypeExecutionsWithDurationMetric, failuresByReason: ruleTypeFailureExecutionsMetric, avgDuration: { avg: { field: 'event.duration' } }, }, @@ -392,15 +395,8 @@ export async function getExecutionsPerDayCount( parseInt(executionsAggregations.byRuleTypeId.value.ruleTypes[key], 10) + total, 0 ), - countByType: Object.keys(executionsAggregations.byRuleTypeId.value.ruleTypes).reduce( - // ES DSL aggregations are returned as `any` by esClient.search - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (obj: any, key: string) => ({ - ...obj, - [replaceFirstAndLastDotSymbols(key)]: - executionsAggregations.byRuleTypeId.value.ruleTypes[key], - }), - {} + countByType: replaceDotSymbolsInRuleTypeIds( + executionsAggregations.byRuleTypeId.value.ruleTypes ), countTotalFailures: Object.keys( executionFailuresAggregations.failuresByReason.value.reasons @@ -426,7 +422,7 @@ export async function getExecutionsPerDayCount( ); return { ...obj, - [replaceFirstAndLastDotSymbols(reason)]: countByRuleTypes, + [replaceDotSymbols(reason)]: countByRuleTypes, }; }, {} @@ -438,8 +434,9 @@ export async function getExecutionsPerDayCount( // eslint-disable-next-line @typescript-eslint/no-explicit-any (obj: any, key: string) => ({ ...obj, - [replaceFirstAndLastDotSymbols(key)]: - executionFailuresAggregations.failuresByReason.value.reasons[key], + [key]: replaceDotSymbolsInRuleTypeIds( + executionFailuresAggregations.failuresByReason.value.reasons[key] + ), }), {} ), @@ -449,7 +446,7 @@ export async function getExecutionsPerDayCount( // eslint-disable-next-line @typescript-eslint/no-explicit-any (obj: any, key: string) => ({ ...obj, - [replaceFirstAndLastDotSymbols(key)]: Math.round( + [replaceDotSymbols(key)]: Math.round( executionsAggregations.byRuleTypeId.value.ruleTypesDuration[key] / parseInt(executionsAggregations.byRuleTypeId.value.ruleTypes[key], 10) ), @@ -458,3 +455,69 @@ export async function getExecutionsPerDayCount( ), }; } + +export async function getExecutionTimeoutsPerDayCount( + esClient: ElasticsearchClient, + eventLogIndex: string +) { + const { body: searchResult } = await esClient.search({ + index: eventLogIndex, + size: 0, + body: { + query: { + bool: { + filter: { + bool: { + must: [ + { + term: { 'event.action': 'execute-timeout' }, + }, + { + term: { 'event.provider': 'alerting' }, + }, + { + range: { + '@timestamp': { + gte: 'now-1d', + }, + }, + }, + ], + }, + }, + }, + }, + aggs: { + byRuleTypeId: ruleTypeExecutionsMetric, + }, + }, + }); + + const executionsAggregations = searchResult.aggregations as { + byRuleTypeId: { + value: { ruleTypes: Record; ruleTypesDuration: Record }; + }; + }; + + return { + countTotal: Object.keys(executionsAggregations.byRuleTypeId.value.ruleTypes).reduce( + (total: number, key: string) => + parseInt(executionsAggregations.byRuleTypeId.value.ruleTypes[key], 10) + total, + 0 + ), + countByType: replaceDotSymbolsInRuleTypeIds( + executionsAggregations.byRuleTypeId.value.ruleTypes + ), + }; +} + +function replaceDotSymbols(strToReplace: string) { + return strToReplace.replaceAll('.', '__'); +} + +function replaceDotSymbolsInRuleTypeIds(ruleTypeIdObj: Record) { + return Object.keys(ruleTypeIdObj).reduce( + (obj, key) => ({ ...obj, [replaceDotSymbols(key)]: ruleTypeIdObj[key] }), + {} + ); +} diff --git a/x-pack/plugins/alerting/server/usage/alerts_usage_collector.test.ts b/x-pack/plugins/alerting/server/usage/alerting_usage_collector.test.ts similarity index 86% rename from x-pack/plugins/alerting/server/usage/alerts_usage_collector.test.ts rename to x-pack/plugins/alerting/server/usage/alerting_usage_collector.test.ts index 9539f189c4fd64..e05086949b3498 100644 --- a/x-pack/plugins/alerting/server/usage/alerts_usage_collector.test.ts +++ b/x-pack/plugins/alerting/server/usage/alerting_usage_collector.test.ts @@ -6,13 +6,13 @@ */ import { UsageCollectionSetup } from 'src/plugins/usage_collection/server'; -import { registerAlertsUsageCollector } from './alerts_usage_collector'; +import { registerAlertingUsageCollector } from './alerting_usage_collector'; import { taskManagerMock } from '../../../task_manager/server/mocks'; const taskManagerStart = taskManagerMock.createStart(); beforeEach(() => jest.resetAllMocks()); -describe('registerAlertsUsageCollector', () => { +describe('registerAlertingUsageCollector', () => { let usageCollectionMock: jest.Mocked; beforeEach(() => { @@ -23,7 +23,7 @@ describe('registerAlertsUsageCollector', () => { }); it('should call registerCollector', () => { - registerAlertsUsageCollector( + registerAlertingUsageCollector( usageCollectionMock as UsageCollectionSetup, new Promise(() => taskManagerStart) ); @@ -31,7 +31,7 @@ describe('registerAlertsUsageCollector', () => { }); it('should call makeUsageCollector with type = alerts', () => { - registerAlertsUsageCollector( + registerAlertingUsageCollector( usageCollectionMock as UsageCollectionSetup, new Promise(() => taskManagerStart) ); diff --git a/x-pack/plugins/alerting/server/usage/alerts_usage_collector.ts b/x-pack/plugins/alerting/server/usage/alerting_usage_collector.ts similarity index 82% rename from x-pack/plugins/alerting/server/usage/alerts_usage_collector.ts rename to x-pack/plugins/alerting/server/usage/alerting_usage_collector.ts index 327073f26bacf3..2e5b012cf3b475 100644 --- a/x-pack/plugins/alerting/server/usage/alerts_usage_collector.ts +++ b/x-pack/plugins/alerting/server/usage/alerting_usage_collector.ts @@ -8,12 +8,12 @@ import { MakeSchemaFrom, UsageCollectionSetup } from 'src/plugins/usage_collection/server'; import { get } from 'lodash'; import { TaskManagerStartContract } from '../../../task_manager/server'; -import { AlertsUsage } from './types'; +import { AlertingUsage } from './types'; -const byTypeSchema: MakeSchemaFrom['count_by_type'] = { +const byTypeSchema: MakeSchemaFrom['count_by_type'] = { // TODO: Find out an automated way to populate the keys or reformat these into an array (and change the Remote Telemetry indexer accordingly) DYNAMIC_KEY: { type: 'long' }, - // Known alerts (searching the use of the alerts API `registerType`: + // Known rule types (searching the use of the rules API `registerType`: // Built-in '__index-threshold': { type: 'long' }, '__es-query': { type: 'long' }, @@ -39,6 +39,12 @@ const byTypeSchema: MakeSchemaFrom['count_by_type'] = { // Security Solution siem__signals: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention siem__notifications: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention + siem__eqlRule: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention + siem__indicatorRule: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention + siem__mlRule: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention + siem__queryRule: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention + siem__savedQueryRule: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention + siem__thresholdRule: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention // Uptime xpack__uptime__alerts__monitorStatus: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention xpack__uptime__alerts__tls: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention @@ -50,7 +56,7 @@ const byTypeSchema: MakeSchemaFrom['count_by_type'] = { xpack__ml__anomaly_detection_jobs_health: { type: 'long' }, // eslint-disable-line @typescript-eslint/naming-convention }; -const byReasonSchema: MakeSchemaFrom['count_rules_executions_failured_by_reason_per_day'] = +const byReasonSchema: MakeSchemaFrom['count_rules_executions_failured_by_reason_per_day'] = { // TODO: Find out an automated way to populate the keys or reformat these into an array (and change the Remote Telemetry indexer accordingly) DYNAMIC_KEY: { type: 'long' }, @@ -60,7 +66,7 @@ const byReasonSchema: MakeSchemaFrom['count_rules_executions_failur unknown: { type: 'long' }, }; -const byReasonSchemaByType: MakeSchemaFrom['count_rules_executions_failured_by_reason_by_type_per_day'] = +const byReasonSchemaByType: MakeSchemaFrom['count_rules_executions_failured_by_reason_by_type_per_day'] = { // TODO: Find out an automated way to populate the keys or reformat these into an array (and change the Remote Telemetry indexer accordingly) DYNAMIC_KEY: byTypeSchema, @@ -70,11 +76,11 @@ const byReasonSchemaByType: MakeSchemaFrom['count_rules_executions_ unknown: byTypeSchema, }; -export function createAlertsUsageCollector( +export function createAlertingUsageCollector( usageCollection: UsageCollectionSetup, taskManager: Promise ) { - return usageCollection.makeUsageCollector({ + return usageCollection.makeUsageCollector({ type: 'alerts', isReady: async () => { await taskManager; @@ -84,7 +90,7 @@ export function createAlertsUsageCollector( try { const doc = await getLatestTaskState(await taskManager); // get the accumulated state from the recurring task - const { runs, ...state } = get(doc, 'state') as AlertsUsage & { runs: number }; + const { runs, ...state } = get(doc, 'state') as AlertingUsage & { runs: number }; return { ...state, @@ -127,6 +133,8 @@ export function createAlertsUsageCollector( count_rules_executions_failured_per_day: 0, count_rules_executions_failured_by_reason_per_day: {}, count_rules_executions_failured_by_reason_by_type_per_day: {}, + count_rules_executions_timeouts_per_day: 0, + count_rules_executions_timeouts_by_type_per_day: {}, avg_execution_time_per_day: 0, avg_execution_time_by_type_per_day: {}, }; @@ -169,6 +177,8 @@ export function createAlertsUsageCollector( count_rules_executions_failured_per_day: { type: 'long' }, count_rules_executions_failured_by_reason_per_day: byReasonSchema, count_rules_executions_failured_by_reason_by_type_per_day: byReasonSchemaByType, + count_rules_executions_timeouts_per_day: { type: 'long' }, + count_rules_executions_timeouts_by_type_per_day: byTypeSchema, avg_execution_time_per_day: { type: 'long' }, avg_execution_time_by_type_per_day: byTypeSchema, }, @@ -194,10 +204,10 @@ async function getLatestTaskState(taskManager: TaskManagerStartContract) { return null; } -export function registerAlertsUsageCollector( +export function registerAlertingUsageCollector( usageCollection: UsageCollectionSetup, taskManager: Promise ) { - const collector = createAlertsUsageCollector(usageCollection, taskManager); + const collector = createAlertingUsageCollector(usageCollection, taskManager); usageCollection.registerCollector(collector); } diff --git a/x-pack/plugins/alerting/server/usage/index.ts b/x-pack/plugins/alerting/server/usage/index.ts index c1d5cc4455a48e..82e3afcba7cdb4 100644 --- a/x-pack/plugins/alerting/server/usage/index.ts +++ b/x-pack/plugins/alerting/server/usage/index.ts @@ -5,4 +5,4 @@ * 2.0. */ -export { registerAlertsUsageCollector } from './alerts_usage_collector'; +export { registerAlertingUsageCollector } from './alerting_usage_collector'; diff --git a/x-pack/plugins/alerting/server/usage/task.ts b/x-pack/plugins/alerting/server/usage/task.ts index 20cb9a45e1f300..04ed88edfc722d 100644 --- a/x-pack/plugins/alerting/server/usage/task.ts +++ b/x-pack/plugins/alerting/server/usage/task.ts @@ -17,7 +17,8 @@ import { getTotalCountAggregations, getTotalCountInUse, getExecutionsPerDayCount, -} from './alerts_telemetry'; + getExecutionTimeoutsPerDayCount, +} from './alerting_telemetry'; export const TELEMETRY_TASK_TYPE = 'alerting_telemetry'; @@ -92,29 +93,40 @@ export function telemetryTaskRunner( getTotalCountAggregations(esClient, kibanaIndex), getTotalCountInUse(esClient, kibanaIndex), getExecutionsPerDayCount(esClient, eventLogIndex), + getExecutionTimeoutsPerDayCount(esClient, eventLogIndex), ]) - .then(([totalCountAggregations, totalInUse, totalExecutions]) => { - return { - state: { - runs: (state.runs || 0) + 1, - ...totalCountAggregations, - count_active_by_type: totalInUse.countByType, - count_active_total: totalInUse.countTotal, - count_disabled_total: totalCountAggregations.count_total - totalInUse.countTotal, - count_rules_namespaces: totalInUse.countNamespaces, - count_rules_executions_per_day: totalExecutions.countTotal, - count_rules_executions_by_type_per_day: totalExecutions.countByType, - count_rules_executions_failured_per_day: totalExecutions.countTotalFailures, - count_rules_executions_failured_by_reason_per_day: - totalExecutions.countFailuresByReason, - count_rules_executions_failured_by_reason_by_type_per_day: - totalExecutions.countFailuresByReasonByType, - avg_execution_time_per_day: totalExecutions.avgExecutionTime, - avg_execution_time_by_type_per_day: totalExecutions.avgExecutionTimeByType, - }, - runAt: getNextMidnight(), - }; - }) + .then( + ([ + totalCountAggregations, + totalInUse, + dailyExecutionCounts, + dailyExecutionTimeoutCounts, + ]) => { + return { + state: { + runs: (state.runs || 0) + 1, + ...totalCountAggregations, + count_active_by_type: totalInUse.countByType, + count_active_total: totalInUse.countTotal, + count_disabled_total: totalCountAggregations.count_total - totalInUse.countTotal, + count_rules_namespaces: totalInUse.countNamespaces, + count_rules_executions_per_day: dailyExecutionCounts.countTotal, + count_rules_executions_by_type_per_day: dailyExecutionCounts.countByType, + count_rules_executions_failured_per_day: dailyExecutionCounts.countTotalFailures, + count_rules_executions_failured_by_reason_per_day: + dailyExecutionCounts.countFailuresByReason, + count_rules_executions_failured_by_reason_by_type_per_day: + dailyExecutionCounts.countFailuresByReasonByType, + count_rules_executions_timeouts_per_day: dailyExecutionTimeoutCounts.countTotal, + count_rules_executions_timeouts_by_type_per_day: + dailyExecutionTimeoutCounts.countByType, + avg_execution_time_per_day: dailyExecutionCounts.avgExecutionTime, + avg_execution_time_by_type_per_day: dailyExecutionCounts.avgExecutionTimeByType, + }, + runAt: getNextMidnight(), + }; + } + ) .catch((errMsg) => { logger.warn(`Error executing alerting telemetry task: ${errMsg}`); return { diff --git a/x-pack/plugins/alerting/server/usage/types.ts b/x-pack/plugins/alerting/server/usage/types.ts index 546663e3ea403a..b86176e23548e5 100644 --- a/x-pack/plugins/alerting/server/usage/types.ts +++ b/x-pack/plugins/alerting/server/usage/types.ts @@ -5,7 +5,7 @@ * 2.0. */ -export interface AlertsUsage { +export interface AlertingUsage { count_total: number; count_active_total: number; count_disabled_total: number; @@ -17,6 +17,8 @@ export interface AlertsUsage { count_rules_executions_failured_per_day: number; count_rules_executions_failured_by_reason_per_day: Record; count_rules_executions_failured_by_reason_by_type_per_day: Record>; + count_rules_executions_timeouts_per_day: number; + count_rules_executions_timeouts_by_type_per_day: Record; avg_execution_time_per_day: number; avg_execution_time_by_type_per_day: Record; throttle_time: { diff --git a/x-pack/plugins/apm/common/alert_types.ts b/x-pack/plugins/apm/common/alert_types.ts index 68ca22c41ec92b..04288fccf0a05b 100644 --- a/x-pack/plugins/apm/common/alert_types.ts +++ b/x-pack/plugins/apm/common/alert_types.ts @@ -7,9 +7,14 @@ import { i18n } from '@kbn/i18n'; import type { ValuesType } from 'utility-types'; -import type { AsDuration, AsPercent } from '../../observability/common'; +import type { + AsDuration, + AsPercent, + TimeUnitChar, +} from '../../observability/common'; import type { ActionGroup } from '../../alerting/common'; import { ANOMALY_SEVERITY, ANOMALY_THRESHOLD } from './ml_constants'; +import { formatDurationFromTimeUnitChar } from '../../observability/common'; export const APM_SERVER_FEATURE_ID = 'apm'; @@ -33,17 +38,25 @@ export function formatErrorCountReason({ threshold, measured, serviceName, + windowSize, + windowUnit, }: { threshold: number; measured: number; serviceName: string; + windowSize: number; + windowUnit: string; }) { return i18n.translate('xpack.apm.alertTypes.errorCount.reason', { - defaultMessage: `Error count is greater than {threshold} (current value is {measured}) for {serviceName}`, + defaultMessage: `Error count is {measured} in the last {interval} for {serviceName}. Alert when > {threshold}.`, values: { threshold, measured, serviceName, + interval: formatDurationFromTimeUnitChar( + windowSize, + windowUnit as TimeUnitChar + ), }, }); } @@ -53,18 +66,34 @@ export function formatTransactionDurationReason({ measured, serviceName, asDuration, + aggregationType, + windowSize, + windowUnit, }: { threshold: number; measured: number; serviceName: string; asDuration: AsDuration; + aggregationType: string; + windowSize: number; + windowUnit: string; }) { + let aggregationTypeFormatted = + aggregationType.charAt(0).toUpperCase() + aggregationType.slice(1); + if (aggregationTypeFormatted === 'Avg') + aggregationTypeFormatted = aggregationTypeFormatted + '.'; + return i18n.translate('xpack.apm.alertTypes.transactionDuration.reason', { - defaultMessage: `Latency is above {threshold} (current value is {measured}) for {serviceName}`, + defaultMessage: `{aggregationType} latency is {measured} in the last {interval} for {serviceName}. Alert when > {threshold}.`, values: { threshold: asDuration(threshold), measured: asDuration(measured), serviceName, + aggregationType: aggregationTypeFormatted, + interval: formatDurationFromTimeUnitChar( + windowSize, + windowUnit as TimeUnitChar + ), }, }); } @@ -74,18 +103,26 @@ export function formatTransactionErrorRateReason({ measured, serviceName, asPercent, + windowSize, + windowUnit, }: { threshold: number; measured: number; serviceName: string; asPercent: AsPercent; + windowSize: number; + windowUnit: string; }) { return i18n.translate('xpack.apm.alertTypes.transactionErrorRate.reason', { - defaultMessage: `Failed transactions rate is greater than {threshold} (current value is {measured}) for {serviceName}`, + defaultMessage: `Failed transactions is {measured} in the last {interval} for {serviceName}. Alert when > {threshold}.`, values: { threshold: asPercent(threshold, 100), measured: asPercent(measured, 100), serviceName, + interval: formatDurationFromTimeUnitChar( + windowSize, + windowUnit as TimeUnitChar + ), }, }); } @@ -94,19 +131,27 @@ export function formatTransactionDurationAnomalyReason({ serviceName, severityLevel, measured, + windowSize, + windowUnit, }: { serviceName: string; severityLevel: string; measured: number; + windowSize: number; + windowUnit: string; }) { return i18n.translate( 'xpack.apm.alertTypes.transactionDurationAnomaly.reason', { - defaultMessage: `{severityLevel} anomaly detected for {serviceName} (score was {measured})`, + defaultMessage: `{severityLevel} anomaly with a score of {measured} was detected in the last {interval} for {serviceName}.`, values: { serviceName, severityLevel, measured, + interval: formatDurationFromTimeUnitChar( + windowSize, + windowUnit as TimeUnitChar + ), }, } ); diff --git a/x-pack/plugins/apm/public/components/alerting/register_apm_alerts.ts b/x-pack/plugins/apm/public/components/alerting/register_apm_alerts.ts index db50a68aa0018f..3be124573728b1 100644 --- a/x-pack/plugins/apm/public/components/alerting/register_apm_alerts.ts +++ b/x-pack/plugins/apm/public/components/alerting/register_apm_alerts.ts @@ -8,20 +8,10 @@ import { i18n } from '@kbn/i18n'; import { lazy } from 'react'; import { stringify } from 'querystring'; -import { - ALERT_EVALUATION_THRESHOLD, - ALERT_EVALUATION_VALUE, - ALERT_SEVERITY, -} from '@kbn/rule-data-utils'; +import { ALERT_REASON } from '@kbn/rule-data-utils'; import type { ObservabilityRuleTypeRegistry } from '../../../../observability/public'; import { ENVIRONMENT_ALL } from '../../../common/environment_filter_values'; -import { - AlertType, - formatErrorCountReason, - formatTransactionDurationAnomalyReason, - formatTransactionDurationReason, - formatTransactionErrorRateReason, -} from '../../../common/alert_types'; +import { AlertType } from '../../../common/alert_types'; // copied from elasticsearch_fieldnames.ts to limit page load bundle size const SERVICE_ENVIRONMENT = 'service.environment'; @@ -49,11 +39,7 @@ export function registerApmAlerts( }), format: ({ fields }) => { return { - reason: formatErrorCountReason({ - threshold: fields[ALERT_EVALUATION_THRESHOLD]!, - measured: fields[ALERT_EVALUATION_VALUE]!, - serviceName: String(fields[SERVICE_NAME][0]), - }), + reason: fields[ALERT_REASON]!, link: format({ pathname: `/app/apm/services/${String( fields[SERVICE_NAME][0] @@ -98,12 +84,8 @@ export function registerApmAlerts( } ), format: ({ fields, formatters: { asDuration } }) => ({ - reason: formatTransactionDurationReason({ - threshold: fields[ALERT_EVALUATION_THRESHOLD]!, - measured: fields[ALERT_EVALUATION_VALUE]!, - serviceName: String(fields[SERVICE_NAME][0]), - asDuration, - }), + reason: fields[ALERT_REASON]!, + link: format({ pathname: `/app/apm/services/${fields[SERVICE_NAME][0]!}`, query: { @@ -149,12 +131,7 @@ export function registerApmAlerts( } ), format: ({ fields, formatters: { asPercent } }) => ({ - reason: formatTransactionErrorRateReason({ - threshold: fields[ALERT_EVALUATION_THRESHOLD]!, - measured: fields[ALERT_EVALUATION_VALUE]!, - serviceName: String(fields[SERVICE_NAME][0]), - asPercent, - }), + reason: fields[ALERT_REASON]!, link: format({ pathname: `/app/apm/services/${String(fields[SERVICE_NAME][0]!)}`, query: { @@ -199,11 +176,7 @@ export function registerApmAlerts( } ), format: ({ fields }) => ({ - reason: formatTransactionDurationAnomalyReason({ - serviceName: String(fields[SERVICE_NAME][0]), - severityLevel: String(fields[ALERT_SEVERITY]), - measured: Number(fields[ALERT_EVALUATION_VALUE]), - }), + reason: fields[ALERT_REASON]!, link: format({ pathname: `/app/apm/services/${String(fields[SERVICE_NAME][0])}`, query: { diff --git a/x-pack/plugins/apm/public/components/app/rum_dashboard/charts/page_load_dist_chart.tsx b/x-pack/plugins/apm/public/components/app/rum_dashboard/charts/page_load_dist_chart.tsx index 8b34ad8980774a..ff9fb97197db08 100644 --- a/x-pack/plugins/apm/public/components/app/rum_dashboard/charts/page_load_dist_chart.tsx +++ b/x-pack/plugins/apm/public/components/app/rum_dashboard/charts/page_load_dist_chart.tsx @@ -121,6 +121,8 @@ export function PageLoadDistChart({ fit={Fit.Linear} id={'PagesPercentage'} name={I18LABELS.overall} + xAccessor="x" + yAccessors={['y']} xScaleType={ScaleType.Linear} yScaleType={ScaleType.Linear} data={data?.pageLoadDistribution ?? []} diff --git a/x-pack/plugins/apm/public/components/app/rum_dashboard/charts/visitor_breakdown_chart.tsx b/x-pack/plugins/apm/public/components/app/rum_dashboard/charts/visitor_breakdown_chart.tsx index 89f49a9669b451..2cdeb7be85ce35 100644 --- a/x-pack/plugins/apm/public/components/app/rum_dashboard/charts/visitor_breakdown_chart.tsx +++ b/x-pack/plugins/apm/public/components/app/rum_dashboard/charts/visitor_breakdown_chart.tsx @@ -38,9 +38,15 @@ interface Props { } const theme: PartialTheme = { + chartMargins: { top: 0, bottom: 0, left: 0, right: 0 }, legend: { verticalWidth: 100, }, + partition: { + linkLabel: { maximumSection: Infinity, maxCount: 0 }, + outerSizeRatio: 1, // - 0.5 * Math.random(), + circlePadding: 4, + }, }; export function VisitorBreakdownChart({ loading, options }: Props) { @@ -64,6 +70,8 @@ export function VisitorBreakdownChart({ loading, options }: Props) { data={ options?.length ? options : [{ count: 1, name: I18LABELS.noData }] } + layout={PartitionLayout.sunburst} + clockwiseSectors={false} valueAccessor={(d: Datum) => d.count as number} valueGetter="percent" percentFormatter={(d: number) => @@ -78,14 +86,6 @@ export function VisitorBreakdownChart({ loading, options }: Props) { }, }, ]} - config={{ - partitionLayout: PartitionLayout.sunburst, - linkLabel: { maximumSection: Infinity, maxCount: 0 }, - margin: { top: 0, bottom: 0, left: 0, right: 0 }, - outerSizeRatio: 1, // - 0.5 * Math.random(), - circlePadding: 4, - clockwiseSectors: false, - }} /> diff --git a/x-pack/plugins/apm/public/components/app/rum_dashboard/page_load_distribution/breakdown_series.tsx b/x-pack/plugins/apm/public/components/app/rum_dashboard/page_load_distribution/breakdown_series.tsx index db5932a96fb12c..5e98f36cc0798e 100644 --- a/x-pack/plugins/apm/public/components/app/rum_dashboard/page_load_distribution/breakdown_series.tsx +++ b/x-pack/plugins/apm/public/components/app/rum_dashboard/page_load_distribution/breakdown_series.tsx @@ -54,6 +54,8 @@ export function BreakdownSeries({ id={`${field}-${value}-${name}`} key={`${field}-${value}-${name}`} name={name} + xAccessor="x" + yAccessors={['y']} xScaleType={ScaleType.Linear} yScaleType={ScaleType.Linear} curve={CurveType.CURVE_CATMULL_ROM} diff --git a/x-pack/plugins/apm/public/components/app/service_profiling/service_profiling_flamegraph.tsx b/x-pack/plugins/apm/public/components/app/service_profiling/service_profiling_flamegraph.tsx index 6f8c1d685ba2b7..e0c2483b70f88c 100644 --- a/x-pack/plugins/apm/public/components/app/service_profiling/service_profiling_flamegraph.tsx +++ b/x-pack/plugins/apm/public/components/app/service_profiling/service_profiling_flamegraph.tsx @@ -12,6 +12,7 @@ import { PrimitiveValue, Settings, TooltipInfo, + PartialTheme, } from '@elastic/charts'; import { EuiCheckbox, @@ -286,6 +287,18 @@ export function ServiceProfilingFlamegraph({ }, [points, highlightFilter, data]); const chartTheme = useChartTheme(); + const themeOverrides: PartialTheme = { + chartMargins: { top: 0, bottom: 0, left: 0, right: 0 }, + partition: { + fillLabel: { + fontFamily: theme.eui.euiCodeFontFamily, + clipText: true, + }, + fontFamily: theme.eui.euiCodeFontFamily, + minFontSize: 9, + maxFontSize: 9, + }, + }; const chartSize = { height: layers.length * 20, @@ -305,7 +318,7 @@ export function ServiceProfilingFlamegraph({ ( d.value as number} valueFormatter={() => ''} - config={{ - fillLabel: { - fontFamily: theme.eui.euiCodeFontFamily, - clipText: true, - }, - drilldown: true, - fontFamily: theme.eui.euiCodeFontFamily, - minFontSize: 9, - maxFontSize: 9, - maxRowCount: 1, - partitionLayout: PartitionLayout.icicle, - }} /> diff --git a/x-pack/plugins/apm/public/components/app/service_profiling/service_profiling_timeline.tsx b/x-pack/plugins/apm/public/components/app/service_profiling/service_profiling_timeline.tsx index d5dc2f5d56afc0..a625d87f05d9c1 100644 --- a/x-pack/plugins/apm/public/components/app/service_profiling/service_profiling_timeline.tsx +++ b/x-pack/plugins/apm/public/components/app/service_profiling/service_profiling_timeline.tsx @@ -98,6 +98,7 @@ export function ServiceProfilingTimeline({ xScaleType={ScaleType.Time} yScaleType={ScaleType.Linear} xAccessor="x" + yAccessors={['y']} stackAccessors={['x']} /> ))} diff --git a/x-pack/plugins/apm/public/components/shared/charts/breakdown_chart/index.tsx b/x-pack/plugins/apm/public/components/shared/charts/breakdown_chart/index.tsx index 78bfd8911c351c..a6989897641bd0 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/breakdown_chart/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/breakdown_chart/index.tsx @@ -171,7 +171,12 @@ export function BreakdownChart({ }) ) : ( // When timeseries is empty, loads an AreaSeries chart to show the default empty message. - + )} diff --git a/x-pack/plugins/apm/public/components/shared/charts/spark_plot/index.tsx b/x-pack/plugins/apm/public/components/shared/charts/spark_plot/index.tsx index 2f38ab9cdeb4ba..0843fafe0f92f8 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/spark_plot/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/spark_plot/index.tsx @@ -10,11 +10,11 @@ import { Chart, CurveType, LineSeries, + PartialTheme, ScaleType, Settings, } from '@elastic/charts'; import { EuiFlexGroup, EuiFlexItem, EuiIcon } from '@elastic/eui'; -import { merge } from 'lodash'; import React from 'react'; import { useChartTheme } from '../../../../../../observability/public'; import { Coordinate } from '../../../../../typings/timeseries'; @@ -60,7 +60,7 @@ export function SparkPlot({ const comparisonChartTheme = getComparisonChartTheme(theme); const hasComparisonSeries = !!comparisonSeries?.length; - const sparkplotChartTheme = merge({}, defaultChartTheme, { + const sparkplotChartTheme: PartialTheme = { chartMargins: { left: 0, right: 0, top: 0, bottom: 0 }, lineSeriesStyle: { point: { opacity: 0 }, @@ -69,7 +69,7 @@ export function SparkPlot({ point: { opacity: 0 }, }, ...(hasComparisonSeries ? comparisonChartTheme : {}), - }); + }; const colorValue = theme.eui[color]; @@ -95,7 +95,7 @@ export function SparkPlot({ {hasValidTimeseries(series) ? ( diff --git a/x-pack/plugins/apm/public/components/shared/charts/timeseries_chart.tsx b/x-pack/plugins/apm/public/components/shared/charts/timeseries_chart.tsx index 1cb8a4facfd69d..64c070c25f94b1 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/timeseries_chart.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/timeseries_chart.tsx @@ -126,13 +126,15 @@ export function TimeseriesChart({ onBrushEnd={(event) => onBrushEnd({ x: (event as XYBrushEvent).x, history }) } - theme={{ - ...chartTheme, - areaSeriesStyle: { - line: { visible: false }, + theme={[ + customTheme, + { + areaSeriesStyle: { + line: { visible: false }, + }, }, - ...customTheme, - }} + ...chartTheme, + ]} onPointerUpdate={setPointerEvent} externalPointerEvents={{ tooltip: { visible: true }, diff --git a/x-pack/plugins/apm/public/components/shared/charts/transaction_distribution_chart/index.tsx b/x-pack/plugins/apm/public/components/shared/charts/transaction_distribution_chart/index.tsx index b33f152a63016e..91d3c0a7278778 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/transaction_distribution_chart/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/transaction_distribution_chart/index.tsx @@ -156,28 +156,31 @@ export function TransactionDistributionChart({ { fleet.registerExtension({ package: 'apm', view: 'package-policy-edit', - useLatestPackageVersion: false, + useLatestPackageVersion: true, Component: getLazyAPMPolicyEditExtension(), }); diff --git a/x-pack/plugins/apm/server/routes/alerts/register_error_count_alert_type.ts b/x-pack/plugins/apm/server/routes/alerts/register_error_count_alert_type.ts index 9e0c58b70b6ead..b75f687d0dcaff 100644 --- a/x-pack/plugins/apm/server/routes/alerts/register_error_count_alert_type.ts +++ b/x-pack/plugins/apm/server/routes/alerts/register_error_count_alert_type.ts @@ -155,6 +155,8 @@ export function registerErrorCountAlertType({ serviceName, threshold: ruleParams.threshold, measured: errorCount, + windowSize: ruleParams.windowSize, + windowUnit: ruleParams.windowUnit, }), }, }) diff --git a/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_alert_type.ts b/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_alert_type.ts index eee0a3888e1b7a..0c5546f3549f5c 100644 --- a/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_alert_type.ts +++ b/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_alert_type.ts @@ -196,6 +196,9 @@ export function registerTransactionDurationAlertType({ serviceName: ruleParams.serviceName, threshold: thresholdMicroseconds, asDuration, + aggregationType: String(ruleParams.aggregationType), + windowSize: ruleParams.windowSize, + windowUnit: ruleParams.windowUnit, }), }, }) diff --git a/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_anomaly_alert_type.ts b/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_anomaly_alert_type.ts index 00261e2efffd59..d95432458d0683 100644 --- a/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_anomaly_alert_type.ts +++ b/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_anomaly_alert_type.ts @@ -233,6 +233,8 @@ export function registerTransactionDurationAnomalyAlertType({ measured: score, serviceName, severityLevel, + windowSize: params.windowSize, + windowUnit: params.windowUnit, }), }, }) diff --git a/x-pack/plugins/apm/server/routes/alerts/register_transaction_error_rate_alert_type.ts b/x-pack/plugins/apm/server/routes/alerts/register_transaction_error_rate_alert_type.ts index 2855ac60e571c6..c48baf0457335a 100644 --- a/x-pack/plugins/apm/server/routes/alerts/register_transaction_error_rate_alert_type.ts +++ b/x-pack/plugins/apm/server/routes/alerts/register_transaction_error_rate_alert_type.ts @@ -221,6 +221,8 @@ export function registerTransactionErrorRateAlertType({ measured: errorRate, asPercent, serviceName, + windowSize: ruleParams.windowSize, + windowUnit: ruleParams.windowUnit, }), }, }) diff --git a/x-pack/plugins/cases/public/common/mock/test_providers.tsx b/x-pack/plugins/cases/public/common/mock/test_providers.tsx index fb38b5833d82c1..314796bdaa0ed9 100644 --- a/x-pack/plugins/cases/public/common/mock/test_providers.tsx +++ b/x-pack/plugins/cases/public/common/mock/test_providers.tsx @@ -79,6 +79,7 @@ export const createAppMockRenderer = ({ ); + AppWrapper.displayName = 'AppWrapper'; const render: UiRender = (ui, options) => { return reactRender(ui, { wrapper: AppWrapper as React.ComponentType, diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.tsx b/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.tsx index 1edd0f89fa1a3a..c6e7615f944b0a 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.tsx +++ b/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.tsx @@ -24,164 +24,165 @@ import * as i18n from './translations'; import { ConnectorTypes, ResilientFieldsType } from '../../../../common/api'; import { ConnectorCard } from '../card'; -const ResilientFieldsComponent: React.FunctionComponent< - ConnectorFieldsProps -> = ({ isEdit = true, fields, connector, onChange }) => { - const init = useRef(true); - const { incidentTypes = null, severityCode = null } = fields ?? {}; - - const { http, notifications } = useKibana().services; +const ResilientFieldsComponent: React.FunctionComponent> = + // TODO: Fix this manually. Issue #123375 + // eslint-disable-next-line react/display-name + ({ isEdit = true, fields, connector, onChange }) => { + const init = useRef(true); + const { incidentTypes = null, severityCode = null } = fields ?? {}; + + const { http, notifications } = useKibana().services; + + const { isLoading: isLoadingIncidentTypes, incidentTypes: allIncidentTypes } = + useGetIncidentTypes({ + http, + toastNotifications: notifications.toasts, + connector, + }); - const { isLoading: isLoadingIncidentTypes, incidentTypes: allIncidentTypes } = - useGetIncidentTypes({ + const { isLoading: isLoadingSeverity, severity } = useGetSeverity({ http, toastNotifications: notifications.toasts, connector, }); - const { isLoading: isLoadingSeverity, severity } = useGetSeverity({ - http, - toastNotifications: notifications.toasts, - connector, - }); - - const severitySelectOptions: EuiSelectOption[] = useMemo( - () => - severity.map((s) => ({ - value: s.id.toString(), - text: s.name, - })), - [severity] - ); - - const incidentTypesComboBoxOptions: Array> = useMemo( - () => - allIncidentTypes - ? allIncidentTypes.map((type: { id: number; name: string }) => ({ - label: type.name, - value: type.id.toString(), - })) - : [], - [allIncidentTypes] - ); - const listItems = useMemo( - () => [ - ...(incidentTypes != null && incidentTypes.length > 0 - ? [ - { - title: i18n.INCIDENT_TYPES_LABEL, - description: allIncidentTypes - .filter((type) => incidentTypes.includes(type.id.toString())) - .map((type) => type.name) - .join(', '), - }, - ] - : []), - ...(severityCode != null && severityCode.length > 0 - ? [ - { - title: i18n.SEVERITY_LABEL, - description: - severity.find((severityObj) => severityObj.id.toString() === severityCode)?.name ?? - '', - }, - ] - : []), - ], - [incidentTypes, severityCode, allIncidentTypes, severity] - ); - - const onFieldChange = useCallback( - (key, value) => { - onChange({ - ...fields, - incidentTypes, - severityCode, - [key]: value, - }); - }, - [incidentTypes, severityCode, onChange, fields] - ); - - const selectedIncidentTypesComboBoxOptionsMemo = useMemo(() => { - const allIncidentTypesAsObject = allIncidentTypes.reduce( - (acc, type) => ({ ...acc, [type.id.toString()]: type.name }), - {} as Record + const severitySelectOptions: EuiSelectOption[] = useMemo( + () => + severity.map((s) => ({ + value: s.id.toString(), + text: s.name, + })), + [severity] + ); + + const incidentTypesComboBoxOptions: Array> = useMemo( + () => + allIncidentTypes + ? allIncidentTypes.map((type: { id: number; name: string }) => ({ + label: type.name, + value: type.id.toString(), + })) + : [], + [allIncidentTypes] + ); + const listItems = useMemo( + () => [ + ...(incidentTypes != null && incidentTypes.length > 0 + ? [ + { + title: i18n.INCIDENT_TYPES_LABEL, + description: allIncidentTypes + .filter((type) => incidentTypes.includes(type.id.toString())) + .map((type) => type.name) + .join(', '), + }, + ] + : []), + ...(severityCode != null && severityCode.length > 0 + ? [ + { + title: i18n.SEVERITY_LABEL, + description: + severity.find((severityObj) => severityObj.id.toString() === severityCode) + ?.name ?? '', + }, + ] + : []), + ], + [incidentTypes, severityCode, allIncidentTypes, severity] ); - return incidentTypes - ? incidentTypes - .map((type) => ({ - label: allIncidentTypesAsObject[type.toString()], - value: type.toString(), - })) - .filter((type) => type.label != null) - : []; - }, [allIncidentTypes, incidentTypes]); - - const onIncidentChange = useCallback( - (selectedOptions: Array<{ label: string; value?: string }>) => { - onFieldChange( - 'incidentTypes', - selectedOptions.map((selectedOption) => selectedOption.value ?? selectedOption.label) + + const onFieldChange = useCallback( + (key, value) => { + onChange({ + ...fields, + incidentTypes, + severityCode, + [key]: value, + }); + }, + [incidentTypes, severityCode, onChange, fields] + ); + + const selectedIncidentTypesComboBoxOptionsMemo = useMemo(() => { + const allIncidentTypesAsObject = allIncidentTypes.reduce( + (acc, type) => ({ ...acc, [type.id.toString()]: type.name }), + {} as Record ); - }, - [onFieldChange] - ); - - const onIncidentBlur = useCallback(() => { - if (!incidentTypes) { - onFieldChange('incidentTypes', []); - } - }, [incidentTypes, onFieldChange]); - - // Set field at initialization - useEffect(() => { - if (init.current) { - init.current = false; - onChange({ incidentTypes, severityCode }); - } - }, [incidentTypes, onChange, severityCode]); - - return isEdit ? ( - - - - - - - onFieldChange('severityCode', e.target.value)} - options={severitySelectOptions} - value={severityCode ?? undefined} - /> - - - - ) : ( - - ); -}; + return incidentTypes + ? incidentTypes + .map((type) => ({ + label: allIncidentTypesAsObject[type.toString()], + value: type.toString(), + })) + .filter((type) => type.label != null) + : []; + }, [allIncidentTypes, incidentTypes]); + + const onIncidentChange = useCallback( + (selectedOptions: Array<{ label: string; value?: string }>) => { + onFieldChange( + 'incidentTypes', + selectedOptions.map((selectedOption) => selectedOption.value ?? selectedOption.label) + ); + }, + [onFieldChange] + ); + + const onIncidentBlur = useCallback(() => { + if (!incidentTypes) { + onFieldChange('incidentTypes', []); + } + }, [incidentTypes, onFieldChange]); + + // Set field at initialization + useEffect(() => { + if (init.current) { + init.current = false; + onChange({ incidentTypes, severityCode }); + } + }, [incidentTypes, onChange, severityCode]); + + return isEdit ? ( + + + + + + + onFieldChange('severityCode', e.target.value)} + options={severitySelectOptions} + value={severityCode ?? undefined} + /> + + + + ) : ( + + ); + }; // eslint-disable-next-line import/no-default-export export { ResilientFieldsComponent as default }; diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx index 521b8609b4eac2..6fe3dbb5b85dc6 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx @@ -30,235 +30,244 @@ const defaultFields: Fields = { const ServiceNowITSMFieldsComponent: React.FunctionComponent< ConnectorFieldsProps -> = ({ isEdit = true, fields, connector, onChange }) => { - const init = useRef(true); - const { - severity = null, - urgency = null, - impact = null, - category = null, - subcategory = null, - } = fields ?? {}; - const { http, notifications } = useKibana().services; - const [choices, setChoices] = useState(defaultFields); - const showConnectorWarning = useMemo(() => connectorValidator(connector) != null, [connector]); +> = + // TODO: Fix this manually. Issue #123375 + // eslint-disable-next-line react/display-name + ({ isEdit = true, fields, connector, onChange }) => { + const init = useRef(true); + const { + severity = null, + urgency = null, + impact = null, + category = null, + subcategory = null, + } = fields ?? {}; + const { http, notifications } = useKibana().services; + const [choices, setChoices] = useState(defaultFields); + const showConnectorWarning = useMemo(() => connectorValidator(connector) != null, [connector]); - const categoryOptions = useMemo(() => choicesToEuiOptions(choices.category), [choices.category]); - const urgencyOptions = useMemo(() => choicesToEuiOptions(choices.urgency), [choices.urgency]); - const severityOptions = useMemo(() => choicesToEuiOptions(choices.severity), [choices.severity]); - const impactOptions = useMemo(() => choicesToEuiOptions(choices.impact), [choices.impact]); - - const subcategoryOptions = useMemo( - () => - choicesToEuiOptions( - choices.subcategory.filter((choice) => choice.dependent_value === category) - ), - [choices.subcategory, category] - ); + const categoryOptions = useMemo( + () => choicesToEuiOptions(choices.category), + [choices.category] + ); + const urgencyOptions = useMemo(() => choicesToEuiOptions(choices.urgency), [choices.urgency]); + const severityOptions = useMemo( + () => choicesToEuiOptions(choices.severity), + [choices.severity] + ); + const impactOptions = useMemo(() => choicesToEuiOptions(choices.impact), [choices.impact]); - const listItems = useMemo( - () => [ - ...(urgency != null && urgency.length > 0 - ? [ - { - title: i18n.URGENCY, - description: urgencyOptions.find((option) => `${option.value}` === urgency)?.text, - }, - ] - : []), - ...(severity != null && severity.length > 0 - ? [ - { - title: i18n.SEVERITY, - description: severityOptions.find((option) => `${option.value}` === severity)?.text, - }, - ] - : []), - ...(impact != null && impact.length > 0 - ? [ - { - title: i18n.IMPACT, - description: impactOptions.find((option) => `${option.value}` === impact)?.text, - }, - ] - : []), - ...(category != null && category.length > 0 - ? [ - { - title: i18n.CATEGORY, - description: categoryOptions.find((option) => `${option.value}` === category)?.text, - }, - ] - : []), - ...(subcategory != null && subcategory.length > 0 - ? [ - { - title: i18n.SUBCATEGORY, - description: subcategoryOptions.find((option) => `${option.value}` === subcategory) - ?.text, - }, - ] - : []), - ], - [ - category, - categoryOptions, - impact, - impactOptions, - severity, - severityOptions, - subcategory, - subcategoryOptions, - urgency, - urgencyOptions, - ] - ); + const subcategoryOptions = useMemo( + () => + choicesToEuiOptions( + choices.subcategory.filter((choice) => choice.dependent_value === category) + ), + [choices.subcategory, category] + ); - const onChoicesSuccess = (values: Choice[]) => { - setChoices( - values.reduce( - (acc, value) => ({ - ...acc, - [value.element]: [...(acc[value.element] != null ? acc[value.element] : []), value], - }), - defaultFields - ) + const listItems = useMemo( + () => [ + ...(urgency != null && urgency.length > 0 + ? [ + { + title: i18n.URGENCY, + description: urgencyOptions.find((option) => `${option.value}` === urgency)?.text, + }, + ] + : []), + ...(severity != null && severity.length > 0 + ? [ + { + title: i18n.SEVERITY, + description: severityOptions.find((option) => `${option.value}` === severity)?.text, + }, + ] + : []), + ...(impact != null && impact.length > 0 + ? [ + { + title: i18n.IMPACT, + description: impactOptions.find((option) => `${option.value}` === impact)?.text, + }, + ] + : []), + ...(category != null && category.length > 0 + ? [ + { + title: i18n.CATEGORY, + description: categoryOptions.find((option) => `${option.value}` === category)?.text, + }, + ] + : []), + ...(subcategory != null && subcategory.length > 0 + ? [ + { + title: i18n.SUBCATEGORY, + description: subcategoryOptions.find((option) => `${option.value}` === subcategory) + ?.text, + }, + ] + : []), + ], + [ + category, + categoryOptions, + impact, + impactOptions, + severity, + severityOptions, + subcategory, + subcategoryOptions, + urgency, + urgencyOptions, + ] ); - }; - const { isLoading: isLoadingChoices } = useGetChoices({ - http, - toastNotifications: notifications.toasts, - connector, - fields: useGetChoicesFields, - onSuccess: onChoicesSuccess, - }); + const onChoicesSuccess = (values: Choice[]) => { + setChoices( + values.reduce( + (acc, value) => ({ + ...acc, + [value.element]: [...(acc[value.element] != null ? acc[value.element] : []), value], + }), + defaultFields + ) + ); + }; - const onChangeCb = useCallback( - ( - key: keyof ServiceNowITSMFieldsType, - value: ServiceNowITSMFieldsType[keyof ServiceNowITSMFieldsType] - ) => { - onChange({ ...fields, [key]: value }); - }, - [fields, onChange] - ); + const { isLoading: isLoadingChoices } = useGetChoices({ + http, + toastNotifications: notifications.toasts, + connector, + fields: useGetChoicesFields, + onSuccess: onChoicesSuccess, + }); - // Set field at initialization - useEffect(() => { - if (init.current) { - init.current = false; - onChange({ urgency, severity, impact, category, subcategory }); - } - }, [category, impact, onChange, severity, subcategory, urgency]); + const onChangeCb = useCallback( + ( + key: keyof ServiceNowITSMFieldsType, + value: ServiceNowITSMFieldsType[keyof ServiceNowITSMFieldsType] + ) => { + onChange({ ...fields, [key]: value }); + }, + [fields, onChange] + ); - return ( - <> - {showConnectorWarning && ( - - - - - - )} - {isEdit ? ( -
- - - - onChangeCb('urgency', e.target.value)} - /> - - - - + // Set field at initialization + useEffect(() => { + if (init.current) { + init.current = false; + onChange({ urgency, severity, impact, category, subcategory }); + } + }, [category, impact, onChange, severity, subcategory, urgency]); + + return ( + <> + {showConnectorWarning && ( - - onChangeCb('severity', e.target.value)} - /> - - - - - onChangeCb('impact', e.target.value)} - /> - + + )} + {isEdit ? ( +
+ + + + onChangeCb('urgency', e.target.value)} + /> + + + + + + + + onChangeCb('severity', e.target.value)} + /> + + + + + onChangeCb('impact', e.target.value)} + /> + + + + + + + + onChange({ ...fields, category: e.target.value, subcategory: null }) + } + /> + + + + + onChangeCb('subcategory', e.target.value)} + /> + + + +
+ ) : ( - - - onChange({ ...fields, category: e.target.value, subcategory: null }) - } - /> - - - - - onChangeCb('subcategory', e.target.value)} - /> - + -
- ) : ( - - - - - - )} - - ); -}; + )} + + ); + }; // eslint-disable-next-line import/no-default-export export { ServiceNowITSMFieldsComponent as default }; diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx index 095393adb77cbf..342022704d9175 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx @@ -29,273 +29,281 @@ const defaultFields: Fields = { const ServiceNowSIRFieldsComponent: React.FunctionComponent< ConnectorFieldsProps -> = ({ isEdit = true, fields, connector, onChange }) => { - const init = useRef(true); - const { - category = null, - destIp = true, - malwareHash = true, - malwareUrl = true, - priority = null, - sourceIp = true, - subcategory = null, - } = fields ?? {}; +> = // TODO: Fix this manually. Issue #123375 + // eslint-disable-next-line react/display-name + ({ isEdit = true, fields, connector, onChange }) => { + const init = useRef(true); + const { + category = null, + destIp = true, + malwareHash = true, + malwareUrl = true, + priority = null, + sourceIp = true, + subcategory = null, + } = fields ?? {}; - const { http, notifications } = useKibana().services; - const [choices, setChoices] = useState(defaultFields); - const showConnectorWarning = useMemo(() => connectorValidator(connector) != null, [connector]); + const { http, notifications } = useKibana().services; + const [choices, setChoices] = useState(defaultFields); + const showConnectorWarning = useMemo(() => connectorValidator(connector) != null, [connector]); - const onChangeCb = useCallback( - ( - key: keyof ServiceNowSIRFieldsType, - value: ServiceNowSIRFieldsType[keyof ServiceNowSIRFieldsType] - ) => { - onChange({ ...fields, [key]: value }); - }, - [fields, onChange] - ); - - const onChoicesSuccess = (values: Choice[]) => { - setChoices( - values.reduce( - (acc, value) => ({ - ...acc, - [value.element]: [...(acc[value.element] != null ? acc[value.element] : []), value], - }), - defaultFields - ) + const onChangeCb = useCallback( + ( + key: keyof ServiceNowSIRFieldsType, + value: ServiceNowSIRFieldsType[keyof ServiceNowSIRFieldsType] + ) => { + onChange({ ...fields, [key]: value }); + }, + [fields, onChange] ); - }; - const { isLoading: isLoadingChoices } = useGetChoices({ - http, - toastNotifications: notifications.toasts, - connector, - fields: useGetChoicesFields, - onSuccess: onChoicesSuccess, - }); + const onChoicesSuccess = (values: Choice[]) => { + setChoices( + values.reduce( + (acc, value) => ({ + ...acc, + [value.element]: [...(acc[value.element] != null ? acc[value.element] : []), value], + }), + defaultFields + ) + ); + }; - const categoryOptions = useMemo(() => choicesToEuiOptions(choices.category), [choices.category]); - const priorityOptions = useMemo(() => choicesToEuiOptions(choices.priority), [choices.priority]); + const { isLoading: isLoadingChoices } = useGetChoices({ + http, + toastNotifications: notifications.toasts, + connector, + fields: useGetChoicesFields, + onSuccess: onChoicesSuccess, + }); - const subcategoryOptions = useMemo( - () => - choicesToEuiOptions( - choices.subcategory.filter((choice) => choice.dependent_value === category) - ), - [choices.subcategory, category] - ); + const categoryOptions = useMemo( + () => choicesToEuiOptions(choices.category), + [choices.category] + ); + const priorityOptions = useMemo( + () => choicesToEuiOptions(choices.priority), + [choices.priority] + ); - const listItems = useMemo( - () => [ - ...(destIp != null && destIp - ? [ - { - title: i18n.DEST_IP, - description: i18n.ALERT_FIELD_ENABLED_TEXT, - }, - ] - : []), - ...(sourceIp != null && sourceIp - ? [ - { - title: i18n.SOURCE_IP, - description: i18n.ALERT_FIELD_ENABLED_TEXT, - }, - ] - : []), - ...(malwareUrl != null && malwareUrl - ? [ - { - title: i18n.MALWARE_URL, - description: i18n.ALERT_FIELD_ENABLED_TEXT, - }, - ] - : []), - ...(malwareHash != null && malwareHash - ? [ - { - title: i18n.MALWARE_HASH, - description: i18n.ALERT_FIELD_ENABLED_TEXT, - }, - ] - : []), - ...(priority != null && priority.length > 0 - ? [ - { - title: i18n.PRIORITY, - description: priorityOptions.find((option) => `${option.value}` === priority)?.text, - }, - ] - : []), - ...(category != null && category.length > 0 - ? [ - { - title: i18n.CATEGORY, - description: categoryOptions.find((option) => `${option.value}` === category)?.text, - }, - ] - : []), - ...(subcategory != null && subcategory.length > 0 - ? [ - { - title: i18n.SUBCATEGORY, - description: subcategoryOptions.find((option) => `${option.value}` === subcategory) - ?.text, - }, - ] - : []), - ], - [ - category, - categoryOptions, - destIp, - malwareHash, - malwareUrl, - priority, - priorityOptions, - sourceIp, - subcategory, - subcategoryOptions, - ] - ); + const subcategoryOptions = useMemo( + () => + choicesToEuiOptions( + choices.subcategory.filter((choice) => choice.dependent_value === category) + ), + [choices.subcategory, category] + ); - // Set field at initialization - useEffect(() => { - if (init.current) { - init.current = false; - onChange({ category, destIp, malwareHash, malwareUrl, priority, sourceIp, subcategory }); - } - }, [category, destIp, malwareHash, malwareUrl, onChange, priority, sourceIp, subcategory]); + const listItems = useMemo( + () => [ + ...(destIp != null && destIp + ? [ + { + title: i18n.DEST_IP, + description: i18n.ALERT_FIELD_ENABLED_TEXT, + }, + ] + : []), + ...(sourceIp != null && sourceIp + ? [ + { + title: i18n.SOURCE_IP, + description: i18n.ALERT_FIELD_ENABLED_TEXT, + }, + ] + : []), + ...(malwareUrl != null && malwareUrl + ? [ + { + title: i18n.MALWARE_URL, + description: i18n.ALERT_FIELD_ENABLED_TEXT, + }, + ] + : []), + ...(malwareHash != null && malwareHash + ? [ + { + title: i18n.MALWARE_HASH, + description: i18n.ALERT_FIELD_ENABLED_TEXT, + }, + ] + : []), + ...(priority != null && priority.length > 0 + ? [ + { + title: i18n.PRIORITY, + description: priorityOptions.find((option) => `${option.value}` === priority)?.text, + }, + ] + : []), + ...(category != null && category.length > 0 + ? [ + { + title: i18n.CATEGORY, + description: categoryOptions.find((option) => `${option.value}` === category)?.text, + }, + ] + : []), + ...(subcategory != null && subcategory.length > 0 + ? [ + { + title: i18n.SUBCATEGORY, + description: subcategoryOptions.find((option) => `${option.value}` === subcategory) + ?.text, + }, + ] + : []), + ], + [ + category, + categoryOptions, + destIp, + malwareHash, + malwareUrl, + priority, + priorityOptions, + sourceIp, + subcategory, + subcategoryOptions, + ] + ); - return ( - <> - {showConnectorWarning && ( - - - - - - )} - {isEdit ? ( -
- - - - <> - - - onChangeCb('destIp', e.target.checked)} - /> - - - onChangeCb('sourceIp', e.target.checked)} - /> - - - - - onChangeCb('malwareUrl', e.target.checked)} - /> - - - onChangeCb('malwareHash', e.target.checked)} - /> - - - - - - + // Set field at initialization + useEffect(() => { + if (init.current) { + init.current = false; + onChange({ category, destIp, malwareHash, malwareUrl, priority, sourceIp, subcategory }); + } + }, [category, destIp, malwareHash, malwareUrl, onChange, priority, sourceIp, subcategory]); + + return ( + <> + {showConnectorWarning && ( - - onChangeCb('priority', e.target.value)} - /> - + + )} + {isEdit ? ( +
+ + + + <> + + + onChangeCb('destIp', e.target.checked)} + /> + + + onChangeCb('sourceIp', e.target.checked)} + /> + + + + + onChangeCb('malwareUrl', e.target.checked)} + /> + + + onChangeCb('malwareHash', e.target.checked)} + /> + + + + + + + + + + onChangeCb('priority', e.target.value)} + /> + + + + + + + + onChange({ ...fields, category: e.target.value, subcategory: null }) + } + /> + + + + + onChangeCb('subcategory', e.target.value)} + /> + + + +
+ ) : ( - - - onChange({ ...fields, category: e.target.value, subcategory: null }) - } - /> - - - - - onChangeCb('subcategory', e.target.value)} - /> - + -
- ) : ( - - - - - - )} - - ); -}; + )} + + ); + }; // eslint-disable-next-line import/no-default-export export { ServiceNowSIRFieldsComponent as default }; diff --git a/x-pack/plugins/cases/public/components/formatted_date/index.tsx b/x-pack/plugins/cases/public/components/formatted_date/index.tsx index ca9b71a5931873..8e00ddf80e0450 100644 --- a/x-pack/plugins/cases/public/components/formatted_date/index.tsx +++ b/x-pack/plugins/cases/public/components/formatted_date/index.tsx @@ -170,3 +170,4 @@ export const FormattedRelativePreferenceLabel = ({ <>{relativeLabel} ); }; +FormattedRelativePreferenceLabel.displayName = 'FormattedRelativePreferenceLabel'; diff --git a/x-pack/plugins/cases/public/components/links/index.tsx b/x-pack/plugins/cases/public/components/links/index.tsx index 015e61a59b21cb..d7c2c18eff9abe 100644 --- a/x-pack/plugins/cases/public/components/links/index.tsx +++ b/x-pack/plugins/cases/public/components/links/index.tsx @@ -25,10 +25,13 @@ export interface CasesNavigation Promise | void; } -export const LinkButton: React.FC< - PropsForButton | PropsForAnchor -> = ({ children, ...props }) => {children}; +export const LinkButton: React.FC | PropsForAnchor> = + // TODO: Fix this manually. Issue #123375 + // eslint-disable-next-line react/display-name + ({ children, ...props }) => {children}; +// TODO: Fix this manually. Issue #123375 +// eslint-disable-next-line react/display-name export const LinkAnchor: React.FC = ({ children, ...props }) => ( {children} ); @@ -40,6 +43,8 @@ export interface CaseDetailsLinkProps { title?: string; } +// TODO: Fix this manually. Issue #123375 +// eslint-disable-next-line react/display-name const CaseDetailsLinkComponent: React.FC = ({ children, detailName, @@ -77,6 +82,8 @@ export interface ConfigureCaseButtonProps { titleTooltip: string; } +// TODO: Fix this manually. Issue #123375 +// eslint-disable-next-line react/display-name const ConfigureCaseButtonComponent: React.FC = ({ isDisabled, label, diff --git a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/saved_objects_finder.tsx b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/saved_objects_finder.tsx index 76dc0e265dbdb6..e33704c4d690f7 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/saved_objects_finder.tsx +++ b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/saved_objects_finder.tsx @@ -102,6 +102,8 @@ export type SavedObjectFinderUiProps = { uiSettings: CoreStart['uiSettings']; } & SavedObjectFinderProps; +// TODO: Fix this manually. Issue #123375 +// eslint-disable-next-line react/display-name export class SavedObjectFinderUi extends React.Component< SavedObjectFinderUiProps, SavedObjectFinderState diff --git a/x-pack/plugins/cases/public/components/timeline_context/index.tsx b/x-pack/plugins/cases/public/components/timeline_context/index.tsx index 727e4b64628d1c..0335eaa6626256 100644 --- a/x-pack/plugins/cases/public/components/timeline_context/index.tsx +++ b/x-pack/plugins/cases/public/components/timeline_context/index.tsx @@ -54,12 +54,15 @@ export const CasesTimelineIntegrationContext = React.createContext = ({ children, timelineIntegration }) => { - const [activeTimelineIntegration] = useState(timelineIntegration ?? null); +}> = + // TODO: Fix this manually. Issue #123375 + // eslint-disable-next-line react/display-name + ({ children, timelineIntegration }) => { + const [activeTimelineIntegration] = useState(timelineIntegration ?? null); - return ( - - {children} - - ); -}; + return ( + + {children} + + ); + }; diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/actions.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/actions.tsx index 4dc189c14c74fa..e397e85d23ae7c 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/actions.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/actions.tsx @@ -29,6 +29,8 @@ export const createActionAttachmentUserActionBuilder = ({ comment, actionsNavigation, }: BuilderArgs): ReturnType => ({ + // TODO: Fix this manually. Issue #123375 + // eslint-disable-next-line react/display-name build: () => { return [ { diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/alert.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/alert.tsx index 91752261d1471d..f0533f62de234d 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/alert.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/alert.tsx @@ -39,6 +39,8 @@ export const createAlertAttachmentUserActionBuilder = ({ onRuleDetailsClick, onShowAlertDetails, }: BuilderArgs): ReturnType => ({ + // TODO: Fix this manually. Issue #123375 + // eslint-disable-next-line react/display-name build: () => { const alertId = getNonEmptyField(comment.alertId); const alertIndex = getNonEmptyField(comment.index); diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/user.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/user.tsx index e48246a3754674..c059be0f207970 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/user.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/user.tsx @@ -43,6 +43,8 @@ export const createUserAttachmentUserActionBuilder = ({ handleSaveComment, handleManageQuote, }: BuilderArgs): ReturnType => ({ + // TODO: Fix this manually. Issue #123375 + // eslint-disable-next-line react/display-name build: () => [ { username: ( diff --git a/x-pack/plugins/cases/public/components/user_actions/common.tsx b/x-pack/plugins/cases/public/components/user_actions/common.tsx index 407fface85cebc..2709c89bde3ede 100644 --- a/x-pack/plugins/cases/public/components/user_actions/common.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/common.tsx @@ -52,6 +52,8 @@ export const createCommonUpdateUserActionBuilder = ({ icon, handleOutlineComment, }: BuilderArgs): ReturnType => ({ + // TODO: Fix this manually. Issue #123375 + // eslint-disable-next-line react/display-name build: () => [ { username: ( diff --git a/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/components/metric_distribution_chart/metric_distribution_chart.tsx b/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/components/metric_distribution_chart/metric_distribution_chart.tsx index 627c206e87fb06..dad53496c1e903 100644 --- a/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/components/metric_distribution_chart/metric_distribution_chart.tsx +++ b/x-pack/plugins/data_visualizer/public/application/common/components/stats_table/components/metric_distribution_chart/metric_distribution_chart.tsx @@ -102,7 +102,9 @@ export const MetricDistributionChart: FC = ({ yScaleType={ScaleType.Linear} xAccessor="x" yAccessors={['y']} - data={chartData.length > 0 ? chartData : [{ x: 0, y: 0 }]} + data={ + chartData.length > 0 ? chartData : [{ x: 0, y: 0, dataMin: 0, dataMax: 0, percent: 0 }] + } curve={CurveType.CURVE_STEP_AFTER} />
diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/lock_light.svg b/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/lock_light.svg new file mode 100644 index 00000000000000..2a93dbdde2efe9 --- /dev/null +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/lock_light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/product_selector.test.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/product_selector.test.tsx index c713507083b08a..ff2ea86bb39110 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/product_selector.test.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/product_selector.test.tsx @@ -11,6 +11,8 @@ import React from 'react'; import { shallow } from 'enzyme'; +import { EuiEmptyPrompt } from '@elastic/eui'; + import { WORKPLACE_SEARCH_PLUGIN } from '../../../../../common/constants'; import { LicenseCallout } from '../license_callout'; @@ -35,12 +37,11 @@ describe('ProductSelector', () => { expect(wrapper.find(LicenseCallout)).toHaveLength(0); }); - it('renders the license and trial callouts', () => { + it('renders the trial callout', () => { setMockValues({ config: { host: 'localhost' } }); const wrapper = shallow(); expect(wrapper.find(TrialCallout)).toHaveLength(1); - expect(wrapper.find(LicenseCallout)).toHaveLength(1); }); it('passes correct URL when Workplace Search user is not an admin', () => { @@ -57,6 +58,15 @@ describe('ProductSelector', () => { setMockValues({ config: { host: 'localhost' } }); }); + it('renders the license callout when user has access to a product', () => { + setMockValues({ config: { host: 'localhost' } }); + const wrapper = shallow( + + ); + + expect(wrapper.find(LicenseCallout)).toHaveLength(1); + }); + it('does not render the App Search card if the user does not have access to AS', () => { const wrapper = shallow( { expect(wrapper.find(ProductCard).prop('product').ID).toEqual('appSearch'); }); - it('does not render any cards if the user does not have access', () => { + it('renders empty prompt and no cards or license callout if the user does not have access', () => { const wrapper = shallow(); + expect(wrapper.find(EuiEmptyPrompt)).toHaveLength(1); expect(wrapper.find(ProductCard)).toHaveLength(0); + expect(wrapper.find(LicenseCallout)).toHaveLength(0); }); }); }); diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/product_selector.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/product_selector.tsx index 690122efc2f207..a94c5d008b124f 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/product_selector.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/product_selector.tsx @@ -9,7 +9,17 @@ import React from 'react'; import { useValues } from 'kea'; -import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from '@elastic/eui'; +import { + EuiButton, + EuiEmptyPrompt, + EuiFlexGroup, + EuiFlexItem, + EuiImage, + EuiLink, + EuiSpacer, + EuiText, + EuiTitle, +} from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { @@ -18,6 +28,7 @@ import { NO_DATA_PAGE_TEMPLATE_PROPS, } from '../../../../../../../../src/plugins/kibana_react/public'; import { APP_SEARCH_PLUGIN, WORKPLACE_SEARCH_PLUGIN } from '../../../../../common/constants'; +import { docLinks } from '../../../shared/doc_links'; import { KibanaLogic } from '../../../shared/kibana'; import { SetEnterpriseSearchChrome as SetPageChrome } from '../../../shared/kibana_chrome'; import { SendEnterpriseSearchTelemetry as SendTelemetry } from '../../../shared/telemetry'; @@ -29,6 +40,8 @@ import { ProductCard } from '../product_card'; import { SetupGuideCta } from '../setup_guide'; import { TrialCallout } from '../trial_callout'; +import illustration from './lock_light.svg'; + interface ProductSelectorProps { access: { hasAppSearchAccess?: boolean; @@ -48,10 +61,89 @@ export const ProductSelector: React.FC = ({ const shouldShowAppSearchCard = !config.host || hasAppSearchAccess; const shouldShowWorkplaceSearchCard = !config.host || hasWorkplaceSearchAccess; + // If Enterprise Search has been set up and the user does not have access to either product, show a message saying they + // need to contact an administrator to get access to one of the products. + const shouldShowEnterpriseSearchCards = shouldShowAppSearchCard || shouldShowWorkplaceSearchCard; + const WORKPLACE_SEARCH_URL = isWorkplaceSearchAdmin ? WORKPLACE_SEARCH_PLUGIN.URL : WORKPLACE_SEARCH_PLUGIN.NON_ADMIN_URL; + const productCards = ( + <> + + {shouldShowAppSearchCard && ( + + + + )} + {shouldShowWorkplaceSearchCard && ( + + + + )} + + + + + {config.host ? : } + + ); + + const insufficientAccessMessage = ( + } + title={ +

+ {i18n.translate('xpack.enterpriseSearch.overview.insufficientPermissionsTitle', { + defaultMessage: 'Insufficient permissions', + })} +

+ } + layout="horizontal" + color="plain" + body={ + <> +

+ {i18n.translate('xpack.enterpriseSearch.overview.insufficientPermissionsBody', { + defaultMessage: + 'You don’t have access to view this page. If you feel this may be an error, please contact your administrator.', + })} +

+ + } + actions={ + + {i18n.translate('xpack.enterpriseSearch.overview.insufficientPermissionsButtonLabel', { + defaultMessage: 'Go to the Kibana dashboard', + })} + + } + footer={ + <> + + + {i18n.translate('xpack.enterpriseSearch.overview.insufficientPermissionsFooterBody', { + defaultMessage: 'Go to the Kibana dashboard', + })} + + {' '} + + {i18n.translate( + 'xpack.enterpriseSearch.overview.insufficientPermissionsFooterLinkLabel', + { + defaultMessage: 'Read documentation', + } + )} + + + } + /> + ); return ( @@ -84,26 +176,7 @@ export const ProductSelector: React.FC = ({ - - {shouldShowAppSearchCard && ( - - - - )} - {shouldShowWorkplaceSearchCard && ( - - - - )} - - - - - {config.host ? : } + {shouldShowEnterpriseSearchCards ? productCards : insufficientAccessMessage} ); }; diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/doc_links/doc_links.ts b/x-pack/plugins/enterprise_search/public/applications/shared/doc_links/doc_links.ts index 376941b018f6ae..841bf8e35731de 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/doc_links/doc_links.ts +++ b/x-pack/plugins/enterprise_search/public/applications/shared/doc_links/doc_links.ts @@ -33,6 +33,7 @@ class DocLinks { public enterpriseSearchConfig: string; public enterpriseSearchMailService: string; public enterpriseSearchUsersAccess: string; + public kibanaSecurity: string; public licenseManagement: string; public workplaceSearchApiKeys: string; public workplaceSearchBox: string; @@ -86,6 +87,7 @@ class DocLinks { this.enterpriseSearchConfig = ''; this.enterpriseSearchMailService = ''; this.enterpriseSearchUsersAccess = ''; + this.kibanaSecurity = ''; this.licenseManagement = ''; this.workplaceSearchApiKeys = ''; this.workplaceSearchBox = ''; @@ -140,6 +142,7 @@ class DocLinks { this.enterpriseSearchConfig = docLinks.links.enterpriseSearch.configuration; this.enterpriseSearchMailService = docLinks.links.enterpriseSearch.mailService; this.enterpriseSearchUsersAccess = docLinks.links.enterpriseSearch.usersAccess; + this.kibanaSecurity = docLinks.links.kibana.xpackSecurity; this.licenseManagement = docLinks.links.enterpriseSearch.licenseManagement; this.workplaceSearchApiKeys = docLinks.links.workplaceSearch.apiKeys; this.workplaceSearchBox = docLinks.links.workplaceSearch.box; diff --git a/x-pack/plugins/fleet/server/integration_tests/reset_preconfiguration.test.ts b/x-pack/plugins/fleet/server/integration_tests/reset_preconfiguration.test.ts index 7db9903f421e78..87203ad4ff0a02 100644 --- a/x-pack/plugins/fleet/server/integration_tests/reset_preconfiguration.test.ts +++ b/x-pack/plugins/fleet/server/integration_tests/reset_preconfiguration.test.ts @@ -7,7 +7,10 @@ import Path from 'path'; +import { adminTestUser } from '@kbn/test'; + import * as kbnTestServer from 'src/core/test_helpers/kbn_server'; +import type { HttpMethod } from 'src/core/test_helpers/kbn_server'; import type { AgentPolicySOAttributes } from '../types'; @@ -15,9 +18,16 @@ const logFilePath = Path.join(__dirname, 'logs.log'); type Root = ReturnType; +function getSupertestWithAdminUser(root: Root, method: HttpMethod, path: string) { + const testUserCredentials = Buffer.from(`${adminTestUser.username}:${adminTestUser.password}`); + return kbnTestServer + .getSupertest(root, method, path) + .set('Authorization', `Basic ${testUserCredentials.toString('base64')}`); +} + const waitForFleetSetup = async (root: Root) => { const isFleetSetupRunning = async () => { - const statusApi = kbnTestServer.getSupertest(root, 'get', '/api/status'); + const statusApi = getSupertestWithAdminUser(root, 'get', '/api/status'); const resp = await statusApi.send(); const fleetStatus = resp.body?.status?.plugins?.fleet; if (fleetStatus?.meta?.error) { @@ -181,12 +191,12 @@ describe('Fleet preconfiguration rest', () => { describe('Reset all policy', () => { it('Works and reset all preconfigured policies', async () => { - const resetAPI = kbnTestServer.getSupertest( + const resetAPI = getSupertestWithAdminUser( kbnServer.root, 'post', '/internal/fleet/reset_preconfigured_agent_policies' ); - await resetAPI.set('kbn-sxrf', 'xx').send(); + await resetAPI.set('kbn-sxrf', 'xx').expect(200).send(); const agentPolicies = await kbnServer.coreStart.savedObjects .createInternalRepository() @@ -208,8 +218,7 @@ describe('Fleet preconfiguration rest', () => { }); }); - // SKIP: https://github.com/elastic/kibana/issues/123528 - describe.skip('Reset one preconfigured policy', () => { + describe('Reset one preconfigured policy', () => { const POLICY_ID = 'test-12345'; it('Works and reset one preconfigured policies if the policy is already deleted (with a ghost package policy)', async () => { @@ -224,12 +233,12 @@ describe('Fleet preconfiguration rest', () => { const secondAgentPoliciesUpdatedAt = oldAgentPolicies.saved_objects[0].updated_at; - const resetAPI = kbnTestServer.getSupertest( + const resetAPI = getSupertestWithAdminUser( kbnServer.root, 'post', '/internal/fleet/reset_preconfigured_agent_policies/test-12345' ); - await resetAPI.set('kbn-sxrf', 'xx').send(); + await resetAPI.set('kbn-sxrf', 'xx').expect(200).send(); const agentPolicies = await kbnServer.coreStart.savedObjects .createInternalRepository() @@ -260,12 +269,12 @@ describe('Fleet preconfiguration rest', () => { package_policies: [], }); - const resetAPI = kbnTestServer.getSupertest( + const resetAPI = getSupertestWithAdminUser( kbnServer.root, 'post', '/internal/fleet/reset_preconfigured_agent_policies/test-12345' ); - await resetAPI.set('kbn-sxrf', 'xx').send(); + await resetAPI.set('kbn-sxrf', 'xx').expect(200).send(); const agentPolicies = await soClient.find({ type: 'ingest-agent-policies', diff --git a/x-pack/plugins/infra/common/alerting/metrics/types.ts b/x-pack/plugins/infra/common/alerting/metrics/types.ts index 19812a7d375171..0216f63b8f85de 100644 --- a/x-pack/plugins/infra/common/alerting/metrics/types.ts +++ b/x-pack/plugins/infra/common/alerting/metrics/types.ts @@ -4,14 +4,12 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import * as rt from 'io-ts'; import { Unit } from '@elastic/datemath'; +import * as rt from 'io-ts'; +import { SnapshotCustomMetricInput } from '../../http_api'; import { ANOMALY_THRESHOLD } from '../../infra_ml'; import { InventoryItemType, SnapshotMetricType } from '../../inventory_models/types'; -import { SnapshotCustomMetricInput } from '../../http_api'; -// TODO: Have threshold and inventory alerts import these types from this file instead of from their -// local directories export const METRIC_THRESHOLD_ALERT_TYPE_ID = 'metrics.alert.threshold'; export const METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID = 'metrics.alert.inventory.threshold'; export const METRIC_ANOMALY_ALERT_TYPE_ID = 'metrics.alert.anomaly'; @@ -37,6 +35,14 @@ export enum Aggregators { P99 = 'p99', } +export enum AlertStates { + OK, + ALERT, + WARNING, + NO_DATA, + ERROR, +} + const metricAnomalyNodeTypeRT = rt.union([rt.literal('hosts'), rt.literal('k8s')]); const metricAnomalyMetricRT = rt.union([ rt.literal('memory_usage'), @@ -80,3 +86,29 @@ export interface InventoryMetricThresholdParams { sourceId?: string; alertOnNoData?: boolean; } + +interface BaseMetricExpressionParams { + timeSize: number; + timeUnit: Unit; + sourceId?: string; + threshold: number[]; + comparator: Comparator; + warningComparator?: Comparator; + warningThreshold?: number[]; +} + +export interface NonCountMetricExpressionParams extends BaseMetricExpressionParams { + aggType: Exclude; + metric: string; +} + +export interface CountMetricExpressionParams extends BaseMetricExpressionParams { + aggType: Aggregators.COUNT; + metric: never; +} + +export type MetricExpressionParams = NonCountMetricExpressionParams | CountMetricExpressionParams; + +export const QUERY_INVALID: unique symbol = Symbol('QUERY_INVALID'); + +export type FilterQuery = string | typeof QUERY_INVALID; diff --git a/x-pack/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.test.tsx b/x-pack/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.test.tsx index 306a623eed984d..be8e474b601142 100644 --- a/x-pack/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.test.tsx +++ b/x-pack/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.test.tsx @@ -4,15 +4,11 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ +import { shallow } from 'enzyme'; import React from 'react'; -import { ThresholdAnnotations } from './threshold_annotations'; -import { - Comparator, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../../server/lib/alerting/metric_threshold/types'; -// import { Color } from 'x-pack/plugins/infra/common/color_palette'; +import { Comparator } from '../../../../common/alerting/metrics'; import { Color } from '../../../../common/color_palette'; -import { shallow } from 'enzyme'; +import { ThresholdAnnotations } from './threshold_annotations'; jest.mock('@elastic/charts', () => { const original = jest.requireActual('@elastic/charts'); diff --git a/x-pack/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.tsx b/x-pack/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.tsx index 397d355eaeb5a9..9400537bb9d7c7 100644 --- a/x-pack/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.tsx +++ b/x-pack/plugins/infra/public/alerting/common/criterion_preview_chart/threshold_annotations.tsx @@ -4,14 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React from 'react'; +import { AnnotationDomainType, LineAnnotation, RectAnnotation } from '@elastic/charts'; import { first, last } from 'lodash'; -import { RectAnnotation, AnnotationDomainType, LineAnnotation } from '@elastic/charts'; - -import { - Comparator, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../../server/lib/alerting/metric_threshold/types'; +import React from 'react'; +import { Comparator } from '../../../../common/alerting/metrics'; import { Color, colorTransformer } from '../../../../common/color_palette'; interface ThresholdAnnotationsProps { diff --git a/x-pack/plugins/infra/public/alerting/inventory/components/expression.test.tsx b/x-pack/plugins/infra/public/alerting/inventory/components/expression.test.tsx index ccb7a0e34d7364..c8cd2da45c5c32 100644 --- a/x-pack/plugins/infra/public/alerting/inventory/components/expression.test.tsx +++ b/x-pack/plugins/infra/public/alerting/inventory/components/expression.test.tsx @@ -5,17 +5,14 @@ * 2.0. */ -import { mountWithIntl, shallowWithIntl, nextTick } from '@kbn/test/jest'; -// We are using this inside a `jest.mock` call. Jest requires dynamic dependencies to be prefixed with `mock` -import { coreMock as mockCoreMock } from 'src/core/public/mocks'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { InventoryMetricConditions } from '../../../../server/lib/alerting/inventory_metric_threshold/types'; +import { mountWithIntl, nextTick, shallowWithIntl } from '@kbn/test/jest'; import React from 'react'; -import { Expressions, AlertContextMeta, ExpressionRow, defaultExpression } from './expression'; import { act } from 'react-dom/test-utils'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { Comparator } from '../../../../server/lib/alerting/metric_threshold/types'; +// We are using this inside a `jest.mock` call. Jest requires dynamic dependencies to be prefixed with `mock` +import { coreMock as mockCoreMock } from 'src/core/public/mocks'; +import { Comparator, InventoryMetricConditions } from '../../../../common/alerting/metrics'; import { SnapshotCustomMetricInput } from '../../../../common/http_api/snapshot_api'; +import { AlertContextMeta, defaultExpression, ExpressionRow, Expressions } from './expression'; jest.mock('../../../containers/metrics_source/use_source_via_http', () => ({ useSourceViaHttp: () => ({ diff --git a/x-pack/plugins/infra/public/alerting/inventory/components/expression.tsx b/x-pack/plugins/infra/public/alerting/inventory/components/expression.tsx index 5734347b8909d9..f7d52a1aa95f0f 100644 --- a/x-pack/plugins/infra/public/alerting/inventory/components/expression.tsx +++ b/x-pack/plugins/infra/public/alerting/inventory/components/expression.tsx @@ -6,71 +6,66 @@ */ import { Unit } from '@elastic/datemath'; -import React, { useCallback, useMemo, useEffect, useState, ChangeEvent } from 'react'; import { + EuiButtonEmpty, + EuiButtonIcon, + EuiCheckbox, + EuiFieldSearch, EuiFlexGroup, EuiFlexItem, - EuiButtonIcon, + EuiFormRow, + EuiHealth, + EuiIcon, EuiSpacer, EuiText, - EuiFormRow, - EuiButtonEmpty, - EuiFieldSearch, - EuiCheckbox, EuiToolTip, - EuiIcon, - EuiHealth, } from '@elastic/eui'; -import { FormattedMessage } from '@kbn/i18n-react'; import { i18n } from '@kbn/i18n'; +import { FormattedMessage } from '@kbn/i18n-react'; import { debounce, omit } from 'lodash'; -import { toMetricOpt } from '../../../../common/snapshot_metric_i18n'; -import { - Comparator, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../../server/lib/alerting/metric_threshold/types'; +import React, { ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react'; import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common'; import { - ThresholdExpression, ForLastExpression, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../../../triggers_actions_ui/public/common'; -import { IErrorObject, RuleTypeParamsExpressionProps, + ThresholdExpression, } from '../../../../../triggers_actions_ui/public'; -import { MetricsExplorerKueryBar } from '../../../pages/metrics/metrics_explorer/components/kuery_bar'; -import { useSourceViaHttp } from '../../../containers/metrics_source/use_source_via_http'; -import { sqsMetricTypes } from '../../../../common/inventory_models/aws_sqs/toolbar_items'; +import { + Comparator, + FilterQuery, + InventoryMetricConditions, + QUERY_INVALID, +} from '../../../../common/alerting/metrics'; +import { + SnapshotCustomMetricInput, + SnapshotCustomMetricInputRT, +} from '../../../../common/http_api/snapshot_api'; +import { findInventoryModel } from '../../../../common/inventory_models'; import { ec2MetricTypes } from '../../../../common/inventory_models/aws_ec2/toolbar_items'; -import { s3MetricTypes } from '../../../../common/inventory_models/aws_s3/toolbar_items'; import { rdsMetricTypes } from '../../../../common/inventory_models/aws_rds/toolbar_items'; -import { hostMetricTypes } from '../../../../common/inventory_models/host/toolbar_items'; +import { s3MetricTypes } from '../../../../common/inventory_models/aws_s3/toolbar_items'; +import { sqsMetricTypes } from '../../../../common/inventory_models/aws_sqs/toolbar_items'; import { containerMetricTypes } from '../../../../common/inventory_models/container/toolbar_items'; +import { hostMetricTypes } from '../../../../common/inventory_models/host/toolbar_items'; import { podMetricTypes } from '../../../../common/inventory_models/pod/toolbar_items'; -import { findInventoryModel } from '../../../../common/inventory_models'; import { InventoryItemType, SnapshotMetricType, SnapshotMetricTypeRT, } from '../../../../common/inventory_models/types'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { InventoryMetricConditions } from '../../../../server/lib/alerting/inventory_metric_threshold/types'; -import { MetricExpression } from './metric'; -import { NodeTypeExpression } from './node_type'; +import { toMetricOpt } from '../../../../common/snapshot_metric_i18n'; +import { DerivedIndexPattern } from '../../../containers/metrics_source'; +import { useSourceViaHttp } from '../../../containers/metrics_source/use_source_via_http'; +import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { InfraWaffleMapOptions } from '../../../lib/lib'; +import { MetricsExplorerKueryBar } from '../../../pages/metrics/metrics_explorer/components/kuery_bar'; import { convertKueryToElasticSearchQuery } from '../../../utils/kuery'; -import { - SnapshotCustomMetricInput, - SnapshotCustomMetricInputRT, -} from '../../../../common/http_api/snapshot_api'; - -import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; -import { DerivedIndexPattern } from '../../../containers/metrics_source'; - import { ExpressionChart } from './expression_chart'; +import { MetricExpression } from './metric'; +import { NodeTypeExpression } from './node_type'; + const FILTER_TYPING_DEBOUNCE_MS = 500; -export const QUERY_INVALID = Symbol('QUERY_INVALID'); export interface AlertContextMeta { options?: Partial; @@ -85,7 +80,7 @@ type Props = Omit< { criteria: Criteria; nodeType: InventoryItemType; - filterQuery?: string | symbol; + filterQuery?: FilterQuery; filterQueryText?: string; sourceId: string; alertOnNoData?: boolean; diff --git a/x-pack/plugins/infra/public/alerting/inventory/components/expression_chart.tsx b/x-pack/plugins/infra/public/alerting/inventory/components/expression_chart.tsx index a83aa2ec12676c..4902a2d309b202 100644 --- a/x-pack/plugins/infra/public/alerting/inventory/components/expression_chart.tsx +++ b/x-pack/plugins/infra/public/alerting/inventory/components/expression_chart.tsx @@ -4,35 +4,33 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React, { useMemo, useCallback } from 'react'; import { Axis, Chart, niceTimeFormatter, Position, Settings } from '@elastic/charts'; -import { first, last } from 'lodash'; -import moment from 'moment'; import { EuiText } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; +import { first, last } from 'lodash'; +import moment from 'moment'; +import React, { useCallback, useMemo } from 'react'; +import { InventoryMetricConditions } from '../../../../common/alerting/metrics'; import { Color } from '../../../../common/color_palette'; -import { MetricsExplorerRow, MetricsExplorerAggregation } from '../../../../common/http_api'; -import { MetricExplorerSeriesChart } from '../../../pages/metrics/metrics_explorer/components/series_chart'; -import { MetricsExplorerChartType } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; -import { calculateDomain } from '../../../pages/metrics/metrics_explorer/components/helpers/calculate_domain'; -import { getMetricId } from '../../../pages/metrics/metrics_explorer/components/helpers/get_metric_id'; +import { MetricsExplorerAggregation, MetricsExplorerRow } from '../../../../common/http_api'; +import { InventoryItemType, SnapshotMetricType } from '../../../../common/inventory_models/types'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { InventoryMetricConditions } from '../../../../server/lib/alerting/inventory_metric_threshold/types'; import { useSnapshot } from '../../../pages/metrics/inventory_view/hooks/use_snaphot'; -import { InventoryItemType, SnapshotMetricType } from '../../../../common/inventory_models/types'; +import { useWaffleOptionsContext } from '../../../pages/metrics/inventory_view/hooks/use_waffle_options'; import { createInventoryMetricFormatter } from '../../../pages/metrics/inventory_view/lib/create_inventory_metric_formatter'; - +import { calculateDomain } from '../../../pages/metrics/metrics_explorer/components/helpers/calculate_domain'; +import { getMetricId } from '../../../pages/metrics/metrics_explorer/components/helpers/get_metric_id'; +import { MetricExplorerSeriesChart } from '../../../pages/metrics/metrics_explorer/components/series_chart'; +import { MetricsExplorerChartType } from '../../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; import { ChartContainer, + getChartTheme, LoadingState, NoDataState, TIME_LABELS, tooltipProps, - getChartTheme, } from '../../common/criterion_preview_chart/criterion_preview_chart'; import { ThresholdAnnotations } from '../../common/criterion_preview_chart/threshold_annotations'; -import { useWaffleOptionsContext } from '../../../pages/metrics/inventory_view/hooks/use_waffle_options'; interface Props { expression: InventoryMetricConditions; diff --git a/x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx b/x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx index 9319272833c141..ba5316cbcfebd2 100644 --- a/x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx +++ b/x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx @@ -4,33 +4,33 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React, { useState, useCallback, useMemo } from 'react'; -import { i18n } from '@kbn/i18n'; -import { FormattedMessage } from '@kbn/i18n-react'; import { + EuiButtonGroup, + EuiButtonIcon, + EuiComboBox, EuiExpression, - EuiPopover, + EuiFieldText, EuiFlexGroup, EuiFlexItem, EuiFormRow, - EuiComboBox, - EuiButtonGroup, - EuiSpacer, + EuiPopover, + EuiPopoverTitle, EuiSelect, + EuiSpacer, EuiText, - EuiFieldText, } from '@elastic/eui'; -import { EuiPopoverTitle, EuiButtonIcon } from '@elastic/eui'; +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 '../../../../../triggers_actions_ui/public'; import { getCustomMetricLabel } from '../../../../common/formatters/get_custom_metric_label'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { IErrorObject } from '../../../../../triggers_actions_ui/public/types'; import { + SnapshotCustomAggregation, + SnapshotCustomAggregationRT, SnapshotCustomMetricInput, SnapshotCustomMetricInputRT, - SnapshotCustomAggregation, SNAPSHOT_CUSTOM_AGGREGATIONS, - SnapshotCustomAggregationRT, } from '../../../../common/http_api/snapshot_api'; import { DerivedIndexPattern } from '../../../containers/metrics_source'; diff --git a/x-pack/plugins/infra/public/alerting/inventory/components/validation.tsx b/x-pack/plugins/infra/public/alerting/inventory/components/validation.tsx index 561bb39c6dce72..e093ea789cf795 100644 --- a/x-pack/plugins/infra/public/alerting/inventory/components/validation.tsx +++ b/x-pack/plugins/infra/public/alerting/inventory/components/validation.tsx @@ -6,21 +6,20 @@ */ import { i18n } from '@kbn/i18n'; +import type { ValidationResult } from '../../../../../triggers_actions_ui/public'; import { - InventoryMetricConditions, Comparator, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../../server/lib/alerting/inventory_metric_threshold/types'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { ValidationResult } from '../../../../../triggers_actions_ui/public/types'; -import { QUERY_INVALID } from './expression'; + FilterQuery, + InventoryMetricConditions, + QUERY_INVALID, +} from '../../../../common/alerting/metrics'; export function validateMetricThreshold({ criteria, filterQuery, }: { criteria: InventoryMetricConditions[]; - filterQuery?: string | symbol; + filterQuery?: FilterQuery; }): ValidationResult { const validationResult = { errors: {} }; const errors: { diff --git a/x-pack/plugins/infra/public/alerting/inventory/index.ts b/x-pack/plugins/infra/public/alerting/inventory/index.ts index aa44369f8eb2c9..ca9f383aa28b0f 100644 --- a/x-pack/plugins/infra/public/alerting/inventory/index.ts +++ b/x-pack/plugins/infra/public/alerting/inventory/index.ts @@ -7,15 +7,12 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; +import { AlertTypeParams as RuleTypeParams } from '../../../../alerting/common'; +import { ObservabilityRuleTypeModel } from '../../../../observability/public'; import { InventoryMetricConditions, METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../server/lib/alerting/inventory_metric_threshold/types'; - -import { ObservabilityRuleTypeModel } from '../../../../observability/public'; - -import { AlertTypeParams as RuleTypeParams } from '../../../../alerting/common'; +} from '../../../common/alerting/metrics'; import { validateMetricThreshold } from './components/validation'; import { formatReason } from './rule_data_formatters'; diff --git a/x-pack/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx b/x-pack/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx index fdc60daceb7156..6b3023123cd8c1 100644 --- a/x-pack/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx +++ b/x-pack/plugins/infra/public/alerting/log_threshold/components/expression_editor/threshold.tsx @@ -5,21 +5,20 @@ * 2.0. */ -import React, { useState } from 'react'; -import { i18n } from '@kbn/i18n'; -import { isNumber, isFinite } from 'lodash'; import { - EuiPopoverTitle, - EuiFlexItem, + EuiExpression, + EuiFieldNumber, EuiFlexGroup, + EuiFlexItem, + EuiFormRow, EuiPopover, + EuiPopoverTitle, EuiSelect, - EuiFieldNumber, - EuiExpression, - EuiFormRow, } from '@elastic/eui'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { IErrorObject } from '../../../../../../triggers_actions_ui/public/types'; +import { i18n } from '@kbn/i18n'; +import { isFinite, isNumber } from 'lodash'; +import React, { useState } from 'react'; +import { IErrorObject } from '../../../../../../triggers_actions_ui/public'; import { Comparator, ComparatorToi18nMap, diff --git a/x-pack/plugins/infra/public/alerting/metric_anomaly/components/expression.tsx b/x-pack/plugins/infra/public/alerting/metric_anomaly/components/expression.tsx index 5a0060f229795f..51629b656a7e73 100644 --- a/x-pack/plugins/infra/public/alerting/metric_anomaly/components/expression.tsx +++ b/x-pack/plugins/infra/public/alerting/metric_anomaly/components/expression.tsx @@ -5,34 +5,29 @@ * 2.0. */ -import React, { useCallback, useState, useMemo, useEffect } from 'react'; -import { EuiFlexGroup, EuiSpacer, EuiText, EuiLoadingContent } from '@elastic/eui'; -import { FormattedMessage } from '@kbn/i18n-react'; +import { EuiFlexGroup, EuiLoadingContent, EuiSpacer, EuiText } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { useInfraMLCapabilities } from '../../../containers/ml/infra_ml_capabilities'; -import { SubscriptionSplashPrompt } from '../../../components/subscription_splash_content'; -import { MetricAnomalyParams } from '../../../../common/alerting/metrics'; +import { FormattedMessage } from '@kbn/i18n-react'; +import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { euiStyled, EuiThemeProvider } from '../../../../../../../src/plugins/kibana_react/common'; -import { - WhenExpression, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../../../triggers_actions_ui/public/common'; import { RuleTypeParams, RuleTypeParamsExpressionProps, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../../../triggers_actions_ui/public/types'; -import { useSourceViaHttp } from '../../../containers/metrics_source/use_source_via_http'; + WhenExpression, +} from '../../../../../triggers_actions_ui/public'; +import { MetricAnomalyParams } from '../../../../common/alerting/metrics'; +import { ANOMALY_THRESHOLD } from '../../../../common/infra_ml'; import { findInventoryModel } from '../../../../common/inventory_models'; import { InventoryItemType, SnapshotMetricType } from '../../../../common/inventory_models/types'; -import { NodeTypeExpression } from './node_type'; -import { SeverityThresholdExpression } from './severity_threshold'; -import { InfraWaffleMapOptions } from '../../../lib/lib'; -import { ANOMALY_THRESHOLD } from '../../../../common/infra_ml'; - -import { InfluencerFilter } from './influencer_filter'; +import { SubscriptionSplashPrompt } from '../../../components/subscription_splash_content'; +import { useSourceViaHttp } from '../../../containers/metrics_source/use_source_via_http'; +import { useInfraMLCapabilities } from '../../../containers/ml/infra_ml_capabilities'; import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; import { useActiveKibanaSpace } from '../../../hooks/use_kibana_space'; +import { InfraWaffleMapOptions } from '../../../lib/lib'; +import { InfluencerFilter } from './influencer_filter'; +import { NodeTypeExpression } from './node_type'; +import { SeverityThresholdExpression } from './severity_threshold'; export interface AlertContextMeta { metric?: InfraWaffleMapOptions['metric']; diff --git a/x-pack/plugins/infra/public/alerting/metric_anomaly/components/validation.tsx b/x-pack/plugins/infra/public/alerting/metric_anomaly/components/validation.tsx index 8e254fb2b67a8b..a4eda632b2fdd8 100644 --- a/x-pack/plugins/infra/public/alerting/metric_anomaly/components/validation.tsx +++ b/x-pack/plugins/infra/public/alerting/metric_anomaly/components/validation.tsx @@ -6,8 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { ValidationResult } from '../../../../../triggers_actions_ui/public/types'; +import type { ValidationResult } from '../../../../../triggers_actions_ui/public'; export function validateMetricAnomaly({ hasInfraMLCapabilities, diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.test.tsx b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.test.tsx index f5df605316e245..94192f9f911c54 100644 --- a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.test.tsx +++ b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.test.tsx @@ -6,14 +6,13 @@ */ import { mountWithIntl, nextTick } from '@kbn/test/jest'; +import React from 'react'; +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 'src/core/public/mocks'; +import { Comparator } from '../../../../common/alerting/metrics'; import { MetricsExplorerMetric } from '../../../../common/http_api/metrics_explorer'; -import React from 'react'; import { Expressions } from './expression'; -import { act } from 'react-dom/test-utils'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { Comparator } from '../../../../server/lib/alerting/metric_threshold/types'; jest.mock('../../../containers/metrics_source/use_source_via_http', () => ({ useSourceViaHttp: () => ({ diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.tsx b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.tsx index f553d4b9dadf70..e0039c4590069b 100644 --- a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.tsx +++ b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.tsx @@ -6,43 +6,41 @@ */ import { Unit } from '@elastic/datemath'; -import React, { ChangeEvent, useCallback, useMemo, useEffect, useState } from 'react'; import { - EuiSpacer, - EuiText, - EuiFormRow, + EuiAccordion, EuiButtonEmpty, EuiCheckbox, - EuiToolTip, - EuiIcon, EuiFieldSearch, - EuiAccordion, - EuiPanel, + EuiFormRow, + EuiIcon, EuiLink, + EuiPanel, + EuiSpacer, + EuiText, + EuiToolTip, } from '@elastic/eui'; -import { FormattedMessage } from '@kbn/i18n-react'; import { i18n } from '@kbn/i18n'; +import { FormattedMessage } from '@kbn/i18n-react'; import { debounce } from 'lodash'; -import { Comparator, Aggregators } from '../../../../common/alerting/metrics'; -import { ForLastExpression } from '../../../../../triggers_actions_ui/public'; +import React, { ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react'; import { + ForLastExpression, IErrorObject, RuleTypeParams, RuleTypeParamsExpressionProps, } from '../../../../../triggers_actions_ui/public'; +import { Aggregators, Comparator, QUERY_INVALID } from '../../../../common/alerting/metrics'; +import { useSourceViaHttp } from '../../../containers/metrics_source/use_source_via_http'; +import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; +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 { MetricsExplorerGroupBy } from '../../../pages/metrics/metrics_explorer/components/group_by'; -import { useSourceViaHttp } from '../../../containers/metrics_source/use_source_via_http'; import { convertKueryToElasticSearchQuery } from '../../../utils/kuery'; - -import { ExpressionRow } from './expression_row'; -import { MetricExpression, AlertParams, AlertContextMeta } from '../types'; +import { AlertContextMeta, AlertParams, MetricExpression } from '../types'; import { ExpressionChart } from './expression_chart'; -import { useKibanaContextForPlugin } from '../../../hooks/use_kibana'; +import { ExpressionRow } from './expression_row'; const FILTER_TYPING_DEBOUNCE_MS = 500; -export const QUERY_INVALID = Symbol('QUERY_INVALID'); type Props = Omit< RuleTypeParamsExpressionProps, diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.test.tsx b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.test.tsx index c2c1fa719bb95b..f7e3201bbf2c92 100644 --- a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.test.tsx +++ b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.test.tsx @@ -5,17 +5,16 @@ * 2.0. */ +import { DataViewBase } from '@kbn/es-query'; import { mountWithIntl, nextTick } from '@kbn/test/jest'; +import React from 'react'; +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 'src/core/public/mocks'; -import { MetricExpression } from '../types'; -import { DataViewBase } from '@kbn/es-query'; +import { Aggregators, Comparator } from '../../../../common/alerting/metrics'; import { MetricsSourceConfiguration } from '../../../../common/metrics_sources'; -import React from 'react'; +import { MetricExpression } from '../types'; import { ExpressionChart } from './expression_chart'; -import { act } from 'react-dom/test-utils'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { Aggregators, Comparator } from '../../../../server/lib/alerting/metric_threshold/types'; const mockStartServices = mockCoreMock.createStart(); jest.mock('../../../hooks/use_kibana', () => ({ diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.test.tsx b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.test.tsx index b4321dbfda3209..1d8c6f63398785 100644 --- a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.test.tsx +++ b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.test.tsx @@ -6,12 +6,11 @@ */ import { mountWithIntl, nextTick } from '@kbn/test/jest'; -import { MetricExpression } from '../types'; import React from 'react'; -import { ExpressionRow } from './expression_row'; import { act } from 'react-dom/test-utils'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { Comparator } from '../../../../server/lib/alerting/metric_threshold/types'; +import { Comparator } from '../../../../common/alerting/metrics'; +import { MetricExpression } from '../types'; +import { ExpressionRow } from './expression_row'; jest.mock('../../../containers/metrics_source/use_source_via_http', () => ({ useSourceViaHttp: () => ({ diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx index cc5a58aee13037..6f1d1ed6e12c01 100644 --- a/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx +++ b/x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx @@ -4,35 +4,32 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import React, { useCallback, useState, useMemo } from 'react'; -import { i18n } from '@kbn/i18n'; -import { FormattedMessage } from '@kbn/i18n-react'; import { + EuiButtonEmpty, + EuiButtonIcon, EuiFlexGroup, EuiFlexItem, - EuiButtonIcon, + EuiHealth, + EuiLink, EuiSpacer, EuiText, - EuiLink, - EuiHealth, - EuiButtonEmpty, } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; +import { FormattedMessage } from '@kbn/i18n-react'; import { omit } from 'lodash'; -import { pctToDecimal, decimalToPct } from '../../../../common/utils/corrected_percent_convert'; +import React, { useCallback, useMemo, useState } from 'react'; +import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common'; import { - WhenExpression, + builtInComparators, + IErrorObject, OfExpression, ThresholdExpression, + WhenExpression, } from '../../../../../triggers_actions_ui/public'; -import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common'; -import { IErrorObject } from '../../../../../triggers_actions_ui/public'; -import { MetricExpression, AGGREGATION_TYPES } from '../types'; -import { - Comparator, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../../server/lib/alerting/metric_threshold/types'; -import { builtInComparators } from '../../../../../triggers_actions_ui/public'; +import { Comparator } from '../../../../common/alerting/metrics'; +import { decimalToPct, pctToDecimal } from '../../../../common/utils/corrected_percent_convert'; import { DerivedIndexPattern } from '../../../containers/metrics_source'; +import { AGGREGATION_TYPES, MetricExpression } from '../types'; const customComparators = { ...builtInComparators, diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/components/validation.tsx b/x-pack/plugins/infra/public/alerting/metric_threshold/components/validation.tsx index 8df313aa1627a4..8634c3686087ff 100644 --- a/x-pack/plugins/infra/public/alerting/metric_threshold/components/validation.tsx +++ b/x-pack/plugins/infra/public/alerting/metric_threshold/components/validation.tsx @@ -6,21 +6,20 @@ */ import { i18n } from '@kbn/i18n'; +import { ValidationResult } from '../../../../../triggers_actions_ui/public'; import { - MetricExpressionParams, Comparator, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../../server/lib/alerting/metric_threshold/types'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { ValidationResult } from '../../../../../triggers_actions_ui/public/types'; -import { QUERY_INVALID } from './expression'; + FilterQuery, + MetricExpressionParams, + QUERY_INVALID, +} from '../../../../common/alerting/metrics'; export function validateMetricThreshold({ criteria, filterQuery, }: { criteria: MetricExpressionParams[]; - filterQuery?: string | symbol; + filterQuery?: FilterQuery; }): ValidationResult { const validationResult = { errors: {} }; const errors: { diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/index.ts b/x-pack/plugins/infra/public/alerting/metric_threshold/index.ts index cb938597ab432b..e67ece78365951 100644 --- a/x-pack/plugins/infra/public/alerting/metric_threshold/index.ts +++ b/x-pack/plugins/infra/public/alerting/metric_threshold/index.ts @@ -7,15 +7,14 @@ import { i18n } from '@kbn/i18n'; import React from 'react'; -import { ObservabilityRuleTypeModel } from '../../../../observability/public'; -import { validateMetricThreshold } from './components/validation'; -import { formatReason } from './rule_data_formatters'; import { AlertTypeParams as RuleTypeParams } from '../../../../alerting/common'; +import { ObservabilityRuleTypeModel } from '../../../../observability/public'; import { MetricExpressionParams, METRIC_THRESHOLD_ALERT_TYPE_ID, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../server/lib/alerting/metric_threshold/types'; +} from '../../../common/alerting/metrics'; +import { validateMetricThreshold } from './components/validation'; +import { formatReason } from './rule_data_formatters'; interface MetricThresholdRuleTypeParams extends RuleTypeParams { criteria: MetricExpressionParams[]; diff --git a/x-pack/plugins/infra/public/alerting/metric_threshold/types.ts b/x-pack/plugins/infra/public/alerting/metric_threshold/types.ts index 0d1c85087f33d9..a88dd1d4548b8d 100644 --- a/x-pack/plugins/infra/public/alerting/metric_threshold/types.ts +++ b/x-pack/plugins/infra/public/alerting/metric_threshold/types.ts @@ -5,12 +5,9 @@ * 2.0. */ -import { - MetricExpressionParams, - // eslint-disable-next-line @kbn/eslint/no-restricted-paths -} from '../../../server/lib/alerting/metric_threshold/types'; -import { MetricsExplorerOptions } from '../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; +import { FilterQuery, MetricExpressionParams } from '../../../common/alerting/metrics'; import { MetricsExplorerSeries } from '../../../common/http_api/metrics_explorer'; +import { MetricsExplorerOptions } from '../../pages/metrics/metrics_explorer/hooks/use_metrics_explorer_options'; export interface AlertContextMeta { currentOptions?: Partial; @@ -57,7 +54,7 @@ export interface ExpressionChartData { export interface AlertParams { criteria: MetricExpression[]; groupBy?: string | string[]; - filterQuery?: string | symbol; + filterQuery?: FilterQuery; sourceId: string; filterQueryText?: string; alertOnNoData?: boolean; diff --git a/x-pack/plugins/infra/public/plugin.ts b/x-pack/plugins/infra/public/plugin.ts index bc3aff9f016372..1eb016f5829392 100644 --- a/x-pack/plugins/infra/public/plugin.ts +++ b/x-pack/plugins/infra/public/plugin.ts @@ -10,6 +10,9 @@ import { AppMountParameters, PluginInitializerContext } from 'kibana/public'; import { from } from 'rxjs'; import { map } from 'rxjs/operators'; import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/public'; +import { createInventoryMetricRuleType } from './alerting/inventory'; +import { createLogThresholdRuleType } from './alerting/log_threshold'; +import { createMetricThresholdRuleType } from './alerting/metric_threshold'; import { LOG_STREAM_EMBEDDABLE } from './components/log_stream/log_stream_embeddable'; import { LogStreamEmbeddableFactoryDefinition } from './components/log_stream/log_stream_embeddable_factory'; import { createMetricsFetchData, createMetricsHasData } from './metrics_overview_fetchers'; @@ -26,15 +29,11 @@ import { getLogsHasDataFetcher, getLogsOverviewDataFetcher } from './utils/logs_ export class Plugin implements InfraClientPluginClass { constructor(_context: PluginInitializerContext) {} - async setup(core: InfraClientCoreSetup, pluginsSetup: InfraClientSetupDeps) { + setup(core: InfraClientCoreSetup, pluginsSetup: InfraClientSetupDeps) { if (pluginsSetup.home) { registerFeatures(pluginsSetup.home); } - const { createInventoryMetricRuleType } = await import('./alerting/inventory'); - const { createLogThresholdRuleType } = await import('./alerting/log_threshold'); - const { createMetricThresholdRuleType } = await import('./alerting/metric_threshold'); - pluginsSetup.observability.observabilityRuleTypeRegistry.register( createInventoryMetricRuleType() ); diff --git a/x-pack/plugins/infra/server/features.ts b/x-pack/plugins/infra/server/features.ts index 361565c3672c54..3e7ede11f7e9d3 100644 --- a/x-pack/plugins/infra/server/features.ts +++ b/x-pack/plugins/infra/server/features.ts @@ -6,10 +6,12 @@ */ import { i18n } from '@kbn/i18n'; -import { LOG_DOCUMENT_COUNT_RULE_TYPE_ID } from '../common/alerting/logs/log_threshold/types'; -import { METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID } from './lib/alerting/inventory_metric_threshold/types'; -import { METRIC_THRESHOLD_ALERT_TYPE_ID } from './lib/alerting/metric_threshold/types'; import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/server'; +import { LOG_DOCUMENT_COUNT_RULE_TYPE_ID } from '../common/alerting/logs/log_threshold/types'; +import { + METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID, + METRIC_THRESHOLD_ALERT_TYPE_ID, +} from '../common/alerting/metrics'; import { LOGS_FEATURE_ID, METRICS_FEATURE_ID } from '../common/constants'; export const METRICS_FEATURE = { diff --git a/x-pack/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts index e05a5b647ad2b9..2a87c9cbca994f 100644 --- a/x-pack/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts +++ b/x-pack/plugins/infra/server/lib/adapters/metrics/kibana_metrics_adapter.ts @@ -6,8 +6,8 @@ */ import { i18n } from '@kbn/i18n'; -import { flatten, get } from 'lodash'; import { KibanaRequest } from 'src/core/server'; +import { flatten, get } from 'lodash'; import { TIMESTAMP_FIELD } from '../../../../common/constants'; import { NodeDetailsMetricData } from '../../../../common/http_api/node_details_api'; import { KibanaFramework } from '../framework/kibana_framework_adapter'; @@ -63,7 +63,7 @@ export class KibanaMetricsAdapter implements InfraMetricsAdapter { .then((results) => { return results.filter(isVisSeriesData).map((result) => { const metricIds = Object.keys(result).filter( - (k) => !['type', 'uiRestrictions'].includes(k) + (k) => !['type', 'uiRestrictions', 'trackedEsSearches'].includes(k) ); return metricIds.map((id: string) => { diff --git a/x-pack/plugins/infra/server/lib/alerting/common/messages.ts b/x-pack/plugins/infra/server/lib/alerting/common/messages.ts index 0a3b41190a0883..d92670a4eb5f61 100644 --- a/x-pack/plugins/infra/server/lib/alerting/common/messages.ts +++ b/x-pack/plugins/infra/server/lib/alerting/common/messages.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { Comparator, AlertStates } from './types'; +import { AlertStates, Comparator } from '../../../../common/alerting/metrics'; export const DOCUMENT_COUNT_I18N = i18n.translate( 'xpack.infra.metrics.alerting.threshold.documentCount', diff --git a/x-pack/plugins/infra/server/lib/alerting/common/types.ts b/x-pack/plugins/infra/server/lib/alerting/common/types.ts deleted file mode 100644 index 1d038cace14fe1..00000000000000 --- a/x-pack/plugins/infra/server/lib/alerting/common/types.ts +++ /dev/null @@ -1,35 +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. - */ - -export enum Comparator { - GT = '>', - LT = '<', - GT_OR_EQ = '>=', - LT_OR_EQ = '<=', - BETWEEN = 'between', - OUTSIDE_RANGE = 'outside', -} - -export enum Aggregators { - COUNT = 'count', - AVERAGE = 'avg', - SUM = 'sum', - MIN = 'min', - MAX = 'max', - RATE = 'rate', - CARDINALITY = 'cardinality', - P95 = 'p95', - P99 = 'p99', -} - -export enum AlertStates { - OK, - ALERT, - WARNING, - NO_DATA, - ERROR, -} diff --git a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts index 8224c950873399..6425aa10188258 100644 --- a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts +++ b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts @@ -5,14 +5,14 @@ * 2.0. */ +import { ElasticsearchClient } from 'kibana/server'; import { mapValues } from 'lodash'; import moment from 'moment'; -import { ElasticsearchClient } from 'kibana/server'; -import { Comparator, InventoryMetricConditions } from './types'; -import { InventoryItemType, SnapshotMetricType } from '../../../../common/inventory_models/types'; +import { Comparator, InventoryMetricConditions } from '../../../../common/alerting/metrics'; import { InfraTimerangeInput } from '../../../../common/http_api'; -import { InfraSource } from '../../sources'; +import { InventoryItemType, SnapshotMetricType } from '../../../../common/inventory_models/types'; import { LogQueryFields } from '../../../services/log_queries/get_log_query_fields'; +import { InfraSource } from '../../sources'; import { calcualteFromBasedOnMetric } from './lib/calculate_from_based_on_metric'; import { getData } from './lib/get_data'; diff --git a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts index 6e318e1e82d6c0..497bb0cc960a7b 100644 --- a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts +++ b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts @@ -7,14 +7,11 @@ import { i18n } from '@kbn/i18n'; import { ALERT_REASON, ALERT_RULE_PARAMETERS } from '@kbn/rule-data-utils'; -import moment from 'moment'; import { first, get, last } from 'lodash'; -import { getCustomMetricLabel } from '../../../../common/formatters/get_custom_metric_label'; -import { toMetricOpt } from '../../../../common/snapshot_metric_i18n'; -import { AlertStates } from './types'; +import moment from 'moment'; import { - ActionGroupIdsOf, ActionGroup, + ActionGroupIdsOf, AlertInstanceContext as AlertContext, AlertInstanceState as AlertState, RecoveredActionGroup, @@ -23,18 +20,20 @@ import { AlertInstance as Alert, AlertTypeState as RuleTypeState, } from '../../../../../alerting/server'; +import { AlertStates, InventoryMetricThresholdParams } 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 { SnapshotMetricType } from '../../../../common/inventory_models/types'; +import { toMetricOpt } from '../../../../common/snapshot_metric_i18n'; import { InfraBackendLibs } from '../../infra_types'; -import { METRIC_FORMATTERS } from '../../../../common/formatters/snapshot_metric_formats'; -import { createFormatter } from '../../../../common/formatters'; -import { InventoryMetricThresholdParams } from '../../../../common/alerting/metrics'; import { buildErrorAlertReason, buildFiredAlertReason, + buildInvalidQueryAlertReason, buildNoDataAlertReason, // buildRecoveredAlertReason, stateToAlertMessage, - buildInvalidQueryAlertReason, } from '../common/messages'; import { evaluateCondition } from './evaluate_condition'; diff --git a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts index 7c6031dffd57dd..5adaa441309290 100644 --- a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts +++ b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts @@ -6,14 +6,14 @@ */ import { Moment } from 'moment'; +import { InventoryMetricConditions } from '../../../../../common/alerting/metrics'; import { SnapshotCustomMetricInput } from '../../../../../common/http_api'; +import { findInventoryModel } from '../../../../../common/inventory_models'; import { InventoryItemType, SnapshotMetricType, } from '../../../../../common/inventory_models/types'; -import { InventoryMetricConditions } from '../types'; import { isRate } from './is_rate'; -import { findInventoryModel } from '../../../../../common/inventory_models'; export const calcualteFromBasedOnMetric = ( to: Moment, diff --git a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts index 9776d1ab669154..ac68a0df706fb4 100644 --- a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts +++ b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/register_inventory_metric_threshold_rule_type.ts @@ -5,37 +5,40 @@ * 2.0. */ -import { schema, Type } from '@kbn/config-schema'; import { Unit } from '@elastic/datemath'; +import { schema, Type } from '@kbn/config-schema'; import { i18n } from '@kbn/i18n'; import { PluginSetupContract } from '../../../../../alerting/server'; import { - createInventoryMetricThresholdExecutor, - FIRED_ACTIONS, - FIRED_ACTIONS_ID, - WARNING_ACTIONS, -} from './inventory_metric_threshold_executor'; -import { METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID, Comparator } from './types'; + Comparator, + METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID, +} from '../../../../common/alerting/metrics'; +import { + SnapshotCustomAggregation, + SNAPSHOT_CUSTOM_AGGREGATIONS, +} from '../../../../common/http_api/snapshot_api'; +import { + InventoryItemType, + SnapshotMetricType, + SnapshotMetricTypeKeys, +} from '../../../../common/inventory_models/types'; import { InfraBackendLibs } from '../../infra_types'; -import { oneOfLiterals, validateIsStringElasticsearchJSONFilter } from '../common/utils'; import { - groupActionVariableDescription, alertStateActionVariableDescription, + groupActionVariableDescription, + metricActionVariableDescription, reasonActionVariableDescription, + thresholdActionVariableDescription, timestampActionVariableDescription, valueActionVariableDescription, - metricActionVariableDescription, - thresholdActionVariableDescription, } from '../common/messages'; +import { oneOfLiterals, validateIsStringElasticsearchJSONFilter } from '../common/utils'; import { - SnapshotMetricTypeKeys, - SnapshotMetricType, - InventoryItemType, -} from '../../../../common/inventory_models/types'; -import { - SNAPSHOT_CUSTOM_AGGREGATIONS, - SnapshotCustomAggregation, -} from '../../../../common/http_api/snapshot_api'; + createInventoryMetricThresholdExecutor, + FIRED_ACTIONS, + FIRED_ACTIONS_ID, + WARNING_ACTIONS, +} from './inventory_metric_threshold_executor'; const condition = schema.object({ threshold: schema.arrayOf(schema.number()), diff --git a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/types.ts b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/types.ts deleted file mode 100644 index 829f34d42ee039..00000000000000 --- a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/types.ts +++ /dev/null @@ -1,27 +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 { Unit } from '@elastic/datemath'; -import { SnapshotCustomMetricInput } from '../../../../common/http_api/snapshot_api'; -import { SnapshotMetricType } from '../../../../common/inventory_models/types'; -import { Comparator, AlertStates, Aggregators } from '../common/types'; - -export { Comparator, AlertStates, Aggregators }; - -export const METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID = 'metrics.alert.inventory.threshold'; - -export interface InventoryMetricConditions { - metric: SnapshotMetricType; - timeSize: number; - timeUnit: Unit; - sourceId?: string; - threshold: number[]; - comparator: Comparator; - customMetric?: SnapshotCustomMetricInput; - warningThreshold?: number[]; - warningComparator?: Comparator; -} diff --git a/x-pack/plugins/infra/server/lib/alerting/log_threshold/reason_formatters.ts b/x-pack/plugins/infra/server/lib/alerting/log_threshold/reason_formatters.ts index 9fe0d73569a899..25f8ca50e995d3 100644 --- a/x-pack/plugins/infra/server/lib/alerting/log_threshold/reason_formatters.ts +++ b/x-pack/plugins/infra/server/lib/alerting/log_threshold/reason_formatters.ts @@ -6,28 +6,13 @@ */ import { i18n } from '@kbn/i18n'; -import * as moment from 'moment'; -import momentDurationFormatSetup from 'moment-duration-format'; -momentDurationFormatSetup(moment); - import { Comparator, ComparatorToi18nMap, TimeUnit, } from '../../../../common/alerting/logs/log_threshold/types'; -const getDuration = (timeSize: number, timeUnit: TimeUnit): string => { - switch (timeUnit) { - case 's': - return moment.duration(timeSize, 'seconds').format('s [sec]'); - case 'm': - return moment.duration(timeSize, 'minutes').format('m [min]'); - case 'h': - return moment.duration(timeSize, 'hours').format('h [hr]'); - case 'd': - return moment.duration(timeSize, 'days').format('d [day]'); - } -}; +import { formatDurationFromTimeUnitChar, TimeUnitChar } from '../../../../../observability/common'; export const getReasonMessageForUngroupedCountAlert = ( actualCount: number, @@ -43,7 +28,7 @@ export const getReasonMessageForUngroupedCountAlert = ( actualCount, expectedCount, translatedComparator: ComparatorToi18nMap[comparator], - duration: getDuration(timeSize, timeUnit), + duration: formatDurationFromTimeUnitChar(timeSize, timeUnit as TimeUnitChar), }, }); @@ -63,7 +48,7 @@ export const getReasonMessageForGroupedCountAlert = ( expectedCount, groupName, translatedComparator: ComparatorToi18nMap[comparator], - duration: getDuration(timeSize, timeUnit), + duration: formatDurationFromTimeUnitChar(timeSize, timeUnit as TimeUnitChar), }, }); @@ -81,7 +66,7 @@ export const getReasonMessageForUngroupedRatioAlert = ( actualRatio, expectedRatio, translatedComparator: ComparatorToi18nMap[comparator], - duration: getDuration(timeSize, timeUnit), + duration: formatDurationFromTimeUnitChar(timeSize, timeUnit as TimeUnitChar), }, }); @@ -101,6 +86,6 @@ export const getReasonMessageForGroupedRatioAlert = ( expectedRatio, groupName, translatedComparator: ComparatorToi18nMap[comparator], - duration: getDuration(timeSize, timeUnit), + duration: formatDurationFromTimeUnitChar(timeSize, timeUnit as TimeUnitChar), }, }); diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_anomaly/metric_anomaly_executor.ts b/x-pack/plugins/infra/server/lib/alerting/metric_anomaly/metric_anomaly_executor.ts index a0eac87ed161eb..f762d694a59e70 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_anomaly/metric_anomaly_executor.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_anomaly/metric_anomaly_executor.ts @@ -6,27 +6,26 @@ */ import { i18n } from '@kbn/i18n'; +import { KibanaRequest } from 'kibana/server'; import { first } from 'lodash'; import moment from 'moment'; -import { KibanaRequest } from 'kibana/server'; -import { stateToAlertMessage } from '../common/messages'; -import { MetricAnomalyParams } from '../../../../common/alerting/metrics'; -import { MappedAnomalyHit } from '../../infra_ml'; -import { AlertStates } from '../common/types'; import { ActionGroup, AlertInstanceContext as AlertContext, AlertInstanceState as AlertState, } from '../../../../../alerting/common'; import { AlertExecutorOptions as RuleExecutorOptions } from '../../../../../alerting/server'; -import { getIntervalInSeconds } from '../../../utils/get_interval_in_seconds'; -import { MetricAnomalyAllowedActionGroups } from './register_metric_anomaly_rule_type'; import { MlPluginSetup } from '../../../../../ml/server'; +import { AlertStates, MetricAnomalyParams } from '../../../../common/alerting/metrics'; +import { getIntervalInSeconds } from '../../../utils/get_interval_in_seconds'; +import { MappedAnomalyHit } from '../../infra_ml'; import { InfraBackendLibs } from '../../infra_types'; +import { stateToAlertMessage } from '../common/messages'; import { evaluateCondition } from './evaluate_condition'; +import { MetricAnomalyAllowedActionGroups } from './register_metric_anomaly_rule_type'; export const createMetricAnomalyExecutor = - (libs: InfraBackendLibs, ml?: MlPluginSetup) => + (_libs: InfraBackendLibs, ml?: MlPluginSetup) => async ({ services, params, diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_percentile_aggregation.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_percentile_aggregation.ts index 92219e733da5d9..35111c1a69b2f1 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_percentile_aggregation.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_percentile_aggregation.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { Aggregators } from '../types'; +import { Aggregators } from '../../../../../common/alerting/metrics'; + export const createPercentileAggregation = ( type: Aggregators.P95 | Aggregators.P99, field: string diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_timerange.test.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_timerange.test.ts index 5640a1d9284360..bf365d7e89bcac 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_timerange.test.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_timerange.test.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { createTimerange } from './create_timerange'; -import { Aggregators } from '../types'; import moment from 'moment'; +import { Aggregators } from '../../../../../common/alerting/metrics'; +import { createTimerange } from './create_timerange'; describe('createTimerange(interval, aggType, timeframe)', () => { describe('without timeframe', () => { diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_timerange.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_timerange.ts index cca63aca14d097..03c407e8afe377 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_timerange.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/create_timerange.ts @@ -6,7 +6,7 @@ */ import moment from 'moment'; -import { Aggregators } from '../types'; +import { Aggregators } from '../../../../../common/alerting/metrics'; export const createTimerange = ( interval: number, diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts index a3de79368cb806..4fbac02cff19b1 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts @@ -5,23 +5,25 @@ * 2.0. */ -import moment from 'moment'; import { ElasticsearchClient } from 'kibana/server'; -import { difference, mapValues, first, last, isNaN, isNumber, isObject, has } from 'lodash'; +import { difference, first, has, isNaN, isNumber, isObject, last, mapValues } from 'lodash'; +import moment from 'moment'; import { + Aggregators, + Comparator, isTooManyBucketsPreviewException, + MetricExpressionParams, TOO_MANY_BUCKETS_PREVIEW_EXCEPTION, } from '../../../../../common/alerting/metrics'; -import { getIntervalInSeconds } from '../../../../utils/get_interval_in_seconds'; import { InfraSource } from '../../../../../common/source_configuration/source_configuration'; -import { InfraDatabaseSearchResponse } from '../../../adapters/framework/adapter_types'; import { createAfterKeyHandler } from '../../../../utils/create_afterkey_handler'; import { getAllCompositeData } from '../../../../utils/get_all_composite_data'; +import { getIntervalInSeconds } from '../../../../utils/get_interval_in_seconds'; +import { InfraDatabaseSearchResponse } from '../../../adapters/framework/adapter_types'; import { DOCUMENT_COUNT_I18N } from '../../common/messages'; import { UNGROUPED_FACTORY_KEY } from '../../common/utils'; -import { MetricExpressionParams, Comparator, Aggregators } from '../types'; -import { getElasticsearchMetricQuery } from './metric_query'; import { createTimerange } from './create_timerange'; +import { getElasticsearchMetricQuery } from './metric_query'; interface AggregationWithoutIntervals { aggregatedValue: { value: number; values?: Array<{ key: number; value: number }> }; diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.test.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.test.ts index 3c6bca67de413d..7e26bc2ba6be67 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.test.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.test.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { MetricExpressionParams } from '../types'; -import { getElasticsearchMetricQuery } from './metric_query'; import moment from 'moment'; +import { MetricExpressionParams } from '../../../../../common/alerting/metrics'; +import { getElasticsearchMetricQuery } from './metric_query'; describe("The Metric Threshold Alert's getElasticsearchMetricQuery", () => { const expressionParams = { diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts index e0abd8465e306e..5f7d643ec22eb3 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts @@ -5,11 +5,11 @@ * 2.0. */ +import { Aggregators, MetricExpressionParams } from '../../../../../common/alerting/metrics'; import { TIMESTAMP_FIELD } from '../../../../../common/constants'; import { networkTraffic } from '../../../../../common/inventory_models/shared/metrics/snapshot/network_traffic'; -import { MetricExpressionParams, Aggregators } from '../types'; -import { createPercentileAggregation } from './create_percentile_aggregation'; import { calculateDateHistogramOffset } from '../../../metrics/lib/calculate_date_histogram_offset'; +import { createPercentileAggregation } from './create_percentile_aggregation'; const getParsedFilterQuery: (filterQuery: string | undefined) => Record | null = ( filterQuery diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts index ac3285db98faf7..c007154320db4b 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts @@ -5,30 +5,30 @@ * 2.0. */ -import { createMetricThresholdExecutor, FIRED_ACTIONS } from './metric_threshold_executor'; -import * as mocks from './test_mocks'; +// eslint-disable-next-line @kbn/eslint/no-restricted-paths +import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; +import { + AlertInstanceContext as AlertContext, + AlertInstanceState as AlertState, +} from '../../../../../alerting/server'; // import { RecoveredActionGroup } from '../../../../../alerting/common'; import { - alertsMock, - AlertServicesMock, AlertInstanceMock, + AlertServicesMock, + alertsMock, } from '../../../../../alerting/server/mocks'; import { LifecycleAlertServices } from '../../../../../rule_registry/server'; import { ruleRegistryMocks } from '../../../../../rule_registry/server/mocks'; import { createLifecycleRuleExecutorMock } from '../../../../../rule_registry/server/utils/create_lifecycle_rule_executor_mock'; -import { InfraSources } from '../../sources'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; -import { - AlertInstanceContext as AlertContext, - AlertInstanceState as AlertState, -} from '../../../../../alerting/server'; import { Aggregators, Comparator, CountMetricExpressionParams, NonCountMetricExpressionParams, -} from './types'; +} from '../../../../common/alerting/metrics'; +import { InfraSources } from '../../sources'; +import { createMetricThresholdExecutor, FIRED_ACTIONS } from './metric_threshold_executor'; +import * as mocks from './test_mocks'; interface AlertTestInstance { instance: AlertInstanceMock; diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts index 1b85df04c428bd..8f6c359b150c12 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts @@ -5,33 +5,33 @@ * 2.0. */ -import { first, last, isEqual } from 'lodash'; import { i18n } from '@kbn/i18n'; -import moment from 'moment'; import { ALERT_REASON } from '@kbn/rule-data-utils'; +import { first, isEqual, last } from 'lodash'; +import moment from 'moment'; import { ActionGroupIdsOf, - RecoveredActionGroup, - AlertInstanceState as AlertState, AlertInstanceContext as AlertContext, + AlertInstanceState as AlertState, + RecoveredActionGroup, } from '../../../../../alerting/common'; import { - AlertTypeState as RuleTypeState, AlertInstance as Alert, + AlertTypeState as RuleTypeState, } from '../../../../../alerting/server'; +import { AlertStates, Comparator } from '../../../../common/alerting/metrics'; +import { createFormatter } from '../../../../common/formatters'; import { InfraBackendLibs } from '../../infra_types'; import { buildErrorAlertReason, buildFiredAlertReason, + buildInvalidQueryAlertReason, buildNoDataAlertReason, // buildRecoveredAlertReason, stateToAlertMessage, - buildInvalidQueryAlertReason, } from '../common/messages'; import { UNGROUPED_FACTORY_KEY } from '../common/utils'; -import { createFormatter } from '../../../../common/formatters'; -import { AlertStates, Comparator } from './types'; -import { evaluateRule, EvaluatedRuleParams } from './lib/evaluate_rule'; +import { EvaluatedRuleParams, evaluateRule } from './lib/evaluate_rule'; export type MetricThresholdRuleParams = Record; export type MetricThresholdRuleTypeState = RuleTypeState & { diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts index 6142e7083e0d24..d5d819ba7902e8 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts @@ -8,25 +8,25 @@ import { schema } from '@kbn/config-schema'; import { i18n } from '@kbn/i18n'; import { ActionGroupIdsOf } from '../../../../../alerting/common'; -import { RuleType, PluginSetupContract } from '../../../../../alerting/server'; +import { PluginSetupContract, RuleType } from '../../../../../alerting/server'; +import { Comparator, METRIC_THRESHOLD_ALERT_TYPE_ID } from '../../../../common/alerting/metrics'; import { METRIC_EXPLORER_AGGREGATIONS } from '../../../../common/http_api'; -import { - createMetricThresholdExecutor, - FIRED_ACTIONS, - WARNING_ACTIONS, -} from './metric_threshold_executor'; -import { METRIC_THRESHOLD_ALERT_TYPE_ID, Comparator } from './types'; import { InfraBackendLibs } from '../../infra_types'; -import { oneOfLiterals, validateIsStringElasticsearchJSONFilter } from '../common/utils'; import { - groupActionVariableDescription, alertStateActionVariableDescription, + groupActionVariableDescription, + metricActionVariableDescription, reasonActionVariableDescription, + thresholdActionVariableDescription, timestampActionVariableDescription, valueActionVariableDescription, - metricActionVariableDescription, - thresholdActionVariableDescription, } from '../common/messages'; +import { oneOfLiterals, validateIsStringElasticsearchJSONFilter } from '../common/utils'; +import { + createMetricThresholdExecutor, + FIRED_ACTIONS, + WARNING_ACTIONS, +} from './metric_threshold_executor'; type MetricThresholdAllowedActionGroups = ActionGroupIdsOf< typeof FIRED_ACTIONS | typeof WARNING_ACTIONS diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/types.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/types.ts deleted file mode 100644 index 101be1f77b9d0a..00000000000000 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/types.ts +++ /dev/null @@ -1,46 +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 { Unit } from '@elastic/datemath'; -import { Comparator, AlertStates } from '../common/types'; - -export { Comparator, AlertStates }; -export const METRIC_THRESHOLD_ALERT_TYPE_ID = 'metrics.alert.threshold'; - -export enum Aggregators { - COUNT = 'count', - AVERAGE = 'avg', - SUM = 'sum', - MIN = 'min', - MAX = 'max', - RATE = 'rate', - CARDINALITY = 'cardinality', - P95 = 'p95', - P99 = 'p99', -} - -interface BaseMetricExpressionParams { - timeSize: number; - timeUnit: Unit; - sourceId?: string; - threshold: number[]; - comparator: Comparator; - warningComparator?: Comparator; - warningThreshold?: number[]; -} - -export interface NonCountMetricExpressionParams extends BaseMetricExpressionParams { - aggType: Exclude; - metric: string; -} - -export interface CountMetricExpressionParams extends BaseMetricExpressionParams { - aggType: Aggregators.COUNT; - metric: never; -} - -export type MetricExpressionParams = NonCountMetricExpressionParams | CountMetricExpressionParams; diff --git a/x-pack/plugins/lens/kibana.json b/x-pack/plugins/lens/kibana.json index 884b17a085ad6a..1debe6e6141b29 100644 --- a/x-pack/plugins/lens/kibana.json +++ b/x-pack/plugins/lens/kibana.json @@ -6,6 +6,7 @@ "ui": true, "requiredPlugins": [ "data", + "dataViews", "charts", "expressions", "fieldFormats", diff --git a/x-pack/plugins/lens/public/pie_visualization/render_function.test.tsx b/x-pack/plugins/lens/public/pie_visualization/render_function.test.tsx index ef160b1dd682b3..8cd8e4f50d6252 100644 --- a/x-pack/plugins/lens/public/pie_visualization/render_function.test.tsx +++ b/x-pack/plugins/lens/public/pie_visualization/render_function.test.tsx @@ -14,6 +14,7 @@ import { ShapeTreeNode, HierarchyOfArrays, Chart, + PartialTheme, } from '@elastic/charts'; import { shallow } from 'enzyme'; import type { LensMultiTable } from '../../common'; @@ -110,7 +111,7 @@ describe('PieVisualization component', () => { test('it sets the correct lines per legend item', () => { const component = shallow(); - expect(component.find(Settings).prop('theme')).toEqual({ + expect(component.find(Settings).prop('theme')[0]).toMatchObject({ background: { color: undefined, }, @@ -395,7 +396,9 @@ describe('PieVisualization component', () => { const component = shallow( ); - expect(component.find(Partition).prop('config')?.outerSizeRatio).toBeCloseTo(1 / 1.05); + expect( + component.find(Settings).prop('theme')[0].partition?.outerSizeRatio + ).toBeCloseTo(1 / 1.05); }); test('it should bound the shrink the chart area to ~20% when some small slices are detected', () => { @@ -419,7 +422,9 @@ describe('PieVisualization component', () => { const component = shallow( ); - expect(component.find(Partition).prop('config')?.outerSizeRatio).toBeCloseTo(1 / 1.2); + expect( + component.find(Settings).prop('theme')[0].partition?.outerSizeRatio + ).toBeCloseTo(1 / 1.2); }); }); }); diff --git a/x-pack/plugins/lens/public/pie_visualization/render_function.tsx b/x-pack/plugins/lens/public/pie_visualization/render_function.tsx index 9fb016dc0a2d76..008ab9a9cae9ea 100644 --- a/x-pack/plugins/lens/public/pie_visualization/render_function.tsx +++ b/x-pack/plugins/lens/public/pie_visualization/render_function.tsx @@ -8,19 +8,18 @@ import { uniq } from 'lodash'; import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; +import { Required } from '@kbn/utility-types'; import { EuiText } from '@elastic/eui'; import { Chart, Datum, LayerValue, Partition, - PartitionConfig, PartitionLayer, - PartitionFillLabel, - RecursivePartial, Position, Settings, ElementClickListener, + PartialTheme, } from '@elastic/charts'; import { RenderMode } from 'src/plugins/expressions'; import type { LensFilterEvent } from '../types'; @@ -99,7 +98,7 @@ export function PieComponent( }); } - const fillLabel: Partial = { + const fillLabel: PartitionLayer['fillLabel'] = { valueFont: { fontWeight: 700, }, @@ -202,42 +201,52 @@ export function PieComponent( }; }); - const { legend, partitionType: partitionLayout, label: chartType } = PartitionChartsMeta[shape]; + const { legend, partitionType, label: chartType } = PartitionChartsMeta[shape]; - const config: RecursivePartial = { - partitionLayout, - fontFamily: chartTheme.barSeriesStyle?.displayValue?.fontFamily, - outerSizeRatio: 1, - specialFirstInnermostSector: true, - minFontSize: 10, - maxFontSize: 16, - // Labels are added outside the outer ring when the slice is too small - linkLabel: { - maxCount: 5, - fontSize: 11, - // Dashboard background color is affected by dark mode, which we need - // to account for in outer labels - // This does not handle non-dashboard embeddables, which are allowed to - // have different backgrounds. - textColor: chartTheme.axes?.axisTitle?.fill, + const themeOverrides: Required = { + chartMargins: { top: 0, bottom: 0, left: 0, right: 0 }, + background: { + color: undefined, // removes background for embeddables + }, + legend: { + labelOptions: { maxLines: truncateLegend ? legendMaxLines ?? 1 : 0 }, + }, + partition: { + fontFamily: chartTheme.barSeriesStyle?.displayValue?.fontFamily, + outerSizeRatio: 1, + minFontSize: 10, + maxFontSize: 16, + // Labels are added outside the outer ring when the slice is too small + linkLabel: { + maxCount: 5, + fontSize: 11, + // Dashboard background color is affected by dark mode, which we need + // to account for in outer labels + // This does not handle non-dashboard embeddables, which are allowed to + // have different backgrounds. + textColor: chartTheme.axes?.axisTitle?.fill, + }, + sectorLineStroke: chartTheme.lineSeriesStyle?.point?.fill, + sectorLineWidth: 1.5, + circlePadding: 4, }, - sectorLineStroke: chartTheme.lineSeriesStyle?.point?.fill, - sectorLineWidth: 1.5, - circlePadding: 4, }; if (isTreemapOrMosaicShape(shape)) { if (hideLabels || categoryDisplay === 'hide') { - config.fillLabel = { textColor: 'rgba(0,0,0,0)' }; + themeOverrides.partition.fillLabel = { textColor: 'rgba(0,0,0,0)' }; } } else { - config.emptySizeRatio = shape === 'donut' ? emptySizeRatio : 0; + themeOverrides.partition.emptySizeRatio = shape === 'donut' ? emptySizeRatio : 0; if (hideLabels || categoryDisplay === 'hide') { // Force all labels to be linked, then prevent links from showing - config.linkLabel = { maxCount: 0, maximumSection: Number.POSITIVE_INFINITY }; + themeOverrides.partition.linkLabel = { + maxCount: 0, + maximumSection: Number.POSITIVE_INFINITY, + }; } else if (categoryDisplay === 'inside') { // Prevent links from showing - config.linkLabel = { maxCount: 0 }; + themeOverrides.partition.linkLabel = { maxCount: 0 }; } else { // if it contains any slice below 2% reduce the ratio // first step: sum it up the overall sum @@ -246,7 +255,7 @@ export function PieComponent( const smallSlices = slices.filter((value) => value < 0.02).length; if (smallSlices) { // shrink up to 20% to give some room for the linked values - config.outerSizeRatio = 1 / (1 + Math.min(smallSlices * 0.05, 0.2)); + themeOverrides.partition.outerSizeRatio = 1 / (1 + Math.min(smallSlices * 0.05, 0.2)); } } } @@ -322,27 +331,19 @@ export function PieComponent( legendMaxDepth={nestedLegend ? undefined : 1 /* Color is based only on first layer */} onElementClick={props.interactive ?? true ? onElementClickHandler : undefined} legendAction={props.interactive ? getLegendAction(firstTable, onClickValue) : undefined} - theme={{ - ...chartTheme, - background: { - ...chartTheme.background, - color: undefined, // removes background for embeddables - }, - legend: { - labelOptions: { maxLines: truncateLegend ? legendMaxLines ?? 1 : 0 }, - }, - }} + theme={[themeOverrides, chartTheme]} baseTheme={chartBaseTheme} /> getSliceValue(d, metricColumn)} percentFormatter={(d: number) => percentFormatter.convert(d / 100)} valueGetter={hideLabels || numberDisplay === 'value' ? undefined : 'percent'} valueFormatter={(d: number) => (hideLabels ? '' : formatters[metricColumn.id].convert(d))} layers={layers} - config={config} topGroove={hideLabels || categoryDisplay === 'hide' ? 0 : undefined} />
diff --git a/x-pack/plugins/lens/public/xy_visualization/__snapshots__/expression.test.tsx.snap b/x-pack/plugins/lens/public/xy_visualization/__snapshots__/expression.test.tsx.snap index e2566aa22ce9e2..1402cd715283a5 100644 --- a/x-pack/plugins/lens/public/xy_visualization/__snapshots__/expression.test.tsx.snap +++ b/x-pack/plugins/lens/public/xy_visualization/__snapshots__/expression.test.tsx.snap @@ -4,7 +4,7 @@ exports[`xy_expression XYChart component it renders area 1`] = ` - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = T extends React.FunctionComponent ? P : T; -type SeriesSpec = InferPropType & - InferPropType & - InferPropType; +type SeriesSpec = LineSeriesProps & BarSeriesProps & AreaSeriesProps; export type XYChartRenderProps = XYChartProps & { chartsThemeService: ChartsPluginSetup['theme']; diff --git a/x-pack/plugins/lens/server/plugin.tsx b/x-pack/plugins/lens/server/plugin.tsx index 3f0a41efc21c7c..5f8f15b21ff943 100644 --- a/x-pack/plugins/lens/server/plugin.tsx +++ b/x-pack/plugins/lens/server/plugin.tsx @@ -7,6 +7,7 @@ import { Plugin, CoreSetup, CoreStart, PluginInitializerContext, Logger } from 'src/core/server'; import { UsageCollectionSetup } from 'src/plugins/usage_collection/server'; +import { PluginStart as DataViewsServerPluginStart } from 'src/plugins/data_views/server'; import { PluginStart as DataPluginStart, PluginSetup as DataPluginSetup, @@ -15,6 +16,7 @@ import { ExpressionsServerSetup } from 'src/plugins/expressions/server'; import { FieldFormatsStart } from 'src/plugins/field_formats/server'; import { TaskManagerSetupContract, TaskManagerStartContract } from '../../task_manager/server'; import { setupRoutes } from './routes'; +import { getUiSettings } from './ui_settings'; import { registerLensUsageCollector, initializeLensTelemetry, @@ -37,6 +39,7 @@ export interface PluginStartContract { taskManager?: TaskManagerStartContract; fieldFormats: FieldFormatsStart; data: DataPluginStart; + dataViews: DataViewsServerPluginStart; } export interface LensServerPluginSetup { @@ -55,6 +58,7 @@ export class LensServerPlugin implements Plugin { + it('should remove missing fields by matching names', () => { + expect( + existingFields( + [ + { name: 'a', aggregatable: true, searchable: true, type: 'string' }, + { name: 'b', aggregatable: true, searchable: true, type: 'string' }, + ], + [ + { name: 'a', isScript: false, isMeta: false }, + { name: 'b', isScript: false, isMeta: true }, + { name: 'c', isScript: false, isMeta: false }, + ] + ) + ).toEqual(['a', 'b']); + }); + + it('should keep scripted and runtime fields', () => { + expect( + existingFields( + [{ name: 'a', aggregatable: true, searchable: true, type: 'string' }], + [ + { name: 'a', isScript: false, isMeta: false }, + { name: 'b', isScript: true, isMeta: false }, + { name: 'c', runtimeField: { type: 'keyword' }, isMeta: false, isScript: false }, + { name: 'd', isMeta: true, isScript: false }, + ] + ) + ).toEqual(['a', 'b', 'c']); + }); +}); + +describe('legacyExistingFields', () => { function field(opts: string | Partial): Field { const obj = typeof opts === 'object' ? opts : {}; const name = (typeof opts === 'string' ? opts : opts.name) || 'test'; @@ -26,7 +58,7 @@ describe('existingFields', () => { } it('should handle root level fields', () => { - const result = existingFields( + const result = legacyExistingFields( [searchResults({ foo: ['bar'] }), searchResults({ baz: [0] })], [field('foo'), field('bar'), field('baz')] ); @@ -35,7 +67,7 @@ describe('existingFields', () => { }); it('should handle basic arrays, ignoring empty ones', () => { - const result = existingFields( + const result = legacyExistingFields( [searchResults({ stuff: ['heyo', 'there'], empty: [] })], [field('stuff'), field('empty')] ); @@ -44,7 +76,7 @@ describe('existingFields', () => { }); it('should handle objects with dotted fields', () => { - const result = existingFields( + const result = legacyExistingFields( [searchResults({ 'geo.country_name': ['US'] })], [field('geo.country_name')] ); @@ -53,7 +85,7 @@ describe('existingFields', () => { }); it('supports scripted fields', () => { - const result = existingFields( + const result = legacyExistingFields( [searchResults({ bar: ['scriptvalue'] })], [field({ name: 'bar', isScript: true })] ); @@ -62,7 +94,7 @@ describe('existingFields', () => { }); it('supports runtime fields', () => { - const result = existingFields( + const result = legacyExistingFields( [searchResults({ runtime_foo: ['scriptvalue'] })], [ field({ @@ -76,7 +108,7 @@ describe('existingFields', () => { }); it('supports meta fields', () => { - const result = existingFields( + const result = legacyExistingFields( [ { // @ts-expect-error _mymeta is not defined on estypes.SearchHit diff --git a/x-pack/plugins/lens/server/routes/existing_fields.ts b/x-pack/plugins/lens/server/routes/existing_fields.ts index 3a57a77a977262..0ee1d92d1b4ec5 100644 --- a/x-pack/plugins/lens/server/routes/existing_fields.ts +++ b/x-pack/plugins/lens/server/routes/existing_fields.ts @@ -11,9 +11,11 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { schema } from '@kbn/config-schema'; import { RequestHandlerContext, ElasticsearchClient } from 'src/core/server'; import { CoreSetup, Logger } from 'src/core/server'; -import { IndexPattern, IndexPatternsService, RuntimeField } from 'src/plugins/data/common'; +import { RuntimeField } from 'src/plugins/data/common'; +import { DataViewsService, DataView, FieldSpec } from 'src/plugins/data_views/common'; import { BASE_API_URL } from '../../common'; import { UI_SETTINGS } from '../../../../../src/plugins/data/server'; +import { FIELD_EXISTENCE_SETTING } from '../ui_settings'; import { PluginStartContract } from '../plugin'; export function isBoomError(error: { isBoom?: boolean }): error is Boom.Boom { @@ -53,24 +55,24 @@ export async function existingFieldsRoute(setup: CoreSetup, }, }, async (context, req, res) => { - const [{ savedObjects, elasticsearch, uiSettings }, { data }] = + const [{ savedObjects, elasticsearch, uiSettings }, { dataViews }] = await setup.getStartServices(); const savedObjectsClient = savedObjects.getScopedClient(req); - const includeFrozen: boolean = await uiSettings - .asScopedToClient(savedObjectsClient) - .get(UI_SETTINGS.SEARCH_INCLUDE_FROZEN); + const uiSettingsClient = uiSettings.asScopedToClient(savedObjectsClient); + const [includeFrozen, useSampling]: boolean[] = await Promise.all([ + uiSettingsClient.get(UI_SETTINGS.SEARCH_INCLUDE_FROZEN), + uiSettingsClient.get(FIELD_EXISTENCE_SETTING), + ]); const esClient = elasticsearch.client.asScoped(req).asCurrentUser; try { return res.ok({ body: await fetchFieldExistence({ ...req.params, ...req.body, - indexPatternsService: await data.indexPatterns.indexPatternsServiceFactory( - savedObjectsClient, - esClient - ), + dataViewsService: await dataViews.dataViewsServiceFactory(savedObjectsClient, esClient), context, includeFrozen, + useSampling, }), }); } catch (e) { @@ -103,16 +105,64 @@ export async function existingFieldsRoute(setup: CoreSetup, async function fetchFieldExistence({ context, indexPatternId, - indexPatternsService, + dataViewsService, dslQuery = { match_all: {} }, fromDate, toDate, timeFieldName, includeFrozen, + useSampling, }: { indexPatternId: string; context: RequestHandlerContext; - indexPatternsService: IndexPatternsService; + dataViewsService: DataViewsService; + dslQuery: object; + fromDate?: string; + toDate?: string; + timeFieldName?: string; + includeFrozen: boolean; + useSampling: boolean; +}) { + if (useSampling) { + return legacyFetchFieldExistenceSampling({ + context, + indexPatternId, + dataViewsService, + dslQuery, + fromDate, + toDate, + timeFieldName, + includeFrozen, + }); + } + + const metaFields: string[] = await context.core.uiSettings.client.get(UI_SETTINGS.META_FIELDS); + const dataView = await dataViewsService.get(indexPatternId); + const allFields = buildFieldList(dataView, metaFields); + const existingFieldList = await dataViewsService.getFieldsForIndexPattern(dataView, { + // filled in by data views service + pattern: '', + filter: toQuery(timeFieldName, fromDate, toDate, dslQuery), + }); + return { + indexPatternTitle: dataView.title, + existingFieldNames: existingFields(existingFieldList, allFields), + }; +} + +async function legacyFetchFieldExistenceSampling({ + context, + indexPatternId, + dataViewsService, + dslQuery, + fromDate, + toDate, + timeFieldName, + includeFrozen, +}: { + indexPatternId: string; + context: RequestHandlerContext; + dataViewsService: DataViewsService; dslQuery: object; fromDate?: string; toDate?: string; @@ -120,7 +170,7 @@ async function fetchFieldExistence({ includeFrozen: boolean; }) { const metaFields: string[] = await context.core.uiSettings.client.get(UI_SETTINGS.META_FIELDS); - const indexPattern = await indexPatternsService.get(indexPatternId); + const indexPattern = await dataViewsService.get(indexPatternId); const fields = buildFieldList(indexPattern, metaFields); const docs = await fetchIndexPatternStats({ @@ -136,14 +186,14 @@ async function fetchFieldExistence({ return { indexPatternTitle: indexPattern.title, - existingFieldNames: existingFields(docs, fields), + existingFieldNames: legacyExistingFields(docs, fields), }; } /** * Exported only for unit tests. */ -export function buildFieldList(indexPattern: IndexPattern, metaFields: string[]): Field[] { +export function buildFieldList(indexPattern: DataView, metaFields: string[]): Field[] { return indexPattern.fields.map((field) => { return { name: field.name, @@ -177,27 +227,7 @@ async function fetchIndexPatternStats({ fields: Field[]; includeFrozen: boolean; }) { - const filter = - timeFieldName && fromDate && toDate - ? [ - { - range: { - [timeFieldName]: { - format: 'strict_date_optional_time', - gte: fromDate, - lte: toDate, - }, - }, - }, - dslQuery, - ] - : [dslQuery]; - - const query = { - bool: { - filter, - }, - }; + const query = toQuery(timeFieldName, fromDate, toDate, dslQuery); const scriptedFields = fields.filter((f) => f.isScript); const runtimeFields = fields.filter((f) => f.runtimeField); @@ -242,10 +272,51 @@ async function fetchIndexPatternStats({ return result.hits.hits; } +function toQuery( + timeFieldName: string | undefined, + fromDate: string | undefined, + toDate: string | undefined, + dslQuery: object +) { + const filter = + timeFieldName && fromDate && toDate + ? [ + { + range: { + [timeFieldName]: { + format: 'strict_date_optional_time', + gte: fromDate, + lte: toDate, + }, + }, + }, + dslQuery, + ] + : [dslQuery]; + + const query = { + bool: { + filter, + }, + }; + return query; +} + +/** + * Exported only for unit tests. + */ +export function existingFields(filteredFields: FieldSpec[], allFields: Field[]): string[] { + const filteredFieldsSet = new Set(filteredFields.map((f) => f.name)); + + return allFields + .filter((field) => field.isScript || field.runtimeField || filteredFieldsSet.has(field.name)) + .map((f) => f.name); +} + /** * Exported only for unit tests. */ -export function existingFields(docs: estypes.SearchHit[], fields: Field[]): string[] { +export function legacyExistingFields(docs: estypes.SearchHit[], fields: Field[]): string[] { const missingFields = new Set(fields); for (const doc of docs) { diff --git a/x-pack/plugins/lens/server/ui_settings.ts b/x-pack/plugins/lens/server/ui_settings.ts new file mode 100644 index 00000000000000..63f16f3aeebb77 --- /dev/null +++ b/x-pack/plugins/lens/server/ui_settings.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 { i18n } from '@kbn/i18n'; +import { schema } from '@kbn/config-schema'; + +import { UiSettingsParams } from 'kibana/server'; + +export const FIELD_EXISTENCE_SETTING = 'lens:useFieldExistenceSampling'; + +export const getUiSettings: () => Record = () => ({ + [FIELD_EXISTENCE_SETTING]: { + name: i18n.translate('xpack.lens.advancedSettings.useFieldExistenceSampling.title', { + defaultMessage: 'Use field existence sampling', + }), + value: false, + description: i18n.translate( + 'xpack.lens.advancedSettings.useFieldExistenceSampling.description', + { + defaultMessage: + 'If enabled, document sampling is used to determine field existence (available or empty) for the Lens field list instead of relying on index mappings.', + } + ), + category: ['visualization'], + schema: schema.boolean(), + }, +}); diff --git a/x-pack/plugins/lists/common/schemas/response/exception_list_summary_schema.mock.ts b/x-pack/plugins/lists/common/schemas/response/exception_list_summary_schema.mock.ts new file mode 100644 index 00000000000000..56d9298309b1d4 --- /dev/null +++ b/x-pack/plugins/lists/common/schemas/response/exception_list_summary_schema.mock.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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +import { ExceptionListSummarySchema } from '@kbn/securitysolution-io-ts-list-types'; + +export const getSummaryExceptionListSchemaMock = ( + overrides?: Partial +): ExceptionListSummarySchema => { + return { + linux: 0, + macos: 0, + total: 0, + windows: 0, + ...(overrides || {}), + }; +}; diff --git a/x-pack/plugins/lists/public/exceptions/components/builder/exception_items_renderer.tsx b/x-pack/plugins/lists/public/exceptions/components/builder/exception_items_renderer.tsx index 54cb00bfe3868d..9656f0815dd7d7 100644 --- a/x-pack/plugins/lists/public/exceptions/components/builder/exception_items_renderer.tsx +++ b/x-pack/plugins/lists/public/exceptions/components/builder/exception_items_renderer.tsx @@ -6,7 +6,7 @@ */ import React, { useCallback, useEffect, useReducer } from 'react'; -import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import styled from 'styled-components'; import { HttpStart } from 'kibana/public'; import { addIdToItem } from '@kbn/securitysolution-utils'; @@ -425,6 +425,8 @@ export const ExceptionBuilderComponent = ({ ))} + + {andLogicIncluded && ( diff --git a/x-pack/plugins/lists/server/index.ts b/x-pack/plugins/lists/server/index.ts index dd7fbf4548f751..de54dfb3d8494f 100644 --- a/x-pack/plugins/lists/server/index.ts +++ b/x-pack/plugins/lists/server/index.ts @@ -22,8 +22,15 @@ export type { ListsApiRequestHandlerContext, ListsServerExtensionRegistrar, ExtensionPoint, - ExceptionsListPreCreateItemServerExtension, ExceptionsListPreUpdateItemServerExtension, + ExceptionsListPreCreateItemServerExtension, + ExceptionsListPreGetOneItemServerExtension, + ExceptionsListPreImportServerExtension, + ExceptionsListPreSummaryServerExtension, + ExceptionsListPreExportServerExtension, + ExceptionsListPreMultiListFindServerExtension, + ExceptionsListPreSingleListFindServerExtension, + ExceptionsListPreDeleteItemServerExtension, } from './types'; export type { ExportExceptionListAndItemsReturn } from './services/exception_lists/export_exception_list_and_items'; diff --git a/x-pack/plugins/lists/server/routes/summary_exception_list_route.ts b/x-pack/plugins/lists/server/routes/summary_exception_list_route.ts index 0db189fb70759b..932681eb30d2f5 100644 --- a/x-pack/plugins/lists/server/routes/summary_exception_list_route.ts +++ b/x-pack/plugins/lists/server/routes/summary_exception_list_route.ts @@ -40,10 +40,11 @@ export const summaryExceptionListRoute = (router: ListsPluginRouter): void => { async (context, request, response) => { const siemResponse = buildSiemResponse(response); try { - const { id, list_id: listId, namespace_type: namespaceType } = request.query; + const { id, list_id: listId, namespace_type: namespaceType, filter } = request.query; const exceptionLists = getExceptionListClient(context); if (id != null || listId != null) { const exceptionListSummary = await exceptionLists.getExceptionListSummary({ + filter, id, listId, namespaceType, diff --git a/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.mock.ts b/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.mock.ts index 761a8f07a4bbc4..eaa4651b384f7a 100644 --- a/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.mock.ts +++ b/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.mock.ts @@ -5,13 +5,19 @@ * 2.0. */ +import { Readable } from 'stream'; + import { loggingSystemMock, savedObjectsClientMock } from 'src/core/server/mocks'; import { getSavedObjectType } from '@kbn/securitysolution-list-utils'; import { EXCEPTION_LIST_NAMESPACE, EXCEPTION_LIST_NAMESPACE_AGNOSTIC, } from '@kbn/securitysolution-list-constants'; -import type { SavedObjectsFindResponse, SavedObjectsUpdateResponse } from 'kibana/server'; +import type { + SavedObjectsBulkUpdateObject, + SavedObjectsFindResponse, + SavedObjectsUpdateResponse, +} from 'kibana/server'; import { getFoundExceptionListSchemaMock } from '../../../common/schemas/response/found_exception_list_schema.mock'; import { getFoundExceptionListItemSchemaMock } from '../../../common/schemas/response/found_exception_list_item_schema.mock'; @@ -284,5 +290,31 @@ export const getExceptionListSavedObjectClientMock = ( return undefined as unknown as SavedObjectsFindResponse; }); + // Mock `.bulkUpdate()` (used in import) + soClient.bulkUpdate.mockImplementation(async (...args) => { + const [importObjects] = args as [Array>]; + + return { + saved_objects: importObjects.map((item) => { + return getExceptionListItemSavedObject(item.attributes); + }), + }; + }); + return soClient; }; + +/** + * Converts a list of items to a NodeJS `Readable` stream + * @param items + */ +export const toReadable = (items: unknown[]): Readable => { + const stringOfExceptions = items.map((item) => JSON.stringify(item)); + + return new Readable({ + read(): void { + this.push(stringOfExceptions.join('\n')); + this.push(null); + }, + }); +}; diff --git a/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.test.ts b/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.test.ts index 2b14f652bb9c12..255aa587666c73 100644 --- a/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.test.ts +++ b/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.test.ts @@ -18,6 +18,7 @@ import { getExceptionListClientMock, getExceptionListSavedObjectClientMock, getUpdateExceptionListItemOptionsMock, + toReadable, } from './exception_list_client.mock'; import { ExceptionListClient } from './exception_list_client'; import { DataValidationError } from './utils/errors'; @@ -238,6 +239,7 @@ describe('exception_list_client', () => { 'getExceptionListSummary', (): ReturnType => { return exceptionListClient.getExceptionListSummary({ + filter: undefined, id: '1', listId: '1', namespaceType: 'agnostic', @@ -272,6 +274,32 @@ describe('exception_list_client', () => { return extensionPointStorageContext.exceptionPreDelete.callback; }, ], + [ + 'importExceptionListAndItems', + (): ReturnType => { + return exceptionListClient.importExceptionListAndItems({ + exceptionsToImport: toReadable([getExceptionListItemSchemaMock()]), + maxExceptionsImportSize: 10_000, + overwrite: true, + }); + }, + (): ExtensionPointStorageContextMock['exceptionPreImport']['callback'] => { + return extensionPointStorageContext.exceptionPreImport.callback; + }, + ], + [ + 'importExceptionListAndItemsAsArray', + (): ReturnType => { + return exceptionListClient.importExceptionListAndItemsAsArray({ + exceptionsToImport: [getExceptionListItemSchemaMock()], + maxExceptionsImportSize: 10_000, + overwrite: true, + }); + }, + (): ExtensionPointStorageContextMock['exceptionPreImport']['callback'] => { + return extensionPointStorageContext.exceptionPreImport.callback; + }, + ], ])( 'and calling `ExceptionListClient#%s()`', (methodName, callExceptionListClientMethod, getExtensionPointCallback) => { diff --git a/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts b/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts index 2428c8ebf684cf..62fa8524cd466b 100644 --- a/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts +++ b/x-pack/plugins/lists/server/services/exception_lists/exception_list_client.ts @@ -17,6 +17,7 @@ import { updateExceptionListItemSchema, } from '@kbn/securitysolution-io-ts-list-types'; import { ENDPOINT_LIST_ID } from '@kbn/securitysolution-list-constants'; +import { createPromiseFromStreams } from '@kbn/utils'; import type { ExtensionPointStorageClientInterface, @@ -69,15 +70,16 @@ import { } from './find_exception_list_items'; import { createEndpointList } from './create_endpoint_list'; import { createEndpointTrustedAppsList } from './create_endpoint_trusted_apps_list'; -import { - importExceptionsAsArray, - importExceptionsAsStream, -} from './import_exception_list_and_items'; +import { PromiseFromStreams, importExceptions } from './import_exception_list_and_items'; import { transformCreateExceptionListItemOptionsToCreateExceptionListItemSchema, transformUpdateExceptionListItemOptionsToUpdateExceptionListItemSchema, validateData, } from './utils'; +import { + createExceptionsStreamFromNdjson, + exceptionsChecksFromArray, +} from './utils/import/create_exceptions_stream_logic'; export class ExceptionListClient { private readonly user: string; @@ -124,12 +126,14 @@ export class ExceptionListClient { /** * Fetch an exception list parent container + * @params filter {sting | undefined} kql "filter" expression * @params listId {string | undefined} the "list_id" of an exception list * @params id {string | undefined} the "id" of an exception list * @params namespaceType {string | undefined} saved object namespace (single | agnostic) * @return {ExceptionListSummarySchema | null} summary of exception list item os types */ public getExceptionListSummary = async ({ + filter, listId, id, namespaceType, @@ -140,6 +144,7 @@ export class ExceptionListClient { await this.serverExtensionsClient.pipeRun( 'exceptionsListPreSummary', { + filter, id, listId, namespaceType, @@ -148,7 +153,7 @@ export class ExceptionListClient { ); } - return getExceptionListSummary({ id, listId, namespaceType, savedObjectsClient }); + return getExceptionListSummary({ filter, id, listId, namespaceType, savedObjectsClient }); }; /** @@ -788,9 +793,23 @@ export class ExceptionListClient { }: ImportExceptionListAndItemsOptions): Promise => { const { savedObjectsClient, user } = this; - return importExceptionsAsStream({ + // validation of import and sorting of lists and items + const readStream = createExceptionsStreamFromNdjson(maxExceptionsImportSize); + const [parsedObjects] = await createPromiseFromStreams([ exceptionsToImport, - maxExceptionsImportSize, + ...readStream, + ]); + + if (this.enableServerExtensionPoints) { + await this.serverExtensionsClient.pipeRun( + 'exceptionsListPreImport', + parsedObjects, + this.getServerExtensionCallbackContext() + ); + } + + return importExceptions({ + exceptions: parsedObjects, overwrite, savedObjectsClient, user, @@ -799,7 +818,7 @@ export class ExceptionListClient { /** * Import exception lists parent containers and items as array - * @params exceptionsToImport {stream} array of lists and items + * @params exceptionsToImport {array} array of lists and items * @params maxExceptionsImportSize {number} the max number of lists and items to import, defaults to 10,000 * @params overwrite {boolean} whether or not to overwrite an exception list with imported list if a matching list_id found * @return {ImportExceptionsResponseSchema} summary of imported count and errors @@ -811,9 +830,19 @@ export class ExceptionListClient { }: ImportExceptionListAndItemsAsArrayOptions): Promise => { const { savedObjectsClient, user } = this; - return importExceptionsAsArray({ - exceptionsToImport, - maxExceptionsImportSize, + // validation of import and sorting of lists and items + const parsedObjects = exceptionsChecksFromArray(exceptionsToImport, maxExceptionsImportSize); + + if (this.enableServerExtensionPoints) { + await this.serverExtensionsClient.pipeRun( + 'exceptionsListPreImport', + parsedObjects, + this.getServerExtensionCallbackContext() + ); + } + + return importExceptions({ + exceptions: parsedObjects, overwrite, savedObjectsClient, user, diff --git a/x-pack/plugins/lists/server/services/exception_lists/exception_list_client_types.ts b/x-pack/plugins/lists/server/services/exception_lists/exception_list_client_types.ts index e4fdd5ef2b5ce6..1c2762cb52c972 100644 --- a/x-pack/plugins/lists/server/services/exception_lists/exception_list_client_types.ts +++ b/x-pack/plugins/lists/server/services/exception_lists/exception_list_client_types.ts @@ -69,6 +69,7 @@ export interface GetExceptionListOptions { } export interface GetExceptionListSummaryOptions { + filter: FilterOrUndefined; listId: ListIdOrUndefined; id: IdOrUndefined; namespaceType: NamespaceType; diff --git a/x-pack/plugins/lists/server/services/exception_lists/get_exception_list_summary.test.ts b/x-pack/plugins/lists/server/services/exception_lists/get_exception_list_summary.test.ts new file mode 100644 index 00000000000000..7f871d9f78ebfd --- /dev/null +++ b/x-pack/plugins/lists/server/services/exception_lists/get_exception_list_summary.test.ts @@ -0,0 +1,86 @@ +/* + * 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 { ENDPOINT_HOST_ISOLATION_EXCEPTIONS_LIST_ID } from '@kbn/securitysolution-list-constants'; +import { ExceptionListSummarySchema } from '@kbn/securitysolution-io-ts-list-types'; + +import type { SavedObjectsClientContract } from '../../../../../../src/core/server'; +import { savedObjectsClientMock } from '../../../../../../src/core/server/mocks'; + +import { getExceptionListSummary } from './get_exception_list_summary'; + +describe('get_exception_list_summary', () => { + describe('getExceptionListSummary', () => { + let savedObjectsClient: jest.Mocked; + + beforeEach(() => { + savedObjectsClient = savedObjectsClientMock.create(); + }); + + test('it should aggregate items if not host isolation exception artifact', async () => { + const savedObject = { + aggregations: { + by_os: { + buckets: [ + { doc_count: 2, key: 'linux' }, + { doc_count: 3, key: 'macos' }, + { doc_count: 5, key: 'windows' }, + ], + doc_count_error_upper_bound: 0, + sum_other_doc_count: 0, + }, + }, + page: 1, + per_page: 0, + saved_objects: [], + total: 10, + }; + savedObjectsClient.find.mockResolvedValue(savedObject); + + const summary = (await getExceptionListSummary({ + filter: undefined, + id: undefined, + listId: '', + namespaceType: 'agnostic', + savedObjectsClient, + })) as ExceptionListSummarySchema; + + expect(summary.total).toEqual(10); + }); + + test('it should NOT aggregate items if host isolation exception artifact', async () => { + const savedObject = { + aggregations: { + by_os: { + buckets: [ + { doc_count: 3, key: 'linux' }, + { doc_count: 3, key: 'macos' }, + { doc_count: 3, key: 'windows' }, + ], + doc_count_error_upper_bound: 0, + sum_other_doc_count: 0, + }, + }, + page: 1, + per_page: 0, + saved_objects: [], + total: 3, + }; + savedObjectsClient.find.mockResolvedValue(savedObject); + + const summary = (await getExceptionListSummary({ + filter: undefined, + id: undefined, + listId: ENDPOINT_HOST_ISOLATION_EXCEPTIONS_LIST_ID, + namespaceType: 'agnostic', + savedObjectsClient, + })) as ExceptionListSummarySchema; + + expect(summary.total).toEqual(3); + }); + }); +}); diff --git a/x-pack/plugins/lists/server/services/exception_lists/get_exception_list_summary.ts b/x-pack/plugins/lists/server/services/exception_lists/get_exception_list_summary.ts index 272fd70bcb322e..67aaddee502dea 100644 --- a/x-pack/plugins/lists/server/services/exception_lists/get_exception_list_summary.ts +++ b/x-pack/plugins/lists/server/services/exception_lists/get_exception_list_summary.ts @@ -7,6 +7,7 @@ import type { ExceptionListSummarySchema, + FilterOrUndefined, IdOrUndefined, ListIdOrUndefined, NamespaceType, @@ -20,6 +21,7 @@ import { import { ExceptionListSoSchema } from '../../schemas/saved_objects'; interface GetExceptionListSummaryOptions { + filter: FilterOrUndefined; id: IdOrUndefined; listId: ListIdOrUndefined; savedObjectsClient: SavedObjectsClientContract; @@ -37,6 +39,7 @@ interface ByOsAggType { } export const getExceptionListSummary = async ({ + filter, id, listId, savedObjectsClient, @@ -59,6 +62,10 @@ export const getExceptionListSummary = async ({ } } + // only pick the items in the list and not the list definition + const itemTypeFilter = `${savedObjectType}.attributes.type: "simple"`; + const adjustedFilter = filter ? `(${filter}) AND ${itemTypeFilter}` : itemTypeFilter; + const savedObject = await savedObjectsClient.find({ aggs: { by_os: { @@ -67,7 +74,7 @@ export const getExceptionListSummary = async ({ }, }, }, - filter: `${savedObjectType}.attributes.list_type: item`, + filter: adjustedFilter, perPage: 0, search: finalListId, searchFields: ['list_id'], @@ -84,7 +91,7 @@ export const getExceptionListSummary = async ({ (acc, item: ByOsAggBucketType) => ({ ...acc, [item.key]: item.doc_count, - total: acc.total + item.doc_count, + total: savedObject.total, }), { linux: 0, macos: 0, total: 0, windows: 0 } ); diff --git a/x-pack/plugins/lists/server/services/exception_lists/import_exception_list_and_items.test.ts b/x-pack/plugins/lists/server/services/exception_lists/import_exception_list_and_items.test.ts index 31b6c7bf9750b5..63f9bd27b888f4 100644 --- a/x-pack/plugins/lists/server/services/exception_lists/import_exception_list_and_items.test.ts +++ b/x-pack/plugins/lists/server/services/exception_lists/import_exception_list_and_items.test.ts @@ -5,34 +5,32 @@ * 2.0. */ -import { Readable } from 'stream'; - -import { SavedObjectsClientContract } from 'kibana/server'; - import { getImportExceptionsListItemSchemaMock, getImportExceptionsListSchemaMock, } from '../../../../lists/common/schemas/request/import_exceptions_schema.mock'; +import { createExtensionPointStorageMock } from '../extension_points/extension_point_storage.mock'; -import { importExceptionsAsStream } from './import_exception_list_and_items'; import { importExceptionLists } from './utils/import/import_exception_lists'; import { importExceptionListItems } from './utils/import/import_exception_list_items'; +import { getExceptionListSavedObjectClientMock, toReadable } from './exception_list_client.mock'; +import { ExceptionListClient } from './exception_list_client'; jest.mock('./utils/import/import_exception_lists'); jest.mock('./utils/import/import_exception_list_items'); -const toReadable = (items: unknown[]): Readable => { - const stringOfExceptions = items.map((item) => JSON.stringify(item)); +describe('import_exception_list_and_items', () => { + let exceptionListClient: ExceptionListClient; - return new Readable({ - read(): void { - this.push(stringOfExceptions.join('\n')); - this.push(null); - }, + beforeEach(() => { + exceptionListClient = new ExceptionListClient({ + enableServerExtensionPoints: false, + savedObjectsClient: getExceptionListSavedObjectClientMock(), + serverExtensionsClient: createExtensionPointStorageMock().extensionPointStorage.getClient(), + user: 'elastic', + }); }); -}; -describe('import_exception_list_and_items', () => { beforeEach(() => { (importExceptionLists as jest.Mock).mockResolvedValue({ errors: [], @@ -53,15 +51,13 @@ describe('import_exception_list_and_items', () => { success_count: 1, }); - const result = await importExceptionsAsStream({ + const result = await exceptionListClient.importExceptionListAndItems({ exceptionsToImport: toReadable([ getImportExceptionsListSchemaMock('test_list_id'), getImportExceptionsListItemSchemaMock('test_item_id', 'test_list_id'), ]), maxExceptionsImportSize: 10000, overwrite: false, - savedObjectsClient: {} as SavedObjectsClientContract, - user: 'elastic', }); expect(result).toEqual({ errors: [{ error: { message: 'some error occurred', status_code: 400 } }], @@ -81,15 +77,13 @@ describe('import_exception_list_and_items', () => { success_count: 1, }); - const result = await importExceptionsAsStream({ + const result = await exceptionListClient.importExceptionListAndItems({ exceptionsToImport: toReadable([ getImportExceptionsListSchemaMock('test_list_id'), getImportExceptionsListItemSchemaMock('test_item_id', 'test_list_id'), ]), maxExceptionsImportSize: 10000, overwrite: false, - savedObjectsClient: {} as SavedObjectsClientContract, - user: 'elastic', }); expect(result).toEqual({ errors: [{ error: { message: 'some error occurred', status_code: 400 } }], @@ -103,15 +97,13 @@ describe('import_exception_list_and_items', () => { }); test('it should report success true if no errors occurred importing lists and items', async () => { - const result = await importExceptionsAsStream({ + const result = await exceptionListClient.importExceptionListAndItems({ exceptionsToImport: toReadable([ getImportExceptionsListSchemaMock('test_list_id'), getImportExceptionsListItemSchemaMock('test_item_id', 'test_list_id'), ]), maxExceptionsImportSize: 10000, overwrite: false, - savedObjectsClient: {} as SavedObjectsClientContract, - user: 'elastic', }); expect(result).toEqual({ errors: [], diff --git a/x-pack/plugins/lists/server/services/exception_lists/import_exception_list_and_items.ts b/x-pack/plugins/lists/server/services/exception_lists/import_exception_list_and_items.ts index a982ef1a85b344..0657c3586dd131 100644 --- a/x-pack/plugins/lists/server/services/exception_lists/import_exception_list_and_items.ts +++ b/x-pack/plugins/lists/server/services/exception_lists/import_exception_list_and_items.ts @@ -23,10 +23,7 @@ import { importExceptionLists } from './utils/import/import_exception_lists'; import { importExceptionListItems } from './utils/import/import_exception_list_items'; import { getTupleErrorsAndUniqueExceptionLists } from './utils/import/dedupe_incoming_lists'; import { getTupleErrorsAndUniqueExceptionListItems } from './utils/import/dedupe_incoming_items'; -import { - createExceptionsStreamFromNdjson, - exceptionsChecksFromArray, -} from './utils/import/create_exceptions_stream_logic'; +import { createExceptionsStreamFromNdjson } from './utils/import/create_exceptions_stream_logic'; export interface PromiseFromStreams { lists: Array; @@ -63,15 +60,6 @@ interface ImportExceptionListAndItemsAsStreamOptions { savedObjectsClient: SavedObjectsClientContract; user: string; } - -interface ImportExceptionListAndItemsAsArrayOptions { - exceptionsToImport: Array; - maxExceptionsImportSize: number; - overwrite: boolean; - savedObjectsClient: SavedObjectsClientContract; - user: string; -} - export type ExceptionsImport = Array; export const CHUNK_PARSED_OBJECT_SIZE = 100; @@ -108,35 +96,7 @@ export const importExceptionsAsStream = async ({ }); }; -/** - * Import exception lists parent containers and items as array. The shape of the list and items - * will be validated here as well. - * @params exceptionsToImport {array} lists and items to be imported - * @params maxExceptionsImportSize {number} the max number of lists and items to import, defaults to 10,000 - * @params overwrite {boolean} whether or not to overwrite an exception list with imported list if a matching list_id found - * @params savedObjectsClient {object} SO client - * @params user {string} user importing list and items - * @return {ImportExceptionsResponseSchema} summary of imported count and errors - */ -export const importExceptionsAsArray = async ({ - exceptionsToImport, - maxExceptionsImportSize, - overwrite, - savedObjectsClient, - user, -}: ImportExceptionListAndItemsAsArrayOptions): Promise => { - // validation of import and sorting of lists and items - const objectsToImport = exceptionsChecksFromArray(exceptionsToImport, maxExceptionsImportSize); - - return importExceptions({ - exceptions: objectsToImport, - overwrite, - savedObjectsClient, - user, - }); -}; - -const importExceptions = async ({ +export const importExceptions = async ({ exceptions, overwrite, savedObjectsClient, diff --git a/x-pack/plugins/lists/server/services/extension_points/extension_point_storage.mock.ts b/x-pack/plugins/lists/server/services/extension_points/extension_point_storage.mock.ts index d0fab76e4b2123..2a63da494dc3b5 100644 --- a/x-pack/plugins/lists/server/services/extension_points/extension_point_storage.mock.ts +++ b/x-pack/plugins/lists/server/services/extension_points/extension_point_storage.mock.ts @@ -15,6 +15,7 @@ import { ExceptionsListPreDeleteItemServerExtension, ExceptionsListPreExportServerExtension, ExceptionsListPreGetOneItemServerExtension, + ExceptionsListPreImportServerExtension, ExceptionsListPreMultiListFindServerExtension, ExceptionsListPreSingleListFindServerExtension, ExceptionsListPreSummaryServerExtension, @@ -44,6 +45,8 @@ export interface ExtensionPointStorageContextMock { /** an exception list pre-delete extension */ exceptionPreDelete: jest.Mocked; callbackContext: jest.Mocked; + /** An Exception List pre-import extension point */ + exceptionPreImport: jest.Mocked; } export const createExtensionPointStorageMock = ( @@ -102,6 +105,11 @@ export const createExtensionPointStorageMock = ( type: 'exceptionsListPreDeleteItem', }; + const exceptionPreImport: ExtensionPointStorageContextMock['exceptionPreImport'] = { + callback: jest.fn(async ({ data }) => data), + type: 'exceptionsListPreImport', + }; + extensionPointStorage.add(exceptionPreCreate); extensionPointStorage.add(exceptionPreUpdate); extensionPointStorage.add(exceptionPreGetOne); @@ -110,6 +118,7 @@ export const createExtensionPointStorageMock = ( extensionPointStorage.add(exceptionPreExport); extensionPointStorage.add(exceptionPreSummary); extensionPointStorage.add(exceptionPreDelete); + extensionPointStorage.add(exceptionPreImport); return { callbackContext: { @@ -119,6 +128,7 @@ export const createExtensionPointStorageMock = ( exceptionPreDelete, exceptionPreExport, exceptionPreGetOne, + exceptionPreImport, exceptionPreMultiListFind, exceptionPreSingleListFind, exceptionPreSummary, diff --git a/x-pack/plugins/lists/server/services/extension_points/types.ts b/x-pack/plugins/lists/server/services/extension_points/types.ts index 68994f64edf6ea..c8fdddc4b0969b 100644 --- a/x-pack/plugins/lists/server/services/extension_points/types.ts +++ b/x-pack/plugins/lists/server/services/extension_points/types.ts @@ -18,6 +18,7 @@ import { GetExceptionListSummaryOptions, UpdateExceptionListItemOptions, } from '../exception_lists/exception_list_client_types'; +import { PromiseFromStreams } from '../exception_lists/import_exception_list_and_items'; /** * The `this` context provided to extension point's callback function @@ -59,6 +60,16 @@ interface ServerExtensionPointDefinition< callback: ServerExtensionCallback; } +/** + * Extension point is triggered prior processing an import of data into the Exceptions Lists. The callback + * in this extension will be called by both the `importExceptionListAndItems()` and + * `importExceptionListAndItemsAsArray()` + */ +export type ExceptionsListPreImportServerExtension = ServerExtensionPointDefinition< + 'exceptionsListPreImport', + PromiseFromStreams +>; + /** * Extension point is triggered prior to creating a new Exception List Item. Throw'ing will cause * the create operation to fail @@ -128,6 +139,7 @@ export type ExceptionsListPreDeleteItemServerExtension = ServerExtensionPointDef >; export type ExtensionPoint = + | ExceptionsListPreImportServerExtension | ExceptionsListPreCreateItemServerExtension | ExceptionsListPreUpdateItemServerExtension | ExceptionsListPreGetOneItemServerExtension diff --git a/x-pack/plugins/lists/server/types.ts b/x-pack/plugins/lists/server/types.ts index 4eece62b9b0a3c..8e2070f8d1b705 100644 --- a/x-pack/plugins/lists/server/types.ts +++ b/x-pack/plugins/lists/server/types.ts @@ -77,5 +77,12 @@ export type { ExtensionPoint, ExceptionsListPreUpdateItemServerExtension, ExceptionsListPreCreateItemServerExtension, + ExceptionsListPreGetOneItemServerExtension, + ExceptionsListPreImportServerExtension, + ExceptionsListPreSummaryServerExtension, + ExceptionsListPreExportServerExtension, + ExceptionsListPreMultiListFindServerExtension, + ExceptionsListPreSingleListFindServerExtension, + ExceptionsListPreDeleteItemServerExtension, ListsServerExtensionRegistrar, } from './services/extension_points'; diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/total_feature_importance_summary/feature_importance_summary.tsx b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/total_feature_importance_summary/feature_importance_summary.tsx index 8d5d4c5e4ca235..7d80b91f94c77e 100644 --- a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/total_feature_importance_summary/feature_importance_summary.tsx +++ b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/total_feature_importance_summary/feature_importance_summary.tsx @@ -18,7 +18,7 @@ import { RecursivePartial, AxisStyle, PartialTheme, - BarSeriesSpec, + BarSeriesProps, } from '@elastic/charts'; import { i18n } from '@kbn/i18n'; import { euiLightVars as euiVars } from '@kbn/ui-theme'; @@ -100,13 +100,18 @@ export const FeatureImportanceSummaryPanel: FC { - let sortedData: Array<{ - featureName: string; - meanImportance: number; - className?: FeatureImportanceClassName; - }> = []; - let _barSeriesSpec: Partial = { + interface Datum { + featureName: string; + meanImportance: number; + className?: FeatureImportanceClassName; + } + type PlotData = Datum[]; + type SeriesProps = Omit; + const [plotData, barSeriesSpec, showLegend, chartHeight] = useMemo< + [plotData: PlotData, barSeriesSpec: SeriesProps, showLegend?: boolean, chartHeight?: number] + >(() => { + let sortedData: PlotData = []; + let _barSeriesSpec: SeriesProps = { xAccessor: 'featureName', yAccessors: ['meanImportance'], name: i18n.translate( @@ -122,7 +127,7 @@ export const FeatureImportanceSummaryPanel: FC = ({ const showBrush = !!onCellsSelection; - const swimLaneConfig = useMemo(() => { + const themeOverrides = useMemo(() => { if (!showSwimlane) return {}; - const config: HeatmapSpec['config'] = { - grid: { - cellHeight: { - min: CELL_HEIGHT, - max: CELL_HEIGHT, + const theme: PartialTheme = { + heatmap: { + grid: { + cellHeight: { + min: CELL_HEIGHT, + max: CELL_HEIGHT, + }, + stroke: { + width: 1, + color: euiTheme.euiBorderColor, + }, }, - stroke: { - width: 1, - color: euiTheme.euiBorderColor, + cell: { + maxWidth: 'fill', + maxHeight: 'fill', + label: { + visible: false, + }, + border: { + stroke: euiTheme.euiBorderColor, + strokeWidth: 0, + }, }, - }, - cell: { - maxWidth: 'fill', - maxHeight: 'fill', - label: { - visible: false, + yAxisLabel: { + visible: showYAxis, + width: Y_AXIS_LABEL_WIDTH, + textColor: euiTheme.euiTextSubduedColor, + padding: Y_AXIS_LABEL_PADDING, + fontSize: parseInt(euiTheme.euiFontSizeXS, 10), }, - border: { - stroke: euiTheme.euiBorderColor, - strokeWidth: 0, + xAxisLabel: { + visible: showTimeline, + textColor: euiTheme.euiTextSubduedColor, + fontSize: parseInt(euiTheme.euiFontSizeXS, 10), + // Required to calculate where the swimlane ends + width: X_AXIS_RIGHT_OVERFLOW * 2, }, - }, - yAxisLabel: { - visible: showYAxis, - width: Y_AXIS_LABEL_WIDTH, - textColor: euiTheme.euiTextSubduedColor, - padding: Y_AXIS_LABEL_PADDING, - formatter: (laneLabel: string) => { - return laneLabel === '' ? EMPTY_FIELD_VALUE_LABEL : laneLabel; + brushMask: { + visible: showBrush, + fill: isDarkTheme ? 'rgb(30,31,35,80%)' : 'rgb(247,247,247,50%)', }, - fontSize: parseInt(euiTheme.euiFontSizeXS, 10), - }, - xAxisLabel: { - visible: showTimeline, - textColor: euiTheme.euiTextSubduedColor, - formatter: (v: number) => { - timeBuckets.setInterval(`${swimlaneData.interval}s`); - const scaledDateFormat = timeBuckets.getScaledDateFormat(); - return moment(v).format(scaledDateFormat); + brushArea: { + visible: showBrush, + stroke: isDarkTheme ? 'rgb(255, 255, 255)' : 'rgb(105, 112, 125)', }, - fontSize: parseInt(euiTheme.euiFontSizeXS, 10), - // Required to calculate where the swimlane ends - width: X_AXIS_RIGHT_OVERFLOW * 2, - }, - brushMask: { - visible: showBrush, - fill: isDarkTheme ? 'rgb(30,31,35,80%)' : 'rgb(247,247,247,50%)', - }, - brushArea: { - visible: showBrush, - stroke: isDarkTheme ? 'rgb(255, 255, 255)' : 'rgb(105, 112, 125)', + ...(showLegend ? { maxLegendHeight: LEGEND_HEIGHT } : {}), }, - ...(showLegend ? { maxLegendHeight: LEGEND_HEIGHT } : {}), - timeZone: 'UTC', }; - return config; + return theme; }, [ showSwimlane, swimlaneType, @@ -427,6 +421,7 @@ export const SwimlaneContainer: FC = ({ {showSwimlane && !isLoading && ( = ({ = ({ }, }} ySortPredicate="dataIndex" - config={swimLaneConfig} + yAxisLabelFormatter={(laneLabel) => { + return laneLabel === '' ? EMPTY_FIELD_VALUE_LABEL : String(laneLabel); + }} + xAxisLabelFormatter={(v) => { + timeBuckets.setInterval(`${swimlaneData.interval}s`); + const scaledDateFormat = timeBuckets.getScaledDateFormat(); + return moment(v).format(scaledDateFormat); + }} /> )} diff --git a/x-pack/plugins/observability/public/hooks/use_chart_theme.tsx b/x-pack/plugins/observability/public/hooks/use_chart_theme.tsx index 02fc0ef32dde99..42ff021679ce0e 100644 --- a/x-pack/plugins/observability/public/hooks/use_chart_theme.tsx +++ b/x-pack/plugins/observability/public/hooks/use_chart_theme.tsx @@ -5,34 +5,34 @@ * 2.0. */ +import { PartialTheme } from '@elastic/charts'; import { EUI_CHARTS_THEME_DARK, EUI_CHARTS_THEME_LIGHT } from '@elastic/eui/dist/eui_charts_theme'; import { useTheme } from './use_theme'; -export function useChartTheme() { +export function useChartTheme(): PartialTheme[] { const theme = useTheme(); const baseChartTheme = theme.darkMode ? EUI_CHARTS_THEME_DARK.theme : EUI_CHARTS_THEME_LIGHT.theme; - return { - ...baseChartTheme, - chartMargins: { - left: 10, - right: 10, - top: 10, - bottom: 10, + return [ + { + chartMargins: { + left: 10, + right: 10, + top: 10, + bottom: 10, + }, + background: { + color: 'transparent', + }, + lineSeriesStyle: { + point: { visible: false }, + }, + areaSeriesStyle: { + point: { visible: false }, + }, }, - background: { - ...baseChartTheme.background, - color: 'transparent', - }, - lineSeriesStyle: { - ...baseChartTheme.lineSeriesStyle, - point: { visible: false }, - }, - areaSeriesStyle: { - ...baseChartTheme.areaSeriesStyle, - point: { visible: false }, - }, - }; + baseChartTheme, + ]; } diff --git a/x-pack/plugins/observability/public/pages/overview/index.test.tsx b/x-pack/plugins/observability/public/pages/overview/index.test.tsx index b37ed1d873ba7f..682f979f44ec59 100644 --- a/x-pack/plugins/observability/public/pages/overview/index.test.tsx +++ b/x-pack/plugins/observability/public/pages/overview/index.test.tsx @@ -13,7 +13,7 @@ import { OverviewPage as OldOverviewPage } from './old_overview_page'; import { OverviewPage as NewOverviewPage } from './overview_page'; describe('Overview page', () => { - it('should render the old overview page when feature flag is disabled', () => { + it('should render the old overview page when feature flag is disabled and queryParams are empty', () => { const pluginContext = { config: { unsafe: { @@ -31,7 +31,7 @@ describe('Overview page', () => { expect(component.find(NewOverviewPage)).toHaveLength(0); }); - it('should render the new overview page when feature flag is enabled', () => { + it('should render the new overview page when feature flag is enabled and queryParams are empty', () => { const pluginContext = { config: { unsafe: { @@ -48,4 +48,40 @@ describe('Overview page', () => { expect(component.find(OldOverviewPage)).toHaveLength(0); expect(component.find(NewOverviewPage)).toHaveLength(1); }); + + it('should render the new overview page when feature flag is enabled and alpha param is in the url', () => { + const pluginContext = { + config: { + unsafe: { + overviewNext: { enabled: true }, + }, + }, + }; + + jest + .spyOn(PluginContext, 'usePluginContext') + .mockReturnValue(pluginContext as PluginContextValue); + + const component = shallow(); + expect(component.find(OldOverviewPage)).toHaveLength(0); + expect(component.find(NewOverviewPage)).toHaveLength(1); + }); + + it('should render the new overview page when feature flag is disabled and alpha param is in the url', () => { + const pluginContext = { + config: { + unsafe: { + overviewNext: { enabled: false }, + }, + }, + }; + + jest + .spyOn(PluginContext, 'usePluginContext') + .mockReturnValue(pluginContext as PluginContextValue); + + const component = shallow(); + expect(component.find(OldOverviewPage)).toHaveLength(0); + expect(component.find(NewOverviewPage)).toHaveLength(1); + }); }); diff --git a/x-pack/plugins/observability/public/pages/overview/index.tsx b/x-pack/plugins/observability/public/pages/overview/index.tsx index cc38445e3a0f28..6b773b303031e0 100644 --- a/x-pack/plugins/observability/public/pages/overview/index.tsx +++ b/x-pack/plugins/observability/public/pages/overview/index.tsx @@ -18,8 +18,9 @@ interface Props { export function OverviewPage(props: Props) { const { config } = usePluginContext(); + const alpha = props.routeParams.query.alpha; - if (config.unsafe.overviewNext.enabled) { + if (config.unsafe.overviewNext.enabled || alpha) { return ; } else { return ; diff --git a/x-pack/plugins/observability/public/routes/index.tsx b/x-pack/plugins/observability/public/routes/index.tsx index 6f38a66cdb643c..5f85ccd3af7b72 100644 --- a/x-pack/plugins/observability/public/routes/index.tsx +++ b/x-pack/plugins/observability/public/routes/index.tsx @@ -52,6 +52,7 @@ export const routes = { rangeTo: t.string, refreshPaused: jsonRt.pipe(t.boolean), refreshInterval: jsonRt.pipe(t.number), + alpha: jsonRt.pipe(t.boolean), }), }, exact: true, diff --git a/x-pack/plugins/security_solution/common/constants.ts b/x-pack/plugins/security_solution/common/constants.ts index 23bf41c3d91ee1..12df1874754f06 100644 --- a/x-pack/plugins/security_solution/common/constants.ts +++ b/x-pack/plugins/security_solution/common/constants.ts @@ -76,7 +76,7 @@ export const DEFAULT_INDICATOR_SOURCE_PATH = 'threat.indicator' as const; export const ENRICHMENT_DESTINATION_PATH = 'threat.enrichments' as const; export const DEFAULT_THREAT_INDEX_KEY = 'securitySolution:defaultThreatIndex' as const; export const DEFAULT_THREAT_INDEX_VALUE = ['logs-ti_*'] as const; -export const DEFAULT_THREAT_MATCH_QUERY = '@timestamp >= "now-30d"' as const; +export const DEFAULT_THREAT_MATCH_QUERY = '@timestamp >= "now-30d/d"' as const; export enum SecurityPageName { administration = 'administration', diff --git a/x-pack/plugins/security_solution/cypress/ccs_integration/detection_alerts/alerts_details.spec.ts b/x-pack/plugins/security_solution/cypress/ccs_integration/detection_alerts/alerts_details.spec.ts index 78bb13395f79b6..7e07693cb078af 100644 --- a/x-pack/plugins/security_solution/cypress/ccs_integration/detection_alerts/alerts_details.spec.ts +++ b/x-pack/plugins/security_solution/cypress/ccs_integration/detection_alerts/alerts_details.spec.ts @@ -7,11 +7,7 @@ import { JSON_TEXT } from '../../screens/alerts_details'; -import { - expandFirstAlert, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; +import { expandFirstAlert, waitForAlertsPanelToBeLoaded } from '../../tasks/alerts'; import { openJsonView } from '../../tasks/alerts_details'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; @@ -27,8 +23,6 @@ describe('Alert details with unmapped fields', () => { cleanKibana(); esArchiverCCSLoad('unmapped_fields'); loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); createCustomRuleActivated(getUnmappedCCSRule()); loginAndWaitForPageWithoutDateRange(ALERTS_URL); waitForAlertsPanelToBeLoaded(); diff --git a/x-pack/plugins/security_solution/cypress/ccs_integration/detection_rules/event_correlation_rule.spec.ts b/x-pack/plugins/security_solution/cypress/ccs_integration/detection_rules/event_correlation_rule.spec.ts index c20e6cf6b63700..7a7b567e121fc4 100644 --- a/x-pack/plugins/security_solution/cypress/ccs_integration/detection_rules/event_correlation_rule.spec.ts +++ b/x-pack/plugins/security_solution/cypress/ccs_integration/detection_rules/event_correlation_rule.spec.ts @@ -15,7 +15,7 @@ import { goToRuleDetails, waitForRulesTableToBeLoaded, } from '../../tasks/alerts_detection_rules'; -import { createSignalsIndex, createEventCorrelationRule } from '../../tasks/api_calls/rules'; +import { createEventCorrelationRule } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; import { waitForAlertsToPopulate, waitForTheRuleToBeExecuted } from '../../tasks/create_new_rule'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; @@ -27,7 +27,6 @@ describe('Detection rules', function () { beforeEach('Reset signals index', function () { cleanKibana(); - createSignalsIndex(); }); it('EQL rule on remote indices generates alerts', function () { diff --git a/x-pack/plugins/security_solution/cypress/integration/data_sources/create_runtime_field.spec.ts b/x-pack/plugins/security_solution/cypress/integration/data_sources/create_runtime_field.spec.ts index 1c27eb8afff14f..79a2314af9397a 100644 --- a/x-pack/plugins/security_solution/cypress/integration/data_sources/create_runtime_field.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/data_sources/create_runtime_field.spec.ts @@ -13,7 +13,6 @@ import { openTimelineFieldsBrowser, populateTimeline } from '../../tasks/timelin import { HOSTS_URL, ALERTS_URL } from '../../urls/navigation'; -import { waitForAlertsIndexToBeCreated, waitForAlertsPanelToBeLoaded } from '../../tasks/alerts'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { getNewRule } from '../../objects/rule'; @@ -30,8 +29,6 @@ describe('Create DataView runtime field', () => { it('adds field to alert table', () => { const fieldName = 'field.name.alert.page'; loginAndWaitForPage(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); createCustomRuleActivated(getNewRule()); refreshPage(); waitForAlertsToPopulate(500); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/acknowledged.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/acknowledged.spec.ts index 2dad11ac7e9375..0887c4774f9a8a 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/acknowledged.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/acknowledged.spec.ts @@ -14,11 +14,9 @@ import { import { selectNumberOfAlerts, - waitForAlertsPanelToBeLoaded, waitForAlerts, markAcknowledgedFirstAlert, goToAcknowledgedAlerts, - waitForAlertsIndexToBeCreated, } from '../../tasks/alerts'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; @@ -32,8 +30,6 @@ describe('Marking alerts as acknowledged', () => { beforeEach(() => { cleanKibana(); loginAndWaitForPage(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); createCustomRuleActivated(getNewRule()); refreshPage(); waitForAlertsToPopulate(500); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_details.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_details.spec.ts index 964819164b315f..16beb418d0d13b 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_details.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_details.spec.ts @@ -13,17 +13,14 @@ import { TABLE_ROWS, } from '../../screens/alerts_details'; -import { - expandFirstAlert, - refreshAlerts, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; +import { expandFirstAlert } from '../../tasks/alerts'; import { openJsonView, openTable } from '../../tasks/alerts_details'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; +import { waitForAlertsToPopulate } from '../../tasks/create_new_rule'; import { esArchiverLoad } from '../../tasks/es_archiver'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; +import { refreshPage } from '../../tasks/security_header'; import { getUnmappedRule } from '../../objects/rule'; @@ -34,12 +31,9 @@ describe('Alert details with unmapped fields', () => { cleanKibana(); esArchiverLoad('unmapped_fields'); loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); createCustomRuleActivated(getUnmappedRule()); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - refreshAlerts(); + refreshPage(); + waitForAlertsToPopulate(); expandFirstAlert(); }); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_detection_callouts_index_outdated.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_detection_callouts_index_outdated.spec.ts index eaed80c484f603..3c6b2374e6ccfb 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_detection_callouts_index_outdated.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_detection_callouts_index_outdated.spec.ts @@ -15,7 +15,6 @@ import { loginAndWaitForPageWithoutDateRange, waitForPageWithoutDateRange, } from '../../tasks/login'; -import { waitForAlertsIndexToBeCreated } from '../../tasks/alerts'; import { goToRuleDetails } from '../../tasks/alerts_detection_rules'; import { createCustomRule, deleteCustomRule } from '../../tasks/api_calls/rules'; import { getCallOut, waitForCallOutToBeShown } from '../../tasks/common/callouts'; @@ -38,7 +37,6 @@ describe('Detections > Need Admin Callouts indicating an admin is needed to migr // Otherwise the app will be disabled and show a "welcome"-like page. cleanKibana(); loginAndWaitForPageWithoutDateRange(ALERTS_URL, ROLES.platform_engineer); - waitForAlertsIndexToBeCreated(); // After that we can login as a soc manager. login(ROLES.soc_manager); @@ -52,7 +50,7 @@ describe('Detections > Need Admin Callouts indicating an admin is needed to migr // need admin callouts being shown. cy.intercept('GET', '/api/detection_engine/index', { index_mapping_outdated: true, - name: '.siem-signals-default', + name: '.alerts-security.alerts-default', }); }); context('On Detections home page', () => { @@ -102,7 +100,7 @@ describe('Detections > Need Admin Callouts indicating an admin is needed to migr // need admin callouts being shown. cy.intercept('GET', '/api/detection_engine/index', { index_mapping_outdated: false, - name: '.siem-signals-default', + name: '.alerts-security.alerts-default', }); }); context('On Detections home page', () => { @@ -152,7 +150,7 @@ describe('Detections > Need Admin Callouts indicating an admin is needed to migr // need admin callouts being shown. cy.intercept('GET', '/api/detection_engine/index', { index_mapping_outdated: null, - name: '.siem-signals-default', + name: '.alerts-security.alerts-default', }); }); context('On Detections home page', () => { diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/attach_to_case.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/attach_to_case.spec.ts index e5c9832c52fd7b..ce232f7b841571 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/attach_to_case.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/attach_to_case.spec.ts @@ -8,11 +8,7 @@ import { getNewRule } from '../../objects/rule'; import { ROLES } from '../../../common/test'; -import { - expandFirstAlertActions, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; +import { expandFirstAlertActions } from '../../tasks/alerts'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; import { waitForAlertsToPopulate } from '../../tasks/create_new_rule'; @@ -32,8 +28,6 @@ describe('Alerts timeline', () => { // First we login as a privileged user to create alerts. cleanKibana(); loginAndWaitForPage(ALERTS_URL, ROLES.platform_engineer); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); createCustomRuleActivated(getNewRule()); refreshPage(); waitForAlertsToPopulate(500); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/building_block_alerts.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/building_block_alerts.spec.ts index 94418e61b40532..bdd83d93fa25db 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/building_block_alerts.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/building_block_alerts.spec.ts @@ -8,7 +8,6 @@ import { getBuildingBlockRule } from '../../objects/rule'; import { OVERVIEW_ALERTS_HISTOGRAM } from '../../screens/overview'; import { OVERVIEW } from '../../screens/security_header'; -import { waitForAlertsIndexToBeCreated, waitForAlertsPanelToBeLoaded } from '../../tasks/alerts'; import { goToRuleDetails } from '../../tasks/alerts_detection_rules'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; @@ -23,8 +22,6 @@ describe('Alerts generated by building block rules', () => { beforeEach(() => { cleanKibana(); loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); }); it('Alerts should be visible on the Rule Detail page and not visible on the Overview page', () => { diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/closing.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/closing.spec.ts index 860a4e6089a275..efa7f31455b1f2 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/closing.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/closing.spec.ts @@ -21,9 +21,7 @@ import { goToOpenedAlerts, openAlerts, selectNumberOfAlerts, - waitForAlertsPanelToBeLoaded, waitForAlerts, - waitForAlertsIndexToBeCreated, } from '../../tasks/alerts'; import { createCustomRuleActivated, deleteCustomRule } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; @@ -37,8 +35,6 @@ describe('Closing alerts', () => { beforeEach(() => { cleanKibana(); loginAndWaitForPage(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); createCustomRuleActivated(getNewRule(), '1', '100m', 100); refreshPage(); waitForAlertsToPopulate(100); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/investigate_in_timeline.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/investigate_in_timeline.spec.ts index 01a06b3d592666..033a559ffff98c 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/investigate_in_timeline.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/investigate_in_timeline.spec.ts @@ -8,11 +8,7 @@ import { getNewRule } from '../../objects/rule'; import { PROVIDER_BADGE } from '../../screens/timeline'; -import { - investigateFirstAlertInTimeline, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; +import { investigateFirstAlertInTimeline } from '../../tasks/alerts'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; import { waitForAlertsToPopulate } from '../../tasks/create_new_rule'; @@ -25,8 +21,6 @@ describe('Alerts timeline', () => { beforeEach(() => { cleanKibana(); loginAndWaitForPage(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); createCustomRuleActivated(getNewRule()); refreshPage(); waitForAlertsToPopulate(500); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/missing_privileges_callout.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/missing_privileges_callout.spec.ts index 0db30179284e08..64377c03af6c4d 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/missing_privileges_callout.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/missing_privileges_callout.spec.ts @@ -15,7 +15,6 @@ import { loginAndWaitForPageWithoutDateRange, waitForPageWithoutDateRange, } from '../../tasks/login'; -import { waitForAlertsIndexToBeCreated } from '../../tasks/alerts'; import { goToRuleDetails } from '../../tasks/alerts_detection_rules'; import { createCustomRule, deleteCustomRule } from '../../tasks/api_calls/rules'; import { getCallOut, waitForCallOutToBeShown, dismissCallOut } from '../../tasks/common/callouts'; @@ -48,7 +47,6 @@ describe('Detections > Callouts', () => { // Otherwise the app will be disabled and show a "welcome"-like page. cleanKibana(); loginAndWaitForPageWithoutDateRange(ALERTS_URL, ROLES.platform_engineer); - waitForAlertsIndexToBeCreated(); // After that we can login as a read-only user. login(ROLES.reader); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/opening.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/opening.spec.ts index 87cef27b5b3466..20a2f6ebed3e2f 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_alerts/opening.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_alerts/opening.spec.ts @@ -19,9 +19,7 @@ import { goToOpenedAlerts, openFirstAlert, selectNumberOfAlerts, - waitForAlertsPanelToBeLoaded, waitForAlerts, - waitForAlertsIndexToBeCreated, } from '../../tasks/alerts'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; @@ -35,8 +33,6 @@ describe('Opening alerts', () => { beforeEach(() => { cleanKibana(); loginAndWaitForPage(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); createCustomRuleActivated(getNewRule()); refreshPage(); waitForAlertsToPopulate(500); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/custom_query_rule.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/custom_query_rule.spec.ts index 060bc8ade92191..a6731a1d98eeda 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/custom_query_rule.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/custom_query_rule.spec.ts @@ -73,11 +73,6 @@ import { TIMELINE_TEMPLATE_DETAILS, } from '../../screens/rule_details'; -import { - goToManageAlertsDetectionRules, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; import { changeRowsPerPageTo100, deleteFirstRule, @@ -85,10 +80,8 @@ import { deleteSelectedRules, editFirstRule, filterByCustomRules, - goToCreateNewRule, goToRuleDetails, selectNumberOfRules, - waitForRulesTableToBeLoaded, waitForRulesTableToBeRefreshed, } from '../../tasks/alerts_detection_rules'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; @@ -111,7 +104,7 @@ import { saveEditedRule, waitForKibana } from '../../tasks/edit_rule'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; import { activatesRule } from '../../tasks/rule_details'; -import { ALERTS_URL } from '../../urls/navigation'; +import { RULE_CREATION, DETECTIONS_RULE_MANAGEMENT_URL } from '../../urls/navigation'; describe('Custom detection rules creation', () => { const expectedUrls = getNewRule().referenceUrls.join(''); @@ -134,12 +127,7 @@ describe('Custom detection rules creation', () => { }); it('Creates and activates a new rule', function () { - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); - goToManageAlertsDetectionRules(); - waitForRulesTableToBeLoaded(); - goToCreateNewRule(); + loginAndWaitForPageWithoutDateRange(RULE_CREATION); fillDefineCustomRuleWithImportedQueryAndContinue(this.rule); fillAboutRuleAndContinue(this.rule); fillScheduleRuleAndContinue(this.rule); @@ -221,9 +209,7 @@ describe('Custom detection rules deletion and edition', () => { context('Deletion', () => { beforeEach(() => { cleanKibana(); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - goToManageAlertsDetectionRules(); - waitForAlertsIndexToBeCreated(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); createCustomRuleActivated(getNewRule(), 'rule1'); createCustomRuleActivated(getNewOverrideRule(), 'rule2'); @@ -323,9 +309,7 @@ describe('Custom detection rules deletion and edition', () => { beforeEach(() => { cleanKibana(); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - goToManageAlertsDetectionRules(); - waitForAlertsIndexToBeCreated(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); createCustomRuleActivated(getExistingRule(), 'rule1'); reload(); }); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/event_correlation_rule.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/event_correlation_rule.spec.ts index d764a12f951d8d..1945fe78ae636b 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/event_correlation_rule.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/event_correlation_rule.spec.ts @@ -43,17 +43,10 @@ import { TIMELINE_TEMPLATE_DETAILS, } from '../../screens/rule_details'; -import { - goToManageAlertsDetectionRules, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; import { changeRowsPerPageTo100, filterByCustomRules, - goToCreateNewRule, goToRuleDetails, - waitForRulesTableToBeLoaded, } from '../../tasks/alerts_detection_rules'; import { createTimeline } from '../../tasks/api_calls/timelines'; import { cleanKibana } from '../../tasks/common'; @@ -68,7 +61,7 @@ import { } from '../../tasks/create_new_rule'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; -import { ALERTS_URL } from '../../urls/navigation'; +import { RULE_CREATION } from '../../urls/navigation'; describe('Detection rules, EQL', () => { const expectedUrls = getEqlRule().referenceUrls.join(''); @@ -92,12 +85,7 @@ describe('Detection rules, EQL', () => { }); it('Creates and activates a new EQL rule', function () { - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); - goToManageAlertsDetectionRules(); - waitForRulesTableToBeLoaded(); - goToCreateNewRule(); + loginAndWaitForPageWithoutDateRange(RULE_CREATION); selectEqlRuleType(); fillDefineEqlRuleAndContinue(this.rule); fillAboutRuleAndContinue(this.rule); @@ -189,12 +177,7 @@ describe('Detection rules, sequence EQL', () => { }); it('Creates and activates a new EQL rule with a sequence', function () { - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); - goToManageAlertsDetectionRules(); - waitForRulesTableToBeLoaded(); - goToCreateNewRule(); + loginAndWaitForPageWithoutDateRange(RULE_CREATION); selectEqlRuleType(); fillDefineEqlRuleAndContinue(this.rule); fillAboutRuleAndContinue(this.rule); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/export_rule.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/export_rule.spec.ts index 1923343f65e61d..0314c0c3a66b62 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/export_rule.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/export_rule.spec.ts @@ -6,17 +6,12 @@ */ import { expectedExportedRule, getNewRule } from '../../objects/rule'; -import { - goToManageAlertsDetectionRules, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; import { exportFirstRule, getRulesImportExportToast } from '../../tasks/alerts_detection_rules'; import { createCustomRule } from '../../tasks/api_calls/rules'; import { cleanKibana } from '../../tasks/common'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; -import { ALERTS_URL } from '../../urls/navigation'; +import { DETECTIONS_RULE_MANAGEMENT_URL } from '../../urls/navigation'; describe('Export rules', () => { beforeEach(() => { @@ -25,14 +20,11 @@ describe('Export rules', () => { 'POST', '/api/detection_engine/rules/_export?exclude_export_details=false&file_name=rules_export.ndjson' ).as('export'); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); createCustomRule(getNewRule()).as('ruleResponse'); }); it('Exports a custom rule', function () { - goToManageAlertsDetectionRules(); exportFirstRule(); cy.wait('@export').then(({ response }) => { cy.wrap(response?.body).should('eql', expectedExportedRule(this.ruleResponse)); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/import_rules.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/import_rules.spec.ts index f6aeafaa97e7ac..c82d2c680525fc 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/import_rules.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/import_rules.spec.ts @@ -5,11 +5,6 @@ * 2.0. */ -import { - goToManageAlertsDetectionRules, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; import { getRulesImportExportToast, importRules, @@ -18,16 +13,13 @@ import { import { cleanKibana, reload } from '../../tasks/common'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; -import { ALERTS_URL } from '../../urls/navigation'; +import { DETECTIONS_RULE_MANAGEMENT_URL } from '../../urls/navigation'; describe('Import rules', () => { beforeEach(() => { cleanKibana(); cy.intercept('POST', '/api/detection_engine/rules/_import*').as('import'); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); - goToManageAlertsDetectionRules(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); }); it('Imports a custom rule with exceptions', function () { diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/indicator_match_rule.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/indicator_match_rule.spec.ts index 3d93ad96706e38..aede7552ed53bb 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/indicator_match_rule.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/indicator_match_rule.spec.ts @@ -59,8 +59,6 @@ import { INDICATOR_MATCH_ROW_RENDER, PROVIDER_BADGE } from '../../screens/timeli import { goToManageAlertsDetectionRules, investigateFirstAlertInTimeline, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, } from '../../tasks/alerts'; import { changeRowsPerPageTo100, @@ -115,7 +113,7 @@ import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; import { goBackToAllRulesTable } from '../../tasks/rule_details'; import { ALERTS_URL, RULE_CREATION } from '../../urls/navigation'; -const DEFAULT_THREAT_MATCH_QUERY = '@timestamp >= "now-30d"'; +const DEFAULT_THREAT_MATCH_QUERY = '@timestamp >= "now-30d/d"'; describe('indicator match', () => { describe('Detection rules, Indicator Match', () => { @@ -412,8 +410,6 @@ describe('indicator match', () => { }); it('Creates and activates a new Indicator Match rule', () => { - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); goToManageAlertsDetectionRules(); waitForRulesTableToBeLoaded(); goToCreateNewRule(); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/links.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/links.spec.ts index 85eb68a6cdfa95..aa6ad73c019b08 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/links.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/links.spec.ts @@ -7,20 +7,16 @@ import { getNewRule } from '../../objects/rule'; import { RULES_MONIROTING_TABLE, RULE_NAME } from '../../screens/alerts_detection_rules'; -import { goToManageAlertsDetectionRules, waitForAlertsIndexToBeCreated } from '../../tasks/alerts'; import { createCustomRuleActivated } from '../../tasks/api_calls/rules'; import { cleanKibana, reload } from '../../tasks/common'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; -import { ALERTS_URL } from '../../urls/navigation'; +import { DETECTIONS_RULE_MANAGEMENT_URL } from '../../urls/navigation'; describe('Rules talbes links', () => { beforeEach(() => { cleanKibana(); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - goToManageAlertsDetectionRules(); - waitForAlertsIndexToBeCreated(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); createCustomRuleActivated(getNewRule(), 'rule1'); - reload(); }); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/machine_learning_rule.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/machine_learning_rule.spec.ts index e66f8f55be9869..341c59677e77c5 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/machine_learning_rule.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/machine_learning_rule.spec.ts @@ -40,17 +40,10 @@ import { TIMELINE_TEMPLATE_DETAILS, } from '../../screens/rule_details'; -import { - goToManageAlertsDetectionRules, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; import { changeRowsPerPageTo100, filterByCustomRules, - goToCreateNewRule, goToRuleDetails, - waitForRulesTableToBeLoaded, } from '../../tasks/alerts_detection_rules'; import { cleanKibana } from '../../tasks/common'; import { @@ -62,7 +55,7 @@ import { } from '../../tasks/create_new_rule'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; -import { ALERTS_URL } from '../../urls/navigation'; +import { RULE_CREATION } from '../../urls/navigation'; describe('Detection rules, machine learning', () => { const expectedUrls = getMachineLearningRule().referenceUrls.join(''); @@ -76,12 +69,7 @@ describe('Detection rules, machine learning', () => { }); it('Creates and activates a new ml rule', () => { - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); - goToManageAlertsDetectionRules(); - waitForRulesTableToBeLoaded(); - goToCreateNewRule(); + loginAndWaitForPageWithoutDateRange(RULE_CREATION); selectMachineLearningRuleType(); fillDefineMachineLearningRuleAndContinue(getMachineLearningRule()); fillAboutRuleAndContinue(getMachineLearningRule()); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/override.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/override.spec.ts index dc22c5103e8d7e..238f580f296c4b 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/override.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/override.spec.ts @@ -54,17 +54,10 @@ import { TIMESTAMP_OVERRIDE_DETAILS, } from '../../screens/rule_details'; -import { - goToManageAlertsDetectionRules, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; import { changeRowsPerPageTo100, filterByCustomRules, - goToCreateNewRule, goToRuleDetails, - waitForRulesTableToBeLoaded, } from '../../tasks/alerts_detection_rules'; import { createTimeline } from '../../tasks/api_calls/timelines'; import { cleanKibana } from '../../tasks/common'; @@ -78,7 +71,7 @@ import { } from '../../tasks/create_new_rule'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; -import { ALERTS_URL } from '../../urls/navigation'; +import { RULE_CREATION } from '../../urls/navigation'; describe('Detection rules, override', () => { const expectedUrls = getNewOverrideRule().referenceUrls.join(''); @@ -100,12 +93,7 @@ describe('Detection rules, override', () => { }); it('Creates and activates a new custom rule with override option', function () { - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); - goToManageAlertsDetectionRules(); - waitForRulesTableToBeLoaded(); - goToCreateNewRule(); + loginAndWaitForPageWithoutDateRange(RULE_CREATION); fillDefineCustomRuleWithImportedQueryAndContinue(this.rule); fillAboutRuleWithOverrideAndContinue(this.rule); fillScheduleRuleAndContinue(this.rule); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/prebuilt_rules.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/prebuilt_rules.spec.ts index 1a6b1dff7d0783..01614ea98b007c 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/prebuilt_rules.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/prebuilt_rules.spec.ts @@ -17,7 +17,6 @@ import { SELECT_ALL_RULES_ON_PAGE_CHECKBOX, } from '../../screens/alerts_detection_rules'; -import { goToManageAlertsDetectionRules, waitForAlertsIndexToBeCreated } from '../../tasks/alerts'; import { changeRowsPerPageTo100, deleteFirstRule, @@ -25,7 +24,6 @@ import { loadPrebuiltDetectionRules, reloadDeletedRules, selectNumberOfRules, - waitForRulesTableToBeLoaded, waitForPrebuiltDetectionRulesToBeLoaded, selectAllRules, confirmRulesDelete, @@ -36,7 +34,7 @@ import { } from '../../tasks/alerts_detection_rules'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; -import { ALERTS_URL } from '../../urls/navigation'; +import { DETECTIONS_RULE_MANAGEMENT_URL } from '../../urls/navigation'; import { totalNumberOfPrebuiltRules } from '../../objects/rule'; import { cleanKibana } from '../../tasks/common'; @@ -52,10 +50,7 @@ describe('Alerts rules, prebuilt rules', () => { const expectedNumberOfPages = Math.ceil(totalNumberOfPrebuiltRules / rowsPerPage); const expectedElasticRulesBtnText = `Elastic rules (${expectedNumberOfRules})`; - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsIndexToBeCreated(); - goToManageAlertsDetectionRules(); - waitForRulesTableToBeLoaded(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); loadPrebuiltDetectionRules(); waitForPrebuiltDetectionRulesToBeLoaded(); @@ -74,10 +69,7 @@ describe('Actions with prebuilt rules', () => { const expectedElasticRulesBtnText = `Elastic rules (${expectedNumberOfRules})`; cleanKibana(); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsIndexToBeCreated(); - goToManageAlertsDetectionRules(); - waitForRulesTableToBeLoaded(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); loadPrebuiltDetectionRules(); waitForPrebuiltDetectionRulesToBeLoaded(); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/sorting.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/sorting.spec.ts index 7e2408657abeb7..23a02eb6dd1be6 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/sorting.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/sorting.spec.ts @@ -15,11 +15,7 @@ import { pageSelector, } from '../../screens/alerts_detection_rules'; -import { - goToManageAlertsDetectionRules, - waitForAlertsPanelToBeLoaded, - waitForAlertsIndexToBeCreated, -} from '../../tasks/alerts'; +import { goToManageAlertsDetectionRules, waitForAlertsPanelToBeLoaded } from '../../tasks/alerts'; import { activateRule, changeRowsPerPageTo, @@ -48,7 +44,6 @@ describe('Alerts detection rules', () => { cleanKibana(); loginAndWaitForPageWithoutDateRange(ALERTS_URL); waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); createCustomRule(getNewRule(), '1'); createCustomRule(getExistingRule(), '2'); createCustomRule(getNewOverrideRule(), '3'); @@ -79,7 +74,6 @@ describe('Alerts detection rules', () => { goToManageAlertsDetectionRules(); waitForRulesTableToBeLoaded(); - changeRowsPerPageTo(5); const FIRST_PAGE_SELECTOR = pageSelector(1); diff --git a/x-pack/plugins/security_solution/cypress/integration/detection_rules/threshold_rule.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/threshold_rule.spec.ts index 81022a43ff6830..9872cc3b315e87 100644 --- a/x-pack/plugins/security_solution/cypress/integration/detection_rules/threshold_rule.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/detection_rules/threshold_rule.spec.ts @@ -51,11 +51,7 @@ import { TIMELINE_TEMPLATE_DETAILS, } from '../../screens/rule_details'; -import { - goToManageAlertsDetectionRules, - waitForAlertsIndexToBeCreated, - waitForAlertsPanelToBeLoaded, -} from '../../tasks/alerts'; +import { goToManageAlertsDetectionRules } from '../../tasks/alerts'; import { changeRowsPerPageTo100, filterByCustomRules, @@ -79,7 +75,7 @@ import { } from '../../tasks/create_new_rule'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; -import { ALERTS_URL } from '../../urls/navigation'; +import { RULE_CREATION } from '../../urls/navigation'; describe('Detection rules, threshold', () => { let rule = getNewThresholdRule(); @@ -94,15 +90,10 @@ describe('Detection rules, threshold', () => { createTimeline(getNewThresholdRule().timeline).then((response) => { rule.timeline.id = response.body.data.persistTimeline.timeline.savedObjectId; }); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); + loginAndWaitForPageWithoutDateRange(RULE_CREATION); }); it('Creates and activates a new threshold rule', () => { - goToManageAlertsDetectionRules(); - waitForRulesTableToBeLoaded(); - goToCreateNewRule(); selectThresholdRuleType(); fillDefineThresholdRuleAndContinue(rule); fillAboutRuleAndContinue(rule); diff --git a/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_modal.spec.ts b/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_modal.spec.ts index 829f98b4a537db..557cb9f36721c0 100644 --- a/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_modal.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_modal.spec.ts @@ -9,7 +9,6 @@ import { getNewRule } from '../../objects/rule'; import { RULE_STATUS } from '../../screens/create_new_rule'; -import { goToManageAlertsDetectionRules, waitForAlertsIndexToBeCreated } from '../../tasks/alerts'; import { createCustomRule } from '../../tasks/api_calls/rules'; import { goToRuleDetails } from '../../tasks/alerts_detection_rules'; import { esArchiverLoad, esArchiverUnload } from '../../tasks/es_archiver'; @@ -32,8 +31,8 @@ import { EXCEPTION_FIELD_LIST, } from '../../screens/exceptions'; -import { ALERTS_URL } from '../../urls/navigation'; -import { cleanKibana } from '../../tasks/common'; +import { DETECTIONS_RULE_MANAGEMENT_URL } from '../../urls/navigation'; +import { cleanKibana, reload } from '../../tasks/common'; // NOTE: You might look at these tests and feel they're overkill, // but the exceptions modal has a lot of logic making it difficult @@ -43,10 +42,9 @@ import { cleanKibana } from '../../tasks/common'; describe('Exceptions modal', () => { before(() => { cleanKibana(); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsIndexToBeCreated(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); createCustomRule(getNewRule()); - goToManageAlertsDetectionRules(); + reload(); goToRuleDetails(); cy.get(RULE_STATUS).should('have.text', '—'); diff --git a/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_table.spec.ts b/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_table.spec.ts index 6fc9ba0f0c9333..538fa3a008a1fd 100644 --- a/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_table.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_table.spec.ts @@ -14,7 +14,6 @@ import { getNewRule } from '../../objects/rule'; import { RULE_STATUS } from '../../screens/create_new_rule'; -import { goToManageAlertsDetectionRules, waitForAlertsIndexToBeCreated } from '../../tasks/alerts'; import { createCustomRule } from '../../tasks/api_calls/rules'; import { goToRuleDetails } from '../../tasks/alerts_detection_rules'; import { esArchiverLoad, esArchiverUnload } from '../../tasks/es_archiver'; @@ -28,8 +27,8 @@ import { goToExceptionsTab, } from '../../tasks/rule_details'; -import { ALERTS_URL, EXCEPTIONS_URL } from '../../urls/navigation'; -import { cleanKibana } from '../../tasks/common'; +import { DETECTIONS_RULE_MANAGEMENT_URL, EXCEPTIONS_URL } from '../../urls/navigation'; +import { cleanKibana, reload } from '../../tasks/common'; import { deleteExceptionListWithRuleReference, deleteExceptionListWithoutRuleReference, @@ -47,10 +46,9 @@ import { createExceptionList } from '../../tasks/api_calls/exceptions'; describe('Exceptions Table', () => { before(() => { cleanKibana(); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsIndexToBeCreated(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); createCustomRule(getNewRule()); - goToManageAlertsDetectionRules(); + reload(); goToRuleDetails(); cy.get(RULE_STATUS).should('have.text', '—'); diff --git a/x-pack/plugins/security_solution/cypress/integration/exceptions/from_alert.spec.ts b/x-pack/plugins/security_solution/cypress/integration/exceptions/from_alert.spec.ts index 84ad93fa089434..d420b7122a94af 100644 --- a/x-pack/plugins/security_solution/cypress/integration/exceptions/from_alert.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/exceptions/from_alert.spec.ts @@ -11,13 +11,7 @@ import { getNewRule } from '../../objects/rule'; import { ALERTS_COUNT, EMPTY_ALERT_TABLE, NUMBER_OF_ALERTS } from '../../screens/alerts'; import { RULE_STATUS } from '../../screens/create_new_rule'; -import { - addExceptionFromFirstAlert, - goToClosedAlerts, - goToManageAlertsDetectionRules, - goToOpenedAlerts, - waitForAlertsIndexToBeCreated, -} from '../../tasks/alerts'; +import { addExceptionFromFirstAlert, goToClosedAlerts, goToOpenedAlerts } from '../../tasks/alerts'; import { createCustomRule } from '../../tasks/api_calls/rules'; import { goToRuleDetails } from '../../tasks/alerts_detection_rules'; import { waitForAlertsToPopulate } from '../../tasks/create_new_rule'; @@ -32,18 +26,17 @@ import { waitForTheRuleToBeExecuted, } from '../../tasks/rule_details'; -import { ALERTS_URL } from '../../urls/navigation'; -import { cleanKibana } from '../../tasks/common'; +import { DETECTIONS_RULE_MANAGEMENT_URL } from '../../urls/navigation'; +import { cleanKibana, reload } from '../../tasks/common'; describe('From alert', () => { const NUMBER_OF_AUDITBEAT_EXCEPTIONS_ALERTS = '1 alert'; beforeEach(() => { cleanKibana(); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsIndexToBeCreated(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); createCustomRule(getNewRule(), 'rule_testing', '10s'); - goToManageAlertsDetectionRules(); + reload(); goToRuleDetails(); cy.get(RULE_STATUS).should('have.text', '—'); diff --git a/x-pack/plugins/security_solution/cypress/integration/exceptions/from_rule.spec.ts b/x-pack/plugins/security_solution/cypress/integration/exceptions/from_rule.spec.ts index ea6b6cf0186b49..3a758203871039 100644 --- a/x-pack/plugins/security_solution/cypress/integration/exceptions/from_rule.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/exceptions/from_rule.spec.ts @@ -11,12 +11,7 @@ import { getNewRule } from '../../objects/rule'; import { ALERTS_COUNT, EMPTY_ALERT_TABLE, NUMBER_OF_ALERTS } from '../../screens/alerts'; import { RULE_STATUS } from '../../screens/create_new_rule'; -import { - goToClosedAlerts, - goToManageAlertsDetectionRules, - goToOpenedAlerts, - waitForAlertsIndexToBeCreated, -} from '../../tasks/alerts'; +import { goToClosedAlerts, goToOpenedAlerts } from '../../tasks/alerts'; import { createCustomRule } from '../../tasks/api_calls/rules'; import { goToRuleDetails } from '../../tasks/alerts_detection_rules'; import { waitForAlertsToPopulate } from '../../tasks/create_new_rule'; @@ -32,17 +27,16 @@ import { } from '../../tasks/rule_details'; import { refreshPage } from '../../tasks/security_header'; -import { ALERTS_URL } from '../../urls/navigation'; -import { cleanKibana } from '../../tasks/common'; +import { DETECTIONS_RULE_MANAGEMENT_URL } from '../../urls/navigation'; +import { cleanKibana, reload } from '../../tasks/common'; describe('From rule', () => { const NUMBER_OF_AUDITBEAT_EXCEPTIONS_ALERTS = '1'; beforeEach(() => { cleanKibana(); - loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsIndexToBeCreated(); + loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); createCustomRule(getNewRule(), 'rule_testing', '10s'); - goToManageAlertsDetectionRules(); + reload(); goToRuleDetails(); cy.get(RULE_STATUS).should('have.text', '—'); diff --git a/x-pack/plugins/security_solution/cypress/integration/value_lists/value_lists.spec.ts b/x-pack/plugins/security_solution/cypress/integration/value_lists/value_lists.spec.ts index f2b87e42685e79..5aeaaac00d7846 100644 --- a/x-pack/plugins/security_solution/cypress/integration/value_lists/value_lists.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/value_lists/value_lists.spec.ts @@ -8,11 +8,7 @@ import { ROLES } from '../../../common/test'; import { deleteRoleAndUser, loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; import { ALERTS_URL } from '../../urls/navigation'; -import { - waitForAlertsPanelToBeLoaded, - waitForAlertsIndexToBeCreated, - goToManageAlertsDetectionRules, -} from '../../tasks/alerts'; +import { goToManageAlertsDetectionRules } from '../../tasks/alerts'; import { waitForListsIndexToBeCreated, waitForValueListsModalToBeLoaded, @@ -36,8 +32,6 @@ describe('value lists', () => { describe('management modal', () => { beforeEach(() => { loginAndWaitForPageWithoutDateRange(ALERTS_URL); - waitForAlertsPanelToBeLoaded(); - waitForAlertsIndexToBeCreated(); waitForListsIndexToBeCreated(); goToManageAlertsDetectionRules(); waitForValueListsModalToBeLoaded(); diff --git a/x-pack/plugins/security_solution/cypress/tasks/alerts.ts b/x-pack/plugins/security_solution/cypress/tasks/alerts.ts index 5cb39ea3e1b4d7..231c435fc6a7ec 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/alerts.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/alerts.ts @@ -152,21 +152,6 @@ export const waitForAlerts = () => { cy.get(REFRESH_BUTTON).should('not.have.text', 'Updating'); }; -export const waitForAlertsIndexToBeCreated = () => { - cy.request({ - url: '/api/detection_engine/index', - failOnStatusCode: false, - }).then((response) => { - if (response.status !== 200) { - cy.request({ - method: 'POST', - url: `/api/detection_engine/index`, - headers: { 'kbn-xsrf': 'create-signals-index' }, - }); - } - }); -}; - export const waitForAlertsPanelToBeLoaded = () => { cy.get(LOADING_ALERTS_PANEL).should('exist'); cy.get(LOADING_ALERTS_PANEL).should('not.exist'); diff --git a/x-pack/plugins/security_solution/cypress/tasks/api_calls/rules.ts b/x-pack/plugins/security_solution/cypress/tasks/api_calls/rules.ts index 34bcda31364030..522cac3eb7ebaa 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/api_calls/rules.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/api_calls/rules.ts @@ -128,11 +128,3 @@ export const deleteCustomRule = (ruleId = '1') => { failOnStatusCode: false, }); }; - -export const createSignalsIndex = () => { - cy.request({ - method: 'POST', - url: 'api/detection_engine/index', - headers: { 'kbn-xsrf': 'cypress-creds' }, - }); -}; diff --git a/x-pack/plugins/security_solution/cypress/tasks/common.ts b/x-pack/plugins/security_solution/cypress/tasks/common.ts index 6b37595cd87b83..65480e52dea400 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/common.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/common.ts @@ -92,16 +92,6 @@ export const cleanKibana = () => { type: 'alert', }, }, - { - match: { - 'alert.alertTypeId': 'siem.signals', - }, - }, - { - match: { - 'alert.consumer': 'siem', - }, - }, ], }, }, @@ -127,7 +117,7 @@ export const cleanKibana = () => { 'POST', `${Cypress.env( 'ELASTICSEARCH_URL' - )}/.lists-*,.items-*,.siem-signals-*/_delete_by_query?conflicts=proceed&scroll_size=10000`, + )}/.lists-*,.items-*,.alerts-security.alerts-*/_delete_by_query?conflicts=proceed&scroll_size=10000`, { query: { match_all: {}, diff --git a/x-pack/plugins/security_solution/cypress/tasks/create_new_rule.ts b/x-pack/plugins/security_solution/cypress/tasks/create_new_rule.ts index 538f95c3c0a80c..068839ad576dcc 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/create_new_rule.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/create_new_rule.ts @@ -517,6 +517,7 @@ export const selectIndicatorMatchType = () => { }; export const selectMachineLearningRuleType = () => { + cy.get(MACHINE_LEARNING_TYPE).contains('Select'); cy.get(MACHINE_LEARNING_TYPE).click({ force: true }); }; diff --git a/x-pack/plugins/security_solution/cypress/tasks/sourcerer.ts b/x-pack/plugins/security_solution/cypress/tasks/sourcerer.ts index 029ba263626462..7309b374810ebf 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/sourcerer.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/sourcerer.ts @@ -11,7 +11,6 @@ import { HOSTS_URL } from '../urls/navigation'; import { waitForPage } from './login'; import { openTimelineUsingToggle } from './security_main'; import { DEFAULT_ALERTS_INDEX } from '../../common/constants'; -import { waitForAlertsIndexToBeCreated } from './alerts'; import { createCustomRuleActivated } from './api_calls/rules'; import { getNewRule } from '../objects/rule'; @@ -177,7 +176,6 @@ export const refreshUntilAlertsIndexExists = async () => { }; export const waitForAlertsIndexToExist = () => { - waitForAlertsIndexToBeCreated(); createCustomRuleActivated(getNewRule(), '1', '100m', 100); refreshUntilAlertsIndexExists(); }; diff --git a/x-pack/plugins/security_solution/public/app/app.tsx b/x-pack/plugins/security_solution/public/app/app.tsx index 6d5f81b076560b..b129991ed8fba1 100644 --- a/x-pack/plugins/security_solution/public/app/app.tsx +++ b/x-pack/plugins/security_solution/public/app/app.tsx @@ -12,6 +12,7 @@ import { Provider as ReduxStoreProvider } from 'react-redux'; import { EuiErrorBoundary } from '@elastic/eui'; import { QueryClient, QueryClientProvider } from 'react-query'; +import { KibanaThemeProvider } from '../../../../../src/plugins/kibana_react/public'; import { AppLeaveHandler, AppMountParameters } from '../../../../../src/core/public'; import { ManageUserInfo } from '../detections/components/user_info'; @@ -33,6 +34,7 @@ interface StartAppComponent { onAppLeave: (handler: AppLeaveHandler) => void; setHeaderActionMenu: AppMountParameters['setHeaderActionMenu']; store: Store; + theme$: AppMountParameters['theme$']; } const queryClient = new QueryClient(); @@ -43,6 +45,7 @@ const StartAppComponent: FC = ({ setHeaderActionMenu, onAppLeave, store, + theme$, }) => { const { i18n, @@ -55,23 +58,25 @@ const StartAppComponent: FC = ({ - - - - - - - {children} - - - - - - + + + + + + + + {children} + + + + + + + @@ -90,6 +95,7 @@ interface SecurityAppComponentProps { services: StartServices; setHeaderActionMenu: AppMountParameters['setHeaderActionMenu']; store: Store; + theme$: AppMountParameters['theme$']; } const SecurityAppComponent: React.FC = ({ @@ -99,6 +105,7 @@ const SecurityAppComponent: React.FC = ({ services, setHeaderActionMenu, store, + theme$, }) => ( = ({ onAppLeave={onAppLeave} setHeaderActionMenu={setHeaderActionMenu} store={store} + theme$={theme$} > {children} diff --git a/x-pack/plugins/security_solution/public/app/home/global_header/index.test.tsx b/x-pack/plugins/security_solution/public/app/home/global_header/index.test.tsx index 2d6ca63c82bdb6..54e57dc5595ce8 100644 --- a/x-pack/plugins/security_solution/public/app/home/global_header/index.test.tsx +++ b/x-pack/plugins/security_solution/public/app/home/global_header/index.test.tsx @@ -30,9 +30,9 @@ jest.mock('../../../common/lib/kibana', () => { const originalModule = jest.requireActual('../../../common/lib/kibana'); return { ...originalModule, - useKibana: jest - .fn() - .mockReturnValue({ services: { http: { basePath: { prepend: jest.fn() } } } }), + useKibana: jest.fn().mockReturnValue({ + services: { theme: { theme$: {} }, http: { basePath: { prepend: jest.fn() } } }, + }), useUiSetting$: jest.fn().mockReturnValue([]), }; }); diff --git a/x-pack/plugins/security_solution/public/app/home/global_header/index.tsx b/x-pack/plugins/security_solution/public/app/home/global_header/index.tsx index 6afcc649da5f3d..35c204deb6b658 100644 --- a/x-pack/plugins/security_solution/public/app/home/global_header/index.tsx +++ b/x-pack/plugins/security_solution/public/app/home/global_header/index.tsx @@ -40,6 +40,7 @@ export const GlobalHeader = React.memo( ({ setHeaderActionMenu }: { setHeaderActionMenu: AppMountParameters['setHeaderActionMenu'] }) => { const portalNode = useMemo(() => createPortalNode(), []); const { + theme, http: { basePath: { prepend }, }, @@ -58,7 +59,7 @@ export const GlobalHeader = React.memo( useEffect(() => { setHeaderActionMenu((element) => { - const mount = toMountPoint(); + const mount = toMountPoint(, { theme$: theme.theme$ }); return mount(element); }); @@ -66,7 +67,7 @@ export const GlobalHeader = React.memo( portalNode.unmount(); setHeaderActionMenu(undefined); }; - }, [portalNode, setHeaderActionMenu]); + }, [portalNode, setHeaderActionMenu, theme.theme$]); return ( diff --git a/x-pack/plugins/security_solution/public/app/index.tsx b/x-pack/plugins/security_solution/public/app/index.tsx index 527b0c96f318e5..4e0824f527d1ec 100644 --- a/x-pack/plugins/security_solution/public/app/index.tsx +++ b/x-pack/plugins/security_solution/public/app/index.tsx @@ -22,6 +22,7 @@ export const renderApp = ({ store, usageCollection, subPluginRoutes, + theme$, }: RenderAppProps): (() => void) => { const ApplicationUsageTrackingProvider = usageCollection?.components.ApplicationUsageTrackingProvider ?? React.Fragment; @@ -32,6 +33,7 @@ export const renderApp = ({ services={services} setHeaderActionMenu={setHeaderActionMenu} store={store} + theme$={theme$} > diff --git a/x-pack/plugins/security_solution/public/common/components/charts/common.tsx b/x-pack/plugins/security_solution/public/common/components/charts/common.tsx index ee292a66702e5b..d7bafffec9a8ff 100644 --- a/x-pack/plugins/security_solution/public/common/components/charts/common.tsx +++ b/x-pack/plugins/security_solution/public/common/components/charts/common.tsx @@ -13,7 +13,7 @@ import { Rendering, Rotation, ScaleType, - SettingsSpecProps, + SettingsProps, TickFormatter, Position, BrushEndListener, @@ -52,7 +52,7 @@ export interface ChartSeriesConfigs { tickSize?: number | undefined; }; yAxisTitle?: string | undefined; - settings?: Partial; + settings?: SettingsProps; } export interface ChartSeriesData { diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_comments.tsx b/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_comments.tsx index 87f7f5fe2f5077..8cc9a6a43c895f 100644 --- a/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_comments.tsx +++ b/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_comments.tsx @@ -32,7 +32,7 @@ const COMMENT_ACCORDION_BUTTON_CLASS_NAME = 'exceptionCommentAccordionButton'; const MyAvatar = styled(EuiAvatar)` ${({ theme }) => css` - margin-right: ${theme.eui.paddingSizes.m}; + margin-right: ${theme.eui.paddingSizes.s}; `} `; diff --git a/x-pack/plugins/security_solution/public/common/components/sourcerer/use_update_data_view.test.tsx b/x-pack/plugins/security_solution/public/common/components/sourcerer/use_update_data_view.test.tsx index 4ec39a60a97b99..384ba0f16427a3 100644 --- a/x-pack/plugins/security_solution/public/common/components/sourcerer/use_update_data_view.test.tsx +++ b/x-pack/plugins/security_solution/public/common/components/sourcerer/use_update_data_view.test.tsx @@ -7,12 +7,12 @@ import { renderHook } from '@testing-library/react-hooks'; import { useUpdateDataView } from './use_update_data_view'; -import { useKibana } from '../../lib/kibana'; +import { useKibana as mockUseKibana } from '../../lib/kibana/__mocks__'; import * as i18n from './translations'; const mockAddSuccess = jest.fn(); const mockAddError = jest.fn(); -const mockSet = jest.fn(); const mockPatterns = ['packetbeat-*', 'winlogbeat-*']; +const mockedUseKibana = mockUseKibana(); jest.mock('../../hooks/use_app_toasts', () => { const original = jest.requireActual('../../hooks/use_app_toasts'); @@ -24,7 +24,11 @@ jest.mock('../../hooks/use_app_toasts', () => { }), }; }); -jest.mock('../../lib/kibana'); +jest.mock('../../lib/kibana', () => { + return { + useKibana: () => mockedUseKibana, + }; +}); jest.mock('../../../../../../../src/plugins/kibana_react/public', () => { const original = jest.requireActual('../../../../../../../src/plugins/kibana_react/public'); @@ -35,15 +39,10 @@ jest.mock('../../../../../../../src/plugins/kibana_react/public', () => { }); describe('use_update_data_view', () => { const mockError = jest.fn(); + beforeEach(() => { - (useKibana as jest.Mock).mockImplementation(() => ({ - services: { - uiSettings: { - get: () => mockPatterns, - set: mockSet.mockResolvedValue(true), - }, - }, - })); + mockedUseKibana.services.uiSettings.get.mockImplementation(() => mockPatterns); + mockedUseKibana.services.uiSettings.set.mockResolvedValue(true); jest.clearAllMocks(); }); @@ -51,40 +50,30 @@ describe('use_update_data_view', () => { const { result } = renderHook(() => useUpdateDataView(mockError)); const updateDataView = result.current; const isUiSettingsSuccess = await updateDataView(['missing-*']); - expect(mockSet.mock.calls[0][1]).toEqual([...mockPatterns, 'missing-*'].sort()); + expect(mockedUseKibana.services.uiSettings.set.mock.calls[0][1]).toEqual( + [...mockPatterns, 'missing-*'].sort() + ); expect(isUiSettingsSuccess).toEqual(true); expect(mockAddSuccess).toHaveBeenCalled(); }); test('Failed uiSettings update returns false and shows error toast', async () => { - (useKibana as jest.Mock).mockImplementation(() => ({ - services: { - uiSettings: { - get: () => mockPatterns, - set: mockSet.mockResolvedValue(false), - }, - }, - })); + mockedUseKibana.services.uiSettings.set.mockImplementation(() => false); const { result } = renderHook(() => useUpdateDataView(mockError)); const updateDataView = result.current; const isUiSettingsSuccess = await updateDataView(['missing-*']); - expect(mockSet.mock.calls[0][1]).toEqual([...mockPatterns, 'missing-*'].sort()); + expect(mockedUseKibana.services.uiSettings.set.mock.calls[0][1]).toEqual( + [...mockPatterns, 'missing-*'].sort() + ); expect(isUiSettingsSuccess).toEqual(false); expect(mockAddError).toHaveBeenCalled(); expect(mockAddError.mock.calls[0][0]).toEqual(new Error(i18n.FAILURE_TOAST_TITLE)); }); test('Failed uiSettings throws error and shows error toast', async () => { - (useKibana as jest.Mock).mockImplementation(() => ({ - services: { - uiSettings: { - get: jest.fn().mockImplementation(() => { - throw new Error('Uh oh bad times over here'); - }), - set: mockSet.mockResolvedValue(true), - }, - }, - })); + mockedUseKibana.services.uiSettings.get.mockImplementation(() => { + throw new Error('Uh oh bad times over here'); + }); const { result } = renderHook(() => useUpdateDataView(mockError)); const updateDataView = result.current; const isUiSettingsSuccess = await updateDataView(['missing-*']); diff --git a/x-pack/plugins/security_solution/public/common/components/sourcerer/use_update_data_view.tsx b/x-pack/plugins/security_solution/public/common/components/sourcerer/use_update_data_view.tsx index 68193942ea2576..fdaf733e49d951 100644 --- a/x-pack/plugins/security_solution/public/common/components/sourcerer/use_update_data_view.tsx +++ b/x-pack/plugins/security_solution/public/common/components/sourcerer/use_update_data_view.tsx @@ -19,7 +19,7 @@ import { useAppToasts } from '../../hooks/use_app_toasts'; export const useUpdateDataView = ( onOpenAndReset: () => void ): ((missingPatterns: string[]) => Promise) => { - const { uiSettings } = useKibana().services; + const { theme, uiSettings } = useKibana().services; const { addSuccess, addError } = useAppToasts(); return useCallback( async (missingPatterns: string[]): Promise => { @@ -40,8 +40,8 @@ export const useUpdateDataView = ( if (isUiSettingsSuccess) { addSuccess({ color: 'success', - title: toMountPoint(i18n.SUCCESS_TOAST_TITLE), - text: toMountPoint(), + title: toMountPoint(i18n.SUCCESS_TOAST_TITLE, { theme$: theme.theme$ }), + text: toMountPoint(, { theme$: theme.theme$ }), iconType: undefined, toastLifeTimeMs: 600000, }); @@ -67,6 +67,6 @@ export const useUpdateDataView = ( }); return false; }, - [addError, addSuccess, onOpenAndReset, uiSettings] + [addError, addSuccess, onOpenAndReset, theme.theme$, uiSettings] ); }; diff --git a/x-pack/plugins/security_solution/public/common/containers/sourcerer/index.test.tsx b/x-pack/plugins/security_solution/public/common/containers/sourcerer/index.test.tsx index 5a00fb8d986d58..1d02d608c0e921 100644 --- a/x-pack/plugins/security_solution/public/common/containers/sourcerer/index.test.tsx +++ b/x-pack/plugins/security_solution/public/common/containers/sourcerer/index.test.tsx @@ -54,11 +54,12 @@ jest.mock('../../utils/route/use_route_spy', () => ({ const mockSearch = jest.fn(); +const mockAddWarning = jest.fn(); jest.mock('../../lib/kibana', () => ({ useToasts: () => ({ addError: jest.fn(), addSuccess: jest.fn(), - addWarning: jest.fn(), + addWarning: mockAddWarning, }), useKibana: () => ({ services: { @@ -195,6 +196,38 @@ describe('Sourcerer Hooks', () => { }); }); }); + + it('calls addWarning if defaultDataView has an error', async () => { + store = createStore( + { + ...mockGlobalState, + sourcerer: { + ...mockGlobalState.sourcerer, + signalIndexName: null, + defaultDataView: { + ...mockGlobalState.sourcerer.defaultDataView, + error: true, + }, + }, + }, + SUB_PLUGINS_REDUCER, + kibanaObservable, + storage + ); + await act(async () => { + renderHook(() => useInitSourcerer(), { + wrapper: ({ children }) => {children}, + }); + + await waitFor(() => { + expect(mockAddWarning).toHaveBeenNthCalledWith(1, { + text: 'Users with write permission need to access the Elastic Security app to initialize the app source data.', + title: 'Write role required to generate data', + }); + }); + }); + }); + it('handles detections page', async () => { await act(async () => { mockUseUserInfo.mockImplementation(() => ({ diff --git a/x-pack/plugins/security_solution/public/common/containers/sourcerer/index.tsx b/x-pack/plugins/security_solution/public/common/containers/sourcerer/index.tsx index 15ded1aeb239f2..5887c7cde10df7 100644 --- a/x-pack/plugins/security_solution/public/common/containers/sourcerer/index.tsx +++ b/x-pack/plugins/security_solution/public/common/containers/sourcerer/index.tsx @@ -51,21 +51,21 @@ export const useInitSourcerer = ( (state) => getDataViewsSelector(state) ); - const { addError } = useAppToasts(); + const { addError, addWarning } = useAppToasts(); useEffect(() => { if (defaultDataView.error != null) { - addError(defaultDataView.error, { + addWarning({ title: i18n.translate('xpack.securitySolution.sourcerer.permissions.title', { defaultMessage: 'Write role required to generate data', }), - toastMessage: i18n.translate('xpack.securitySolution.sourcerer.permissions.toastMessage', { + text: i18n.translate('xpack.securitySolution.sourcerer.permissions.toastMessage', { defaultMessage: 'Users with write permission need to access the Elastic Security app to initialize the app source data.', }), }); } - }, [addError, defaultDataView.error]); + }, [addWarning, defaultDataView.error]); const getTimelineSelector = useMemo(() => timelineSelectors.getTimelineByIdSelector(), []); const activeTimeline = useDeepEqualSelector((state) => diff --git a/x-pack/plugins/security_solution/public/common/lib/kibana/__mocks__/index.ts b/x-pack/plugins/security_solution/public/common/lib/kibana/__mocks__/index.ts index 5975977988a503..aacc1dc9516934 100644 --- a/x-pack/plugins/security_solution/public/common/lib/kibana/__mocks__/index.ts +++ b/x-pack/plugins/security_solution/public/common/lib/kibana/__mocks__/index.ts @@ -24,6 +24,10 @@ export const KibanaServices = { get: jest.fn(), getKibanaVersion: jest.fn(() => export const useKibana = jest.fn().mockReturnValue({ services: { ...mockStartServicesMock, + uiSettings: { + get: jest.fn(), + set: jest.fn(), + }, data: { ...mockStartServicesMock.data, search: { diff --git a/x-pack/plugins/security_solution/public/common/lib/kibana/kibana_react.mock.ts b/x-pack/plugins/security_solution/public/common/lib/kibana/kibana_react.mock.ts index 622ec5bac487d7..366cd271fb57df 100644 --- a/x-pack/plugins/security_solution/public/common/lib/kibana/kibana_react.mock.ts +++ b/x-pack/plugins/security_solution/public/common/lib/kibana/kibana_react.mock.ts @@ -10,7 +10,7 @@ import React from 'react'; import { RecursivePartial } from '@elastic/eui/src/components/common'; -import { coreMock } from '../../../../../../../src/core/public/mocks'; +import { coreMock, themeServiceMock } from '../../../../../../../src/core/public/mocks'; import { KibanaContextProvider } from '../../../../../../../src/plugins/kibana_react/public'; import { dataPluginMock } from '../../../../../../../src/plugins/data/public/mocks'; import { securityMock } from '../../../../../../plugins/security/public/mocks'; @@ -148,6 +148,9 @@ export const createStartServicesMock = ( ml: { locator, }, + theme: { + theme$: themeServiceMock.createTheme$(), + }, } as unknown as StartServices; }; diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/schema.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/schema.tsx index 4717dd6f921048..a2018280bebc65 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/schema.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/schema.tsx @@ -16,7 +16,11 @@ import { containsInvalidItems, customValidators, } from '../../../../common/components/threat_match/helpers'; -import { isThreatMatchRule, isThresholdRule } from '../../../../../common/detection_engine/utils'; +import { + isEqlRule, + isThreatMatchRule, + isThresholdRule, +} from '../../../../../common/detection_engine/utils'; import { isMlRule } from '../../../../../common/machine_learning/helpers'; import { FieldValueQueryBar } from '../query_bar'; import { @@ -30,6 +34,7 @@ import { DefineStepRule } from '../../../pages/detection_engine/rules/types'; import { debounceAsync, eqlValidator } from '../eql_query_bar/validators'; import { CUSTOM_QUERY_REQUIRED, + EQL_QUERY_REQUIRED, INVALID_CUSTOM_QUERY, INDEX_HELPER_TEXT, THREAT_MATCH_INDEX_HELPER_TEXT, @@ -82,16 +87,14 @@ export const schema: FormSchema = { const { query, filters } = value as FieldValueQueryBar; const needsValidation = !isMlRule(formData.ruleType); if (!needsValidation) { - return; + return undefined; } - - return isEmpty(query.query as string) && isEmpty(filters) - ? { - code: 'ERR_FIELD_MISSING', - path, - message: CUSTOM_QUERY_REQUIRED, - } - : undefined; + const isFieldEmpty = isEmpty(query.query as string) && isEmpty(filters); + if (!isFieldEmpty) { + return undefined; + } + const message = isEqlRule(formData.ruleType) ? EQL_QUERY_REQUIRED : CUSTOM_QUERY_REQUIRED; + return { code: 'ERR_FIELD_MISSING', path, message }; }, }, { diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/translations.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/translations.tsx index d41d36813dee26..a2b01ba87dd698 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/translations.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/step_define_rule/translations.tsx @@ -14,6 +14,13 @@ export const CUSTOM_QUERY_REQUIRED = i18n.translate( } ); +export const EQL_QUERY_REQUIRED = i18n.translate( + 'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.eqlQueryFieldRequiredError', + { + defaultMessage: 'An EQL query is required.', + } +); + export const INVALID_CUSTOM_QUERY = i18n.translate( 'xpack.securitySolution.detectionEngine.createRule.stepDefineRule.customQueryFieldInvalidError', { diff --git a/x-pack/plugins/security_solution/public/management/components/effected_policy_select/effected_policy_select.tsx b/x-pack/plugins/security_solution/public/management/components/effected_policy_select/effected_policy_select.tsx index e20df0c122956f..ee2d2747044080 100644 --- a/x-pack/plugins/security_solution/public/management/components/effected_policy_select/effected_policy_select.tsx +++ b/x-pack/plugins/security_solution/public/management/components/effected_policy_select/effected_policy_select.tsx @@ -46,6 +46,20 @@ const StyledEuiSelectable = styled.div` } `; +const StyledEuiFlexItemButtonGroup = styled(EuiFlexItem)` + @media only screen and (max-width: ${(props) => props.theme.eui.euiBreakpoints.m}) { + align-items: center; + } +`; + +const StyledButtonGroup = styled(EuiButtonGroup)` + display: flex; + justify-content: right; + .euiButtonGroupButton { + padding-right: ${(props) => props.theme.eui.paddingSizes.l}; + } +`; + const EffectivePolicyFormContainer = styled.div` .policy-name .euiSelectableListItem__text { text-decoration: none !important; @@ -99,7 +113,7 @@ export const EffectedPolicySelect = memo( label: i18n.translate('xpack.securitySolution.endpoint.effectedPolicySelect.global', { defaultMessage: 'Global', }), - iconType: isGlobal ? 'checkInCircleFilled' : '', + iconType: isGlobal ? 'checkInCircleFilled' : 'empty', 'data-test-subj': getTestId('global'), }, { @@ -107,7 +121,7 @@ export const EffectedPolicySelect = memo( label: i18n.translate('xpack.securitySolution.endpoint.effectedPolicySelect.perPolicy', { defaultMessage: 'Per Policy', }), - iconType: !isGlobal ? 'checkInCircleFilled' : '', + iconType: !isGlobal ? 'checkInCircleFilled' : 'empty', 'data-test-subj': getTestId('perPolicy'), }, ], @@ -208,19 +222,18 @@ export const EffectedPolicySelect = memo(

- + - - + {!isGlobal && diff --git a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx index ddd7349fadc511..07a766f3fd7680 100644 --- a/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx @@ -133,7 +133,8 @@ const timepickerRanges = [ jest.mock('../../../../common/lib/kibana'); jest.mock('../../../../common/hooks/use_license'); -describe('when on the endpoint list page', () => { +// FLAKY: https://github.com/elastic/kibana/issues/115489 +describe.skip('when on the endpoint list page', () => { const docGenerator = new EndpointDocGenerator(); const { act, screen, fireEvent, waitFor } = reactTestingLibrary; diff --git a/x-pack/plugins/security_solution/public/management/pages/event_filters/service/index.ts b/x-pack/plugins/security_solution/public/management/pages/event_filters/service/index.ts index 6145f869a660ad..a2b0575601123d 100644 --- a/x-pack/plugins/security_solution/public/management/pages/event_filters/service/index.ts +++ b/x-pack/plugins/security_solution/public/management/pages/event_filters/service/index.ts @@ -68,7 +68,7 @@ export class EventFiltersHttpService implements EventFiltersService { return deleteOne(this.http, id); } - async getSummary(): Promise { - return getSummary(this.http); + async getSummary(filter?: string): Promise { + return getSummary({ http: this.http, filter }); } } diff --git a/x-pack/plugins/security_solution/public/management/pages/event_filters/service/service_actions.ts b/x-pack/plugins/security_solution/public/management/pages/event_filters/service/service_actions.ts index 19c56cb5fed903..6bd0e9447d36fd 100644 --- a/x-pack/plugins/security_solution/public/management/pages/event_filters/service/service_actions.ts +++ b/x-pack/plugins/security_solution/public/management/pages/event_filters/service/service_actions.ts @@ -111,10 +111,17 @@ export async function deleteOne(http: HttpStart, id: string): Promise { +export async function getSummary({ + http, + filter, +}: { + http: HttpStart; + filter?: string; +}): Promise { await ensureEventFiltersListExists(http); return http.get(`${EXCEPTION_LIST_URL}/summary`, { query: { + filter, list_id: ENDPOINT_EVENT_FILTERS_LIST_ID, namespace_type: 'agnostic', }, diff --git a/x-pack/plugins/security_solution/public/management/pages/event_filters/test_utils/index.ts b/x-pack/plugins/security_solution/public/management/pages/event_filters/test_utils/index.ts index 6a45403b14d8d8..9f30fcd8ccd2a5 100644 --- a/x-pack/plugins/security_solution/public/management/pages/event_filters/test_utils/index.ts +++ b/x-pack/plugins/security_solution/public/management/pages/event_filters/test_utils/index.ts @@ -9,6 +9,7 @@ import { combineReducers, createStore } from 'redux'; import type { FoundExceptionListItemSchema, ExceptionListItemSchema, + ExceptionListSummarySchema, } from '@kbn/securitysolution-io-ts-list-types'; import { EXCEPTION_LIST_ITEM_URL, EXCEPTION_LIST_URL } from '@kbn/securitysolution-list-constants'; import { Ecs } from '../../../../../common/ecs'; @@ -25,6 +26,7 @@ import { } from '../../../../common/mock/endpoint/http_handler_mock_factory'; import { getFoundExceptionListItemSchemaMock } from '../../../../../../lists/common/schemas/response/found_exception_list_item_schema.mock'; import { getExceptionListItemSchemaMock } from '../../../../../../lists/common/schemas/response/exception_list_item_schema.mock'; +import { getSummaryExceptionListSchemaMock } from '../../../../../../lists/common/schemas/response/exception_list_summary_schema.mock'; export const createGlobalNoMiddlewareStore = () => { return createStore( @@ -107,6 +109,7 @@ export type EventFiltersListQueryHttpMockProviders = ResponseProvidersInterface< eventFiltersGetOne: () => ExceptionListItemSchema; eventFiltersCreateOne: () => ExceptionListItemSchema; eventFiltersUpdateOne: () => ExceptionListItemSchema; + eventFiltersGetSummary: () => ExceptionListSummarySchema; }>; export const esResponseData = () => ({ @@ -255,4 +258,12 @@ export const eventFiltersListQueryHttpMock = return getExceptionListItemSchemaMock(); }, }, + { + id: 'eventFiltersGetSummary', + method: 'get', + path: `${EXCEPTION_LIST_URL}/summary`, + handler: (): ExceptionListSummarySchema => { + return getSummaryExceptionListSchemaMock(); + }, + }, ]); diff --git a/x-pack/plugins/security_solution/public/management/pages/event_filters/types.ts b/x-pack/plugins/security_solution/public/management/pages/event_filters/types.ts index ff57768f8d939f..f15bd47e0f3e7a 100644 --- a/x-pack/plugins/security_solution/public/management/pages/event_filters/types.ts +++ b/x-pack/plugins/security_solution/public/management/pages/event_filters/types.ts @@ -51,7 +51,7 @@ export interface EventFiltersService { getOne(id: string): Promise; updateOne(exception: Immutable): Promise; deleteOne(id: string): Promise; - getSummary(): Promise; + getSummary(filter?: string): Promise; } export interface EventFiltersListPageData { diff --git a/x-pack/plugins/security_solution/public/management/pages/event_filters/view/event_filters_list_page.tsx b/x-pack/plugins/security_solution/public/management/pages/event_filters/view/event_filters_list_page.tsx index d83bc8d36dd234..adb76683ebb770 100644 --- a/x-pack/plugins/security_solution/public/management/pages/event_filters/view/event_filters_list_page.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/event_filters/view/event_filters_list_page.tsx @@ -230,6 +230,8 @@ export const EventFiltersListPage = memo(() => { children: DELETE_EVENT_FILTER_ACTION_LABEL, }, ], + hideDescription: !eventFilter.description, + hideComments: !eventFilter.comments.length, }; } diff --git a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/host_isolation_exceptions_list.tsx b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/host_isolation_exceptions_list.tsx index 8a1bc3fa2128f6..96b095826cbe27 100644 --- a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/host_isolation_exceptions_list.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/host_isolation_exceptions_list.tsx @@ -157,6 +157,8 @@ export const HostIsolationExceptionsList = () => { 'data-test-subj': `hostIsolationExceptionsCard`, actions: privileges.canIsolateHost ? [editAction, deleteAction] : [deleteAction], policies: artifactCardPolicies, + hideDescription: !element.description, + hideComments: !element.comments.length, }; } diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/event_filters/list/policy_event_filters_list.test.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/event_filters/list/policy_event_filters_list.test.tsx index dc78c3edb87fac..e8425a57b4012c 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/event_filters/list/policy_event_filters_list.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/event_filters/list/policy_event_filters_list.test.tsx @@ -66,7 +66,7 @@ describe('Policy details event filters list', () => { ); await render(); expect(renderResult.getByTestId('policyDetailsEventFiltersSearchCount')).toHaveTextContent( - 'Showing 0 exceptions' + 'Showing 0 event filters' ); expect(renderResult.getByTestId('searchField')).toBeTruthy(); }); diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/event_filters/list/policy_event_filters_list.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/event_filters/list/policy_event_filters_list.tsx index 2e2ca9b4835fda..5ab6f4bfb0ebac 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/event_filters/list/policy_event_filters_list.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/event_filters/list/policy_event_filters_list.tsx @@ -96,7 +96,8 @@ export const PolicyEventFiltersList = React.memo(({ return i18n.translate( 'xpack.securitySolution.endpoint.policy.eventFilters.list.totalItemCount', { - defaultMessage: 'Showing {totalItemsCount, plural, one {# exception} other {# exceptions}}', + defaultMessage: + 'Showing {totalItemsCount, plural, one {# event filter} other {# event filters}}', values: { totalItemsCount: eventFilters?.data.length || 0 }, } ); diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.test.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.test.tsx index badf7a1a7fd4d1..73721345b8ff6f 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.test.tsx @@ -18,7 +18,7 @@ import { FleetIntegrationEventFiltersCard } from './fleet_integration_event_filt import { EndpointDocGenerator } from '../../../../../../../../common/endpoint/generate_data'; import { getPolicyEventFiltersPath } from '../../../../../../common/routing'; import { PolicyData } from '../../../../../../../../common/endpoint/types'; -import { getFoundExceptionListItemSchemaMock } from '../../../../../../../../../lists/common/schemas/response/found_exception_list_item_schema.mock'; +import { getSummaryExceptionListSchemaMock } from '../../../../../../../../../lists/common/schemas/response/exception_list_summary_schema.mock'; const endpointGenerator = new EndpointDocGenerator('seed'); @@ -40,7 +40,9 @@ describe('Fleet integration policy endpoint security event filters card', () => renderResult = mockedContext.render( ); - await waitFor(() => expect(mockedApi.responseProvider.eventFiltersList).toHaveBeenCalled()); + await waitFor(() => + expect(mockedApi.responseProvider.eventFiltersGetSummary).toHaveBeenCalled() + ); }); return renderResult; }; @@ -51,8 +53,8 @@ describe('Fleet integration policy endpoint security event filters card', () => afterEach(() => reactTestingLibrary.cleanup()); it('should call the API and render the card correctly', async () => { - mockedApi.responseProvider.eventFiltersList.mockReturnValue( - getFoundExceptionListItemSchemaMock(3) + mockedApi.responseProvider.eventFiltersGetSummary.mockReturnValue( + getSummaryExceptionListSchemaMock({ total: 3 }) ); await render(); @@ -62,8 +64,8 @@ describe('Fleet integration policy endpoint security event filters card', () => }); it('should show the card even when no event filters associated with the policy', async () => { - mockedApi.responseProvider.eventFiltersList.mockReturnValue( - getFoundExceptionListItemSchemaMock(0) + mockedApi.responseProvider.eventFiltersGetSummary.mockReturnValue( + getSummaryExceptionListSchemaMock({ total: 0 }) ); await render(); @@ -71,8 +73,8 @@ describe('Fleet integration policy endpoint security event filters card', () => }); it('should have the correct manage event filters link', async () => { - mockedApi.responseProvider.eventFiltersList.mockReturnValue( - getFoundExceptionListItemSchemaMock(1) + mockedApi.responseProvider.eventFiltersGetSummary.mockReturnValue( + getSummaryExceptionListSchemaMock({ total: 1 }) ); await render(); @@ -84,7 +86,7 @@ describe('Fleet integration policy endpoint security event filters card', () => it('should show an error toast when API request fails', async () => { const error = new Error('Uh oh! API error!'); - mockedApi.responseProvider.eventFiltersList.mockImplementation(() => { + mockedApi.responseProvider.eventFiltersGetSummary.mockImplementation(() => { throw error; }); diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.tsx index eecdff54741e3f..087f2607bd8e5c 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.tsx @@ -86,18 +86,9 @@ export const FleetIntegrationEventFiltersCard = memo<{ isMounted.current = true; const fetchStats = async () => { try { - const summary = await eventFiltersApi.getList({ - perPage: 1, - page: 1, - filter: parsePoliciesToKQL([policyId, 'all']), - }); + const summary = await eventFiltersApi.getSummary(parsePoliciesToKQL([policyId, 'all'])); if (isMounted.current) { - setStats({ - total: summary.total, - windows: 0, - linux: 0, - macos: 0, - }); + setStats(summary); } } catch (error) { if (isMounted.current) { diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/policy_forms/components/policy_form_layout.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/policy_forms/components/policy_form_layout.tsx index ce0aaf41cd8367..1d1aeeb6606328 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/policy_forms/components/policy_form_layout.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/policy_forms/components/policy_form_layout.tsx @@ -45,6 +45,7 @@ export const PolicyFormLayout = React.memo(() => { const dispatch = useDispatch<(action: AppAction) => void>(); const { services: { + theme, application: { navigateToApp }, }, } = useKibana(); @@ -86,7 +87,8 @@ export const PolicyFormLayout = React.memo(() => { defaultMessage="Integration {name} has been updated." values={{ name: policyName }} /> -
+
, + { theme$: theme.theme$ } ), }); @@ -103,7 +105,7 @@ export const PolicyFormLayout = React.memo(() => { }); } } - }, [navigateToApp, toasts, policyName, policyUpdateStatus, routeState]); + }, [navigateToApp, toasts, policyName, policyUpdateStatus, routeState, theme.theme$]); const handleCancelOnClick = useNavigateToAppEventHandler(...navigateToAppArguments); diff --git a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/create_trusted_app_form.test.tsx b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/create_trusted_app_form.test.tsx index 952b707b5d5c39..f2313a4d0f7943 100644 --- a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/create_trusted_app_form.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/create_trusted_app_form.test.tsx @@ -432,6 +432,18 @@ describe('When using the Trusted App Form', () => { expect(renderResult.getByText('[2] Field entry must have a value')); }); + it('should validate duplicated conditions', () => { + const andButton = getConditionBuilderAndButton(); + reactTestingLibrary.act(() => { + fireEvent.click(andButton, { button: 1 }); + }); + + setTextFieldValue(getConditionValue(getCondition()), ''); + rerenderWithLatestTrustedApp(); + + expect(renderResult.getByText('Hash cannot be added more than once')); + }); + it('should validate multiple errors in form', () => { const andButton = getConditionBuilderAndButton(); diff --git a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/create_trusted_app_form.tsx b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/create_trusted_app_form.tsx index d9b1cc6624042f..7cff989f008a0a 100644 --- a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/create_trusted_app_form.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/create_trusted_app_form.tsx @@ -20,6 +20,7 @@ import { import { i18n } from '@kbn/i18n'; import { EuiFormProps } from '@elastic/eui/src/components/form/form'; import { + ConditionEntry, ConditionEntryField, EffectScope, MacosLinuxConditionEntry, @@ -31,6 +32,7 @@ import { isValidHash, isPathValid, hasSimpleExecutableName, + getDuplicateFields, } from '../../../../../../common/endpoint/service/trusted_apps/validations'; import { @@ -40,7 +42,7 @@ import { isWindowsTrustedAppCondition, } from '../../state/type_guards'; import { defaultConditionEntry } from '../../store/builders'; -import { OS_TITLES } from '../translations'; +import { CONDITION_FIELD_TITLE, OS_TITLES } from '../translations'; import { LogicalConditionBuilder, LogicalConditionBuilderProps } from './logical_condition'; import { useTestIdGenerator } from '../../../../components/hooks/use_test_id_generator'; import { useLicense } from '../../../../../common/hooks/use_license'; @@ -135,6 +137,21 @@ const validateFormValues = (values: MaybeImmutable): ValidationRe }) ); } else { + const duplicated = getDuplicateFields(values.entries as ConditionEntry[]); + if (duplicated.length) { + isValid = false; + duplicated.forEach((field) => { + addResultToValidation( + validation, + 'entries', + 'errors', + i18n.translate('xpack.securitySolution.trustedapps.create.conditionFieldDuplicatedMsg', { + defaultMessage: '{field} cannot be added more than once', + values: { field: CONDITION_FIELD_TITLE[field] }, + }) + ); + }); + } values.entries.forEach((entry, index) => { const isValidPathEntry = isPathValid({ os: values.os, diff --git a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/trusted_apps_grid/index.tsx b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/trusted_apps_grid/index.tsx index 72b52b0f352781..a8e21870835237 100644 --- a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/trusted_apps_grid/index.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/trusted_apps_grid/index.tsx @@ -177,6 +177,7 @@ export const TrustedAppsGrid = memo(() => { children: DELETE_TRUSTED_APP_ACTION_LABEL, }, ], + hideDescription: !trustedApp.description, }; } diff --git a/x-pack/plugins/security_solution/public/timelines/components/timeline/eql_tab_content/index.test.tsx b/x-pack/plugins/security_solution/public/timelines/components/timeline/eql_tab_content/index.test.tsx index dba9f99681a0c2..b4bd3aa1f0ae23 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/timeline/eql_tab_content/index.test.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/timeline/eql_tab_content/index.test.tsx @@ -49,6 +49,9 @@ jest.mock('../../../../common/lib/kibana', () => { ...originalModule, useKibana: jest.fn().mockReturnValue({ services: { + theme: { + theme$: {}, + }, application: { navigateToApp: jest.fn(), getUrlForApp: jest.fn(), diff --git a/x-pack/plugins/security_solution/public/timelines/components/timeline/query_tab_content/index.test.tsx b/x-pack/plugins/security_solution/public/timelines/components/timeline/query_tab_content/index.test.tsx index a32e77a107a43f..580f5cf9cc2ae7 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/timeline/query_tab_content/index.test.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/timeline/query_tab_content/index.test.tsx @@ -52,6 +52,9 @@ jest.mock('../../../../common/lib/kibana', () => { ...originalModule, useKibana: jest.fn().mockReturnValue({ services: { + theme: { + theme$: {}, + }, application: { navigateToApp: jest.fn(), getUrlForApp: jest.fn(), diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/application_added_to_google_workspace_domain.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/application_added_to_google_workspace_domain.json index ef43e6086589d7..1d4724153e2da4 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/application_added_to_google_workspace_domain.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/application_added_to_google_workspace_domain.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "Application Added to Google Workspace Domain", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and event.provider:admin and event.category:iam and event.action:ADD_APPLICATION\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and event.action:ADD_APPLICATION\n", "references": [ "https://support.google.com/a/answer/6328701?hl=en#" ], @@ -33,5 +33,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 5 + "version": 6 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_audio_capture.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_audio_capture.json index 65acfb8ba3d14a..741c07504d9203 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_audio_capture.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_audio_capture.json @@ -11,6 +11,7 @@ "language": "kuery", "license": "Elastic License v2", "name": "PowerShell Suspicious Script with Audio Capture Capabilities", + "note": "## Triage and analysis.\n\n### Investigating PowerShell Suspicious Script with Audio Capture Capabilities\n\nPowerShell is one of the main tools used by system administrators for automation, report routines, and other tasks.\n\nAttackers can use PowerShell to interact with the Windows API and capture audio from input devices connected to the\ncomputer.\n\n#### Possible investigation steps:\n\n- Examine script content that triggered the detection. \n- Investigate script execution chain (parent process tree)\n- Inspect any file or network events from the suspicious powershell host process instance.\n- If the action is suspicious for the user, check for any other activities done by the user in the last 48 hours.\n\n### False Positive Analysis\n\n- Verify whether the script content is malicious/harmful.\n\n### Related Rules\n\n- PowerShell PSReflect Script - 56f2e9b5-4803-4e44-a0a4-a52dc79d57fe\n- Potential Process Injection via PowerShell - 2e29e96a-b67c-455a-afe4-de6183431d0d\n\n### Response and Remediation\n\n- Immediate response should be taken to validate, investigate, and potentially contain the activity to prevent further\npost-compromise behavior.\n\n## Config\n\nThe 'PowerShell Script Block Logging' logging policy must be enabled.\nSteps to implement the logging policy with with Advanced Audit Configuration:\n\n```\nComputer Configuration > \nAdministrative Templates > \nWindows PowerShell > \nTurn on PowerShell Script Block Logging (Enable)\n```\n\nSteps to implement the logging policy via registry:\n\n```\nreg add \"hklm\\SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging\" /v EnableScriptBlockLogging /t REG_DWORD /d 1\n```\n", "query": "event.category:process and \n powershell.file.script_block_text : (\n Get-MicrophoneAudio or (waveInGetNumDevs and mciSendStringA)\n )\n", "references": [ "https://github.com/PowerShellMafia/PowerSploit/blob/master/Exfiltration/Get-MicrophoneAudio.ps1" @@ -66,5 +67,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 2 + "version": 3 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_keylogger.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_keylogger.json index b586295b8f2326..f128a2cac13cca 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_keylogger.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_keylogger.json @@ -11,6 +11,7 @@ "language": "kuery", "license": "Elastic License v2", "name": "PowerShell Keylogging Script", + "note": "## Triage and analysis.\n\n### Investigating PowerShell Keylogging Script\n\nPowerShell is one of the main tools used by system administrators for automation, report routines, and other tasks.\n\nAttackers can abuse PowerShell capabilities to capture user Keystrokes with the goal of stealing credentials and other\nvaluable information as Credit Card data and confidential conversations.\n\n#### Possible investigation steps:\n\n- Examine script content that triggered the detection. \n- Investigate script execution chain (parent process tree)\n- Inspect any file or network events from the suspicious powershell host process instance.\n- If the action is suspicious for the user, check for any other activities done by the user in the last 48 hours.\n\n### False Positive Analysis\n\n- Verify whether the script content is malicious/harmful.\n\n### Related Rules\n\n- PowerShell PSReflect Script - 56f2e9b5-4803-4e44-a0a4-a52dc79d57fe\n\n### Response and Remediation\n\n- Immediate response should be taken to validate, investigate, and potentially contain the activity to prevent further\npost-compromise behavior.\n\n## Config\n\nThe 'PowerShell Script Block Logging' logging policy must be enabled.\nSteps to implement the logging policy with with Advanced Audit Configuration:\n\n```\nComputer Configuration > \nAdministrative Templates > \nWindows PowerShell > \nTurn on PowerShell Script Block Logging (Enable)\n```\n\nSteps to implement the logging policy via registry:\n\n```\nreg add \"hklm\\SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging\" /v EnableScriptBlockLogging /t REG_DWORD /d 1\n```\n", "query": "event.category:process and \n ( \n powershell.file.script_block_text : (GetAsyncKeyState or NtUserGetAsyncKeyState or GetKeyboardState or Get-Keystrokes) or \n powershell.file.script_block_text : ((SetWindowsHookA or SetWindowsHookW or SetWindowsHookEx or SetWindowsHookExA or NtUserSetWindowsHookEx) and (GetForegroundWindow or GetWindowTextA or GetWindowTextW or WM_KEYBOARD_LL))\n )\n", "references": [ "https://github.com/EmpireProject/Empire/blob/master/data/module_source/collection/Get-Keystrokes.ps1", @@ -74,5 +75,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 1 + "version": 2 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_screen_grabber.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_screen_grabber.json new file mode 100644 index 00000000000000..916939dc652a68 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/collection_posh_screen_grabber.json @@ -0,0 +1,70 @@ +{ + "author": [ + "Elastic" + ], + "description": "Detects PowerShell Scripts that can take screenshots, which is a common feature in post-exploitation kits and RATs (Remote Access Tools).", + "from": "now-9m", + "index": [ + "winlogbeat-*", + "logs-windows.*" + ], + "language": "kuery", + "license": "Elastic License v2", + "name": "PowerShell Suspicious Script with Screenshot Capabilities", + "query": "event.category:process and \n powershell.file.script_block_text : (\n CopyFromScreen and\n (System.Drawing.Bitmap or Drawing.Bitmap)\n )\n", + "references": [ + "https://docs.microsoft.com/en-us/dotnet/api/system.drawing.graphics.copyfromscreen" + ], + "risk_score": 47, + "rule_id": "959a7353-1129-4aa7-9084-30746b256a70", + "severity": "medium", + "tags": [ + "Elastic", + "Host", + "Windows", + "Threat Detection", + "Collection" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0009", + "name": "Collection", + "reference": "https://attack.mitre.org/tactics/TA0009/" + }, + "technique": [ + { + "id": "T1113", + "name": "Screen Capture", + "reference": "https://attack.mitre.org/techniques/T1113/" + } + ] + }, + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0002", + "name": "Execution", + "reference": "https://attack.mitre.org/tactics/TA0002/" + }, + "technique": [ + { + "id": "T1059", + "name": "Command and Scripting Interpreter", + "reference": "https://attack.mitre.org/techniques/T1059/", + "subtechnique": [ + { + "id": "T1059.001", + "name": "PowerShell", + "reference": "https://attack.mitre.org/techniques/T1059/001/" + } + ] + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "query", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/command_and_control_common_webservices.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/command_and_control_common_webservices.json index b1774ab3dd052e..50deb969b57a6e 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/command_and_control_common_webservices.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/command_and_control_common_webservices.json @@ -12,7 +12,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Connection to Commonly Abused Web Services", - "query": "network where network.protocol == \"dns\" and\n process.name != null and user.id not in (\"S-1-5-18\", \"S-1-5-19\", \"S-1-5-20\") and\n /* Add new WebSvc domains here */\n dns.question.name :\n (\n \"raw.githubusercontent.*\",\n \"*.pastebin.*\",\n \"*drive.google.*\",\n \"*docs.live.*\",\n \"*api.dropboxapi.*\",\n \"*dropboxusercontent.*\",\n \"*onedrive.*\",\n \"*4shared.*\",\n \"*.file.io\",\n \"*filebin.net\",\n \"*slack-files.com\",\n \"*ghostbin.*\",\n \"*ngrok.*\",\n \"*portmap.*\",\n \"*serveo.net\",\n \"*localtunnel.me\",\n \"*pagekite.me\",\n \"*localxpose.io\",\n \"*notabug.org\",\n \"rawcdn.githack.*\",\n \"paste.nrecom.net\",\n \"zerobin.net\",\n \"controlc.com\",\n \"requestbin.net\"\n ) and\n /* Insert noisy false positives here */\n not process.executable :\n (\n \"?:\\\\Program Files\\\\*.exe\",\n \"?:\\\\Program Files (x86)\\\\*.exe\",\n \"?:\\\\Windows\\\\System32\\\\WWAHost.exe\",\n \"?:\\\\Windows\\\\System32\\\\smartscreen.exe\",\n \"?:\\\\Windows\\\\System32\\\\MicrosoftEdgeCP.exe\",\n \"?:\\\\ProgramData\\\\Microsoft\\\\Windows Defender\\\\Platform\\\\*\\\\MsMpEng.exe\",\n \"?:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe\",\n \"?:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Programs\\\\Fiddler\\\\Fiddler.exe\",\n \"?:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\Code.exe\",\n \"?:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Microsoft\\\\OneDrive\\\\OneDrive.exe\",\n \"?:\\\\Windows\\\\system32\\\\mobsync.exe\",\n \"?:\\\\Windows\\\\SysWOW64\\\\mobsync.exe\"\n )\n", + "query": "network where network.protocol == \"dns\" and\n process.name != null and user.id not in (\"S-1-5-18\", \"S-1-5-19\", \"S-1-5-20\") and\n /* Add new WebSvc domains here */\n dns.question.name :\n (\n \"raw.githubusercontent.*\",\n \"*.pastebin.*\",\n \"*drive.google.*\",\n \"*docs.live.*\",\n \"*api.dropboxapi.*\",\n \"*dropboxusercontent.*\",\n \"*onedrive.*\",\n \"*4shared.*\",\n \"*.file.io\",\n \"*filebin.net\",\n \"*slack-files.com\",\n \"*ghostbin.*\",\n \"*ngrok.*\",\n \"*portmap.*\",\n \"*serveo.net\",\n \"*localtunnel.me\",\n \"*pagekite.me\",\n \"*localxpose.io\",\n \"*notabug.org\",\n \"rawcdn.githack.*\",\n \"paste.nrecom.net\",\n \"zerobin.net\",\n \"controlc.com\",\n \"requestbin.net\",\n \"cdn.discordapp.com\",\n \"discordapp.com\",\n \"discord.com\"\n ) and\n /* Insert noisy false positives here */\n not process.executable :\n (\n \"?:\\\\Program Files\\\\*.exe\",\n \"?:\\\\Program Files (x86)\\\\*.exe\",\n \"?:\\\\Windows\\\\System32\\\\WWAHost.exe\",\n \"?:\\\\Windows\\\\System32\\\\smartscreen.exe\",\n \"?:\\\\Windows\\\\System32\\\\MicrosoftEdgeCP.exe\",\n \"?:\\\\ProgramData\\\\Microsoft\\\\Windows Defender\\\\Platform\\\\*\\\\MsMpEng.exe\",\n \"?:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe\",\n \"?:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Programs\\\\Fiddler\\\\Fiddler.exe\",\n \"?:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\Code.exe\",\n \"?:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Microsoft\\\\OneDrive\\\\OneDrive.exe\",\n \"?:\\\\Windows\\\\system32\\\\mobsync.exe\",\n \"?:\\\\Windows\\\\SysWOW64\\\\mobsync.exe\",\n \"?:\\\\Users\\\\*\\\\AppData\\\\Local\\\\Discord\\\\-*\\\\Discord.exe\"\n )\n", "risk_score": 21, "rule_id": "66883649-f908-4a5b-a1e0-54090a1d3a32", "severity": "low", @@ -69,5 +69,5 @@ ], "timestamp_override": "event.ingested", "type": "eql", - "version": 5 + "version": 6 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_posh_minidump.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_posh_minidump.json index fd72ceb6d53182..1bdba2064b4a44 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_posh_minidump.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_posh_minidump.json @@ -14,10 +14,12 @@ "language": "kuery", "license": "Elastic License v2", "name": "PowerShell MiniDump Script", + "note": "## Triage and analysis.\n\n### Investigating PowerShell MiniDump Script\n\nPowerShell is one of the main tools used by system administrators for automation, report routines, and other tasks.\n\nProcess Memory Dump capabilities can be abused by attackers to extract credentials from LSASS or to obtain other privileged\ninformation stored in the process memory.\n\n#### Possible investigation steps:\n\n- Examine script content that triggered the detection. \n- Investigate script execution chain (parent process tree)\n- Inspect any file or network events from the suspicious powershell host process instance.\n- If the action is suspicious for the user, check for any other activities done by the user in the last 48 hours.\n\n### False Positive Analysis\n\n- Verify whether the script content is malicious/harmful.\n\n### Related Rules\n\n- PowerShell PSReflect Script - 56f2e9b5-4803-4e44-a0a4-a52dc79d57fe\n- Potential Process Injection via PowerShell - 2e29e96a-b67c-455a-afe4-de6183431d0d\n\n### Response and Remediation\n\n- Immediate response should be taken to validate, investigate, and potentially contain the activity to prevent further\npost-compromise behavior.\n\n## Config\n\nThe 'PowerShell Script Block Logging' logging policy must be enabled.\nSteps to implement the logging policy with with Advanced Audit Configuration:\n\n```\nComputer Configuration > \nAdministrative Templates > \nWindows PowerShell > \nTurn on PowerShell Script Block Logging (Enable)\n```\n\nSteps to implement the logging policy via registry:\n\n```\nreg add \"hklm\\SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging\" /v EnableScriptBlockLogging /t REG_DWORD /d 1\n```\n", "query": "event.category:process and powershell.file.script_block_text:(MiniDumpWriteDump or MiniDumpWithFullMemory or pmuDetirWpmuDiniM)\n", "references": [ "https://github.com/PowerShellMafia/PowerSploit/blob/master/Exfiltration/Out-Minidump.ps1", - "https://github.com/FuzzySecurity/PowerShell-Suite/blob/master/Get-ProcessMiniDump.ps1" + "https://github.com/FuzzySecurity/PowerShell-Suite/blob/master/Get-ProcessMiniDump.ps1", + "https://github.com/atc-project/atc-data/blob/master/docs/Logging_Policies/LP_0109_windows_powershell_script_block_log.md" ], "risk_score": 73, "rule_id": "577ec21e-56fe-4065-91d8-45eb8224fe77", @@ -77,5 +79,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 2 + "version": 3 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_symbolic_link_to_shadow_copy_createdcredential_access_symbolic_link_to_shadow_copy_created.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_symbolic_link_to_shadow_copy_createdcredential_access_symbolic_link_to_shadow_copy_created.json new file mode 100644 index 00000000000000..80604018e8d55a --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_symbolic_link_to_shadow_copy_createdcredential_access_symbolic_link_to_shadow_copy_created.json @@ -0,0 +1,53 @@ +{ + "author": [ + "Austin Songer" + ], + "description": "Identifies the creation of symbolic links to a shadow copy. Symbolic Links can be used to access files in the shadow copy, including sensitive files that may contain credential information.", + "false_positives": [ + "Legitimate administrative activity related to shadow copies" + ], + "from": "now-9m", + "index": [ + "winlogbeat-*", + "logs-endpoint.events.*", + "logs-windows.*" + ], + "language": "eql", + "license": "Elastic License v2", + "name": "Symbolic Link to Shadow Copy Created", + "query": "process where event.type in (\"start\", \"process_started\") and\nprocess.pe.original_file_name == \"Cmd.Exe\" and\nprocess.args : \"*mklink*\" and\nprocess.args : \"*\\\\GLOBALROOT\\\\Device\\\\HarddiskVolumeShadowCopy*\"\n", + "references": [ + "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink", + "https://2017.zeronights.org/wp-content/uploads/materials/ZN17_Kheirkhabarov_Hunting_for_Credentials_Dumping_in_Windows_Environment.pdf" + ], + "risk_score": 47, + "rule_id": "d117cbb4-7d56-41b4-b999-bdf8c25648a0", + "severity": "medium", + "tags": [ + "Elastic", + "Host", + "Windows", + "Threat Detection", + "Credential Access" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0006", + "name": "Credential Access", + "reference": "https://attack.mitre.org/tactics/TA0006/" + }, + "technique": [ + { + "id": "T1003", + "name": "OS Credential Dumping", + "reference": "https://attack.mitre.org/techniques/T1003/" + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "eql", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_user_excessive_sso_logon_errors.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_user_excessive_sso_logon_errors.json index 9c1a259ae3e1e1..14f44ed3c38243 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_user_excessive_sso_logon_errors.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/credential_access_user_excessive_sso_logon_errors.json @@ -16,7 +16,7 @@ "license": "Elastic License v2", "name": "O365 Excessive Single Sign-On Logon Errors", "note": "## Config\n\nThe Microsoft 365 Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.", - "query": "event.dataset:o365.audit and event.provider:AzureActiveDirectory and event.category:web and o365.audit.LogonError:\"SsoArtifactInvalidOrExpired\"\n", + "query": "event.dataset:o365.audit and event.provider:AzureActiveDirectory and event.category:authentication and o365.audit.LogonError:\"SsoArtifactInvalidOrExpired\"\n", "risk_score": 73, "rule_id": "2de10e77-c144-4e69-afb7-344e7127abd0", "severity": "high", @@ -52,5 +52,5 @@ "value": 5 }, "type": "threshold", - "version": 2 + "version": 3 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_microsoft_365_mailboxauditbypassassociation.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_microsoft_365_mailboxauditbypassassociation.json new file mode 100644 index 00000000000000..169ad751e6144a --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_microsoft_365_mailboxauditbypassassociation.json @@ -0,0 +1,60 @@ +{ + "author": [ + "Elastic" + ], + "description": "Detects the occurrence of mailbox audit bypass associations. The mailbox audit is responsible for logging specified mailbox events (like accessing a folder or a message or permanently deleting a message). However, actions taken by some authorized accounts, such as accounts used by third-party tools or accounts used for lawful monitoring, can create a large number of mailbox audit log entries and may not be of interest to your organization. Because of this, administrators can create bypass associations, allowing certain accounts to perform their tasks without being logged. Attackers can abuse this allowlist mechanism to conceal actions taken, as the mailbox audit will log no activity done by the account.", + "false_positives": [ + "Legitimate whitelisting of noisy accounts" + ], + "from": "now-30m", + "index": [ + "filebeat-*", + "logs-o365*" + ], + "language": "kuery", + "license": "Elastic License v2", + "name": "O365 Mailbox Audit Logging Bypass", + "note": "## Config\n\nThe Microsoft 365 Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.", + "query": "event.dataset:o365.audit and event.provider:Exchange and event.action:Set-MailboxAuditBypassAssociation and event.outcome:success\n", + "references": [ + "https://twitter.com/misconfig/status/1476144066807140355" + ], + "risk_score": 47, + "rule_id": "675239ea-c1bc-4467-a6d3-b9e2cc7f676d", + "severity": "medium", + "tags": [ + "Elastic", + "Cloud", + "Microsoft 365", + "Continuous Monitoring", + "SecOps", + "Initial Access" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0005", + "name": "Defense Evasion", + "reference": "https://attack.mitre.org/tactics/TA0005/" + }, + "technique": [ + { + "id": "T1562", + "name": "Impair Defenses", + "reference": "https://attack.mitre.org/techniques/T1562/", + "subtechnique": [ + { + "id": "T1562.001", + "name": "Disable or Modify Tools", + "reference": "https://attack.mitre.org/techniques/T1562/001/" + } + ] + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "query", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_microsoft_defender_tampering.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_microsoft_defender_tampering.json new file mode 100644 index 00000000000000..f73b96015f8855 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_microsoft_defender_tampering.json @@ -0,0 +1,59 @@ +{ + "author": [ + "Austin Songer" + ], + "description": "Identifies when one or more features on Microsoft Defender are disabled. Adversaries may disable or tamper Microsoft Defender features to evade detection and conceal malicious behavior.", + "false_positives": [ + "Legitimate Windows Defender configuration changes" + ], + "from": "now-9m", + "index": [ + "winlogbeat-*", + "logs-endpoint.events.*", + "logs-windows.*" + ], + "language": "eql", + "license": "Elastic License v2", + "name": "Microsoft Windows Defender Tampering", + "query": "registry where event.type in (\"creation\", \"change\") and\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\PUAProtection\" and\n registry.data.strings : \"0\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender Security Center\\\\App and Browser protection\\\\DisallowExploitProtectionOverride\" and\n registry.data.strings : \"1\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\DisableAntiSpyware\" and\n registry.data.strings : \"1\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Features\\\\TamperProtection\" and\n registry.data.strings : \"0\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\\DisableRealtimeMonitoring\" and\n registry.data.strings : \"1\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\\DisableIntrusionPreventionSystem\" and\n registry.data.strings : \"1\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\\DisableScriptScanning\" and\n registry.data.strings : \"1\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Windows Defender Exploit Guard\\\\Controlled Folder Access\\\\EnableControlledFolderAccess\" and\n registry.data.strings : \"0\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\\DisableIOAVProtection\" and\n registry.data.strings : \"1\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Reporting\\\\DisableEnhancedNotifications\" and\n registry.data.strings : \"1\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\SpyNet\\\\DisableBlockAtFirstSeen\" and\n registry.data.strings : \"1\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\SpyNet\\\\SpynetReporting\" and\n registry.data.strings : \"0\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\SpyNet\\\\SubmitSamplesConsent\" and\n registry.data.strings : \"0\") or\n (registry.path : \"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\\DisableBehaviorMonitoring\" and\n registry.data.strings : \"1\")\n", + "references": [ + "https://thedfirreport.com/2021/10/18/icedid-to-xinglocker-ransomware-in-24-hours/", + "https://www.tenforums.com/tutorials/32236-enable-disable-microsoft-defender-pua-protection-windows-10-a.html", + "https://www.tenforums.com/tutorials/104025-turn-off-core-isolation-memory-integrity-windows-10-a.html", + "https://www.tenforums.com/tutorials/105533-enable-disable-windows-defender-exploit-protection-settings.html", + "https://www.tenforums.com/tutorials/123792-turn-off-tamper-protection-microsoft-defender-antivirus.html", + "https://www.tenforums.com/tutorials/51514-turn-off-microsoft-defender-periodic-scanning-windows-10-a.html", + "https://www.tenforums.com/tutorials/3569-turn-off-real-time-protection-microsoft-defender-antivirus.html", + "https://www.tenforums.com/tutorials/99576-how-schedule-scan-microsoft-defender-antivirus-windows-10-a.html" + ], + "risk_score": 47, + "rule_id": "fe794edd-487f-4a90-b285-3ee54f2af2d3", + "severity": "medium", + "tags": [ + "Elastic", + "Host", + "Windows", + "Threat Detection", + "Defense Evasion" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0005", + "name": "Defense Evasion", + "reference": "https://attack.mitre.org/tactics/TA0005/" + }, + "technique": [ + { + "id": "T1562", + "name": "Impair Defenses", + "reference": "https://attack.mitre.org/techniques/T1562/" + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "eql", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_posh_compressed.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_posh_compressed.json new file mode 100644 index 00000000000000..03de37966bbd41 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_posh_compressed.json @@ -0,0 +1,75 @@ +{ + "author": [ + "Elastic" + ], + "description": "Identifies the use of .Net functionality for decompression and base64 decoding combined in PowerShell scripts, which Malware and security tools heavily use to deobfuscate payloads and load them directly in memory to bypass defenses.", + "false_positives": [ + "Legitimate PowerShell Scripts which makes use of compression and encoding" + ], + "from": "now-9m", + "index": [ + "winlogbeat-*", + "logs-windows.*" + ], + "language": "kuery", + "license": "Elastic License v2", + "name": "PowerShell Suspicious Payload Encoded and Compressed", + "query": "event.category:process and \n powershell.file.script_block_text : (\n (System.IO.Compression.DeflateStream or System.IO.Compression.GzipStream or IO.Compression.DeflateStream or IO.Compression.GzipStream) and\n FromBase64String\n )\n", + "risk_score": 47, + "rule_id": "81fe9dc6-a2d7-4192-a2d8-eed98afc766a", + "severity": "medium", + "tags": [ + "Elastic", + "Host", + "Windows", + "Threat Detection", + "Defense Evasion" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0005", + "name": "Defense Evasion", + "reference": "https://attack.mitre.org/tactics/TA0005/" + }, + "technique": [ + { + "id": "T1140", + "name": "Deobfuscate/Decode Files or Information", + "reference": "https://attack.mitre.org/techniques/T1140/" + }, + { + "id": "T1027", + "name": "Obfuscated Files or Information", + "reference": "https://attack.mitre.org/techniques/T1027/" + } + ] + }, + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0002", + "name": "Execution", + "reference": "https://attack.mitre.org/tactics/TA0002/" + }, + "technique": [ + { + "id": "T1059", + "name": "Command and Scripting Interpreter", + "reference": "https://attack.mitre.org/techniques/T1059/", + "subtechnique": [ + { + "id": "T1059.001", + "name": "PowerShell", + "reference": "https://attack.mitre.org/techniques/T1059/001/" + } + ] + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "query", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_posh_process_injection.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_posh_process_injection.json index fad9076ab2f280..873969efa49c0e 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_posh_process_injection.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_posh_process_injection.json @@ -14,6 +14,7 @@ "language": "kuery", "license": "Elastic License v2", "name": "Potential Process Injection via PowerShell", + "note": "## Triage and analysis.\n\n### Investigating Potential Process Injection via PowerShell\n\nPowerShell is one of the main tools used by system administrators for automation, report routines, and other tasks.\n\nPowerShell also has solid capabilities to make the interaction with the Win32 API in an uncomplicated and reliable way,\nlike the execution of inline C# code, PSReflect, Get-ProcAddress, etc.\n\nRed Team tooling and Malware Developers take advantage of these capabilities to develop stagers and loaders that inject\npayloads directly into the memory, without touching the disk.\n\n#### Possible investigation steps:\n\n- Examine script content that triggered the detection. \n- Investigate script execution chain (parent process tree)\n- Inspect any file or network events from the suspicious powershell host process instance.\n- If the action is suspicious for the user, check for any other activities done by the user in the last 48 hours.\n\n### False Positive Analysis\n\n- Verify whether the script content is malicious/harmful.\n\n### Related Rules\n\n- PowerShell PSReflect Script - 56f2e9b5-4803-4e44-a0a4-a52dc79d57fe\n\n### Response and Remediation\n\n- Immediate response should be taken to validate, investigate, and potentially contain the activity to prevent further\npost-compromise behavior.\n\n## Config\n\nThe 'PowerShell Script Block Logging' logging policy must be enabled.\nSteps to implement the logging policy with with Advanced Audit Configuration:\n\n```\nComputer Configuration > \nAdministrative Templates > \nWindows PowerShell > \nTurn on PowerShell Script Block Logging (Enable)\n```\n\nSteps to implement the logging policy via registry:\n\n```\nreg add \"hklm\\SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging\" /v EnableScriptBlockLogging /t REG_DWORD /d 1\n```\n", "query": "event.category:process and \n powershell.file.script_block_text : (\n (VirtualAlloc or VirtualAllocEx or VirtualProtect or LdrLoadDll or LoadLibrary or LoadLibraryA or\n LoadLibraryEx or GetProcAddress or OpenProcess or OpenProcessToken or AdjustTokenPrivileges) and\n (WriteProcessMemory or CreateRemoteThread or NtCreateThreadEx or CreateThread or QueueUserAPC or\n SuspendThread or ResumeThread)\n )\n", "references": [ "https://github.com/EmpireProject/Empire/blob/master/data/module_source/management/Invoke-PSInject.ps1", @@ -61,5 +62,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 1 + "version": 2 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_suppression_rule_created.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_suppression_rule_created.json new file mode 100644 index 00000000000000..cce222e233838f --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/defense_evasion_suppression_rule_created.json @@ -0,0 +1,54 @@ +{ + "author": [ + "Austin Songer" + ], + "description": "Identifies the creation of suppression rules in Azure. Suppression rules are a mechanism used to suppress alerts previously identified as False Positives or too noisy to be in Production. This mechanism can be abused or mistakenly configured, resulting in defense evasions and loss of security visibility.", + "false_positives": [ + "Suppression Rules can be created legitimately by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment. Suppression Rules created by unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule." + ], + "from": "now-25m", + "index": [ + "filebeat-*", + "logs-azure*" + ], + "language": "kuery", + "license": "Elastic License v2", + "name": "Azure Alert Suppression Rule Created or Modified", + "note": "## Config\n\nThe Azure Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.", + "query": "event.dataset:azure.activitylogs and azure.activitylogs.operation_name:\"MICROSOFT.SECURITY/ALERTSSUPPRESSIONRULES/WRITE\" and \nevent.outcome: \"success\"\n", + "references": [ + "https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations", + "https://docs.microsoft.com/en-us/rest/api/securitycenter/alerts-suppression-rules/update" + ], + "risk_score": 21, + "rule_id": "f0bc081a-2346-4744-a6a4-81514817e888", + "severity": "low", + "tags": [ + "Elastic", + "Cloud", + "Azure", + "Continuous Monitoring", + "SecOps", + "Configuration Audit" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0005", + "name": "Defense Evasion", + "reference": "https://attack.mitre.org/tactics/TA0005/" + }, + "technique": [ + { + "id": "T1562", + "name": "Impair Defenses", + "reference": "https://attack.mitre.org/techniques/T1562/" + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "query", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/discovery_posh_suspicious_api_functions.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/discovery_posh_suspicious_api_functions.json index 10d7bf56e57f3f..6a38ff75d66600 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/discovery_posh_suspicious_api_functions.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/discovery_posh_suspicious_api_functions.json @@ -14,9 +14,11 @@ "language": "kuery", "license": "Elastic License v2", "name": "PowerShell Suspicious Discovery Related Windows API Functions", + "note": "## Triage and analysis.\n\n### Investigating PowerShell Suspicious Discovery Related Windows API Functions\n\nPowerShell is one of the main tools used by system administrators for automation, report routines, and other tasks.\n\nAttackers can use PowerShell to interact with the Win32 API to bypass file based AntiVirus detections, using libraries\nlike PSReflect or Get-ProcAddress Cmdlet.\n\n#### Possible investigation steps:\n\n- Examine script content that triggered the detection. \n- Investigate script execution chain (parent process tree).\n- Inspect any file or network events from the suspicious powershell host process instance.\n- If the action is suspicious for the user, check for any other activities done by the user in the last 48 hours.\n\n### False Positive Analysis\n\n- Verify whether the script content is malicious/harmful.\n\n### Related Rules\n\n- PowerShell PSReflect Script - 56f2e9b5-4803-4e44-a0a4-a52dc79d57fe\n\n### Response and Remediation\n\n- Immediate response should be taken to validate, investigate, and potentially contain the activity to prevent further\npost-compromise behavior.\n\n## Config\n\nThe 'PowerShell Script Block Logging' logging policy must be enabled.\nSteps to implement the logging policy with with Advanced Audit Configuration:\n\n```\nComputer Configuration > \nAdministrative Templates > \nWindows PowerShell > \nTurn on PowerShell Script Block Logging (Enable)\n```\n\nSteps to implement the logging policy via registry:\n\n```\nreg add \"hklm\\SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging\" /v EnableScriptBlockLogging /t REG_DWORD /d 1\n```\n", "query": "event.category:process and \n powershell.file.script_block_text : (\n NetShareEnum or\n NetWkstaUserEnum or\n NetSessionEnum or\n NetLocalGroupEnum or\n NetLocalGroupGetMembers or\n DsGetSiteName or\n DsEnumerateDomainTrusts or\n WTSEnumerateSessionsEx or\n WTSQuerySessionInformation or\n LsaGetLogonSessionData or\n QueryServiceObjectSecurity\n )\n", "references": [ - "https://github.com/BC-SECURITY/Empire/blob/9259e5106986847d2bb770c4289c0c0f1adf2344/data/module_source/situational_awareness/network/powerview.ps1#L21413" + "https://github.com/BC-SECURITY/Empire/blob/9259e5106986847d2bb770c4289c0c0f1adf2344/data/module_source/situational_awareness/network/powerview.ps1#L21413", + "https://github.com/atc-project/atc-data/blob/master/docs/Logging_Policies/LP_0109_windows_powershell_script_block_log.md" ], "risk_score": 47, "rule_id": "61ac3638-40a3-44b2-855a-985636ca985e", @@ -86,5 +88,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 2 + "version": 3 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/domain_added_to_google_workspace_trusted_domains.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/domain_added_to_google_workspace_trusted_domains.json index 9ee112bd9eec33..3f9e9ca343bd44 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/domain_added_to_google_workspace_trusted_domains.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/domain_added_to_google_workspace_trusted_domains.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "Domain Added to Google Workspace Trusted Domains", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and event.provider:admin and event.category:iam and event.action:ADD_TRUSTED_DOMAINS\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and event.action:ADD_TRUSTED_DOMAINS\n", "references": [ "https://support.google.com/a/answer/6160020?hl=en" ], @@ -33,5 +33,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 5 + "version": 6 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_adversary_behavior_detected.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_adversary_behavior_detected.json index ff690710b5ba3f..abe19ac7e0a69a 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_adversary_behavior_detected.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_adversary_behavior_detected.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Adversary Behavior - Detected - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and (event.action:rules_engine_event or endgame.event_subtype_full:rules_engine_event)\n", "risk_score": 47, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_dumping_detected.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_dumping_detected.json index 4aaf9938c29da8..d08d5cdc79ba0b 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_dumping_detected.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_dumping_detected.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Credential Dumping - Detected - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:detection and (event.action:cred_theft_event or endgame.event_subtype_full:cred_theft_event)\n", "risk_score": 73, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_dumping_prevented.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_dumping_prevented.json index 11e8dece47fb54..48159cfc3a07fc 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_dumping_prevented.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_dumping_prevented.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Credential Dumping - Prevented - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:prevention and (event.action:cred_theft_event or endgame.event_subtype_full:cred_theft_event)\n", "risk_score": 47, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_manipulation_detected.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_manipulation_detected.json index b6753cbbf784e9..30a94c67f9999a 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_manipulation_detected.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_manipulation_detected.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Credential Manipulation - Detected - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:detection and (event.action:token_manipulation_event or endgame.event_subtype_full:token_manipulation_event)\n", "risk_score": 73, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_manipulation_prevented.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_manipulation_prevented.json index 9f409b00d64210..cbacfb8310a938 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_manipulation_prevented.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_cred_manipulation_prevented.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Credential Manipulation - Prevented - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:prevention and (event.action:token_manipulation_event or endgame.event_subtype_full:token_manipulation_event)\n", "risk_score": 47, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_exploit_detected.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_exploit_detected.json index 0cc778cc12714f..51151f3ad264f1 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_exploit_detected.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_exploit_detected.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Exploit - Detected - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:detection and (event.action:exploit_event or endgame.event_subtype_full:exploit_event)\n", "risk_score": 73, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_exploit_prevented.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_exploit_prevented.json index fe7218fe878ee7..44e13fc83f15ac 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_exploit_prevented.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_exploit_prevented.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Exploit - Prevented - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:prevention and (event.action:exploit_event or endgame.event_subtype_full:exploit_event)\n", "risk_score": 47, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_malware_detected.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_malware_detected.json index 92795c38113452..7e375f9aca154d 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_malware_detected.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_malware_detected.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Malware - Detected - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:detection and (event.action:file_classification_event or endgame.event_subtype_full:file_classification_event)\n", "risk_score": 99, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_malware_prevented.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_malware_prevented.json index f712f3f1b221d6..b26a0ab2eedb75 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_malware_prevented.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_malware_prevented.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Malware - Prevented - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:prevention and (event.action:file_classification_event or endgame.event_subtype_full:file_classification_event)\n", "risk_score": 73, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_permission_theft_detected.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_permission_theft_detected.json index 96b64c026ad0d3..3ecfb461d2c497 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_permission_theft_detected.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_permission_theft_detected.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Permission Theft - Detected - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:detection and (event.action:token_protection_event or endgame.event_subtype_full:token_protection_event)\n", "risk_score": 73, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_permission_theft_prevented.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_permission_theft_prevented.json index fcb453d16100fc..7f1853af6910cc 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_permission_theft_prevented.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_permission_theft_prevented.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Permission Theft - Prevented - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:prevention and (event.action:token_protection_event or endgame.event_subtype_full:token_protection_event)\n", "risk_score": 47, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_process_injection_detected.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_process_injection_detected.json index 83a8ff2f83c8d7..8018ba8027bb74 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_process_injection_detected.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_process_injection_detected.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Process Injection - Detected - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:detection and (event.action:kernel_shellcode_event or endgame.event_subtype_full:kernel_shellcode_event)\n", "risk_score": 73, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_process_injection_prevented.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_process_injection_prevented.json index e171fbcf6bb831..c8fa9f26e7c71b 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_process_injection_prevented.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_process_injection_prevented.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Process Injection - Prevented - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:prevention and (event.action:kernel_shellcode_event or endgame.event_subtype_full:kernel_shellcode_event)\n", "risk_score": 47, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_ransomware_detected.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_ransomware_detected.json index 95049fa75c25d9..94534cf3a82c02 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_ransomware_detected.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_ransomware_detected.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Ransomware - Detected - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:detection and (event.action:ransomware_event or endgame.event_subtype_full:ransomware_event)\n", "risk_score": 99, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 7 + "version": 8 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_ransomware_prevented.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_ransomware_prevented.json index 3bfa5f9ead442b..3f493d89a0ff7b 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_ransomware_prevented.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/endgame_ransomware_prevented.json @@ -10,6 +10,7 @@ "interval": "10m", "language": "kuery", "license": "Elastic License v2", + "max_signals": 10000, "name": "Ransomware - Prevented - Elastic Endgame", "query": "event.kind:alert and event.module:endgame and endgame.metadata.type:prevention and (event.action:ransomware_event or endgame.event_subtype_full:ransomware_event)\n", "risk_score": 73, @@ -20,5 +21,5 @@ "Elastic Endgame" ], "type": "query", - "version": 7 + "version": 8 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/execution_posh_portable_executable.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/execution_posh_portable_executable.json index 66627e7ce9e12d..f4e07c6fa15b55 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/execution_posh_portable_executable.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/execution_posh_portable_executable.json @@ -11,7 +11,11 @@ "language": "kuery", "license": "Elastic License v2", "name": "Suspicious Portable Executable Encoded in Powershell Script", + "note": "## Triage and analysis.\n\n### Investigating Suspicious Portable Executable Encoded in Powershell Script\n\nPowerShell is one of the main tools used by system administrators for automation, report routines, and other tasks.\n\nAttackers can abuse PowerShell In-Memory capabilities to inject executables into memory without touching the disk, bypassing\nAntiVirus software. These executables are generally base64 encoded.\n\n#### Possible investigation steps:\n\n- Examine script content that triggered the detection. \n- Investigate script execution chain (parent process tree).\n- Inspect any file or network events from the suspicious powershell host process instance.\n- If the action is suspicious for the user, check for any other activities done by the user in the last 48 hours.\n\n### False Positive Analysis\n\n- Verify whether the script content is malicious/harmful.\n\n### Related Rules\n\n- PowerShell Reflection Assembly Load - e26f042e-c590-4e82-8e05-41e81bd822ad\n- PowerShell Suspicious Payload Encoded and Compressed - 81fe9dc6-a2d7-4192-a2d8-eed98afc766a\n- PowerShell PSReflect Script - 56f2e9b5-4803-4e44-a0a4-a52dc79d57fe\n\n### Response and Remediation\n\n- Immediate response should be taken to validate, investigate, and potentially contain the activity to prevent further\npost-compromise behavior.\n\n## Config\n\nThe 'PowerShell Script Block Logging' logging policy must be enabled.\nSteps to implement the logging policy with with Advanced Audit Configuration:\n\n```\nComputer Configuration > \nAdministrative Templates > \nWindows PowerShell > \nTurn on PowerShell Script Block Logging (Enable)\n```\n\nSteps to implement the logging policy via registry:\n\n```\nreg add \"hklm\\SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging\" /v EnableScriptBlockLogging /t REG_DWORD /d 1\n```\n", "query": "event.category:process and \n powershell.file.script_block_text : (\n TVqQAAMAAAAEAAAA\n )\n", + "references": [ + "https://github.com/atc-project/atc-data/blob/master/docs/Logging_Policies/LP_0109_windows_powershell_script_block_log.md" + ], "risk_score": 47, "rule_id": "ad84d445-b1ce-4377-82d9-7c633f28bf9a", "severity": "medium", @@ -48,5 +52,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 2 + "version": 3 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/execution_posh_psreflect.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/execution_posh_psreflect.json new file mode 100644 index 00000000000000..4cdb6edcde1b6e --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/execution_posh_psreflect.json @@ -0,0 +1,65 @@ +{ + "author": [ + "Elastic" + ], + "description": "Detects the use of PSReflect in PowerShell scripts. Attackers leverage PSReflect as a library that enables PowerShell to access win32 API functions.", + "false_positives": [ + "Legitimate Powershell Scripts that make use of PSReflect to access the win32 API" + ], + "from": "now-9m", + "index": [ + "winlogbeat-*", + "logs-windows.*" + ], + "language": "kuery", + "license": "Elastic License v2", + "name": "PowerShell PSReflect Script", + "note": "## Triage and analysis\n### Investigating PowerShell PSReflect Script\n\nPowerShell is one of the main tools in the belt of system administrators for automation, report routines, and other tasks.\n\nPSReflect is a library that enables PowerShell to access win32 API functions in an uncomplicated way. It also helps to\ncreate enums and structs easily\u2014all without touching the disk.\n\nAlthough this is an interesting project for every developer and admin out there, it is mainly used in the red team and\nmalware tooling for its capabilities.\n\nDetecting the core implementation of PSReflect means detecting most of the tooling that uses windows API through\nPowerShell, enabling the defender to discover tools being dropped in the environment.\n\n#### Possible investigation steps:\n- Check for additional PowerShell logs that indicate that the script/command was run.\n- Gather the script content that may be split into multiple script blocks, and identify its capabilities.\n- If the action is suspicious for the user, check for any other activities done by the user in the last 48 hours.\n- Look for additional alerts involving the host and the user.\n\n### False Positive Analysis\n- Verify whether the script content is malicious/harmful.\n\n### Related Rules\n- PowerShell Suspicious Discovery Related Windows API Functions - 61ac3638-40a3-44b2-855a-985636ca985e\n- PowerShell Keylogging Script - bd2c86a0-8b61-4457-ab38-96943984e889\n- PowerShell Suspicious Script with Audio Capture Capabilities - 2f2f4939-0b34-40c2-a0a3-844eb7889f43\n- Potential Process Injection via PowerShell - 2e29e96a-b67c-455a-afe4-de6183431d0d\n- PowerShell Reflection Assembly Load - e26f042e-c590-4e82-8e05-41e81bd822ad\n- PowerShell Suspicious Payload Encoded and Compressed - 81fe9dc6-a2d7-4192-a2d8-eed98afc766a\n- PowerShell Suspicious Script with Screenshot Capabilities - 959a7353-1129-4aa7-9084-30746b256a70\n\n### Response and Remediation\n- Immediate response should be taken to validate activity, investigate and potentially isolate activity to prevent further\npost-compromise behavior.\n\n## Config\nThe 'PowerShell Script Block Logging' logging policy is required be configured (Enable).\n\nSteps to implement the logging policy with with Advanced Audit Configuration:\n```\nComputer Configuration > \nAdministrative Templates > \nWindows PowerShell > \nTurn on PowerShell Script Block Logging (Enable)\n```\nSteps to implement the logging policy via registry:\n```\nreg add \"hklm\\SOFTWARE\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging\" /v EnableScriptBlockLogging /t REG_DWORD /d 1\n```\n", + "query": "event.category:process and \n powershell.file.script_block_text:(\n New-InMemoryModule or\n Add-Win32Type or\n psenum or\n DefineDynamicAssembly or\n DefineDynamicModule or\n Reflection.TypeAttributes or\n Reflection.Emit.OpCodes or\n Reflection.Emit.CustomAttributeBuilder or\n Runtime.InteropServices.DllImportAttribute\n )\n", + "references": [ + "https://github.com/mattifestation/PSReflect/blob/master/PSReflect.psm1", + "https://github.com/atc-project/atc-data/blob/master/docs/Logging_Policies/LP_0109_windows_powershell_script_block_log.md" + ], + "risk_score": 47, + "rule_id": "56f2e9b5-4803-4e44-a0a4-a52dc79d57fe", + "severity": "medium", + "tags": [ + "Elastic", + "Host", + "Windows", + "Threat Detection", + "Execution" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0002", + "name": "Execution", + "reference": "https://attack.mitre.org/tactics/TA0002/" + }, + "technique": [ + { + "id": "T1059", + "name": "Command and Scripting Interpreter", + "reference": "https://attack.mitre.org/techniques/T1059/", + "subtechnique": [ + { + "id": "T1059.001", + "name": "PowerShell", + "reference": "https://attack.mitre.org/techniques/T1059/001/" + } + ] + }, + { + "id": "T1106", + "name": "Native API", + "reference": "https://attack.mitre.org/techniques/T1106/" + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "query", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_admin_role_deletion.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_admin_role_deletion.json index 3e0f9744904816..657128132d5593 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_admin_role_deletion.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_admin_role_deletion.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "Google Workspace Admin Role Deletion", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and event.provider:admin and event.category:iam and event.action:DELETE_ROLE\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and event.action:DELETE_ROLE\n", "references": [ "https://support.google.com/a/answer/2406043?hl=en" ], @@ -33,5 +33,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 5 + "version": 6 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_mfa_enforcement_disabled.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_mfa_enforcement_disabled.json index ffb73f2e513bee..a90fd8c18266e7 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_mfa_enforcement_disabled.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_mfa_enforcement_disabled.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "Google Workspace MFA Enforcement Disabled", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and event.provider:admin and event.category:iam and event.action:ENFORCE_STRONG_AUTHENTICATION and (gsuite.admin.new_value:false or google_workspace.admin.new_value:false)\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and event.action:ENFORCE_STRONG_AUTHENTICATION and google_workspace.admin.new_value:false\n", "references": [ "https://support.google.com/a/answer/9176657?hl=en#" ], @@ -33,5 +33,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_policy_modified.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_policy_modified.json index 56c1d51a25655f..d29b41bdf56c3a 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_policy_modified.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/google_workspace_policy_modified.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "Google Workspace Password Policy Modified", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and\n event.provider:admin and event.category:iam and\n event.action:(CHANGE_APPLICATION_SETTING or CREATE_APPLICATION_SETTING) and\n gsuite.admin.setting.name:(\n \"Password Management - Enforce strong password\" or\n \"Password Management - Password reset frequency\" or\n \"Password Management - Enable password reuse\" or\n \"Password Management - Enforce password policy at next login\" or\n \"Password Management - Minimum password length\" or\n \"Password Management - Maximum password length\"\n ) or\n google_workspace.admin.setting.name:(\n \"Password Management - Enforce strong password\" or\n \"Password Management - Password reset frequency\" or\n \"Password Management - Enable password reuse\" or\n \"Password Management - Enforce password policy at next login\" or\n \"Password Management - Minimum password length\" or\n \"Password Management - Maximum password length\"\n )\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and\n event.action:(CHANGE_APPLICATION_SETTING or CREATE_APPLICATION_SETTING) and\n google_workspace.admin.setting.name:(\n \"Password Management - Enforce strong password\" or\n \"Password Management - Password reset frequency\" or\n \"Password Management - Enable password reuse\" or\n \"Password Management - Enforce password policy at next login\" or\n \"Password Management - Minimum password length\" or\n \"Password Management - Maximum password length\"\n )\n", "risk_score": 47, "rule_id": "a99f82f5-8e77-4f8b-b3ce-10c0f6afbc73", "severity": "medium", @@ -30,5 +30,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/index.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/index.ts index ce14d64c3ac0f5..eba920055a4f2e 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/index.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/index.ts @@ -545,65 +545,65 @@ import rule532 from './ml_rare_destination_country.json'; import rule533 from './ml_spike_in_traffic_to_a_country.json'; import rule534 from './command_and_control_tunneling_via_earthworm.json'; import rule535 from './lateral_movement_evasion_rdp_shadowing.json'; -import rule536 from './threat_intel_filebeat7x.json'; -import rule537 from './threat_intel_fleet_integrations.json'; -import rule538 from './exfiltration_ec2_vm_export_failure.json'; -import rule539 from './exfiltration_ec2_full_network_packet_capture_detected.json'; -import rule540 from './impact_azure_service_principal_credentials_added.json'; -import rule541 from './persistence_ec2_security_group_configuration_change_detection.json'; -import rule542 from './defense_evasion_disabling_windows_logs.json'; -import rule543 from './persistence_route_53_domain_transfer_lock_disabled.json'; -import rule544 from './persistence_route_53_domain_transferred_to_another_account.json'; -import rule545 from './initial_access_okta_user_attempted_unauthorized_access.json'; -import rule546 from './credential_access_user_excessive_sso_logon_errors.json'; -import rule547 from './persistence_exchange_suspicious_mailbox_right_delegation.json'; -import rule548 from './privilege_escalation_new_or_modified_federation_domain.json'; -import rule549 from './privilege_escalation_sts_assumerole_usage.json'; -import rule550 from './privilege_escalation_sts_getsessiontoken_abuse.json'; -import rule551 from './defense_evasion_suspicious_execution_from_mounted_device.json'; -import rule552 from './defense_evasion_unusual_network_connection_via_dllhost.json'; -import rule553 from './defense_evasion_amsienable_key_mod.json'; -import rule554 from './impact_rds_group_deletion.json'; -import rule555 from './persistence_rds_group_creation.json'; -import rule556 from './persistence_route_table_created.json'; -import rule557 from './persistence_route_table_modified_or_deleted.json'; -import rule558 from './exfiltration_rds_snapshot_export.json'; -import rule559 from './persistence_rds_instance_creation.json'; -import rule560 from './privilege_escalation_gcp_kubernetes_rolebindings_created_or_patched.json'; -import rule561 from './ml_auth_rare_hour_for_a_user_to_logon.json'; -import rule562 from './ml_auth_rare_source_ip_for_a_user.json'; -import rule563 from './ml_auth_rare_user_logon.json'; -import rule564 from './ml_auth_spike_in_failed_logon_events.json'; -import rule565 from './ml_auth_spike_in_logon_events.json'; -import rule566 from './ml_auth_spike_in_logon_events_from_a_source_ip.json'; -import rule567 from './privilege_escalation_cyberarkpas_error_audit_event_promotion.json'; -import rule568 from './privilege_escalation_cyberarkpas_recommended_events_to_monitor_promotion.json'; -import rule569 from './defense_evasion_kubernetes_events_deleted.json'; -import rule570 from './impact_kubernetes_pod_deleted.json'; -import rule571 from './exfiltration_rds_snapshot_restored.json'; -import rule572 from './privilege_escalation_printspooler_malicious_driver_file_changes.json'; -import rule573 from './privilege_escalation_printspooler_malicious_registry_modification.json'; -import rule574 from './privilege_escalation_printspooler_suspicious_file_deletion.json'; -import rule575 from './privilege_escalation_unusual_printspooler_childprocess.json'; -import rule576 from './defense_evasion_disabling_windows_defender_powershell.json'; -import rule577 from './defense_evasion_enable_network_discovery_with_netsh.json'; -import rule578 from './defense_evasion_execution_windefend_unusual_path.json'; -import rule579 from './defense_evasion_agent_spoofing_mismatched_id.json'; -import rule580 from './defense_evasion_agent_spoofing_multiple_hosts.json'; -import rule581 from './defense_evasion_parent_process_pid_spoofing.json'; -import rule582 from './impact_microsoft_365_potential_ransomware_activity.json'; -import rule583 from './impact_microsoft_365_unusual_volume_of_file_deletion.json'; -import rule584 from './initial_access_microsoft_365_user_restricted_from_sending_email.json'; -import rule585 from './defense_evasion_elasticache_security_group_creation.json'; -import rule586 from './defense_evasion_elasticache_security_group_modified_or_deleted.json'; -import rule587 from './impact_volume_shadow_copy_deletion_via_powershell.json'; -import rule588 from './persistence_route_53_hosted_zone_associated_with_a_vpc.json'; -import rule589 from './defense_evasion_defender_exclusion_via_powershell.json'; -import rule590 from './defense_evasion_dns_over_https_enabled.json'; -import rule591 from './defense_evasion_whitespace_padding_in_command_line.json'; -import rule592 from './defense_evasion_frontdoor_firewall_policy_deletion.json'; -import rule593 from './credential_access_azure_full_network_packet_capture_detected.json'; -import rule594 from './persistence_webshell_detection.json'; +import rule536 from './threat_intel_fleet_integrations.json'; +import rule537 from './exfiltration_ec2_vm_export_failure.json'; +import rule538 from './exfiltration_ec2_full_network_packet_capture_detected.json'; +import rule539 from './impact_azure_service_principal_credentials_added.json'; +import rule540 from './persistence_ec2_security_group_configuration_change_detection.json'; +import rule541 from './defense_evasion_disabling_windows_logs.json'; +import rule542 from './persistence_route_53_domain_transfer_lock_disabled.json'; +import rule543 from './persistence_route_53_domain_transferred_to_another_account.json'; +import rule544 from './initial_access_okta_user_attempted_unauthorized_access.json'; +import rule545 from './credential_access_user_excessive_sso_logon_errors.json'; +import rule546 from './persistence_exchange_suspicious_mailbox_right_delegation.json'; +import rule547 from './privilege_escalation_new_or_modified_federation_domain.json'; +import rule548 from './privilege_escalation_sts_assumerole_usage.json'; +import rule549 from './privilege_escalation_sts_getsessiontoken_abuse.json'; +import rule550 from './defense_evasion_suspicious_execution_from_mounted_device.json'; +import rule551 from './defense_evasion_unusual_network_connection_via_dllhost.json'; +import rule552 from './defense_evasion_amsienable_key_mod.json'; +import rule553 from './impact_rds_group_deletion.json'; +import rule554 from './persistence_rds_group_creation.json'; +import rule555 from './persistence_route_table_created.json'; +import rule556 from './persistence_route_table_modified_or_deleted.json'; +import rule557 from './exfiltration_rds_snapshot_export.json'; +import rule558 from './persistence_rds_instance_creation.json'; +import rule559 from './privilege_escalation_gcp_kubernetes_rolebindings_created_or_patched.json'; +import rule560 from './ml_auth_rare_hour_for_a_user_to_logon.json'; +import rule561 from './ml_auth_rare_source_ip_for_a_user.json'; +import rule562 from './ml_auth_rare_user_logon.json'; +import rule563 from './ml_auth_spike_in_failed_logon_events.json'; +import rule564 from './ml_auth_spike_in_logon_events.json'; +import rule565 from './ml_auth_spike_in_logon_events_from_a_source_ip.json'; +import rule566 from './privilege_escalation_cyberarkpas_error_audit_event_promotion.json'; +import rule567 from './privilege_escalation_cyberarkpas_recommended_events_to_monitor_promotion.json'; +import rule568 from './defense_evasion_kubernetes_events_deleted.json'; +import rule569 from './impact_kubernetes_pod_deleted.json'; +import rule570 from './exfiltration_rds_snapshot_restored.json'; +import rule571 from './privilege_escalation_printspooler_malicious_driver_file_changes.json'; +import rule572 from './privilege_escalation_printspooler_malicious_registry_modification.json'; +import rule573 from './privilege_escalation_printspooler_suspicious_file_deletion.json'; +import rule574 from './privilege_escalation_unusual_printspooler_childprocess.json'; +import rule575 from './defense_evasion_disabling_windows_defender_powershell.json'; +import rule576 from './defense_evasion_enable_network_discovery_with_netsh.json'; +import rule577 from './defense_evasion_execution_windefend_unusual_path.json'; +import rule578 from './defense_evasion_agent_spoofing_mismatched_id.json'; +import rule579 from './defense_evasion_agent_spoofing_multiple_hosts.json'; +import rule580 from './defense_evasion_parent_process_pid_spoofing.json'; +import rule581 from './impact_microsoft_365_potential_ransomware_activity.json'; +import rule582 from './impact_microsoft_365_unusual_volume_of_file_deletion.json'; +import rule583 from './initial_access_microsoft_365_user_restricted_from_sending_email.json'; +import rule584 from './defense_evasion_elasticache_security_group_creation.json'; +import rule585 from './defense_evasion_elasticache_security_group_modified_or_deleted.json'; +import rule586 from './impact_volume_shadow_copy_deletion_via_powershell.json'; +import rule587 from './persistence_route_53_hosted_zone_associated_with_a_vpc.json'; +import rule588 from './defense_evasion_defender_exclusion_via_powershell.json'; +import rule589 from './defense_evasion_dns_over_https_enabled.json'; +import rule590 from './defense_evasion_whitespace_padding_in_command_line.json'; +import rule591 from './defense_evasion_frontdoor_firewall_policy_deletion.json'; +import rule592 from './credential_access_azure_full_network_packet_capture_detected.json'; +import rule593 from './persistence_webshell_detection.json'; +import rule594 from './defense_evasion_suppression_rule_created.json'; import rule595 from './impact_efs_filesystem_or_mount_deleted.json'; import rule596 from './defense_evasion_execution_control_panel_suspicious_args.json'; import rule597 from './defense_evasion_azure_blob_permissions_modified.json'; @@ -624,17 +624,27 @@ import rule611 from './collection_posh_keylogger.json'; import rule612 from './defense_evasion_posh_assembly_load.json'; import rule613 from './defense_evasion_powershell_windows_firewall_disabled.json'; import rule614 from './execution_posh_portable_executable.json'; -import rule615 from './credential_access_suspicious_comsvcs_imageload.json'; -import rule616 from './impact_aws_eventbridge_rule_disabled_or_deleted.json'; -import rule617 from './initial_access_azure_active_directory_high_risk_signin_atrisk_or_confirmed.json'; -import rule618 from './persistence_remote_password_reset.json'; -import rule619 from './privilege_escalation_azure_kubernetes_rolebinding_created.json'; -import rule620 from './collection_posh_audio_capture.json'; -import rule621 from './defense_evasion_suspicious_process_creation_calltrace.json'; -import rule622 from './defense_evasion_clearing_windows_console_history.json'; -import rule623 from './threat_intel_filebeat8x.json'; -import rule624 from './credential_access_via_snapshot_lsass_clone_creation.json'; -import rule625 from './persistence_via_bits_job_notify_command.json'; +import rule615 from './execution_posh_psreflect.json'; +import rule616 from './credential_access_suspicious_comsvcs_imageload.json'; +import rule617 from './impact_aws_eventbridge_rule_disabled_or_deleted.json'; +import rule618 from './defense_evasion_microsoft_defender_tampering.json'; +import rule619 from './initial_access_azure_active_directory_high_risk_signin_atrisk_or_confirmed.json'; +import rule620 from './persistence_remote_password_reset.json'; +import rule621 from './privilege_escalation_azure_kubernetes_rolebinding_created.json'; +import rule622 from './collection_posh_audio_capture.json'; +import rule623 from './collection_posh_screen_grabber.json'; +import rule624 from './defense_evasion_posh_compressed.json'; +import rule625 from './defense_evasion_suspicious_process_creation_calltrace.json'; +import rule626 from './privilege_escalation_group_policy_iniscript.json'; +import rule627 from './privilege_escalation_group_policy_privileged_groups.json'; +import rule628 from './privilege_escalation_group_policy_scheduled_task.json'; +import rule629 from './defense_evasion_clearing_windows_console_history.json'; +import rule630 from './threat_intel_filebeat8x.json'; +import rule631 from './privilege_escalation_installertakeover.json'; +import rule632 from './credential_access_via_snapshot_lsass_clone_creation.json'; +import rule633 from './persistence_via_bits_job_notify_command.json'; +import rule634 from './credential_access_symbolic_link_to_shadow_copy_createdcredential_access_symbolic_link_to_shadow_copy_created.json'; +import rule635 from './defense_evasion_microsoft_365_mailboxauditbypassassociation.json'; export const rawRules = [ rule1, @@ -1262,4 +1272,14 @@ export const rawRules = [ rule623, rule624, rule625, + rule626, + rule627, + rule628, + rule629, + rule630, + rule631, + rule632, + rule633, + rule634, + rule635, ]; diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_hta.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_hta.json index f832eb51336f81..7af0be2b52d48d 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_hta.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_hta.json @@ -12,7 +12,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Incoming DCOM Lateral Movement via MSHTA", - "query": "sequence with maxspan=1m\n [process where event.type in (\"start\", \"process_started\") and\n process.name : \"mshta.exe\" and process.args : \"-Embedding\"\n ] by host.id, process.entity_id\n [network where event.type == \"start\" and process.name : \"mshta.exe\" and \n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\" and\n source.port > 49151 and destination.port > 49151 and not source.address in (\"127.0.0.1\", \"::1\")\n ] by host.id, process.entity_id\n", + "query": "sequence with maxspan=1m\n [process where event.type in (\"start\", \"process_started\") and\n process.name : \"mshta.exe\" and process.args : \"-Embedding\"\n ] by host.id, process.entity_id\n [network where event.type == \"start\" and process.name : \"mshta.exe\" and \n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\" and\n source.port > 49151 and destination.port > 49151 and source.ip != \"127.0.0.1\" and source.ip != \"::1\"\n ] by host.id, process.entity_id\n", "references": [ "https://codewhitesec.blogspot.com/2018/07/lethalhta.html" ], @@ -73,5 +73,5 @@ } ], "type": "eql", - "version": 4 + "version": 5 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_mmc20.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_mmc20.json index 8cb2e2c3690e64..a44185290f41d1 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_mmc20.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_mmc20.json @@ -12,7 +12,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Incoming DCOM Lateral Movement with MMC", - "query": "sequence by host.id with maxspan=1m\n [network where event.type == \"start\" and process.name : \"mmc.exe\" and\n source.port >= 49152 and destination.port >= 49152 and source.address not in (\"127.0.0.1\", \"::1\") and\n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\"\n ] by process.entity_id\n [process where event.type in (\"start\", \"process_started\") and process.parent.name : \"mmc.exe\"\n ] by process.parent.entity_id\n", + "query": "sequence by host.id with maxspan=1m\n [network where event.type == \"start\" and process.name : \"mmc.exe\" and source.port >= 49152 and\n destination.port >= 49152 and source.ip != \"127.0.0.1\" and source.ip != \"::1\" and\n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\"\n ] by process.entity_id\n [process where event.type in (\"start\", \"process_started\") and process.parent.name : \"mmc.exe\"\n ] by process.parent.entity_id\n", "references": [ "https://enigma0x3.net/2017/01/05/lateral-movement-using-the-mmc20-application-com-object/" ], @@ -51,5 +51,5 @@ } ], "type": "eql", - "version": 4 + "version": 5 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_shellwindow_shellbrowserwindow.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_shellwindow_shellbrowserwindow.json index 9ca759cc2facde..aed31f6b2f9039 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_shellwindow_shellbrowserwindow.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_dcom_shellwindow_shellbrowserwindow.json @@ -12,7 +12,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Incoming DCOM Lateral Movement with ShellBrowserWindow or ShellWindows", - "query": "sequence by host.id with maxspan=5s\n [network where event.type == \"start\" and process.name : \"explorer.exe\" and\n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\" and\n source.port > 49151 and destination.port > 49151 and not source.address in (\"127.0.0.1\", \"::1\")\n ] by process.entity_id\n [process where event.type in (\"start\", \"process_started\") and\n process.parent.name : \"explorer.exe\"\n ] by process.parent.entity_id\n", + "query": "sequence by host.id with maxspan=5s\n [network where event.type == \"start\" and process.name : \"explorer.exe\" and\n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\" and\n source.port > 49151 and destination.port > 49151 and source.ip != \"127.0.0.1\" and source.ip != \"::1\"\n ] by process.entity_id\n [process where event.type in (\"start\", \"process_started\") and\n process.parent.name : \"explorer.exe\"\n ] by process.parent.entity_id\n", "references": [ "https://enigma0x3.net/2017/01/23/lateral-movement-via-dcom-round-2/" ], @@ -51,5 +51,5 @@ } ], "type": "eql", - "version": 4 + "version": 5 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_executable_tool_transfer_smb.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_executable_tool_transfer_smb.json index 5fe9d066bc76d1..887b23e8018c88 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_executable_tool_transfer_smb.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_executable_tool_transfer_smb.json @@ -12,7 +12,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Lateral Tool Transfer", - "query": "sequence by host.id with maxspan=30s\n [network where event.type == \"start\" and process.pid == 4 and destination.port == 445 and\n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\" and\n source.address != \"127.0.0.1\" and source.address != \"::1\"\n ] by process.entity_id\n /* add more executable extensions here if they are not noisy in your environment */\n [file where event.type in (\"creation\", \"change\") and process.pid == 4 and file.extension : (\"exe\", \"dll\", \"bat\", \"cmd\")] by process.entity_id\n", + "query": "sequence by host.id with maxspan=30s\n [network where event.type == \"start\" and process.pid == 4 and destination.port == 445 and\n network.direction : (\"incoming\", \"ingress\") and\n network.transport == \"tcp\" and source.ip != \"127.0.0.1\" and source.ip != \"::1\"\n ] by process.entity_id\n /* add more executable extensions here if they are not noisy in your environment */\n [file where event.type in (\"creation\", \"change\") and process.pid == 4 and file.extension : (\"exe\", \"dll\", \"bat\", \"cmd\")] by process.entity_id\n", "risk_score": 47, "rule_id": "58bc134c-e8d2-4291-a552-b4b3e537c60b", "severity": "medium", @@ -41,5 +41,5 @@ } ], "type": "eql", - "version": 3 + "version": 4 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_incoming_winrm_shell_execution.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_incoming_winrm_shell_execution.json index 04a60f99556f46..1599836d7b7b09 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_incoming_winrm_shell_execution.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_incoming_winrm_shell_execution.json @@ -15,7 +15,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Incoming Execution via WinRM Remote Shell", - "query": "sequence by host.id with maxspan=30s\n [network where process.pid == 4 and network.direction : (\"incoming\", \"ingress\") and\n destination.port in (5985, 5986) and network.protocol == \"http\" and not source.address in (\"::1\", \"127.0.0.1\")\n ]\n [process where event.type == \"start\" and process.parent.name : \"winrshost.exe\" and not process.name : \"conhost.exe\"]\n", + "query": "sequence by host.id with maxspan=30s\n [network where process.pid == 4 and network.direction : (\"incoming\", \"ingress\") and\n destination.port in (5985, 5986) and network.protocol == \"http\" and source.ip != \"127.0.0.1\" and source.ip != \"::1\"\n ]\n [process where event.type == \"start\" and process.parent.name : \"winrshost.exe\" and not process.name : \"conhost.exe\"]\n", "risk_score": 47, "rule_id": "1cd01db9-be24-4bef-8e7c-e923f0ff78ab", "severity": "medium", @@ -44,5 +44,5 @@ } ], "type": "eql", - "version": 3 + "version": 4 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_incoming_wmi.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_incoming_wmi.json index 9b13ade43812f5..2430477e7df289 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_incoming_wmi.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_incoming_wmi.json @@ -12,7 +12,7 @@ "language": "eql", "license": "Elastic License v2", "name": "WMI Incoming Lateral Movement", - "query": "sequence by host.id with maxspan = 2s\n\n /* Accepted Incoming RPC connection by Winmgmt service */\n\n [network where process.name : \"svchost.exe\" and network.direction : (\"incoming\", \"ingress\") and\n source.address != \"127.0.0.1\" and source.address != \"::1\" and \n source.port >= 49152 and destination.port >= 49152\n ]\n\n /* Excluding Common FPs Nessus and SCCM */\n\n [process where event.type in (\"start\", \"process_started\") and process.parent.name : \"WmiPrvSE.exe\" and\n not process.args : (\"C:\\\\windows\\\\temp\\\\nessus_*.txt\", \n \"C:\\\\windows\\\\TEMP\\\\nessus_*.TMP\", \n \"C:\\\\Windows\\\\CCM\\\\SystemTemp\\\\*\", \n \"C:\\\\Windows\\\\CCMCache\\\\*\", \n \"C:\\\\CCM\\\\Cache\\\\*\")\n ]\n", + "query": "sequence by host.id with maxspan = 2s\n\n /* Accepted Incoming RPC connection by Winmgmt service */\n\n [network where process.name : \"svchost.exe\" and network.direction : (\"incoming\", \"ingress\") and\n source.ip != \"127.0.0.1\" and source.ip != \"::1\" and source.port >= 49152 and destination.port >= 49152\n ]\n\n /* Excluding Common FPs Nessus and SCCM */\n\n [process where event.type in (\"start\", \"process_started\") and process.parent.name : \"WmiPrvSE.exe\" and\n not process.args : (\"C:\\\\windows\\\\temp\\\\nessus_*.txt\", \n \"C:\\\\windows\\\\TEMP\\\\nessus_*.TMP\", \n \"C:\\\\Windows\\\\CCM\\\\SystemTemp\\\\*\", \n \"C:\\\\Windows\\\\CCMCache\\\\*\", \n \"C:\\\\CCM\\\\Cache\\\\*\")\n ]\n", "risk_score": 47, "rule_id": "f3475224-b179-4f78-8877-c2bd64c26b88", "severity": "medium", @@ -50,5 +50,5 @@ } ], "type": "eql", - "version": 3 + "version": 4 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_powershell_remoting_target.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_powershell_remoting_target.json index 94708f90d20bb8..97491068319048 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_powershell_remoting_target.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_powershell_remoting_target.json @@ -15,7 +15,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Incoming Execution via PowerShell Remoting", - "query": "sequence by host.id with maxspan = 30s\n [network where network.direction : (\"incoming\", \"ingress\") and destination.port in (5985, 5986) and\n network.protocol == \"http\" and source.address != \"127.0.0.1\" and source.address != \"::1\"\n ]\n [process where event.type == \"start\" and process.parent.name : \"wsmprovhost.exe\" and not process.name : \"conhost.exe\"]\n", + "query": "sequence by host.id with maxspan = 30s\n [network where network.direction : (\"incoming\", \"ingress\") and destination.port in (5985, 5986) and\n network.protocol == \"http\" and source.ip != \"127.0.0.1\" and source.ip != \"::1\"\n ]\n [process where event.type == \"start\" and process.parent.name : \"wsmprovhost.exe\" and not process.name : \"conhost.exe\"]\n", "references": [ "https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7.1" ], @@ -47,5 +47,5 @@ } ], "type": "eql", - "version": 3 + "version": 4 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_rdp_sharprdp_target.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_rdp_sharprdp_target.json index 0e5b7e7bc90010..e5bfc3242be344 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_rdp_sharprdp_target.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_rdp_sharprdp_target.json @@ -12,7 +12,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Potential SharpRDP Behavior", - "query": "/* Incoming RDP followed by a new RunMRU string value set to cmd, powershell, taskmgr or tsclient, followed by process execution within 1m */\n\nsequence by host.id with maxspan=1m\n [network where event.type == \"start\" and process.name : \"svchost.exe\" and destination.port == 3389 and \n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\" and\n source.address != \"127.0.0.1\" and source.address != \"::1\"\n ]\n\n [registry where process.name : \"explorer.exe\" and \n registry.path : (\"HKEY_USERS\\\\*\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\RunMRU\\\\*\") and\n registry.data.strings : (\"cmd.exe*\", \"powershell.exe*\", \"taskmgr*\", \"\\\\\\\\tsclient\\\\*.exe\\\\*\")\n ]\n \n [process where event.type in (\"start\", \"process_started\") and\n (process.parent.name : (\"cmd.exe\", \"powershell.exe\", \"taskmgr.exe\") or process.args : (\"\\\\\\\\tsclient\\\\*.exe\")) and \n not process.name : \"conhost.exe\"\n ]\n", + "query": "/* Incoming RDP followed by a new RunMRU string value set to cmd, powershell, taskmgr or tsclient, followed by process execution within 1m */\n\nsequence by host.id with maxspan=1m\n [network where event.type == \"start\" and process.name : \"svchost.exe\" and destination.port == 3389 and \n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\" and\n source.ip != \"127.0.0.1\" and source.ip != \"::1\"\n ]\n\n [registry where process.name : \"explorer.exe\" and \n registry.path : (\"HKEY_USERS\\\\*\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\RunMRU\\\\*\") and\n registry.data.strings : (\"cmd.exe*\", \"powershell.exe*\", \"taskmgr*\", \"\\\\\\\\tsclient\\\\*.exe\\\\*\")\n ]\n \n [process where event.type in (\"start\", \"process_started\") and\n (process.parent.name : (\"cmd.exe\", \"powershell.exe\", \"taskmgr.exe\") or process.args : (\"\\\\\\\\tsclient\\\\*.exe\")) and \n not process.name : \"conhost.exe\"\n ]\n", "references": [ "https://posts.specterops.io/revisiting-remote-desktop-lateral-movement-8fb905cb46c3", "https://github.com/sbousseaden/EVTX-ATTACK-SAMPLES/blob/master/Lateral%20Movement/LM_sysmon_3_12_13_1_SharpRDP.evtx" @@ -52,5 +52,5 @@ } ], "type": "eql", - "version": 4 + "version": 5 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_remote_services.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_remote_services.json index 5220506d37f588..3e7313c43fc8b9 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_remote_services.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_remote_services.json @@ -12,7 +12,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Remotely Started Services via RPC", - "query": "sequence with maxspan=1s\n [network where process.name : \"services.exe\" and\n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\" and \n source.port >= 49152 and destination.port >= 49152 and source.address not in (\"127.0.0.1\", \"::1\")\n ] by host.id, process.entity_id\n\n [process where event.type in (\"start\", \"process_started\") and process.parent.name : \"services.exe\" and \n not (process.name : \"svchost.exe\" and process.args : \"tiledatamodelsvc\") and \n not (process.name : \"msiexec.exe\" and process.args : \"/V\")\n \n /* uncomment if psexec is noisy in your environment */\n /* and not process.name : \"PSEXESVC.exe\" */\n ] by host.id, process.parent.entity_id\n", + "query": "sequence with maxspan=1s\n [network where process.name : \"services.exe\" and\n network.direction : (\"incoming\", \"ingress\") and network.transport == \"tcp\" and \n source.port >= 49152 and destination.port >= 49152 and source.ip != \"127.0.0.1\" and source.ip != \"::1\"\n ] by host.id, process.entity_id\n\n [process where event.type in (\"start\", \"process_started\") and process.parent.name : \"services.exe\" and \n not (process.name : \"svchost.exe\" and process.args : \"tiledatamodelsvc\") and \n not (process.name : \"msiexec.exe\" and process.args : \"/V\")\n \n /* uncomment if psexec is noisy in your environment */\n /* and not process.name : \"PSEXESVC.exe\" */\n ] by host.id, process.parent.entity_id\n", "risk_score": 47, "rule_id": "aa9a274d-6b53-424d-ac5e-cb8ca4251650", "severity": "medium", @@ -41,5 +41,5 @@ } ], "type": "eql", - "version": 3 + "version": 4 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_scheduled_task_target.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_scheduled_task_target.json index b60717e61765a5..710f08ce5213a6 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_scheduled_task_target.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/lateral_movement_scheduled_task_target.json @@ -13,7 +13,7 @@ "license": "Elastic License v2", "name": "Remote Scheduled Task Creation", "note": "## Triage and analysis\n\n### Investigating Creation of Remote Scheduled Tasks\n\n[Scheduled tasks](https://docs.microsoft.com/en-us/windows/win32/taskschd/about-the-task-scheduler) are a great mechanism used for persistence and executing programs. These features can\nbe used remotely for a variety of legitimate reasons, but at the same time used by malware and adversaries.\nWhen investigating scheduled tasks that have been set-up remotely, one of the first methods should be determining the\noriginal intent behind the configuration and verify if the activity is tied to benign behavior such as software installations or any kind\nof network administrator work. One objective for these alerts is to understand the configured action within the scheduled\ntask, this is captured within the registry event data for this rule and can be base64 decoded to view the value.\n\n#### Possible investigation steps:\n- Review the base64 encoded tasks actions registry value to investigate the task configured action.\n- Determine if task is related to legitimate or benign behavior based on the corresponding process or program tied to the\nscheduled task.\n- Further examination should include both the source and target machines where host-based artifacts and network logs\nshould be reviewed further around the time window of the creation of the scheduled task.\n\n### False Positive Analysis\n- There is a high possibility of benign activity tied to the creation of remote scheduled tasks as it is a general feature\nwithin Windows and used for legitimate purposes for a wide range of activity. Any kind of context should be found to\nfurther understand the source of the activity and determine the intent based on the scheduled task contents.\n\n### Related Rules\n- Service Command Lateral Movement\n- Remotely Started Services via RPC\n\n### Response and Remediation\n- This behavior represents post-exploitation actions such as persistence or lateral movement, immediate response should\nbe taken to review and investigate the activity and potentially isolate involved machines to prevent further post-compromise\nbehavior.\n- Remove scheduled task and any other related artifacts to the activity.\n- Review privileged account management and user account management settings such as implementing GPO policies to further\nrestrict activity or configure settings that only allow Administrators to create remote scheduled tasks.\n", - "query": "/* Task Scheduler service incoming connection followed by TaskCache registry modification */\n\nsequence by host.id, process.entity_id with maxspan = 1m\n [network where process.name : \"svchost.exe\" and\n network.direction : (\"incoming\", \"ingress\") and source.port >= 49152 and destination.port >= 49152 and\n source.address != \"127.0.0.1\" and source.address != \"::1\"\n ]\n [registry where registry.path : \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Schedule\\\\TaskCache\\\\Tasks\\\\*\\\\Actions\"]\n", + "query": "/* Task Scheduler service incoming connection followed by TaskCache registry modification */\n\nsequence by host.id, process.entity_id with maxspan = 1m\n [network where process.name : \"svchost.exe\" and\n network.direction : (\"incoming\", \"ingress\") and source.port >= 49152 and destination.port >= 49152 and\n source.ip != \"127.0.0.1\" and source.ip != \"::1\"\n ]\n [registry where registry.path : \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Schedule\\\\TaskCache\\\\Tasks\\\\*\\\\Actions\"]\n", "risk_score": 47, "rule_id": "954ee7c8-5437-49ae-b2d6-2960883898e9", "severity": "medium", @@ -64,5 +64,5 @@ } ], "type": "eql", - "version": 5 + "version": 6 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/mfa_disabled_for_google_workspace_organization.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/mfa_disabled_for_google_workspace_organization.json index 34d215b5b54e8e..257aca34e34440 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/mfa_disabled_for_google_workspace_organization.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/mfa_disabled_for_google_workspace_organization.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "MFA Disabled for Google Workspace Organization", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and event.provider:admin and event.category:iam and event.action:(ENFORCE_STRONG_AUTHENTICATION or ALLOW_STRONG_AUTHENTICATION) and (gsuite.admin.new_value:false or google_workspace.admin.new_value:false)\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and event.action:(ENFORCE_STRONG_AUTHENTICATION or ALLOW_STRONG_AUTHENTICATION) and google_workspace.admin.new_value:false\n", "risk_score": 47, "rule_id": "e555105c-ba6d-481f-82bb-9b633e7b4827", "severity": "medium", @@ -30,5 +30,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 6 + "version": 7 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_creation_modif_launch_deamon_sequence.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_creation_modif_launch_deamon_sequence.json index 0f3ea54a9c5be7..70e3f67f10f655 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_creation_modif_launch_deamon_sequence.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_creation_modif_launch_deamon_sequence.json @@ -14,7 +14,7 @@ "language": "eql", "license": "Elastic License v2", "name": "LaunchDaemon Creation or Modification and Immediate Loading", - "query": "sequence by host.id with maxspan=1m\n [file where event.type != \"deletion\" and file.path in (\"/System/Library/LaunchDaemons/*\", \" /Library/LaunchDaemons/*\")]\n [process where event.type in (\"start\", \"process_started\") and process.name == \"launchctl\" and process.args == \"load\"]\n", + "query": "sequence by host.id with maxspan=1m\n [file where event.type != \"deletion\" and file.path in (\"/System/Library/LaunchDaemons/*\", \"/Library/LaunchDaemons/*\")]\n [process where event.type in (\"start\", \"process_started\") and process.name == \"launchctl\" and process.args == \"load\"]\n", "references": [ "https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html" ], @@ -46,5 +46,5 @@ } ], "type": "eql", - "version": 2 + "version": 3 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_folder_action_scripts_runtime.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_folder_action_scripts_runtime.json index fbf9bcc44ed44b..5e86647877d8c9 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_folder_action_scripts_runtime.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_folder_action_scripts_runtime.json @@ -11,7 +11,7 @@ "language": "eql", "license": "Elastic License v2", "name": "Persistence via Folder Action Script", - "query": "sequence by host.id with maxspan=5s\n [process where event.type in (\"start\", \"process_started\", \"info\") and process.name == \"com.apple.foundation.UserScriptService\"] by process.pid\n [process where event.type in (\"start\", \"process_started\") and process.name in (\"osascript\", \"sh\")] by process.parent.pid\n", + "query": "sequence by host.id with maxspan=5s\n [process where event.type in (\"start\", \"process_started\", \"info\") and process.name == \"com.apple.foundation.UserScriptService\"] by process.pid\n [process where event.type in (\"start\", \"process_started\") and process.name in (\"osascript\", \"python\", \"tcl\", \"node\", \"perl\", \"ruby\", \"php\", \"bash\", \"csh\", \"zsh\", \"sh\")] by process.parent.pid\n", "references": [ "https://posts.specterops.io/folder-actions-for-persistence-on-macos-8923f222343d" ], @@ -59,5 +59,5 @@ } ], "type": "eql", - "version": 3 + "version": 4 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_admin_role_assigned_to_user.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_admin_role_assigned_to_user.json index a8f00924ce33c3..d0e7e2654685e4 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_admin_role_assigned_to_user.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_admin_role_assigned_to_user.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "Google Workspace Admin Role Assigned to a User", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and event.provider:admin and event.category:iam and event.action:ASSIGN_ROLE\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and event.action:ASSIGN_ROLE\n", "references": [ "https://support.google.com/a/answer/172176?hl=en" ], @@ -50,5 +50,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 5 + "version": 6 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_api_access_granted_via_domain_wide_delegation_of_authority.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_api_access_granted_via_domain_wide_delegation_of_authority.json index aec03ee3dc307a..a1a8abe98d3231 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_api_access_granted_via_domain_wide_delegation_of_authority.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_api_access_granted_via_domain_wide_delegation_of_authority.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "Google Workspace API Access Granted via Domain-Wide Delegation of Authority", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and event.provider:admin and event.category:iam and event.action:AUTHORIZE_API_CLIENT_ACCESS\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and event.action:AUTHORIZE_API_CLIENT_ACCESS\n", "references": [ "https://developers.google.com/admin-sdk/directory/v1/guides/delegation" ], @@ -50,5 +50,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 5 + "version": 6 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_custom_admin_role_created.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_custom_admin_role_created.json index 7c5036a494a870..1ebf2e5c1f80d6 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_custom_admin_role_created.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_custom_admin_role_created.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "Google Workspace Custom Admin Role Created", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and event.provider:admin and event.category:iam and event.action:CREATE_ROLE\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and event.action:CREATE_ROLE\n", "references": [ "https://support.google.com/a/answer/2406043?hl=en" ], @@ -50,5 +50,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 5 + "version": 6 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_role_modified.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_role_modified.json index 84000a468c9ac4..123d3181506010 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_role_modified.json +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/persistence_google_workspace_role_modified.json @@ -15,8 +15,8 @@ "language": "kuery", "license": "Elastic License v2", "name": "Google Workspace Role Modified", - "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-gsuite.html", - "query": "event.dataset:(gsuite.admin or google_workspace.admin) and event.provider:admin and event.category:iam and event.action:(ADD_PRIVILEGE or UPDATE_ROLE)\n", + "note": "## Config\n\nThe Google Workspace Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.\n\n### Important Information Regarding Google Workspace Event Lag Times\n- As per Google's documentation, Google Workspace administrators may observe lag times ranging from minutes up to 3 days between the time of an event's occurrence and the event being visible in the Google Workspace admin/audit logs.\n- This rule is configured to run every 10 minutes with a lookback time of 130 minutes.\n- To reduce the risk of false negatives, consider reducing the interval that the Google Workspace (formerly G Suite) Filebeat module polls Google's reporting API for new events.\n- By default, `var.interval` is set to 2 hours (2h). Consider changing this interval to a lower value, such as 10 minutes (10m).\n- See the following references for further information:\n - https://support.google.com/a/answer/7061566\n - https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-google_workspace.html", + "query": "event.dataset:google_workspace.admin and event.provider:admin and event.category:iam and event.action:(ADD_PRIVILEGE or UPDATE_ROLE)\n", "references": [ "https://support.google.com/a/answer/2406043?hl=en" ], @@ -50,5 +50,5 @@ ], "timestamp_override": "event.ingested", "type": "query", - "version": 5 + "version": 6 } diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_group_policy_iniscript.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_group_policy_iniscript.json new file mode 100644 index 00000000000000..df4716596039d4 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_group_policy_iniscript.json @@ -0,0 +1,66 @@ +{ + "author": [ + "Elastic" + ], + "description": "Detects the modification of Group Policy Objects (GPO) to add a startup/logon script to users or computer objects.", + "false_positives": [ + "Legitimate Administrative Activity" + ], + "index": [ + "winlogbeat-*", + "logs-system.*" + ], + "language": "kuery", + "license": "Elastic License v2", + "name": "Startup/Logon Script added to Group Policy Object", + "note": "## Triage and analysis\n\n### Investigating Scheduled Task Execution at Scale via GPO\n\nGroup Policy Objects can be used by attackers as a mechanism for an attacker to instruct an arbitrarily large group of clients to\nexecute specified commands at Startup, Logon, Shutdown, and Logoff. This is done by creating/modifying the `scripts.ini` or \n`psscripts.ini` files. The scripts are stored in the following path: `\\Machine\\Scripts\\`, `\\User\\Scripts\\`\n\n#### Possible investigation steps:\n- This attack abuses a legitimate mechanism of the Active Directory, so it is important to determine whether the activity is legitimate\nand the administrator is authorized to perform this operation.\n- Retrieve the contents of the script file, check for any potentially malicious commands and binaries.\n- If the action is suspicious for the user, check for any other activities done by the user in the last 48 hours.\n\n### False Positive Analysis\n- Verify if the execution is allowed and done under change management, and legitimate.\n\n### Related Rules\n- Group Policy Abuse for Privilege Addition - b9554892-5e0e-424b-83a0-5aef95aa43bf\n- Scheduled Task Execution at Scale via GPO - 15a8ba77-1c13-4274-88fe-6bd14133861e\n\n### Response and Remediation\n- Immediate response should be taken to validate activity, investigate and potentially isolate activity to prevent further\npost-compromise behavior.\n\n## Config\n\nThe 'Audit Detailed File Share' audit policy is required be configured (Success Failure).\nSteps to implement the logging policy with with Advanced Audit Configuration:\n```\nComputer Configuration > \nPolicies > \nWindows Settings > \nSecurity Settings > \nAdvanced Audit Policies Configuration > \nAudit Policies > \nObject Access > \nAudit Detailed File Share (Success,Failure)\n```\n\nThe 'Audit Directory Service Changes' audit policy is required be configured (Success Failure).\nSteps to implement the logging policy with with Advanced Audit Configuration:\n```\nComputer Configuration > \nPolicies > \nWindows Settings > \nSecurity Settings > \nAdvanced Audit Policies Configuration > \nAudit Policies > \nDS Access > \nAudit Directory Service Changes (Success,Failure)\n```\n", + "query": "(\n event.code:5136 and winlog.event_data.AttributeLDAPDisplayName:(gPCMachineExtensionNames or gPCUserExtensionNames) and\n winlog.event_data.AttributeValue:(*42B5FAAE-6536-11D2-AE5A-0000F87571E3* and\n (*40B66650-4972-11D1-A7CA-0000F87571E3* or *40B6664F-4972-11D1-A7CA-0000F87571E3*))\n)\nor\n(\n event.code:5145 and winlog.event_data.ShareName:\\\\\\\\*\\\\SYSVOL and\n winlog.event_data.RelativeTargetName:(*\\\\scripts.ini or *\\\\psscripts.ini) and\n (message:WriteData or winlog.event_data.AccessList:*%%4417*)\n)\n", + "references": [ + "https://github.com/atc-project/atc-data/blob/master/docs/Logging_Policies/LP_0025_windows_audit_directory_service_changes.md", + "https://github.com/atc-project/atc-data/blob/f2bbb51ecf68e2c9f488e3c70dcdd3df51d2a46b/docs/Logging_Policies/LP_0029_windows_audit_detailed_file_share.md", + "https://labs.f-secure.com/tools/sharpgpoabuse" + ], + "risk_score": 47, + "rule_id": "16fac1a1-21ee-4ca6-b720-458e3855d046", + "severity": "medium", + "tags": [ + "Elastic", + "Host", + "Windows", + "Threat Detection", + "Privilege Escalation", + "Active Directory" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0004", + "name": "Privilege Escalation", + "reference": "https://attack.mitre.org/tactics/TA0004/" + }, + "technique": [ + { + "id": "T1547", + "name": "Boot or Logon Autostart Execution", + "reference": "https://attack.mitre.org/techniques/T1547/" + }, + { + "id": "T1484", + "name": "Domain Policy Modification", + "reference": "https://attack.mitre.org/techniques/T1484/", + "subtechnique": [ + { + "id": "T1484.001", + "name": "Group Policy Modification", + "reference": "https://attack.mitre.org/techniques/T1484/001/" + } + ] + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "query", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_group_policy_privileged_groups.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_group_policy_privileged_groups.json new file mode 100644 index 00000000000000..d25b729d967c38 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_group_policy_privileged_groups.json @@ -0,0 +1,57 @@ +{ + "author": [ + "Elastic" + ], + "description": "This rule detects the first occurrence of a modification to Group Policy Object Attributes to add privileges to user accounts or use them to add users as local admins.", + "index": [ + "winlogbeat-*", + "logs-system.*" + ], + "language": "kuery", + "license": "Elastic License v2", + "name": "Group Policy Abuse for Privilege Addition", + "note": "## Triage and analysis\n\n### Investigating Group Policy Abuse for Privilege Addition\n\nGroup Policy Objects can be used to add rights and/or modify Group Membership on GPOs by changing the contents of an INF file named\nGptTmpl.inf, which is responsible for storing every setting under the Security Settings container in the GPO, this file is unique\nfor each GPO, and only exists if the GPO contains security settings.\nExample Path: \"\\\\DC.com\\SysVol\\DC.com\\Policies\\{21B9B880-B2FB-4836-9C2D-2013E0D832E9}\\Machine\\Microsoft\\Windows NT\\SecEdit\\GptTmpl.inf\"\n\n#### Possible investigation steps:\n- This attack abuses a legitimate mechanism of the Active Directory, so it is important to determine whether the activity is legitimate\nand the administrator is authorized to perform this operation.\n- Retrieve the contents of the `GptTmpl.inf` file, under the `Privilege Rights` section, look for potentially dangerous high privileges,\nfor example: SeTakeOwnershipPrivilege, SeEnableDelegationPrivilege, etc.\n- Inspect the user SIDs associated with these privileges\n\n### False Positive Analysis\n- Verify if these User SIDs should have these privileges enabled.\n- Inspect whether the user that has done these modifications should be allowed to do it. The user name can be found in the\n`winlog.event_data.SubjectUserName` field\n\n### Related Rules\n- Scheduled Task Execution at Scale via GPO\n- Startup/Logon Script added to Group Policy Object\n\n### Response and Remediation\n- Immediate response should be taken to validate activity, investigate and potentially isolate activity to prevent further\npost-compromise behavior.\n\n## Config\n\nThe 'Audit Directory Service Changes' audit policy is required be configured (Success Failure).\nSteps to implement the logging policy with with Advanced Audit Configuration:\n```\nComputer Configuration > \nPolicies > \nWindows Settings > \nSecurity Settings > \nAdvanced Audit Policies Configuration > \nAudit Policies > \nDS Access > \nAudit Directory Service Changes (Success,Failure)\n```\n", + "query": "event.code: \"5136\" and winlog.event_data.AttributeLDAPDisplayName:\"gPCMachineExtensionNames\" and \nwinlog.event_data.AttributeValue:(*827D319E-6EAC-11D2-A4EA-00C04F79F83A* and *803E14A0-B4FB-11D0-A0D0-00A0C90F574B*)\n", + "references": [ + "https://github.com/atc-project/atc-data/blob/master/docs/Logging_Policies/LP_0025_windows_audit_directory_service_changes.md", + "https://labs.f-secure.com/tools/sharpgpoabuse" + ], + "risk_score": 73, + "rule_id": "b9554892-5e0e-424b-83a0-5aef95aa43bf", + "severity": "high", + "tags": [ + "Elastic", + "Host", + "Windows", + "Threat Detection", + "Privilege Escalation", + "Active Directory" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0004", + "name": "Privilege Escalation", + "reference": "https://attack.mitre.org/tactics/TA0004/" + }, + "technique": [ + { + "id": "T1484", + "name": "Domain Policy Modification", + "reference": "https://attack.mitre.org/techniques/T1484/", + "subtechnique": [ + { + "id": "T1484.001", + "name": "Group Policy Modification", + "reference": "https://attack.mitre.org/techniques/T1484/001/" + } + ] + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "query", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_group_policy_scheduled_task.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_group_policy_scheduled_task.json new file mode 100644 index 00000000000000..bad9948b08e1c7 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_group_policy_scheduled_task.json @@ -0,0 +1,72 @@ +{ + "author": [ + "Elastic" + ], + "description": "Detects the modification of Group Policy Object attributes to execute a scheduled task in the objects controlled by the GPO.", + "index": [ + "winlogbeat-*", + "logs-system.*" + ], + "language": "kuery", + "license": "Elastic License v2", + "name": "Scheduled Task Execution at Scale via GPO", + "note": "## Triage and analysis\n\n### Investigating Scheduled Task Execution at Scale via GPO\n\nGroup Policy Objects can be used by attackers to execute Scheduled Tasks at scale to compromise Objects controlled by a given GPO,\nthis is done by changing the contents of the `\\Machine\\Preferences\\ScheduledTasks\\ScheduledTasks.xml` file.\n\n#### Possible investigation steps:\n- This attack abuses a legitimate mechanism of the Active Directory, so it is important to determine whether the activity is legitimate\nand the administrator is authorized to perform this operation.\n- Retrieve the contents of the `ScheduledTasks.xml` file, check the `` and `` XML tags for any potentially malicious\ncommands and binaries.\n- If the action is suspicious for the user, check for any other activities done by the user in the last 48 hours.\n\n### False Positive Analysis\n- Verify if the execution is allowed and done under change management, and if the execution is legitimate.\n\n### Related Rules\n- Group Policy Abuse for Privilege Addition\n- Startup/Logon Script added to Group Policy Object\n\n### Response and Remediation\n- Immediate response should be taken to validate activity, investigate and potentially isolate activity to prevent further\npost-compromise behavior.\n\n## Config\n\nThe 'Audit Detailed File Share' audit policy is required be configured (Success Failure).\nSteps to implement the logging policy with with Advanced Audit Configuration:\n```\nComputer Configuration > \nPolicies > \nWindows Settings > \nSecurity Settings > \nAdvanced Audit Policies Configuration > \nAudit Policies > \nObject Access > \nAudit Detailed File Share (Success,Failure)\n```\n\nThe 'Audit Directory Service Changes' audit policy is required be configured (Success Failure).\nSteps to implement the logging policy with with Advanced Audit Configuration:\n```\nComputer Configuration > \nPolicies > \nWindows Settings > \nSecurity Settings > \nAdvanced Audit Policies Configuration > \nAudit Policies > \nDS Access > \nAudit Directory Service Changes (Success,Failure)\n```\n", + "query": "(event.code: \"5136\" and winlog.event_data.AttributeLDAPDisplayName:(\"gPCMachineExtensionNames\" or \"gPCUserExtensionNames\") and \n winlog.event_data.AttributeValue:(*CAB54552-DEEA-4691-817E-ED4A4D1AFC72* and *AADCED64-746C-4633-A97C-D61349046527*)) \nor\n(event.code: \"5145\" and winlog.event_data.ShareName: \"\\\\\\\\*\\\\SYSVOL\" and winlog.event_data.RelativeTargetName: *ScheduledTasks.xml and\n (message: WriteData or winlog.event_data.AccessList: *%%4417*))\n", + "references": [ + "https://github.com/atc-project/atc-data/blob/master/docs/Logging_Policies/LP_0025_windows_audit_directory_service_changes.md", + "https://github.com/atc-project/atc-data/blob/f2bbb51ecf68e2c9f488e3c70dcdd3df51d2a46b/docs/Logging_Policies/LP_0029_windows_audit_detailed_file_share.md", + "https://labs.f-secure.com/tools/sharpgpoabuse", + "https://twitter.com/menasec1/status/1106899890377052160", + "https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/win_gpo_scheduledtasks.yml" + ], + "risk_score": 47, + "rule_id": "15a8ba77-1c13-4274-88fe-6bd14133861e", + "severity": "medium", + "tags": [ + "Elastic", + "Host", + "Windows", + "Threat Detection", + "Privilege Escalation", + "Active Directory" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0004", + "name": "Privilege Escalation", + "reference": "https://attack.mitre.org/tactics/TA0004/" + }, + "technique": [ + { + "id": "T1053", + "name": "Scheduled Task/Job", + "reference": "https://attack.mitre.org/techniques/T1053/", + "subtechnique": [ + { + "id": "T1053.005", + "name": "Scheduled Task", + "reference": "https://attack.mitre.org/techniques/T1053/005/" + } + ] + }, + { + "id": "T1484", + "name": "Domain Policy Modification", + "reference": "https://attack.mitre.org/techniques/T1484/", + "subtechnique": [ + { + "id": "T1484.001", + "name": "Group Policy Modification", + "reference": "https://attack.mitre.org/techniques/T1484/001/" + } + ] + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "query", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_installertakeover.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_installertakeover.json new file mode 100644 index 00000000000000..a8ad50511283a1 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/privilege_escalation_installertakeover.json @@ -0,0 +1,50 @@ +{ + "author": [ + "Elastic" + ], + "description": "Identifies a potential exploitation of InstallerTakeOver (CVE-2021-41379) default PoC execution. Successful exploitation allows an unprivileged user to escalate privileges to SYSTEM.", + "from": "now-9m", + "index": [ + "winlogbeat-*", + "logs-endpoint.events.*", + "logs-windows.*" + ], + "language": "eql", + "license": "Elastic License v2", + "name": "Potential Privilege Escalation via InstallerFileTakeOver", + "note": "## Triage and analysis.\n\n### Investigating Potential Priivilege Escalation via InstallerFileTakeOver\n\nInstallerFileTakeOver is a weaponized EoP PoC to the CVE-2021-41379 vulnerability. Upon successful exploitation,\nan unprivileged user will escalate privileges to SYSTEM/NT AUTHORITY.\n\nThis rule detects the default execution of the PoC, which overwrites the `elevation_service.exe` DACL and copy itself\nto the location to escalate privileges. An attacker is able to still take over any file that is not in use (locked), which is outside the scope of this rule.\n\n#### Possible investigation steps:\n\n- Check for the digital signature of the executable\n- Look for additional processes spawned by the process, command lines and network communications.\n- Look for additional alerts involving the host and the user.\n\n### False Positive Analysis\n\n- Verify whether the digital signature exists in the executable, and if it is valid.\n\n### Related Rules\n\n- Suspicious DLL Loaded for Persistence or Privilege Escalation - bfeaf89b-a2a7-48a3-817f-e41829dc61ee\n\n### Response and Remediation\n\n- Immediate response should be taken to validate activity, investigate and potentially isolate activity to prevent further\npost-compromise behavior.\n", + "query": "/* This rule is compatible with both Sysmon and Elastic Endpoint */\n\nprocess where event.type == \"start\" and \n user.id : \"S-1-5-18\" and\n (\n (process.name : \"elevation_service.exe\" and \n not process.pe.original_file_name == \"elevation_service.exe\") or\n\n (process.parent.name : \"elevation_service.exe\" and \n process.name : (\"rundll32.exe\", \"cmd.exe\", \"powershell.exe\")) \n )\n", + "references": [ + "https://github.com/klinix5/InstallerFileTakeOver" + ], + "risk_score": 73, + "rule_id": "58c6d58b-a0d3-412d-b3b8-0981a9400607", + "severity": "high", + "tags": [ + "Elastic", + "Host", + "Windows", + "Threat Detection", + "Privilege Escalation" + ], + "threat": [ + { + "framework": "MITRE ATT&CK", + "tactic": { + "id": "TA0004", + "name": "Privilege Escalation", + "reference": "https://attack.mitre.org/tactics/TA0004/" + }, + "technique": [ + { + "id": "T1068", + "name": "Exploitation for Privilege Escalation", + "reference": "https://attack.mitre.org/techniques/T1068/" + } + ] + } + ], + "timestamp_override": "event.ingested", + "type": "eql", + "version": 1 +} diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/threat_intel_filebeat7x.json b/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/threat_intel_filebeat7x.json deleted file mode 100644 index abac06736c0add..00000000000000 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/rules/prepackaged_rules/threat_intel_filebeat7x.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "author": [ - "Elastic" - ], - "description": "This rule is triggered when indicators from the Threat Intel Filebeat module (v7.x) has a match against local file or network observations.", - "from": "now-65m", - "index": [ - "auditbeat-*", - "endgame-*", - "filebeat-*", - "logs-*", - "packetbeat-*", - "winlogbeat-*" - ], - "interval": "1h", - "language": "kuery", - "license": "Elastic License v2", - "name": "Threat Intel Filebeat Module (v7.x) Indicator Match", - "note": "## Triage and Analysis\n\n### Investigating Threat Intel Indicator Matches\n\nThreat Intel indicator match rules allow matching from a local observation such as an endpoint event that records a file\nhash with an entry of a file hash stored within the Threat Intel Filebeat module. Other examples of matches can occur on\nan IP address, registry path, URL and imphash.\n\nThe matches will be based on the incoming feed data so it's important to validate the data and review the results by\ninvestigating the associated activity to determine if it requires further investigation.\n\nIf an indicator matches a local observation, the following enriched fields will be generated to identify the indicator, field, and type matched.\n\n- `threatintel.indicator.matched.atomic` - this identifies the atomic indicator that matched the local observation\n- `threatintel.indicator.matched.field` - this identifies the indicator field that matched the local observation\n- `threatintel.indicator.matched.type` - this identifies the indicator type that matched the local observation\n\n#### Possible investigation steps:\n- Investigation should be validated and reviewed based on the data (file hash, registry path, URL, imphash) that was matched\nand viewing the source of that activity.\n- Consider the history of the indicator that was matched. Has it happened before? Is it happening on multiple machines?\nThese kinds of questions can help understand if the activity is related to legitimate behavior.\n- Consider the user and their role within the company, is this something related to their job or work function?\n\n### False Positive Analysis\n- For any matches found, it's important to consider the initial release date of that indicator. Threat intelligence can\nbe a great tool for augmenting existing security processes, while at the same time it should be understood that threat\nintelligence can represent a specific set of activity observed at a point in time. For example, an IP address\nmay have hosted malware observed in a Dridex campaign six months ago, but it's possible that IP has been remediated and\nno longer represents any threat.\n- Adversaries often use legitimate tools as network administrators such as `PsExec` or `AdFind`, these tools often find their\nway into indicator lists creating the potential for false positives.\n- It's possible after large and publicly written campaigns, curious employees might end up going directly to attacker infrastructure and generating these rules\n\n### Response and Remediation\n- If suspicious or malicious behavior is observed, immediate response should be taken to isolate activity to prevent further\npost-compromise behavior.\n- One example of a response if a machine matched a command and control IP address would be to add an entry to a network\ndevice such as a firewall or proxy appliance to prevent any outbound activity from leaving that machine.\n- Another example of a response with a malicious file hash match would involve validating if the file was properly quarantined,\nreview current running processes looking for any abnormal activity, and investigating for any other follow-up actions such as persistence or lateral movement\n", - "query": "file.hash.*:* or file.pe.imphash:* or source.ip:* or destination.ip:* or url.full:* or registry.path:*\n", - "references": [ - "https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-threatintel.html" - ], - "risk_score": 99, - "rule_id": "dc672cb7-d5df-4d1f-a6d7-0841b1caafb9", - "severity": "critical", - "tags": [ - "Elastic", - "Windows", - "Elastic Endgame", - "Network", - "Continuous Monitoring", - "SecOps", - "Monitoring" - ], - "threat_filters": [ - { - "$state": { - "store": "appState" - }, - "meta": { - "disabled": false, - "key": "event.module", - "negate": false, - "params": { - "query": "threatintel" - }, - "type": "phrase" - }, - "query": { - "match_phrase": { - "event.module": "threatintel" - } - } - }, - { - "$state": { - "store": "appState" - }, - "meta": { - "disabled": false, - "key": "event.category", - "negate": false, - "params": { - "query": "threat" - }, - "type": "phrase" - }, - "query": { - "match_phrase": { - "event.category": "threat" - } - } - }, - { - "$state": { - "store": "appState" - }, - "meta": { - "disabled": false, - "key": "event.kind", - "negate": false, - "params": { - "query": "enrichment" - }, - "type": "phrase" - }, - "query": { - "match_phrase": { - "event.kind": "enrichment" - } - } - }, - { - "$state": { - "store": "appState" - }, - "meta": { - "disabled": false, - "key": "event.type", - "negate": false, - "params": { - "query": "indicator" - }, - "type": "phrase" - }, - "query": { - "match_phrase": { - "event.type": "indicator" - } - } - } - ], - "threat_index": [ - "filebeat-*" - ], - "threat_indicator_path": "threatintel.indicator", - "threat_language": "kuery", - "threat_mapping": [ - { - "entries": [ - { - "field": "file.hash.md5", - "type": "mapping", - "value": "threatintel.indicator.file.hash.md5" - } - ] - }, - { - "entries": [ - { - "field": "file.hash.sha1", - "type": "mapping", - "value": "threatintel.indicator.file.hash.sha1" - } - ] - }, - { - "entries": [ - { - "field": "file.hash.sha256", - "type": "mapping", - "value": "threatintel.indicator.file.hash.sha256" - } - ] - }, - { - "entries": [ - { - "field": "file.pe.imphash", - "type": "mapping", - "value": "threatintel.indicator.file.pe.imphash" - } - ] - }, - { - "entries": [ - { - "field": "source.ip", - "type": "mapping", - "value": "threatintel.indicator.ip" - } - ] - }, - { - "entries": [ - { - "field": "destination.ip", - "type": "mapping", - "value": "threatintel.indicator.ip" - } - ] - }, - { - "entries": [ - { - "field": "url.full", - "type": "mapping", - "value": "threatintel.indicator.url.full" - } - ] - }, - { - "entries": [ - { - "field": "registry.path", - "type": "mapping", - "value": "threatintel.indicator.registry.path" - } - ] - } - ], - "threat_query": "@timestamp >= \"now-30d\" and event.module:threatintel and (threatintel.indicator.file.hash.*:* or threatintel.indicator.file.pe.imphash:* or threatintel.indicator.ip:* or threatintel.indicator.registry.path:* or threatintel.indicator.url.full:*)", - "timeline_id": "495ad7a7-316e-4544-8a0f-9c098daee76e", - "timeline_title": "Generic Threat Match Timeline", - "type": "threat_match", - "version": 4 -} diff --git a/x-pack/plugins/security_solution/server/lib/telemetry/receiver.ts b/x-pack/plugins/security_solution/server/lib/telemetry/receiver.ts index ac7d638f9a5287..75bf3650158dc0 100644 --- a/x-pack/plugins/security_solution/server/lib/telemetry/receiver.ts +++ b/x-pack/plugins/security_solution/server/lib/telemetry/receiver.ts @@ -13,6 +13,15 @@ import { } from 'src/core/server'; import { SearchRequest } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { ENDPOINT_TRUSTED_APPS_LIST_ID } from '@kbn/securitysolution-list-constants'; +import { + EQL_RULE_TYPE_ID, + INDICATOR_RULE_TYPE_ID, + ML_RULE_TYPE_ID, + QUERY_RULE_TYPE_ID, + SAVED_QUERY_RULE_TYPE_ID, + SIGNALS_ID, + THRESHOLD_RULE_TYPE_ID, +} from '@kbn/securitysolution-rules'; import { AgentClient, AgentPolicyServiceInterface } from '../../../../fleet/server'; import { ExceptionListClient } from '../../../../lists/server'; import { EndpointAppContextService } from '../../endpoint/endpoint_app_context_services'; @@ -265,6 +274,10 @@ export class TelemetryReceiver { }; } + /** + * Gets the elastic rules which are the rules that have immutable set to true and are of a particular rule type + * @returns The elastic rules + */ public async fetchDetectionRules() { if (this.esClient === undefined || this.esClient === null) { throw Error('elasticsearch client is unavailable: cannot retrieve diagnostic alerts'); @@ -278,15 +291,38 @@ export class TelemetryReceiver { body: { query: { bool: { - filter: [ - { term: { 'alert.alertTypeId': 'siem.signals' } }, - { term: { 'alert.params.immutable': true } }, + must: [ + { + bool: { + filter: { + terms: { + 'alert.alertTypeId': [ + SIGNALS_ID, + EQL_RULE_TYPE_ID, + ML_RULE_TYPE_ID, + QUERY_RULE_TYPE_ID, + SAVED_QUERY_RULE_TYPE_ID, + INDICATOR_RULE_TYPE_ID, + THRESHOLD_RULE_TYPE_ID, + ], + }, + }, + }, + }, + { + bool: { + filter: { + terms: { + 'alert.params.immutable': [true], + }, + }, + }, + }, ], }, }, }, }; - return this.esClient.search(query); } diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json index 799b183f7bbd64..2f893b72cb3e45 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json +++ b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @@ -400,6 +400,24 @@ "siem__notifications": { "type": "long" }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, "xpack__uptime__alerts__monitorStatus": { "type": "long" }, @@ -485,6 +503,24 @@ "siem__notifications": { "type": "long" }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, "xpack__uptime__alerts__monitorStatus": { "type": "long" }, @@ -576,6 +612,24 @@ "siem__notifications": { "type": "long" }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, "xpack__uptime__alerts__monitorStatus": { "type": "long" }, @@ -685,6 +739,24 @@ "siem__notifications": { "type": "long" }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, "xpack__uptime__alerts__monitorStatus": { "type": "long" }, @@ -770,6 +842,24 @@ "siem__notifications": { "type": "long" }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, "xpack__uptime__alerts__monitorStatus": { "type": "long" }, @@ -855,6 +945,24 @@ "siem__notifications": { "type": "long" }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, "xpack__uptime__alerts__monitorStatus": { "type": "long" }, @@ -940,6 +1048,24 @@ "siem__notifications": { "type": "long" }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, "xpack__uptime__alerts__monitorStatus": { "type": "long" }, @@ -1025,6 +1151,24 @@ "siem__notifications": { "type": "long" }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, "xpack__uptime__alerts__monitorStatus": { "type": "long" }, @@ -1047,6 +1191,112 @@ } } }, + "count_rules_executions_timeouts_per_day": { + "type": "long" + }, + "count_rules_executions_timeouts_by_type_per_day": { + "properties": { + "DYNAMIC_KEY": { + "type": "long" + }, + "__index-threshold": { + "type": "long" + }, + "__es-query": { + "type": "long" + }, + "transform_health": { + "type": "long" + }, + "apm__error_rate": { + "type": "long" + }, + "apm__transaction_error_rate": { + "type": "long" + }, + "apm__transaction_duration": { + "type": "long" + }, + "apm__transaction_duration_anomaly": { + "type": "long" + }, + "metrics__alert__threshold": { + "type": "long" + }, + "metrics__alert__inventory__threshold": { + "type": "long" + }, + "logs__alert__document__count": { + "type": "long" + }, + "monitoring_alert_cluster_health": { + "type": "long" + }, + "monitoring_alert_cpu_usage": { + "type": "long" + }, + "monitoring_alert_disk_usage": { + "type": "long" + }, + "monitoring_alert_elasticsearch_version_mismatch": { + "type": "long" + }, + "monitoring_alert_kibana_version_mismatch": { + "type": "long" + }, + "monitoring_alert_license_expiration": { + "type": "long" + }, + "monitoring_alert_logstash_version_mismatch": { + "type": "long" + }, + "monitoring_alert_nodes_changed": { + "type": "long" + }, + "siem__signals": { + "type": "long" + }, + "siem__notifications": { + "type": "long" + }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, + "xpack__uptime__alerts__monitorStatus": { + "type": "long" + }, + "xpack__uptime__alerts__tls": { + "type": "long" + }, + "xpack__uptime__alerts__durationAnomaly": { + "type": "long" + }, + "__geo-containment": { + "type": "long" + }, + "xpack__ml__anomaly_detection_alert": { + "type": "long" + }, + "xpack__ml__anomaly_detection_jobs_health": { + "type": "long" + } + } + }, "avg_execution_time_per_day": { "type": "long" }, @@ -1115,6 +1365,24 @@ "siem__notifications": { "type": "long" }, + "siem__eqlRule": { + "type": "long" + }, + "siem__indicatorRule": { + "type": "long" + }, + "siem__mlRule": { + "type": "long" + }, + "siem__queryRule": { + "type": "long" + }, + "siem__savedQueryRule": { + "type": "long" + }, + "siem__thresholdRule": { + "type": "long" + }, "xpack__uptime__alerts__monitorStatus": { "type": "long" }, diff --git a/x-pack/plugins/transform/common/types/pivot_aggs.ts b/x-pack/plugins/transform/common/types/pivot_aggs.ts index ced4d0a9bce0c2..44308940a58700 100644 --- a/x-pack/plugins/transform/common/types/pivot_aggs.ts +++ b/x-pack/plugins/transform/common/types/pivot_aggs.ts @@ -18,6 +18,7 @@ export const PIVOT_SUPPORTED_AGGS = { VALUE_COUNT: 'value_count', FILTER: 'filter', TOP_METRICS: 'top_metrics', + TERMS: 'terms', } as const; export type PivotSupportedAggs = typeof PIVOT_SUPPORTED_AGGS[keyof typeof PIVOT_SUPPORTED_AGGS]; diff --git a/x-pack/plugins/transform/public/app/common/index.ts b/x-pack/plugins/transform/public/app/common/index.ts index 7081b6db2fe405..7a84ef9c8baa35 100644 --- a/x-pack/plugins/transform/public/app/common/index.ts +++ b/x-pack/plugins/transform/public/app/common/index.ts @@ -39,7 +39,9 @@ export { getEsAggFromAggConfig, isPivotAggsConfigWithUiSupport, isPivotAggsConfigPercentiles, + isPivotAggsConfigTerms, PERCENTILES_AGG_DEFAULT_PERCENTS, + TERMS_AGG_DEFAULT_SIZE, pivotAggsFieldSupport, } from './pivot_aggs'; export type { diff --git a/x-pack/plugins/transform/public/app/common/pivot_aggs.ts b/x-pack/plugins/transform/public/app/common/pivot_aggs.ts index 6f3d3de79c3915..42ce5744bcd264 100644 --- a/x-pack/plugins/transform/public/app/common/pivot_aggs.ts +++ b/x-pack/plugins/transform/public/app/common/pivot_aggs.ts @@ -28,6 +28,7 @@ export function isPivotSupportedAggs(arg: unknown): arg is PivotSupportedAggs { } export const PERCENTILES_AGG_DEFAULT_PERCENTS = [1, 5, 25, 50, 75, 95, 99]; +export const TERMS_AGG_DEFAULT_SIZE = 10; export const pivotAggsFieldSupport = { [KBN_FIELD_TYPES.ATTACHMENT]: [PIVOT_SUPPORTED_AGGS.VALUE_COUNT, PIVOT_SUPPORTED_AGGS.FILTER], @@ -45,6 +46,7 @@ export const pivotAggsFieldSupport = { PIVOT_SUPPORTED_AGGS.VALUE_COUNT, PIVOT_SUPPORTED_AGGS.FILTER, PIVOT_SUPPORTED_AGGS.TOP_METRICS, + PIVOT_SUPPORTED_AGGS.TERMS, ], [KBN_FIELD_TYPES.MURMUR3]: [PIVOT_SUPPORTED_AGGS.VALUE_COUNT, PIVOT_SUPPORTED_AGGS.FILTER], [KBN_FIELD_TYPES.NUMBER]: [ @@ -63,6 +65,7 @@ export const pivotAggsFieldSupport = { PIVOT_SUPPORTED_AGGS.VALUE_COUNT, PIVOT_SUPPORTED_AGGS.FILTER, PIVOT_SUPPORTED_AGGS.TOP_METRICS, + PIVOT_SUPPORTED_AGGS.TERMS, ], [KBN_FIELD_TYPES._SOURCE]: [PIVOT_SUPPORTED_AGGS.VALUE_COUNT, PIVOT_SUPPORTED_AGGS.FILTER], [KBN_FIELD_TYPES.UNKNOWN]: [PIVOT_SUPPORTED_AGGS.VALUE_COUNT, PIVOT_SUPPORTED_AGGS.FILTER], @@ -226,9 +229,15 @@ interface PivotAggsConfigPercentiles extends PivotAggsConfigWithUiBase { percents: number[]; } +interface PivotAggsConfigTerms extends PivotAggsConfigWithUiBase { + agg: typeof PIVOT_SUPPORTED_AGGS.TERMS; + size: number; +} + export type PivotAggsConfigWithUiSupport = | PivotAggsConfigWithUiBase | PivotAggsConfigPercentiles + | PivotAggsConfigTerms | PivotAggsConfigWithExtendedForm; export function isPivotAggsConfigWithUiSupport(arg: unknown): arg is PivotAggsConfigWithUiSupport { @@ -258,6 +267,10 @@ export function isPivotAggsConfigPercentiles(arg: unknown): arg is PivotAggsConf ); } +export function isPivotAggsConfigTerms(arg: unknown): arg is PivotAggsConfigTerms { + return isPopulatedObject(arg, ['agg', 'field', 'size']) && arg.agg === PIVOT_SUPPORTED_AGGS.TERMS; +} + export type PivotAggsConfig = PivotAggsConfigBase | PivotAggsConfigWithUiSupport; export type PivotAggsConfigWithUiSupportDict = Dictionary; diff --git a/x-pack/plugins/transform/public/app/hooks/use_pivot_data.ts b/x-pack/plugins/transform/public/app/hooks/use_pivot_data.ts index a79b96acd5d7d4..300c9c84993a10 100644 --- a/x-pack/plugins/transform/public/app/hooks/use_pivot_data.ts +++ b/x-pack/plugins/transform/public/app/hooks/use_pivot_data.ts @@ -13,7 +13,7 @@ import { EuiDataGridColumn } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { getFlattenedObject } from '@kbn/std'; -import { sample, difference } from 'lodash'; +import { difference } from 'lodash'; import { ES_FIELD_TYPES } from '../../../../../../src/plugins/data/common'; import type { PreviewMappingsProperties } from '../../../common/api_schemas/transforms'; @@ -79,12 +79,16 @@ export function getCombinedProperties( populatedProperties: PreviewMappingsProperties, docs: Array> ): PreviewMappingsProperties { - // Take a sample from docs and resolve missing mappings - const sampleDoc = sample(docs) ?? {}; - const missingMappings = difference(Object.keys(sampleDoc), Object.keys(populatedProperties)); + // Identify missing mappings + const missingMappings = difference( + // Create an array of unique flattened field names across all docs + [...new Set(docs.flatMap(Object.keys))], + Object.keys(populatedProperties) + ); return { ...populatedProperties, ...missingMappings.reduce((acc, curr) => { + const sampleDoc = docs.find((d) => typeof d[curr] !== 'undefined') ?? {}; acc[curr] = { type: typeof sampleDoc[curr] as ES_FIELD_TYPES }; return acc; }, {} as PreviewMappingsProperties), diff --git a/x-pack/plugins/transform/public/app/sections/create_transform/components/aggregation_list/popover_form.tsx b/x-pack/plugins/transform/public/app/sections/create_transform/components/aggregation_list/popover_form.tsx index 53f27165512892..7370a4fd9287dc 100644 --- a/x-pack/plugins/transform/public/app/sections/create_transform/components/aggregation_list/popover_form.tsx +++ b/x-pack/plugins/transform/public/app/sections/create_transform/components/aggregation_list/popover_form.tsx @@ -13,6 +13,7 @@ import { EuiButton, EuiCodeBlock, EuiComboBox, + EuiFieldNumber, EuiFieldText, EuiForm, EuiFormRow, @@ -32,9 +33,11 @@ import { import { isAggName, isPivotAggsConfigPercentiles, + isPivotAggsConfigTerms, isPivotAggsConfigWithUiSupport, getEsAggFromAggConfig, PERCENTILES_AGG_DEFAULT_PERCENTS, + TERMS_AGG_DEFAULT_SIZE, PivotAggsConfig, PivotAggsConfigWithUiSupportDict, } from '../../../../common'; @@ -75,6 +78,30 @@ function parsePercentsInput(inputValue: string | undefined) { return []; } +// Input string should only include comma separated numbers +function isValidPercentsInput(inputValue: string) { + return /^[0-9]+(,[0-9]+)*$/.test(inputValue); +} + +function getDefaultSize(defaultData: PivotAggsConfig): number | undefined { + if (isPivotAggsConfigTerms(defaultData)) { + return defaultData.size; + } +} + +function parseSizeInput(inputValue: string | undefined) { + if (inputValue !== undefined && isValidSizeInput(inputValue)) { + return parseInt(inputValue, 10); + } + + return TERMS_AGG_DEFAULT_SIZE; +} + +// Input string should only include numbers +function isValidSizeInput(inputValue: string) { + return /^\d+$/.test(inputValue); +} + export const PopoverForm: React.FC = ({ defaultData, otherAggNames, onChange, options }) => { const [aggConfigDef, setAggConfigDef] = useState(cloneDeep(defaultData)); @@ -85,6 +112,9 @@ export const PopoverForm: React.FC = ({ defaultData, otherAggNames, onCha ); const [percents, setPercents] = useState(getDefaultPercents(defaultData)); + const [validPercents, setValidPercents] = useState(agg === PIVOT_SUPPORTED_AGGS.PERCENTILES); + const [size, setSize] = useState(getDefaultSize(defaultData)); + const [validSize, setValidSize] = useState(agg === PIVOT_SUPPORTED_AGGS.TERMS); const isUnsupportedAgg = !isPivotAggsConfigWithUiSupport(defaultData); @@ -118,10 +148,19 @@ export const PopoverForm: React.FC = ({ defaultData, otherAggNames, onCha if (aggVal === PIVOT_SUPPORTED_AGGS.PERCENTILES && percents === undefined) { setPercents(PERCENTILES_AGG_DEFAULT_PERCENTS); } + if (aggVal === PIVOT_SUPPORTED_AGGS.TERMS && size === undefined) { + setSize(TERMS_AGG_DEFAULT_SIZE); + } } function updatePercents(inputValue: string) { setPercents(parsePercentsInput(inputValue)); + setValidPercents(isValidPercentsInput(inputValue)); + } + + function updateSize(inputValue: string) { + setSize(parseSizeInput(inputValue)); + setValidSize(isValidSizeInput(inputValue)); } function getUpdatedItem(): PivotAggsConfig { @@ -137,21 +176,29 @@ export const PopoverForm: React.FC = ({ defaultData, otherAggNames, onCha resultField = field[0]; } - if (agg !== PIVOT_SUPPORTED_AGGS.PERCENTILES) { + if (agg === PIVOT_SUPPORTED_AGGS.PERCENTILES) { updatedItem = { - ...aggConfigDef, agg, aggName, field: resultField, dropDownName: defaultData.dropDownName, + percents, + }; + } else if (agg === PIVOT_SUPPORTED_AGGS.TERMS) { + updatedItem = { + agg, + aggName, + field: resultField, + dropDownName: defaultData.dropDownName, + size, }; } else { updatedItem = { + ...aggConfigDef, agg, aggName, field: resultField, dropDownName: defaultData.dropDownName, - percents, }; } @@ -202,13 +249,18 @@ export const PopoverForm: React.FC = ({ defaultData, otherAggNames, onCha percentsText = percents.toString(); } - const validPercents = - agg === PIVOT_SUPPORTED_AGGS.PERCENTILES && parsePercentsInput(percentsText).length > 0; + let sizeText; + if (size !== undefined) { + sizeText = size.toString(); + } let formValid = validAggName; if (formValid && agg === PIVOT_SUPPORTED_AGGS.PERCENTILES) { formValid = validPercents; } + if (formValid && agg === PIVOT_SUPPORTED_AGGS.TERMS) { + formValid = validSize; + } if (isPivotAggsWithExtendedForm(aggConfigDef)) { formValid = validAggName && aggConfigDef.isValid(); } @@ -325,6 +377,23 @@ export const PopoverForm: React.FC = ({ defaultData, otherAggNames, onCha /> )} + {agg === PIVOT_SUPPORTED_AGGS.TERMS && ( + + updateSize(e.target.value)} /> + + )} {isUnsupportedAgg && ( {}, + getSelection: () => {}, + getValue: () => {}, + onDidBlurEditorWidget: () => ({ + dispose: () => {}, + }), +}; + +export const MockCodeEditor = (props: any) => { + const { editorDidMount } = props; + useEffect(() => { + editorDidMount(mockEditorInstance); + }, [editorDidMount]); + + return ( + ) => { + props.onChange(e.target.value); + }} + /> + ); +}; diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/es_index/es_index_params.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/es_index/es_index_params.test.tsx index 720807e3c9a673..75c4fe2d5a0559 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/es_index/es_index_params.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/es_index/es_index_params.test.tsx @@ -10,9 +10,22 @@ import { mountWithIntl, nextTick } from '@kbn/test/jest'; import { act } from '@testing-library/react'; import ParamsFields from './es_index_params'; import { AlertHistoryEsIndexConnectorId } from '../../../../types'; +import { MockCodeEditor } from '../../../code_editor.mock'; + +const kibanaReactPath = '../../../../../../../../src/plugins/kibana_react/public'; jest.mock('../../../../common/lib/kibana'); +jest.mock(kibanaReactPath, () => { + const original = jest.requireActual(kibanaReactPath); + return { + ...original, + CodeEditor: (props: any) => { + return ; + }, + }; +}); + const actionConnector = { actionTypeId: '.index', config: { diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/webhook/webhook_params.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/webhook/webhook_params.test.tsx index a3756ae74fd14f..7c9ffaa23659b0 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/webhook/webhook_params.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/webhook/webhook_params.test.tsx @@ -8,6 +8,19 @@ import React from 'react'; import { mountWithIntl } from '@kbn/test/jest'; import WebhookParamsFields from './webhook_params'; +import { MockCodeEditor } from '../../../code_editor.mock'; + +const kibanaReactPath = '../../../../../../../../src/plugins/kibana_react/public'; + +jest.mock(kibanaReactPath, () => { + const original = jest.requireActual(kibanaReactPath); + return { + ...original, + CodeEditor: (props: any) => { + return ; + }, + }; +}); describe('WebhookParamsFields renders', () => { test('all params fields is rendered', () => { diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/json_editor_with_message_variables.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/json_editor_with_message_variables.test.tsx index bc8051f136b537..6a705798a9b7fa 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/json_editor_with_message_variables.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/json_editor_with_message_variables.test.tsx @@ -4,10 +4,22 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ - import React from 'react'; import { mountWithIntl } from '@kbn/test/jest'; import { JsonEditorWithMessageVariables } from './json_editor_with_message_variables'; +import { MockCodeEditor } from '../code_editor.mock'; + +const kibanaReactPath = '../../../../../../src/plugins/kibana_react/public'; + +jest.mock(kibanaReactPath, () => { + const original = jest.requireActual(kibanaReactPath); + return { + ...original, + CodeEditor: (props: any) => { + return ; + }, + }; +}); describe('JsonEditorWithMessageVariables', () => { const onDocumentsChange = jest.fn(); diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/json_editor_with_message_variables.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/json_editor_with_message_variables.tsx index fbe86403bd317f..9ab9ea990c3635 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/json_editor_with_message_variables.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/json_editor_with_message_variables.tsx @@ -5,19 +5,34 @@ * 2.0. */ -import React, { useState } from 'react'; -import { EuiFormRow } from '@elastic/eui'; +import React, { useCallback, useEffect, useRef, useState } from 'react'; +import { EuiFormRow, EuiCallOut, EuiSpacer } from '@elastic/eui'; -import { XJsonMode } from '@kbn/ace'; -import 'brace/theme/github'; +import { i18n } from '@kbn/i18n'; +import { monaco, XJsonLang } from '@kbn/monaco'; import './add_message_variables.scss'; -import { XJson, EuiCodeEditor } from '../../../../../../src/plugins/es_ui_shared/public'; +import { XJson } from '../../../../../../src/plugins/es_ui_shared/public'; +import { CodeEditor } from '../../../../../../src/plugins/kibana_react/public'; import { AddMessageVariables } from './add_message_variables'; import { ActionVariable } from '../../../../alerting/common'; import { templateActionVariable } from '../lib'; +const NO_EDITOR_ERROR_TITLE = i18n.translate( + 'xpack.triggersActionsUI.components.jsonEditorWithMessageVariable.noEditorErrorTitle', + { + defaultMessage: 'Unable to add message variable', + } +); + +const NO_EDITOR_ERROR_MESSAGE = i18n.translate( + 'xpack.triggersActionsUI.components.jsonEditorWithMessageVariable.noEditorErrorMessage', + { + defaultMessage: 'Editor was not found, please refresh page and try again', + } +); + interface Props { messageVariables?: ActionVariable[]; paramsProperty: string; @@ -31,7 +46,11 @@ interface Props { } const { useXJsonMode } = XJson; -const xJsonMode = new XJsonMode(); + +// Source ID used to insert text imperatively into the code editor, +// this value is only used to uniquely identify any single edit attempt. +// Multiple editors can use the same ID without any issues. +const EDITOR_SOURCE = 'json-editor-with-message-variables'; export const JsonEditorWithMessageVariables: React.FunctionComponent = ({ messageVariables, @@ -44,29 +63,83 @@ export const JsonEditorWithMessageVariables: React.FunctionComponent = ({ helpText, onBlur, }) => { - const [cursorPosition, setCursorPosition] = useState(null); + const editorRef = useRef(); + const editorDisposables = useRef([]); + const [showErrorMessage, setShowErrorMessage] = useState(false); const { convertToJson, setXJson, xJson } = useXJsonMode(inputTargetValue ?? null); const onSelectMessageVariable = (variable: ActionVariable) => { + const editor = editorRef.current; + if (!editor) { + setShowErrorMessage(true); + return; + } + const cursorPosition = editor.getSelection(); const templatedVar = templateActionVariable(variable); + let newValue = ''; if (cursorPosition) { - const cursor = cursorPosition.getCursor(); - cursorPosition.session.insert(cursor, templatedVar); - newValue = cursorPosition.session.getValue(); + editor.executeEdits(EDITOR_SOURCE, [ + { + range: cursorPosition, + text: templatedVar, + }, + ]); + newValue = editor.getValue(); } else { newValue = templatedVar; } + setShowErrorMessage(false); setXJson(newValue); // Keep the documents in sync with the editor content onDocumentsChange(convertToJson(newValue)); }; - const onClickWithMessageVariable = (_value: any) => { - setCursorPosition(_value); + const registerEditorListeners = useCallback(() => { + const editor = editorRef.current; + if (!editor) { + return; + } + editorDisposables.current.push( + editor.onDidBlurEditorWidget(() => { + onBlur?.(); + }) + ); + }, [onBlur]); + + const unregisterEditorListeners = () => { + editorDisposables.current.forEach((d) => { + d.dispose(); + }); + editorDisposables.current = []; + }; + + const onEditorMount = (editor: monaco.editor.IStandaloneCodeEditor) => { + editorRef.current = editor; + registerEditorListeners(); }; + const renderErrorMessage = () => { + if (!showErrorMessage) { + return null; + } + return ( + <> + + +

{NO_EDITOR_ERROR_MESSAGE}

+
+ + + ); + }; + + useEffect(() => { + registerEditorListeners(); + return () => unregisterEditorListeners(); + }, [registerEditorListeners]); + return ( = ({ } helpText={helpText} > - { - setXJson(xjson); - // Keep the documents in sync with the editor content - onDocumentsChange(convertToJson(xjson)); - }} - onCursorChange={(_value: any) => onClickWithMessageVariable(_value)} - onBlur={onBlur} - /> + <> + {renderErrorMessage()} + { + setXJson(xjson); + // Keep the documents in sync with the editor content + onDocumentsChange(convertToJson(xjson)); + }} + /> + ); }; diff --git a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/mock_es_issues.ts b/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/mock_es_issues.ts index 13505b47c5a7f7..a5106ccc314e94 100644 --- a/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/mock_es_issues.ts +++ b/x-pack/plugins/upgrade_assistant/__jest__/client_integration/overview/fix_issues_step/mock_es_issues.ts @@ -23,7 +23,7 @@ export const esCriticalAndWarningDeprecations: ESUpgradeStatus = { isCritical: false, type: 'index_settings', resolveDuringUpgrade: false, - message: 'translog retention settings are ignored', + message: 'Translog retention settings are deprecated', url: 'https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-translog.html', details: 'translog retention settings [index.translog.retention.size] and [index.translog.retention.age] are ignored because translog is no longer used in peer recoveries with soft-deletes enabled (default in 7.0 or later)', diff --git a/x-pack/plugins/upgrade_assistant/common/constants.ts b/x-pack/plugins/upgrade_assistant/common/constants.ts index bbe50d940af87f..06659ad0733021 100644 --- a/x-pack/plugins/upgrade_assistant/common/constants.ts +++ b/x-pack/plugins/upgrade_assistant/common/constants.ts @@ -17,7 +17,7 @@ export const MAJOR_VERSION = '8.0.0'; */ export const indexSettingDeprecations = { translog: { - deprecationMessage: 'translog retention settings are ignored', // expected message from ES deprecation info API + deprecationMessage: 'Translog retention settings are deprecated', // expected message from ES deprecation info API settings: ['translog.retention.size', 'translog.retention.age'], }, }; diff --git a/x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/fake_deprecations.json b/x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/fake_deprecations.json index 2337e0e2dc0396..00ae96ba33f7ad 100644 --- a/x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/fake_deprecations.json +++ b/x-pack/plugins/upgrade_assistant/server/lib/__fixtures__/fake_deprecations.json @@ -85,7 +85,7 @@ "deprecated_settings": [ { "level": "warning", - "message": "translog retention settings are ignored", + "message": "Translog retention settings are deprecated", "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-translog.html", "details": diff --git a/x-pack/plugins/upgrade_assistant/server/lib/__snapshots__/es_deprecations_status.test.ts.snap b/x-pack/plugins/upgrade_assistant/server/lib/__snapshots__/es_deprecations_status.test.ts.snap index be9ea11a4886e0..23cbf7aa265e71 100644 --- a/x-pack/plugins/upgrade_assistant/server/lib/__snapshots__/es_deprecations_status.test.ts.snap +++ b/x-pack/plugins/upgrade_assistant/server/lib/__snapshots__/es_deprecations_status.test.ts.snap @@ -109,7 +109,7 @@ Object { "details": "translog retention settings [index.translog.retention.size] and [index.translog.retention.age] are ignored because translog is no longer used in peer recoveries with soft-deletes enabled (default in 7.0 or later)", "index": "deprecated_settings", "isCritical": false, - "message": "translog retention settings are ignored", + "message": "Translog retention settings are deprecated", "resolveDuringUpgrade": false, "type": "index_settings", "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-translog.html", diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/credential_store.ts b/x-pack/plugins/upgrade_assistant/server/lib/reindexing/credential_store.ts index 66885a23cf96b6..b3d4d5e165a138 100644 --- a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/credential_store.ts +++ b/x-pack/plugins/upgrade_assistant/server/lib/reindexing/credential_store.ts @@ -16,10 +16,14 @@ import { ReindexSavedObject, ReindexStatus } from '../../../common/types'; export type Credential = Record; // Generates a stable hash for the reindex operation's current state. -const getHash = (reindexOp: ReindexSavedObject) => - createHash('sha256') - .update(stringify({ id: reindexOp.id, ...reindexOp.attributes })) +const getHash = (reindexOp: ReindexSavedObject) => { + // Remove reindexOptions from the SO attributes as it creates an unstable hash + // This needs further investigation, see: https://github.com/elastic/kibana/issues/123752 + const { reindexOptions, ...attributes } = reindexOp.attributes; + return createHash('sha256') + .update(stringify({ id: reindexOp.id, ...attributes })) .digest('base64'); +}; // Returns a base64-encoded API key string or undefined const getApiKey = async ({ diff --git a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts b/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts index db427161f50d36..724b282a877478 100644 --- a/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts +++ b/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts @@ -191,15 +191,26 @@ export const reindexServiceFactory = ( const { settings, mappings } = transformFlatSettings(flatSettings); - const { body: createIndex } = await esClient.indices.create({ - index: newIndexName, - body: { - settings, - mappings, - }, - }); + let createIndex; + try { + createIndex = await esClient.indices.create({ + index: newIndexName, + body: { + settings, + mappings, + }, + }); + } catch (err) { + // If for any reason the new index name generated by the `generateNewIndexName` already + // exists (this could happen if kibana is restarted during reindexing), we can just go + // ahead with the process without needing to create the index again. + // See: https://github.com/elastic/kibana/issues/123816 + if (err?.body?.error?.type !== 'resource_already_exists_exception') { + throw err; + } + } - if (!createIndex.acknowledged) { + if (createIndex && !createIndex?.body?.acknowledged) { throw error.cannotCreateIndex(`Index could not be created: ${newIndexName}`); } diff --git a/x-pack/plugins/uptime/e2e/journeys/monitor_management.journey.ts b/x-pack/plugins/uptime/e2e/journeys/monitor_management.journey.ts index e5b0cd352ac5bf..0286f7e898addc 100644 --- a/x-pack/plugins/uptime/e2e/journeys/monitor_management.journey.ts +++ b/x-pack/plugins/uptime/e2e/journeys/monitor_management.journey.ts @@ -5,139 +5,154 @@ * 2.0. */ -import { journey, step, expect, before, Page } from '@elastic/synthetics'; +import { journey, step, expect, before, after, Page } from '@elastic/synthetics'; import { monitorManagementPageProvider } from '../page_objects/monitor_management'; - -journey('Monitor Management', async ({ page, params }: { page: Page; params: any }) => { - const uptime = monitorManagementPageProvider({ page, kibanaUrl: params.kibanaUrl }); - const basicMonitorDetails = { - name: 'Sample monitor', - location: 'US Central', - schedule: '@every 3m', - apmServiceName: 'service', - }; - - const deleteMonitor = async () => { - const isSuccessful = await uptime.deleteMonitor(); - expect(isSuccessful).toBeTruthy(); - }; - - before(async () => { - await uptime.waitForLoadingToFinish(); - }); - - step('Go to monitor-management', async () => { - await uptime.navigateToMonitorManagement(); - }); - - step('login to Kibana', async () => { - await uptime.loginToKibana(); - }); - - step('create monitor http monitor', async () => { - const monitorDetails = { +import { DataStream } from '../../common/runtime_types/monitor_management'; + +const basicMonitorDetails = { + location: 'US Central', + schedule: '@every 3m', +}; +const httpName = 'http monitor'; +const icmpName = 'icmp monitor'; +const tcpName = 'tcp monitor'; +const browserName = 'browser monitor'; + +const configuration = { + [DataStream.HTTP]: { + monitorConfig: { ...basicMonitorDetails, + name: httpName, url: 'https://elastic.co', locations: [basicMonitorDetails.location], - }; - await uptime.clickAddMonitor(); - await uptime.createBasicHTTPMonitorDetails(monitorDetails); - const isSuccessful = await uptime.confirmAndSave(); - expect(isSuccessful).toBeTruthy(); - }); - - step('view HTTP details in monitor management UI', async () => { - const monitorDetails = { + apmServiceName: 'Sample APM Service', + }, + monitorDetails: { ...basicMonitorDetails, + name: httpName, url: 'https://elastic.co', - }; - await uptime.clickAddMonitor(); - await uptime.findMonitorConfiguration(monitorDetails); - }); - - step('delete http monitor', async () => { - await deleteMonitor(); - }); - - step('create monitor tcp monitor', async () => { - const monitorDetails = { + }, + }, + [DataStream.TCP]: { + monitorConfig: { ...basicMonitorDetails, + name: tcpName, host: 'smtp.gmail.com:587', locations: [basicMonitorDetails.location], - }; - await uptime.clickAddMonitor(); - await uptime.createBasicTCPMonitorDetails(monitorDetails); - const isSuccessful = await uptime.confirmAndSave(); - expect(isSuccessful).toBeTruthy(); - }); - - step('view TCP details in monitor management UI', async () => { - const monitorDetails = { + apmServiceName: 'Sample APM Service', + }, + monitorDetails: { ...basicMonitorDetails, + name: tcpName, host: 'smtp.gmail.com:587', - }; - await uptime.clickAddMonitor(); - await uptime.findMonitorConfiguration(monitorDetails); - }); - - step('delete tcp monitor', async () => { - await deleteMonitor(); - }); - - step('create basic ICMP monitor', async () => { - const monitorDetails = { + }, + }, + [DataStream.ICMP]: { + monitorConfig: { ...basicMonitorDetails, + name: icmpName, host: '1.1.1.1', locations: [basicMonitorDetails.location], - }; - await uptime.clickAddMonitor(); - await uptime.createBasicICMPMonitorDetails(monitorDetails); - const isSuccessful = await uptime.confirmAndSave(); - expect(isSuccessful).toBeTruthy(); - }); - - step('view ICMP details in monitor management UI', async () => { - const monitorDetails = { + apmServiceName: 'Sample APM Service', + }, + monitorDetails: { ...basicMonitorDetails, - host: '1.1.1.1', - }; - await uptime.clickAddMonitor(); - await uptime.findMonitorConfiguration(monitorDetails); - }); - - step('delete ICMP monitor', async () => { - await deleteMonitor(); - }); - - step('create basic Browser monitor', async () => { - const monitorDetails = { + name: icmpName, + hosts: '1.1.1.1', + }, + }, + [DataStream.BROWSER]: { + monitorConfig: { ...basicMonitorDetails, + name: browserName, inlineScript: 'step("test step", () => {})', locations: [basicMonitorDetails.location], - }; - await uptime.clickAddMonitor(); - await uptime.createBasicBrowserMonitorDetails(monitorDetails, true); - const isSuccessful = await uptime.confirmAndSave(); - expect(isSuccessful).toBeTruthy(); - }); - - step('view ICMP details in monitor management UI', async () => { - const monitorDetails = { + apmServiceName: 'Sample APM Service', + }, + monitorDetails: { ...basicMonitorDetails, - host: '1.1.1.1', - }; - await uptime.clickAddMonitor(); - await uptime.findMonitorConfiguration(monitorDetails); - }); - - step('delete ICMP monitor', async () => { - await deleteMonitor(); + name: browserName, + }, + }, +}; + +const createMonitorJourney = ({ + monitorName, + monitorType, + monitorConfig, + monitorDetails, +}: { + monitorName: string; + monitorType: DataStream; + monitorConfig: Record; + monitorDetails: Record; +}) => { + journey( + `MonitorManagement-${monitorType}`, + async ({ page, params }: { page: Page; params: any }) => { + const uptime = monitorManagementPageProvider({ page, kibanaUrl: params.kibanaUrl }); + const isRemote = process.env.SYNTHETICS_REMOTE_ENABLED; + const deleteMonitor = async () => { + await uptime.navigateToMonitorManagement(); + const isSuccessful = await uptime.deleteMonitor(); + expect(isSuccessful).toBeTruthy(); + }; + + before(async () => { + await uptime.waitForLoadingToFinish(); + }); + + after(async () => { + await deleteMonitor(); + }); + + step('Go to monitor-management', async () => { + await uptime.navigateToMonitorManagement(); + }); + + step('login to Kibana', async () => { + await uptime.loginToKibana(); + const invalid = await page.locator( + `text=Username or password is incorrect. Please try again.` + ); + expect(await invalid.isVisible()).toBeFalsy(); + }); + + step(`create ${monitorType} monitor`, async () => { + await uptime.clickAddMonitor(); + await uptime.createMonitor({ monitorConfig, monitorType }); + const isSuccessful = await uptime.confirmAndSave(); + expect(isSuccessful).toBeTruthy(); + }); + + step(`view ${monitorType} details in monitor management UI`, async () => { + await uptime.navigateToMonitorManagement(); + const hasFailure = await uptime.findMonitorConfiguration(monitorDetails); + expect(hasFailure).toBeFalsy(); + }); + + if (isRemote) { + step('view results in overview page', async () => { + await uptime.navigateToOverviewPage(); + await page.waitForSelector(`text=${monitorName}`, { timeout: 160 * 1000 }); + }); + } + } + ); +}; + +Object.keys(configuration).forEach((type) => { + createMonitorJourney({ + monitorType: type as DataStream, + monitorName: `${type} monitor`, + monitorConfig: configuration[type as DataStream].monitorConfig, + monitorDetails: configuration[type as DataStream].monitorDetails, }); }); journey('Monitor Management breadcrumbs', async ({ page, params }: { page: Page; params: any }) => { const uptime = monitorManagementPageProvider({ page, kibanaUrl: params.kibanaUrl }); - const basicMonitorDetails = { + const defaultMonitorDetails = { name: 'Sample monitor', location: 'US Central', schedule: '@every 3m', @@ -171,7 +186,7 @@ journey('Monitor Management breadcrumbs', async ({ page, params }: { page: Page; step('create monitor http monitor', async () => { const monitorDetails = { - ...basicMonitorDetails, + ...defaultMonitorDetails, url: 'https://elastic.co', locations: [basicMonitorDetails.location], }; diff --git a/x-pack/plugins/uptime/e2e/page_objects/login.tsx b/x-pack/plugins/uptime/e2e/page_objects/login.tsx index 82062a0a710e7f..79d9af39f1c4f4 100644 --- a/x-pack/plugins/uptime/e2e/page_objects/login.tsx +++ b/x-pack/plugins/uptime/e2e/page_objects/login.tsx @@ -6,7 +6,17 @@ */ import { Page } from '@elastic/synthetics'; -export function loginPageProvider({ page }: { page: Page; kibanaUrl: string }) { +export function loginPageProvider({ + page, + isRemote, + username = 'elastic', + password = 'changeme', +}: { + page: Page; + isRemote: boolean; + username?: string; + password?: string; +}) { return { async waitForLoadingToFinish() { while (true) { @@ -15,10 +25,13 @@ export function loginPageProvider({ page }: { page: Page; kibanaUrl: string }) { } }, async loginToKibana() { - await page.fill('[data-test-subj=loginUsername]', 'elastic', { + if (isRemote) { + await page.click('text="Log in with Elasticsearch"'); + } + await page.fill('[data-test-subj=loginUsername]', username, { timeout: 60 * 1000, }); - await page.fill('[data-test-subj=loginPassword]', 'changeme'); + await page.fill('[data-test-subj=loginPassword]', password); await page.click('[data-test-subj=loginSubmit]'); diff --git a/x-pack/plugins/uptime/e2e/page_objects/monitor_management.tsx b/x-pack/plugins/uptime/e2e/page_objects/monitor_management.tsx index e12b7fdf40bc37..057ce21ec51000 100644 --- a/x-pack/plugins/uptime/e2e/page_objects/monitor_management.tsx +++ b/x-pack/plugins/uptime/e2e/page_objects/monitor_management.tsx @@ -6,6 +6,7 @@ */ import { Page } from '@elastic/synthetics'; +import { DataStream } from '../../common/runtime_types/monitor_management'; import { loginPageProvider } from './login'; import { utilsPageProvider } from './utils'; @@ -16,11 +17,21 @@ export function monitorManagementPageProvider({ page: Page; kibanaUrl: string; }) { - const monitorManagement = `${kibanaUrl}/app/uptime/manage-monitors`; - const addMonitor = `${kibanaUrl}/app/uptime/add-monitor`; - + const remoteKibanaUrl = process.env.SYNTHETICS_REMOTE_KIBANA_URL; + const remoteUsername = process.env.SYNTHETICS_REMOTE_KIBANA_USERNAME; + const remotePassword = process.env.SYNTHETICS_REMOTE_KIBANA_PASSWORD; + const isRemote = Boolean(process.env.SYNTHETICS_REMOTE_ENABLED); + const basePath = isRemote ? remoteKibanaUrl : kibanaUrl; + const monitorManagement = `${basePath}/app/uptime/manage-monitors`; + const addMonitor = `${basePath}/app/uptime/add-monitor`; + const overview = `${basePath}/app/uptime`; return { - ...loginPageProvider({ page, kibanaUrl }), + ...loginPageProvider({ + page, + isRemote, + username: isRemote ? remoteUsername : 'elastic', + password: isRemote ? remotePassword : 'changeme', + }), ...utilsPageProvider({ page }), async navigateToMonitorManagement() { @@ -35,6 +46,12 @@ export function monitorManagementPageProvider({ }); }, + async navigateToOverviewPage() { + await page.goto(overview, { + waitUntil: 'networkidle', + }); + }, + async clickAddMonitor() { await page.click('text=Add monitor'); }, @@ -183,5 +200,34 @@ export function monitorManagementPageProvider({ await this.fillByTestSubj('syntheticsBrowserZipUrlPassword', password || ''); await this.fillCodeEditor(params || ''); }, + + async createMonitor({ + monitorConfig, + monitorType, + }: { + monitorConfig: Record; + monitorType: DataStream; + }) { + switch (monitorType) { + case DataStream.HTTP: + // @ts-ignore + await this.createBasicHTTPMonitorDetails(monitorConfig); + break; + case DataStream.TCP: + // @ts-ignore + await this.createBasicTCPMonitorDetails(monitorConfig); + break; + case DataStream.ICMP: + // @ts-ignore + await this.createBasicICMPMonitorDetails(monitorConfig); + break; + case DataStream.BROWSER: + // @ts-ignore + await this.createBasicBrowserMonitorDetails(monitorConfig, true); + break; + default: + break; + } + }, }; } diff --git a/x-pack/plugins/uptime/e2e/page_objects/utils.tsx b/x-pack/plugins/uptime/e2e/page_objects/utils.tsx index d6b54bd7dd737c..08ed473d3c8af0 100644 --- a/x-pack/plugins/uptime/e2e/page_objects/utils.tsx +++ b/x-pack/plugins/uptime/e2e/page_objects/utils.tsx @@ -37,11 +37,11 @@ export function utilsPageProvider({ page }: { page: Page }) { }, async findByTestSubj(dataTestSubj: string) { - return await page.locator(`[data-test-subj=${dataTestSubj}]`); + return await page.waitForSelector(`[data-test-subj=${dataTestSubj}]`); }, async findByText(text: string) { - return await page.locator(`text=${text}`); + return await page.waitForSelector(`text=${text}`); }, }; } diff --git a/x-pack/plugins/uptime/e2e/playwright_start.ts b/x-pack/plugins/uptime/e2e/playwright_start.ts index 8d208ed6873c6c..91af014e07ddf0 100644 --- a/x-pack/plugins/uptime/e2e/playwright_start.ts +++ b/x-pack/plugins/uptime/e2e/playwright_start.ts @@ -19,6 +19,11 @@ const listOfJourneys = [ 'StepsDuration', 'TlsFlyoutInAlertingApp', 'StatusFlyoutInAlertingApp', + 'MonitorManagement-http', + 'MonitorManagement-tcp', + 'MonitorManagement-icmp', + 'MonitorManagement-browser', + 'MonitorManagement breadcrumbs', ] as const; export function playwrightRunTests({ headless, match }: { headless: boolean; match?: string }) { diff --git a/x-pack/plugins/uptime/e2e/tsconfig.json b/x-pack/plugins/uptime/e2e/tsconfig.json index 7d5fdc316e8ee5..241e4fab48aa29 100644 --- a/x-pack/plugins/uptime/e2e/tsconfig.json +++ b/x-pack/plugins/uptime/e2e/tsconfig.json @@ -10,5 +10,8 @@ { "path": "../../apm/tsconfig.json", }, + { + "path": "../tsconfig.json", + } ] } diff --git a/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/donut_chart.test.tsx.snap b/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/donut_chart.test.tsx.snap index 5f463751fae24a..c90283a8386f47 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/donut_chart.test.tsx.snap +++ b/x-pack/plugins/uptime/public/components/common/charts/__snapshots__/donut_chart.test.tsx.snap @@ -15,530 +15,673 @@ exports[`DonutChart component passes correct props without errors for valid prop > + - - + diff --git a/x-pack/plugins/uptime/public/components/common/charts/donut_chart.tsx b/x-pack/plugins/uptime/public/components/common/charts/donut_chart.tsx index 007ec8f737852d..3638b52e397831 100644 --- a/x-pack/plugins/uptime/public/components/common/charts/donut_chart.tsx +++ b/x-pack/plugins/uptime/public/components/common/charts/donut_chart.tsx @@ -9,7 +9,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiIcon } from '@elastic/eui'; import React, { useContext } from 'react'; import { i18n } from '@kbn/i18n'; import styled from 'styled-components'; -import { Chart, Datum, Partition, Settings, PartitionLayout } from '@elastic/charts'; +import { Chart, Datum, Partition, Settings, PartitionLayout, PartialTheme } from '@elastic/charts'; import { DonutChartLegend } from './donut_chart_legend'; import { UptimeThemeContext } from '../../../contexts'; @@ -28,6 +28,19 @@ export const GreenCheckIcon = styled(EuiIcon)` position: absolute; `; +const themeOverrides: PartialTheme = { + chartMargins: { top: 0, bottom: 0, left: 0, right: 0 }, + partition: { + linkLabel: { + maximumSection: Infinity, + }, + idealFontSizeJump: 1.1, + outerSizeRatio: 0.9, + emptySizeRatio: 0.4, + circlePadding: 4, + }, +}; + export const DonutChart = ({ height, down, up }: DonutChartProps) => { const { colors: { danger, gray }, @@ -44,15 +57,18 @@ export const DonutChart = ({ height, down, up }: DonutChartProps) => { 'Pie chart showing the current status. {down} of {total} monitors are down.', values: { down, total: up + down }, })} - {...chartTheme} > - + d.value as number} layers={[ { @@ -65,17 +81,6 @@ export const DonutChart = ({ height, down, up }: DonutChartProps) => { }, }, ]} - config={{ - partitionLayout: PartitionLayout.sunburst, - linkLabel: { - maximumSection: Infinity, - }, - margin: { top: 0, bottom: 0, left: 0, right: 0 }, - idealFontSizeJump: 1.1, - outerSizeRatio: 0.9, - emptySizeRatio: 0.4, - circlePadding: 4, - }} /> {down === 0 && } diff --git a/x-pack/plugins/uptime/scripts/e2e.js b/x-pack/plugins/uptime/scripts/e2e.js index d7405f2b8cab6f..a329a6bf03c4b9 100644 --- a/x-pack/plugins/uptime/scripts/e2e.js +++ b/x-pack/plugins/uptime/scripts/e2e.js @@ -59,9 +59,17 @@ if (server) { const config = './playwright_run.ts'; function executeRunner() { - if (runner) { + if (server) { childProcess.execSync( - `node ../../../scripts/${ftrScript} --config ${config} --kibana-install-dir '${kibanaInstallDir}' --headless ${headless} --grep ${grep}`, + `node ../../../scripts/${ftrScript} --config ${config} --kibana-install-dir '${kibanaInstallDir}'`, + { + cwd: e2eDir, + stdio: 'inherit', + } + ); + } else if (runner) { + childProcess.execSync( + `node ../../../scripts/${ftrScript} --config ${config} --kibana-install-dir '${kibanaInstallDir}' --headless ${headless} --grep '${grep}'`, { cwd: e2eDir, stdio: 'inherit', @@ -69,7 +77,7 @@ function executeRunner() { ); } else { childProcess.execSync( - `node ../../../scripts/${ftrScript} --config ${config} --kibana-install-dir '${kibanaInstallDir}' `, + `node ../../../scripts/${ftrScript} --config ${config} --kibana-install-dir '${kibanaInstallDir}' --grep '${grep}'`, { cwd: e2eDir, stdio: 'inherit', diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/builtin_alert_types/long_running/rule.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/builtin_alert_types/long_running/rule.ts index 7ed78a793901cc..580b058d3ab1e9 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/builtin_alert_types/long_running/rule.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/builtin_alert_types/long_running/rule.ts @@ -18,9 +18,7 @@ export default function ruleTests({ getService }: FtrProviderContext) { const supertest = getService('supertest'); const retry = getService('retry'); - // Re-enable these once they are passing - // https://github.com/elastic/kibana/issues/121100 - describe.skip('long running rule', async () => { + describe('long running rule', async () => { const objectRemover = new ObjectRemover(supertest); afterEach(async () => { @@ -33,13 +31,16 @@ export default function ruleTests({ getService }: FtrProviderContext) { ruleTypeId: 'test.patternLongRunning.cancelAlertsOnRuleTimeout', pattern: [true, true, true, true, true], }); - const statuses: Array<{ status: string; error: { message: string; reason: string } }> = []; + const errorStatuses: Array<{ status: string; error: { message: string; reason: string } }> = + []; // get the events we're expecting const events = await retry.try(async () => { const { body: rule } = await supertest.get( `${getUrlPrefix(Spaces.space1.id)}/api/alerting/rule/${ruleId}` ); - statuses.push(rule.execution_status); + if (rule.execution_status.status === 'error') { + errorStatuses.push(rule.execution_status); + } return await getEventLog({ getService, spaceId: Spaces.space1.id, @@ -70,17 +71,8 @@ export default function ruleTests({ getService }: FtrProviderContext) { ); expect(status).to.eql(200); - // We can't actually guarantee an execution didn't happen again and not timeout - // so we need to be a bit safe in how we detect this situation by looking at the last - // n instead of the last one - const lookBackCount = 5; - let lastErrorStatus = null; - for (let i = 0; i < lookBackCount; i++) { - lastErrorStatus = statuses.pop(); - if (lastErrorStatus?.status === 'error') { - break; - } - } + expect(errorStatuses.length).to.be.greaterThan(0); + const lastErrorStatus = errorStatuses.pop(); expect(lastErrorStatus?.status).to.eql('error'); expect(lastErrorStatus?.error.message).to.eql( `test.patternLongRunning.cancelAlertsOnRuleTimeout:${ruleId}: execution cancelled due to timeout - exceeded rule type timeout of 3s` diff --git a/x-pack/test/api_integration/apis/lens/existing_fields.ts b/x-pack/test/api_integration/apis/lens/existing_fields.ts index 952659c2960d4a..e51980e47fd068 100644 --- a/x-pack/test/api_integration/apis/lens/existing_fields.ts +++ b/x-pack/test/api_integration/apis/lens/existing_fields.ts @@ -9,171 +9,46 @@ import expect from '@kbn/expect'; import { FtrProviderContext } from '../../ftr_provider_context'; -const TEST_START_TIME = '2015-09-19T06:31:44.000'; -const TEST_END_TIME = '2015-09-23T18:31:44.000'; +const TEST_START_TIME = '2010-09-19T06:31:44.000'; +const TEST_END_TIME = '2023-09-23T18:31:44.000'; const COMMON_HEADERS = { 'kbn-xsrf': 'some-xsrf-token', }; +const metaFields = ['_id', '_index', '_score', '_source', '_type']; const fieldsWithData = [ - '@message', - '@message.raw', - '@tags', - '@tags.raw', - '@timestamp', - '_id', - '_index', - 'agent', - 'agent.raw', - 'bytes', - 'clientip', - 'extension', - 'extension.raw', - 'geo.coordinates', - 'geo.dest', - 'geo.src', - 'geo.srcdest', - 'headings', - 'headings.raw', - 'host', - 'host.raw', - 'index', - 'index.raw', - 'ip', - 'links', - 'links.raw', - 'machine.os', - 'machine.os.raw', - 'machine.ram', - 'machine.ram_range', - 'memory', - 'phpmemory', - 'referer', - 'request', - 'request.raw', - 'response', - 'response.raw', - 'spaces', - 'spaces.raw', - 'type', - 'url', - 'url.raw', - 'utc_time', - 'xss', - 'xss.raw', - 'runtime_number', - - 'relatedContent.article:modified_time', - 'relatedContent.article:published_time', - 'relatedContent.article:section', - 'relatedContent.article:section.raw', - 'relatedContent.article:tag', - 'relatedContent.article:tag.raw', - 'relatedContent.og:description', - 'relatedContent.og:description.raw', - 'relatedContent.og:image', - 'relatedContent.og:image.raw', - 'relatedContent.og:image:height', - 'relatedContent.og:image:height.raw', - 'relatedContent.og:image:width', - 'relatedContent.og:image:width.raw', - 'relatedContent.og:site_name', - 'relatedContent.og:site_name.raw', - 'relatedContent.og:title', - 'relatedContent.og:title.raw', - 'relatedContent.og:type', - 'relatedContent.og:type.raw', - 'relatedContent.og:url', - 'relatedContent.og:url.raw', - 'relatedContent.twitter:card', - 'relatedContent.twitter:card.raw', - 'relatedContent.twitter:description', - 'relatedContent.twitter:description.raw', - 'relatedContent.twitter:image', - 'relatedContent.twitter:image.raw', - 'relatedContent.twitter:site', - 'relatedContent.twitter:site.raw', - 'relatedContent.twitter:title', - 'relatedContent.twitter:title.raw', - 'relatedContent.url', - 'relatedContent.url.raw', -]; - -const metricBeatData = [ - '@timestamp', - '_id', - '_index', - 'agent.ephemeral_id', - 'agent.ephemeral_id.keyword', - 'agent.hostname', - 'agent.hostname.keyword', - 'agent.id', - 'agent.id.keyword', - 'agent.type', - 'agent.type.keyword', - 'agent.version', - 'agent.version.keyword', - 'ecs.version', - 'ecs.version.keyword', - 'event.dataset', - 'event.dataset.keyword', - 'event.duration', - 'event.module', - 'event.module.keyword', - 'host.architecture', - 'host.architecture.keyword', - 'host.hostname', - 'host.hostname.keyword', - 'host.id', - 'host.id.keyword', - 'host.name', - 'host.name.keyword', - 'host.os.build', - 'host.os.build.keyword', - 'host.os.family', - 'host.os.family.keyword', - 'host.os.kernel', - 'host.os.kernel.keyword', - 'host.os.name', - 'host.os.name.keyword', - 'host.os.platform', - 'host.os.platform.keyword', - 'host.os.version', - 'host.os.version.keyword', - 'metricset.name', - 'metricset.name.keyword', - 'service.type', - 'service.type.keyword', - 'system.cpu.cores', - 'system.cpu.idle.pct', - 'system.cpu.iowait.pct', - 'system.cpu.irq.pct', - 'system.cpu.nice.pct', - 'system.cpu.softirq.pct', - 'system.cpu.steal.pct', - 'system.cpu.system.pct', - 'system.cpu.total.pct', - 'system.cpu.user.pct', + 'ts', + 'filter_field', + 'textfield1', + 'textfield2', + 'mapping_runtime_field', + 'data_view_runtime_field', ]; export default ({ getService }: FtrProviderContext) => { const esArchiver = getService('esArchiver'); const supertest = getService('supertest'); + const kibanaServer = getService('kibanaServer'); describe('existing_fields apis', () => { before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/visualize/default'); + await esArchiver.load('x-pack/test/api_integration/es_archives/lens/constant_keyword'); + await kibanaServer.importExport.load( + 'x-pack/test/api_integration/fixtures/kbn_archiver/lens/constant_keyword.json' + ); }); + after(async () => { - await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); - await esArchiver.unload('x-pack/test/functional/es_archives/visualize/default'); + await esArchiver.unload('x-pack/test/api_integration/es_archives/lens/constant_keyword'); + await kibanaServer.importExport.unload( + 'x-pack/test/api_integration/fixtures/kbn_archiver/lens/constant_keyword.json' + ); }); describe('existence', () => { it('should find which fields exist in the sample documents', async () => { const { body } = await supertest - .post(`/api/lens/existing_fields/${encodeURIComponent('logstash-*')}`) + .post(`/api/lens/existing_fields/existence_index`) .set(COMMON_HEADERS) .send({ dslQuery: { @@ -186,76 +61,89 @@ export default ({ getService }: FtrProviderContext) => { }) .expect(200); - expect(body.indexPatternTitle).to.eql('logstash-*'); - expect(body.existingFieldNames.sort()).to.eql(fieldsWithData.sort()); + expect(body.indexPatternTitle).to.eql('existence_index_*'); + expect(body.existingFieldNames.sort()).to.eql([...metaFields, ...fieldsWithData].sort()); }); - it('should succeed for thousands of fields', async () => { + it('should return fields filtered by term query', async () => { + const expectedFieldNames = [ + 'ts', + 'filter_field', + 'textfield1', + // textfield2 and mapping_runtime_field are defined on the other index + 'data_view_runtime_field', + ]; + const { body } = await supertest - .post(`/api/lens/existing_fields/${encodeURIComponent('metricbeat-*')}`) + .post(`/api/lens/existing_fields/existence_index`) .set(COMMON_HEADERS) .send({ - dslQuery: { match_all: {} }, + dslQuery: { + bool: { + filter: [{ term: { filter_field: 'a' } }], + }, + }, fromDate: TEST_START_TIME, toDate: TEST_END_TIME, }) .expect(200); - - expect(body.indexPatternTitle).to.eql('metricbeat-*'); - expect(body.existingFieldNames.sort()).to.eql(metricBeatData.sort()); + expect(body.existingFieldNames.sort()).to.eql( + [...metaFields, ...expectedFieldNames].sort() + ); }); - it('should return fields filtered by query and filters', async () => { + it('should return fields filtered by match_phrase query', async () => { const expectedFieldNames = [ - '@message', - '@message.raw', - '@tags', - '@tags.raw', - '@timestamp', - '_id', - '_index', - 'agent', - 'agent.raw', - 'bytes', - 'clientip', - 'extension', - 'extension.raw', - 'headings', - 'headings.raw', - 'host', - 'host.raw', - 'index', - 'index.raw', - 'referer', - 'request', - 'request.raw', - 'response', - 'response.raw', - 'runtime_number', - 'spaces', - 'spaces.raw', - 'type', - 'url', - 'url.raw', - 'utc_time', - 'xss', - 'xss.raw', + 'ts', + 'filter_field', + 'textfield1', + // textfield2 and mapping_runtime_field are defined on the other index + 'data_view_runtime_field', ]; const { body } = await supertest - .post(`/api/lens/existing_fields/${encodeURIComponent('logstash-*')}`) + .post(`/api/lens/existing_fields/existence_index`) .set(COMMON_HEADERS) .send({ dslQuery: { bool: { - filter: [{ match: { referer: 'https://www.taylorswift.com/' } }], + filter: [{ match_phrase: { filter_field: 'a' } }], }, }, fromDate: TEST_START_TIME, toDate: TEST_END_TIME, }) .expect(200); - expect(body.existingFieldNames.sort()).to.eql(expectedFieldNames.sort()); + expect(body.existingFieldNames.sort()).to.eql( + [...metaFields, ...expectedFieldNames].sort() + ); + }); + + it('should return fields filtered by time range', async () => { + const expectedFieldNames = [ + 'ts', + 'filter_field', + 'textfield1', + // textfield2 and mapping_runtime_field are defined on the other index + 'data_view_runtime_field', + ]; + + const { body } = await supertest + .post(`/api/lens/existing_fields/existence_index`) + .set(COMMON_HEADERS) + .send({ + dslQuery: { + bool: { + filter: [{ term: { filter_field: 'a' } }], + }, + }, + fromDate: TEST_START_TIME, + toDate: '2021-12-12', + }) + .expect(200); + expect(body.existingFieldNames.sort()).to.eql( + [...metaFields, ...expectedFieldNames].sort() + ); }); }); }); diff --git a/x-pack/test/api_integration/apis/lens/index.ts b/x-pack/test/api_integration/apis/lens/index.ts index 5b51f2dbd94e31..04508f011158a4 100644 --- a/x-pack/test/api_integration/apis/lens/index.ts +++ b/x-pack/test/api_integration/apis/lens/index.ts @@ -10,6 +10,7 @@ import { FtrProviderContext } from '../../ftr_provider_context'; export default function lensApiIntegrationTests({ loadTestFile }: FtrProviderContext) { describe('Lens', () => { loadTestFile(require.resolve('./existing_fields')); + loadTestFile(require.resolve('./legacy_existing_fields')); loadTestFile(require.resolve('./field_stats')); loadTestFile(require.resolve('./telemetry')); }); diff --git a/x-pack/test/api_integration/apis/lens/legacy_existing_fields.ts b/x-pack/test/api_integration/apis/lens/legacy_existing_fields.ts new file mode 100644 index 00000000000000..370807c99d806d --- /dev/null +++ b/x-pack/test/api_integration/apis/lens/legacy_existing_fields.ts @@ -0,0 +1,269 @@ +/* + * 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 { FtrProviderContext } from '../../ftr_provider_context'; + +const TEST_START_TIME = '2015-09-19T06:31:44.000'; +const TEST_END_TIME = '2015-09-23T18:31:44.000'; +const COMMON_HEADERS = { + 'kbn-xsrf': 'some-xsrf-token', +}; + +const fieldsWithData = [ + '@message', + '@message.raw', + '@tags', + '@tags.raw', + '@timestamp', + '_id', + '_index', + 'agent', + 'agent.raw', + 'bytes', + 'clientip', + 'extension', + 'extension.raw', + 'geo.coordinates', + 'geo.dest', + 'geo.src', + 'geo.srcdest', + 'headings', + 'headings.raw', + 'host', + 'host.raw', + 'index', + 'index.raw', + 'ip', + 'links', + 'links.raw', + 'machine.os', + 'machine.os.raw', + 'machine.ram', + 'machine.ram_range', + 'memory', + 'phpmemory', + 'referer', + 'request', + 'request.raw', + 'response', + 'response.raw', + 'spaces', + 'spaces.raw', + 'type', + 'url', + 'url.raw', + 'utc_time', + 'xss', + 'xss.raw', + 'runtime_number', + + 'relatedContent.article:modified_time', + 'relatedContent.article:published_time', + 'relatedContent.article:section', + 'relatedContent.article:section.raw', + 'relatedContent.article:tag', + 'relatedContent.article:tag.raw', + 'relatedContent.og:description', + 'relatedContent.og:description.raw', + 'relatedContent.og:image', + 'relatedContent.og:image.raw', + 'relatedContent.og:image:height', + 'relatedContent.og:image:height.raw', + 'relatedContent.og:image:width', + 'relatedContent.og:image:width.raw', + 'relatedContent.og:site_name', + 'relatedContent.og:site_name.raw', + 'relatedContent.og:title', + 'relatedContent.og:title.raw', + 'relatedContent.og:type', + 'relatedContent.og:type.raw', + 'relatedContent.og:url', + 'relatedContent.og:url.raw', + 'relatedContent.twitter:card', + 'relatedContent.twitter:card.raw', + 'relatedContent.twitter:description', + 'relatedContent.twitter:description.raw', + 'relatedContent.twitter:image', + 'relatedContent.twitter:image.raw', + 'relatedContent.twitter:site', + 'relatedContent.twitter:site.raw', + 'relatedContent.twitter:title', + 'relatedContent.twitter:title.raw', + 'relatedContent.url', + 'relatedContent.url.raw', +]; + +const metricBeatData = [ + '@timestamp', + '_id', + '_index', + 'agent.ephemeral_id', + 'agent.ephemeral_id.keyword', + 'agent.hostname', + 'agent.hostname.keyword', + 'agent.id', + 'agent.id.keyword', + 'agent.type', + 'agent.type.keyword', + 'agent.version', + 'agent.version.keyword', + 'ecs.version', + 'ecs.version.keyword', + 'event.dataset', + 'event.dataset.keyword', + 'event.duration', + 'event.module', + 'event.module.keyword', + 'host.architecture', + 'host.architecture.keyword', + 'host.hostname', + 'host.hostname.keyword', + 'host.id', + 'host.id.keyword', + 'host.name', + 'host.name.keyword', + 'host.os.build', + 'host.os.build.keyword', + 'host.os.family', + 'host.os.family.keyword', + 'host.os.kernel', + 'host.os.kernel.keyword', + 'host.os.name', + 'host.os.name.keyword', + 'host.os.platform', + 'host.os.platform.keyword', + 'host.os.version', + 'host.os.version.keyword', + 'metricset.name', + 'metricset.name.keyword', + 'service.type', + 'service.type.keyword', + 'system.cpu.cores', + 'system.cpu.idle.pct', + 'system.cpu.iowait.pct', + 'system.cpu.irq.pct', + 'system.cpu.nice.pct', + 'system.cpu.softirq.pct', + 'system.cpu.steal.pct', + 'system.cpu.system.pct', + 'system.cpu.total.pct', + 'system.cpu.user.pct', +]; + +export default ({ getService }: FtrProviderContext) => { + const esArchiver = getService('esArchiver'); + const supertest = getService('supertest'); + const kibanaServer = getService('kibanaServer'); + + describe('existing_fields apis legacy', () => { + before(async () => { + await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/visualize/default'); + await kibanaServer.uiSettings.update({ + 'lens:useFieldExistenceSampling': true, + }); + }); + after(async () => { + await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); + await esArchiver.unload('x-pack/test/functional/es_archives/visualize/default'); + await kibanaServer.uiSettings.update({ + 'lens:useFieldExistenceSampling': false, + }); + }); + + describe('existence', () => { + it('should find which fields exist in the sample documents', async () => { + const { body } = await supertest + .post(`/api/lens/existing_fields/${encodeURIComponent('logstash-*')}`) + .set(COMMON_HEADERS) + .send({ + dslQuery: { + bool: { + filter: [{ match_all: {} }], + }, + }, + fromDate: TEST_START_TIME, + toDate: TEST_END_TIME, + }) + .expect(200); + + expect(body.indexPatternTitle).to.eql('logstash-*'); + expect(body.existingFieldNames.sort()).to.eql(fieldsWithData.sort()); + }); + + it('should succeed for thousands of fields', async () => { + const { body } = await supertest + .post(`/api/lens/existing_fields/${encodeURIComponent('metricbeat-*')}`) + .set(COMMON_HEADERS) + .send({ + dslQuery: { match_all: {} }, + fromDate: TEST_START_TIME, + toDate: TEST_END_TIME, + }) + .expect(200); + + expect(body.indexPatternTitle).to.eql('metricbeat-*'); + expect(body.existingFieldNames.sort()).to.eql(metricBeatData.sort()); + }); + + it('should return fields filtered by query and filters', async () => { + const expectedFieldNames = [ + '@message', + '@message.raw', + '@tags', + '@tags.raw', + '@timestamp', + '_id', + '_index', + 'agent', + 'agent.raw', + 'bytes', + 'clientip', + 'extension', + 'extension.raw', + 'headings', + 'headings.raw', + 'host', + 'host.raw', + 'index', + 'index.raw', + 'referer', + 'request', + 'request.raw', + 'response', + 'response.raw', + 'runtime_number', + 'spaces', + 'spaces.raw', + 'type', + 'url', + 'url.raw', + 'utc_time', + 'xss', + 'xss.raw', + ]; + + const { body } = await supertest + .post(`/api/lens/existing_fields/${encodeURIComponent('logstash-*')}`) + .set(COMMON_HEADERS) + .send({ + dslQuery: { + bool: { + filter: [{ match: { referer: 'https://www.taylorswift.com/' } }], + }, + }, + fromDate: TEST_START_TIME, + toDate: TEST_END_TIME, + }) + .expect(200); + expect(body.existingFieldNames.sort()).to.eql(expectedFieldNames.sort()); + }); + }); + }); +}; diff --git a/x-pack/test/api_integration/apis/metrics_ui/inventory_threshold_alert.ts b/x-pack/test/api_integration/apis/metrics_ui/inventory_threshold_alert.ts index a5f72f1c43b815..98502430016b22 100644 --- a/x-pack/test/api_integration/apis/metrics_ui/inventory_threshold_alert.ts +++ b/x-pack/test/api_integration/apis/metrics_ui/inventory_threshold_alert.ts @@ -10,15 +10,15 @@ import { convertToKibanaClient } from '@kbn/test'; import { Comparator, InventoryMetricConditions, -} from '../../../../plugins/infra/server/lib/alerting/inventory_metric_threshold/types'; -import { InfraSource } from '../../../../plugins/infra/server/lib/sources'; -import { FtrProviderContext } from '../../ftr_provider_context'; -import { DATES } from './constants'; -import { evaluateCondition } from '../../../../plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition'; +} from '../../../../plugins/infra/common/alerting/metrics'; import { InventoryItemType, SnapshotMetricType, } from '../../../../plugins/infra/common/inventory_models/types'; +import { evaluateCondition } from '../../../../plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition'; +import { InfraSource } from '../../../../plugins/infra/server/lib/sources'; +import { FtrProviderContext } from '../../ftr_provider_context'; +import { DATES } from './constants'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/api_integration/apis/metrics_ui/metric_threshold_alert.ts b/x-pack/test/api_integration/apis/metrics_ui/metric_threshold_alert.ts index d0fac5a7bd170f..7e00044ef13659 100644 --- a/x-pack/test/api_integration/apis/metrics_ui/metric_threshold_alert.ts +++ b/x-pack/test/api_integration/apis/metrics_ui/metric_threshold_alert.ts @@ -7,18 +7,18 @@ import expect from '@kbn/expect'; import { convertToKibanaClient } from '@kbn/test'; -import { InfraSource } from '../../../../plugins/infra/common/source_configuration/source_configuration'; -import { FtrProviderContext } from '../../ftr_provider_context'; -import { - evaluateRule, - EvaluatedRuleParams, -} from '../../../../plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule'; import { Aggregators, + Comparator, CountMetricExpressionParams, NonCountMetricExpressionParams, -} from '../../../../plugins/infra/server/lib/alerting/metric_threshold/types'; -import { Comparator } from '../../../../plugins/infra/server/lib/alerting/common/types'; +} from '../../../../plugins/infra/common/alerting/metrics'; +import { InfraSource } from '../../../../plugins/infra/common/source_configuration/source_configuration'; +import { + EvaluatedRuleParams, + evaluateRule, +} from '../../../../plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule'; +import { FtrProviderContext } from '../../ftr_provider_context'; import { DATES } from './constants'; const { gauge, rate } = DATES['alert-test-data']; diff --git a/x-pack/test/api_integration/apis/metrics_ui/metrics_alerting.ts b/x-pack/test/api_integration/apis/metrics_ui/metrics_alerting.ts index 02a9f3070fe580..8b77bf7b1c0897 100644 --- a/x-pack/test/api_integration/apis/metrics_ui/metrics_alerting.ts +++ b/x-pack/test/api_integration/apis/metrics_ui/metrics_alerting.ts @@ -7,10 +7,10 @@ import expect from '@kbn/expect'; import moment from 'moment'; +import { MetricExpressionParams } from '../../../../plugins/infra/common/alerting/metrics'; import { getElasticsearchMetricQuery } from '../../../../plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query'; -import { MetricExpressionParams } from '../../../../plugins/infra/server/lib/alerting/metric_threshold/types'; - import { FtrProviderContext } from '../../ftr_provider_context'; + export default function ({ getService }: FtrProviderContext) { const client = getService('es'); const index = 'test-index'; diff --git a/x-pack/test/api_integration/apis/upgrade_assistant/es_deprecations.ts b/x-pack/test/api_integration/apis/upgrade_assistant/es_deprecations.ts index aea003a317963c..b05cf8b901b5b6 100644 --- a/x-pack/test/api_integration/apis/upgrade_assistant/es_deprecations.ts +++ b/x-pack/test/api_integration/apis/upgrade_assistant/es_deprecations.ts @@ -5,36 +5,101 @@ * 2.0. */ +import type { IndicesCreateRequest } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import expect from '@kbn/expect'; + import { FtrProviderContext } from '../../ftr_provider_context'; +import { + API_BASE_PATH, + indexSettingDeprecations, +} from '../../../../plugins/upgrade_assistant/common/constants'; +import { EnrichedDeprecationInfo } from '../../../../plugins/upgrade_assistant/common/types'; + +const translogSettingsIndexDeprecation: IndicesCreateRequest = { + index: 'deprecated_settings', + body: { + settings: { + // @ts-expect-error setting is removed in 8.0 + 'translog.retention.size': '1b', + 'translog.retention.age': '5m', + 'index.soft_deletes.enabled': true, + }, + }, +}; export default function ({ getService }: FtrProviderContext) { const supertestWithoutAuth = getService('supertestWithoutAuth'); + const supertest = getService('supertest'); const security = getService('security'); + const es = getService('es'); + const log = getService('log'); describe('Elasticsearch deprecations', () => { describe('GET /api/upgrade_assistant/es_deprecations', () => { - it('handles auth error', async () => { - const ROLE_NAME = 'authErrorRole'; - const USER_NAME = 'authErrorUser'; - const USER_PASSWORD = 'password'; - - try { - await security.role.create(ROLE_NAME, {}); - await security.user.create(USER_NAME, { - password: USER_PASSWORD, - roles: [ROLE_NAME], - }); - - await supertestWithoutAuth - .get('/api/upgrade_assistant/es_deprecations') - .auth(USER_NAME, USER_PASSWORD) - .set('kbn-xsrf', 'kibana') - .send() - .expect(403); - } finally { - await security.role.delete(ROLE_NAME); - await security.user.delete(USER_NAME); - } + describe('error handling', () => { + it('handles auth error', async () => { + const ROLE_NAME = 'authErrorRole'; + const USER_NAME = 'authErrorUser'; + const USER_PASSWORD = 'password'; + + try { + await security.role.create(ROLE_NAME, {}); + await security.user.create(USER_NAME, { + password: USER_PASSWORD, + roles: [ROLE_NAME], + }); + + await supertestWithoutAuth + .get(`${API_BASE_PATH}/es_deprecations`) + .auth(USER_NAME, USER_PASSWORD) + .set('kbn-xsrf', 'kibana') + .send() + .expect(403); + } finally { + await security.role.delete(ROLE_NAME); + await security.user.delete(USER_NAME); + } + }); + }); + + // Only applicable on 7.x + describe.skip('index setting deprecation', () => { + before(async () => { + try { + // Create index that will trigger deprecation warning + await es.indices.create(translogSettingsIndexDeprecation); + } catch (e) { + log.debug('Error creating test index'); + throw e; + } + }); + + after(async () => { + try { + await es.indices.delete({ + index: [translogSettingsIndexDeprecation.index], + }); + } catch (e) { + log.debug('Error deleting text index'); + throw e; + } + }); + + it('returns the expected deprecation message for deprecated translog index settings', async () => { + const { body: apiRequestResponse } = await supertest + .get(`${API_BASE_PATH}/es_deprecations`) + .set('kbn-xsrf', 'xxx') + .expect(200); + + const indexSettingDeprecation = apiRequestResponse.deprecations.find( + (deprecation: EnrichedDeprecationInfo) => + deprecation.index === translogSettingsIndexDeprecation.index + ); + + expect(indexSettingDeprecation.message).to.equal( + indexSettingDeprecations.translog.deprecationMessage + ); + }); }); }); }); diff --git a/x-pack/test/api_integration/es_archives/lens/constant_keyword/data.json b/x-pack/test/api_integration/es_archives/lens/constant_keyword/data.json new file mode 100644 index 00000000000000..8ef482e7b40c36 --- /dev/null +++ b/x-pack/test/api_integration/es_archives/lens/constant_keyword/data.json @@ -0,0 +1,25 @@ +{ + "type": "doc", + "value": { + "id": "1", + "index": "existence_index_1", + "source": { + "filter_field": "a", + "textfield1": "test", + "ts": "2021-01-02" + } + } +} + +{ + "type": "doc", + "value": { + "id": "1", + "index": "existence_index_2", + "source": { + "filter_field": "b", + "textfield2": "test", + "ts": "2022-01-02" + } + } +} diff --git a/x-pack/test/api_integration/es_archives/lens/constant_keyword/mappings.json b/x-pack/test/api_integration/es_archives/lens/constant_keyword/mappings.json new file mode 100644 index 00000000000000..af5dc3a651e967 --- /dev/null +++ b/x-pack/test/api_integration/es_archives/lens/constant_keyword/mappings.json @@ -0,0 +1,59 @@ +{ + "type": "index", + "value": { + "index": "existence_index_1", + "mappings": { + "properties": { + "filter_field": { + "type": "constant_keyword", + "value": "a" + }, + "textfield1": { + "type": "keyword" + }, + "ts": { + "type": "date" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "0", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "index": "existence_index_2", + "mappings": { + "runtime": { + "mapping_runtime_field": { + "type": "keyword", + "script" : { "source" : "emit('abc')" } + } + }, + "properties": { + "filter_field": { + "type": "constant_keyword", + "value": "b" + }, + "textfield2": { + "type": "keyword" + }, + "ts": { + "type": "date" + } + } + }, + "settings": { + "index": { + "number_of_replicas": "0", + "number_of_shards": "1" + } + } + } +} \ No newline at end of file diff --git a/x-pack/test/api_integration/fixtures/kbn_archiver/lens/constant_keyword.json b/x-pack/test/api_integration/fixtures/kbn_archiver/lens/constant_keyword.json new file mode 100644 index 00000000000000..fb7c105ec462b8 --- /dev/null +++ b/x-pack/test/api_integration/fixtures/kbn_archiver/lens/constant_keyword.json @@ -0,0 +1,16 @@ +{ + "attributes": { + "timeFieldName": "ts", + "title": "existence_index_*", + "runtimeFieldMap":"{\"data_view_runtime_field\":{\"type\":\"keyword\",\"script\":{\"source\":\"emit('a')\"}}}" + }, + "coreMigrationVersion": "8.0.0", + "id": "existence_index", + "migrationVersion": { + "index-pattern": "7.11.0" + }, + "references": [], + "type": "index-pattern", + "updated_at": "2018-12-21T00:43:07.096Z", + "version": "WzEzLDJd" +} diff --git a/x-pack/test/functional/apps/lens/drag_and_drop.ts b/x-pack/test/functional/apps/lens/drag_and_drop.ts index 2858ff1588f7cb..27e336a1cbc127 100644 --- a/x-pack/test/functional/apps/lens/drag_and_drop.ts +++ b/x-pack/test/functional/apps/lens/drag_and_drop.ts @@ -328,8 +328,10 @@ export default function ({ getPageObjects }: FtrProviderContext) { }); it('overwrite existing time dimension if one exists already', async () => { + await PageObjects.lens.searchField('utc'); await PageObjects.lens.dragFieldToWorkspace('utc_time'); await PageObjects.lens.waitForVisualization(); + await PageObjects.lens.searchField('client'); await PageObjects.lens.dragFieldToWorkspace('clientip'); await PageObjects.lens.waitForVisualization(); expect(await PageObjects.lens.getDimensionTriggersTexts('lnsXY_xDimensionPanel')).to.eql([ diff --git a/x-pack/test/functional/apps/lens/epoch_millis.ts b/x-pack/test/functional/apps/lens/epoch_millis.ts index 9ff418c8e5ce85..deaa3e720101ef 100644 --- a/x-pack/test/functional/apps/lens/epoch_millis.ts +++ b/x-pack/test/functional/apps/lens/epoch_millis.ts @@ -30,13 +30,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { it('should show field list', async () => { await PageObjects.visualize.navigateToNewVisualization(); await PageObjects.visualize.clickVisType('lens'); - await PageObjects.lens.switchDataPanelIndexPattern('epoch-millis'); + await PageObjects.lens.switchDataPanelIndexPattern('epoch-millis*'); await PageObjects.lens.goToTimeRange(); await PageObjects.lens.switchToVisualization('lnsDatatable'); const fieldList = await PageObjects.lens.findAllFields(); expect(fieldList).to.contain('@timestamp'); - // not defined for document in time range, only out of time range - expect(fieldList).not.to.contain('agent.raw'); }); it('should able to configure a regular metric', async () => { diff --git a/x-pack/test/functional/apps/ml/anomaly_detection/categorization_job.ts b/x-pack/test/functional/apps/ml/anomaly_detection/categorization_job.ts index 2d2da23213f8f7..7c07acd7e71853 100644 --- a/x-pack/test/functional/apps/ml/anomaly_detection/categorization_job.ts +++ b/x-pack/test/functional/apps/ml/anomaly_detection/categorization_job.ts @@ -21,7 +21,7 @@ export default function ({ getService }: FtrProviderContext) { const detectorTypeIdentifier = 'Rare'; const categorizationFieldIdentifier = 'field1'; const categorizationExampleCount = 5; - const bucketSpan = '15m'; + const bucketSpan = '1d'; const memoryLimit = '15mb'; function getExpectedRow(expectedJobId: string, expectedJobGroups: string[]) { @@ -29,32 +29,32 @@ export default function ({ getService }: FtrProviderContext) { id: expectedJobId, description: jobDescription, jobGroups: [...new Set(expectedJobGroups)].sort(), - recordCount: '1,501', + recordCount: '1,000', memoryStatus: 'ok', jobState: 'closed', datafeedState: 'stopped', - latestTimestamp: '2019-11-21 06:01:13', + latestTimestamp: '2019-11-21 00:01:13', }; } function getExpectedCounts(expectedJobId: string) { return { job_id: expectedJobId, - processed_record_count: '1,501', - processed_field_count: '1,501', - input_bytes: '335.4 KB', - input_field_count: '1,501', + processed_record_count: '1,000', + processed_field_count: '1,000', + input_bytes: '148.8 KB', + input_field_count: '1,000', invalid_date_count: '0', missing_field_count: '0', out_of_order_timestamp_count: '0', - empty_bucket_count: '21,428', + empty_bucket_count: '23', sparse_bucket_count: '0', - bucket_count: '22,059', + bucket_count: '230', earliest_record_timestamp: '2019-04-05 11:25:35', - latest_record_timestamp: '2019-11-21 06:01:13', - input_record_count: '1,501', - latest_bucket_timestamp: '2019-11-21 06:00:00', - latest_empty_bucket_timestamp: '2019-11-21 05:45:00', + latest_record_timestamp: '2019-11-21 00:01:13', + input_record_count: '1,000', + latest_bucket_timestamp: '2019-11-21 00:00:00', + latest_empty_bucket_timestamp: '2019-11-17 00:00:00', }; } @@ -68,7 +68,7 @@ export default function ({ getService }: FtrProviderContext) { total_partition_field_count: '2', bucket_allocation_failures_count: '0', memory_status: 'ok', - timestamp: '2019-11-21 05:45:00', + timestamp: '2019-11-20 00:00:00', }; } @@ -77,8 +77,8 @@ export default function ({ getService }: FtrProviderContext) { describe('categorization', function () { this.tags(['mlqa']); before(async () => { - await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/categorization'); - await ml.testResources.createIndexPatternIfNeeded('ft_categorization', '@timestamp'); + await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/categorization_small'); + await ml.testResources.createIndexPatternIfNeeded('ft_categorization_small', '@timestamp'); await ml.testResources.setKibanaTimeZoneToUTC(); await ml.api.createCalendar(calendarId); @@ -87,7 +87,7 @@ export default function ({ getService }: FtrProviderContext) { after(async () => { await ml.api.cleanMlIndices(); - await ml.testResources.deleteIndexPatternByTitle('ft_categorization'); + await ml.testResources.deleteIndexPatternByTitle('ft_categorization_small'); }); it('job creation loads the categorization wizard for the source data', async () => { @@ -100,7 +100,7 @@ export default function ({ getService }: FtrProviderContext) { await ml.jobManagement.navigateToNewJobSourceSelection(); await ml.testExecution.logTestStep('job creation loads the job type selection page'); - await ml.jobSourceSelection.selectSourceForAnomalyDetectionJob('ft_categorization'); + await ml.jobSourceSelection.selectSourceForAnomalyDetectionJob('ft_categorization_small'); await ml.testExecution.logTestStep('job creation loads the categorization job wizard page'); await ml.jobTypeSelection.selectCategorizationJob(); @@ -113,7 +113,7 @@ export default function ({ getService }: FtrProviderContext) { await ml.testExecution.logTestStep('job creation sets the time range'); await ml.jobWizardCommon.clickUseFullDataButton( 'Apr 5, 2019 @ 11:25:35.770', - 'Nov 21, 2019 @ 06:01:13.914' + 'Nov 21, 2019 @ 00:01:13.923' ); await ml.testExecution.logTestStep('job creation displays the event rate chart'); @@ -235,7 +235,7 @@ export default function ({ getService }: FtrProviderContext) { await ml.testExecution.logTestStep('job cloning sets the time range'); await ml.jobWizardCommon.clickUseFullDataButton( 'Apr 5, 2019 @ 11:25:35.770', - 'Nov 21, 2019 @ 06:01:13.914' + 'Nov 21, 2019 @ 00:01:13.923' ); await ml.testExecution.logTestStep('job cloning displays the event rate chart'); diff --git a/x-pack/test/functional/apps/ml/anomaly_detection/date_nanos_job.ts b/x-pack/test/functional/apps/ml/anomaly_detection/date_nanos_job.ts index efa9e7812e20df..fb60534b87aa03 100644 --- a/x-pack/test/functional/apps/ml/anomaly_detection/date_nanos_job.ts +++ b/x-pack/test/functional/apps/ml/anomaly_detection/date_nanos_job.ts @@ -57,7 +57,7 @@ export default function ({ getService }: FtrProviderContext) { jobSource: 'ft_event_rate_gen_trend_nanos', jobId: `event_rate_nanos_count_1_${Date.now()}`, jobDescription: - 'Create advanced job based on the event rate dataset with a date_nanos time field, 30m bucketspan and count', + 'Create advanced job based on the event rate dataset with a date_nanos time field, 1d bucketspan and count', jobGroups: ['automated', 'event-rate', 'date-nanos'], pickFieldsConfig: { detectors: [ @@ -69,7 +69,7 @@ export default function ({ getService }: FtrProviderContext) { ], summaryCountField: 'count', influencers: [], - bucketSpan: '30m', + bucketSpan: '1d', memoryLimit: '10mb', } as PickFieldsConfig, datafeedConfig: {} as DatafeedConfig, @@ -94,7 +94,7 @@ export default function ({ getService }: FtrProviderContext) { out_of_order_timestamp_count: '0', empty_bucket_count: '0', sparse_bucket_count: '0', - bucket_count: '17,520', + bucket_count: '365', earliest_record_timestamp: '2015-01-01 00:10:00', latest_record_timestamp: '2016-01-01 00:00:00', input_record_count: '105,120', @@ -108,7 +108,7 @@ export default function ({ getService }: FtrProviderContext) { total_partition_field_count: '2', bucket_allocation_failures_count: '0', memory_status: 'ok', - timestamp: '2015-12-31 23:30:00', + timestamp: '2015-12-31 00:00:00', }, }, }, diff --git a/x-pack/test/functional/apps/ml/index.ts b/x-pack/test/functional/apps/ml/index.ts index 7ac4d46b4dfbde..eeae200f35ba77 100644 --- a/x-pack/test/functional/apps/ml/index.ts +++ b/x-pack/test/functional/apps/ml/index.ts @@ -26,7 +26,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) { await esArchiver.unload('x-pack/test/functional/es_archives/ml/farequote'); await esArchiver.unload('x-pack/test/functional/es_archives/ml/ecommerce'); - await esArchiver.unload('x-pack/test/functional/es_archives/ml/categorization'); + await esArchiver.unload('x-pack/test/functional/es_archives/ml/categorization_small'); await esArchiver.unload('x-pack/test/functional/es_archives/ml/event_rate_nanos'); await esArchiver.unload('x-pack/test/functional/es_archives/ml/bm_classification'); await esArchiver.unload('x-pack/test/functional/es_archives/ml/ihp_outlier'); diff --git a/x-pack/test/functional/apps/transform/creation_index_pattern.ts b/x-pack/test/functional/apps/transform/creation_index_pattern.ts index 21aa191b8480d7..d93087e630ac46 100644 --- a/x-pack/test/functional/apps/transform/creation_index_pattern.ts +++ b/x-pack/test/functional/apps/transform/creation_index_pattern.ts @@ -337,6 +337,64 @@ export default function ({ getService }: FtrProviderContext) { discoverQueryHits: '10', }, } as PivotTransformTestData, + { + type: 'pivot', + suiteTitle: 'batch transform with terms group and terms agg', + source: 'ft_ecommerce', + groupByEntries: [ + { + identifier: 'terms(customer_gender)', + label: 'customer_gender', + } as GroupByEntry, + ], + aggregationEntries: [ + { + identifier: 'terms(geoip.city_name)', + label: 'geoip.city_name.terms', + }, + ], + transformId: `ec_3_${Date.now()}`, + transformDescription: + 'ecommerce batch transform with group by terms(customer_gender) and aggregation terms(geoip.city_name)', + get destinationIndex(): string { + return `user-${this.transformId}`; + }, + discoverAdjustSuperDatePicker: false, + expected: { + pivotAdvancedEditorValueArr: ['{', ' "group_by": {', ' "customer_gender": {'], + pivotAdvancedEditorValue: { + group_by: { + customer_gender: { + terms: { + field: 'customer_gender', + }, + }, + }, + aggregations: { + 'geoip.city_name': { + terms: { + field: 'geoip.city_name', + size: 3, + }, + }, + }, + }, + transformPreview: { + column: 0, + values: ['FEMALE', 'MALE'], + }, + row: { + status: TRANSFORM_STATE.STOPPED, + mode: 'batch', + progress: '100', + }, + indexPreview: { + columns: 10, + rows: 5, + }, + discoverQueryHits: '2', + }, + } as PivotTransformTestData, { type: 'latest', suiteTitle: 'batch transform with the latest function', @@ -351,7 +409,7 @@ export default function ({ getService }: FtrProviderContext) { identifier: 'order_date', label: 'order_date', }, - transformId: `ec_3_${Date.now()}`, + transformId: `ec_4_${Date.now()}`, transformDescription: 'ecommerce batch transform with the latest function config, sort by order_data, country code as unique key', diff --git a/x-pack/test/functional/es_archives/lens/epoch_millis/data.json b/x-pack/test/functional/es_archives/lens/epoch_millis/data.json index db9d5ccc379d70..a15bc25f568023 100644 --- a/x-pack/test/functional/es_archives/lens/epoch_millis/data.json +++ b/x-pack/test/functional/es_archives/lens/epoch_millis/data.json @@ -2,7 +2,7 @@ "type": "doc", "value": { "id": "AU_x4-TaGFA8no6QjiSJ", - "index": "epoch-millis", + "index": "epoch-millis1", "source": { "@message": "212.113.62.183 - - [2015-09-21T06:09:20.045Z] \"GET /uploads/dafydd-williams.jpg HTTP/1.1\" 200 3182 \"-\" \"Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110421 Firefox/6.0a1\"", "@tags": [ @@ -75,7 +75,7 @@ "type": "doc", "value": { "id": "AU_x4-TaGFA8no6QjiSL", - "index": "epoch-millis", + "index": "epoch-millis2", "source": { "@message": "156.252.112.76 - - [2015-09-21T21:13:02.070Z] \"GET /uploads/aleksandr-samokutyayev.jpg HTTP/1.1\" 200 6176 \"-\" \"Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.50 Safari/534.24\"", "@tags": [ diff --git a/x-pack/test/functional/es_archives/lens/epoch_millis/mappings.json b/x-pack/test/functional/es_archives/lens/epoch_millis/mappings.json index ee1c8dce8219d7..ae803d98870d72 100644 --- a/x-pack/test/functional/es_archives/lens/epoch_millis/mappings.json +++ b/x-pack/test/functional/es_archives/lens/epoch_millis/mappings.json @@ -1,7 +1,382 @@ { "type": "index", "value": { - "index": "epoch-millis", + "index": "epoch-millis1", + "mappings": { + "dynamic_templates": [ + { + "string_fields": { + "mapping": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "match": "*", + "match_mapping_type": "string" + } + } + ], + "runtime": { + "runtime_number": { + "type": "long", + "script" : { "source" : "emit(doc['bytes'].value)" } + } + }, + "properties": { + "@message": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "@tags": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "@timestamp": { + "type": "date", + "format": "epoch_millis" + }, + "agent": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "bytes": { + "type": "long" + }, + "clientip": { + "type": "ip" + }, + "extension": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "geo": { + "properties": { + "coordinates": { + "type": "geo_point" + }, + "dest": { + "type": "keyword" + }, + "src": { + "type": "keyword" + }, + "srcdest": { + "type": "keyword" + } + } + }, + "headings": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "host": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "id": { + "type": "integer" + }, + "index": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "ip": { + "type": "ip" + }, + "links": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "machine": { + "properties": { + "os": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "ram": { + "type": "long" + }, + "ram_range": { + "type": "long_range" + } + } + }, + "memory": { + "type": "double" + }, + "meta": { + "properties": { + "char": { + "type": "keyword" + }, + "related": { + "type": "text" + }, + "user": { + "properties": { + "firstname": { + "type": "text" + }, + "lastname": { + "type": "integer" + } + } + } + } + }, + "phpmemory": { + "type": "long" + }, + "referer": { + "type": "keyword" + }, + "relatedContent": { + "properties": { + "article:modified_time": { + "type": "date" + }, + "article:published_time": { + "type": "date" + }, + "article:section": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "article:tag": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "og:description": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "og:image": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "og:image:height": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "og:image:width": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "og:site_name": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "og:title": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "og:type": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "og:url": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "twitter:card": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "twitter:description": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "twitter:image": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "twitter:site": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "twitter:title": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "url": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + } + } + }, + "request": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "response": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "spaces": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "type": { + "type": "keyword" + }, + "url": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + }, + "utc_time": { + "type": "date" + }, + "xss": { + "fields": { + "raw": { + "type": "keyword" + } + }, + "type": "text" + } + } + }, + "settings": { + "index": { + "analysis": { + "analyzer": { + "url": { + "max_token_length": "1000", + "tokenizer": "uax_url_email", + "type": "standard" + } + } + }, + "number_of_replicas": "0", + "number_of_shards": "1" + } + } + } +} + +{ + "type": "index", + "value": { + "index": "epoch-millis2", "mappings": { "dynamic_templates": [ { diff --git a/x-pack/test/functional/fixtures/kbn_archiver/lens/epoch_millis.json b/x-pack/test/functional/fixtures/kbn_archiver/lens/epoch_millis.json index fc7deabc0ead1f..bd4a9ed17cc6ea 100644 --- a/x-pack/test/functional/fixtures/kbn_archiver/lens/epoch_millis.json +++ b/x-pack/test/functional/fixtures/kbn_archiver/lens/epoch_millis.json @@ -1,7 +1,7 @@ { "attributes": { "timeFieldName": "@timestamp", - "title": "epoch-millis" + "title": "epoch-millis*" }, "coreMigrationVersion": "8.0.0", "id": "epoch-millis", diff --git a/x-pack/test/lists_api_integration/security_and_spaces/tests/summary_exception_lists.ts b/x-pack/test/lists_api_integration/security_and_spaces/tests/summary_exception_lists.ts index 34d959a6f7103b..891a56dfe8a30d 100644 --- a/x-pack/test/lists_api_integration/security_and_spaces/tests/summary_exception_lists.ts +++ b/x-pack/test/lists_api_integration/security_and_spaces/tests/summary_exception_lists.ts @@ -93,6 +93,40 @@ export default ({ getService }: FtrProviderContext) => { }; expect(body).to.eql(expected); }); + + it('should not sum up the items by OS for summary total', async () => { + await supertest + .post(EXCEPTION_LIST_URL) + .set('kbn-xsrf', 'true') + .send(getCreateExceptionListMinimalSchemaMock()) + .expect(200); + + const item = getCreateExceptionListItemMinimalSchemaMock(); + + await supertest + .post(EXCEPTION_LIST_ITEM_URL) + .set('kbn-xsrf', 'true') + .send({ + ...item, + os_types: ['windows', 'linux', 'macos'], + item_id: `${item.item_id}-some_item_id`, + }) + .expect(200); + + const { body }: SummaryResponseType = await supertest + .get(`${EXCEPTION_LIST_URL}/summary?list_id=${LIST_ID}`) + .set('kbn-xsrf', 'true') + .send() + .expect(200); + + const expected: ExceptionListSummarySchema = { + linux: 1, + macos: 1, + total: 1, + windows: 1, + }; + expect(body).to.eql(expected); + }); }); }); }; diff --git a/x-pack/test/rule_registry/spaces_only/tests/trial/__snapshots__/create_rule.snap b/x-pack/test/rule_registry/spaces_only/tests/trial/__snapshots__/create_rule.snap index 7e74063480e90d..a080cbf7247a68 100644 --- a/x-pack/test/rule_registry/spaces_only/tests/trial/__snapshots__/create_rule.snap +++ b/x-pack/test/rule_registry/spaces_only/tests/trial/__snapshots__/create_rule.snap @@ -21,7 +21,7 @@ Object { "apm.transaction_error_rate_opbeans-go_request_ENVIRONMENT_NOT_DEFINED", ], "kibana.alert.reason": Array [ - "Failed transactions rate is greater than 30% (current value is 50%) for opbeans-go", + "Failed transactions is 50% in the last 5 mins for opbeans-go. Alert when > 30%.", ], "kibana.alert.rule.category": Array [ "Failed transaction rate threshold", @@ -85,7 +85,7 @@ Object { "apm.transaction_error_rate_opbeans-go_request_ENVIRONMENT_NOT_DEFINED", ], "kibana.alert.reason": Array [ - "Failed transactions rate is greater than 30% (current value is 50%) for opbeans-go", + "Failed transactions is 50% in the last 5 mins for opbeans-go. Alert when > 30%.", ], "kibana.alert.rule.category": Array [ "Failed transaction rate threshold", diff --git a/x-pack/test/upgrade_assistant_integration/upgrade_assistant/reindexing.js b/x-pack/test/upgrade_assistant_integration/upgrade_assistant/reindexing.js index 6a326840bc5510..635cb8e288ae12 100644 --- a/x-pack/test/upgrade_assistant_integration/upgrade_assistant/reindexing.js +++ b/x-pack/test/upgrade_assistant_integration/upgrade_assistant/reindexing.js @@ -83,6 +83,32 @@ export default function ({ getService }) { }); }); + it('can resume after reindexing was stopped right after creating the new index', async () => { + await esArchiver.load('x-pack/test/functional/es_archives/upgrade_assistant/reindex'); + + // This new index is the new soon to be created reindexed index. We create it + // upfront to simulate a situation in which the user restarted kibana half + // way through the reindex process and ended up with an extra index. + await es.indices.create({ index: 'reindexed-v7-dummydata' }); + + const { body } = await supertest + .post(`/api/upgrade_assistant/reindex/dummydata`) + .set('kbn-xsrf', 'xxx') + .expect(200); + + expect(body.indexName).to.equal('dummydata'); + expect(body.status).to.equal(ReindexStatus.inProgress); + + const lastState = await waitForReindexToComplete('dummydata'); + expect(lastState.errorMessage).to.equal(null); + expect(lastState.status).to.equal(ReindexStatus.completed); + + // Cleanup newly created index + await es.indices.delete({ + index: lastState.newIndexName, + }); + }); + it('should update any aliases', async () => { await esArchiver.load('x-pack/test/functional/es_archives/upgrade_assistant/reindex'); diff --git a/yarn.lock b/yarn.lock index b1def198f80429..c92b32c7d0451e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1431,10 +1431,10 @@ dependencies: object-hash "^1.3.0" -"@elastic/charts@40.2.0": - version "40.2.0" - resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-40.2.0.tgz#2e329ce4f495731f478cbaf2f8f3b89b5167a65b" - integrity sha512-N0t7YK58Kce/s9LEgaocrD75NYuFMwrcI1QNIPcwZ9IAOHY8/9yRHD5Ipoz0caGibAgOE8OunGkpyPY/NHKB5Q== +"@elastic/charts@43.1.1": + version "43.1.1" + resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-43.1.1.tgz#2a9cd4bbde9397b86a45d8aa604a1950ae0997c0" + integrity sha512-lYTdwpARIDXD15iC4cujKplBhGXb3zriBATp0wFsqgT9XE9TMOzlQ9dgylWQ+2x6OlataZLrOMnWXiFQ3uJqqQ== dependencies: "@popperjs/core" "^2.4.0" chroma-js "^2.1.0" @@ -4888,10 +4888,10 @@ dependencies: defer-to-connect "^2.0.0" -"@testim/chrome-version@^1.0.7": - version "1.0.7" - resolved "https://registry.yarnpkg.com/@testim/chrome-version/-/chrome-version-1.0.7.tgz#0cd915785ec4190f08a3a6acc9b61fc38fb5f1a9" - integrity sha512-8UT/J+xqCYfn3fKtOznAibsHpiuDshCb0fwgWxRazTT19Igp9ovoXMPhXyLD6m3CKQGTMHgqoxaFfMWaL40Rnw== +"@testim/chrome-version@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@testim/chrome-version/-/chrome-version-1.1.2.tgz#092005c5b77bd3bb6576a4677110a11485e11864" + integrity sha512-1c4ZOETSRpI0iBfIFUqU4KqwBAB2lHUAlBjZz/YqOHqwM9dTTzjV6Km0ZkiEiSCx/tLr1BtESIKyWWMww+RUqw== "@testing-library/dom@^7.28.1", "@testing-library/dom@^7.30.3": version "7.30.3" @@ -8252,13 +8252,6 @@ axios@^0.21.1: dependencies: follow-redirects "^1.10.0" -axios@^0.21.2: - version "0.21.4" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575" - integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg== - dependencies: - follow-redirects "^1.14.0" - axios@^0.24.0: version "0.24.0" resolved "https://registry.yarnpkg.com/axios/-/axios-0.24.0.tgz#804e6fa1e4b9c5288501dd9dff56a7a0940d20d6" @@ -9724,13 +9717,13 @@ chrome-trace-event@^1.0.2: dependencies: tslib "^1.9.0" -chromedriver@^97.0.0: - version "97.0.0" - resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-97.0.0.tgz#7005b1a15a6456558d0fc4d5b72c98c12d1b033d" - integrity sha512-SZ9MW+/6/Ypz20CNdRKocsmRM2AJ/YwHaWpA1Np2QVPFUbhjhus6vBtqFD+l8M5qrktLWPQSjTwIsDckNfXIRg== +chromedriver@^97.0.2: + version "97.0.2" + resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-97.0.2.tgz#b6c26f6667ad40dc8cf08818878cc064787116fc" + integrity sha512-sOAfKCR3WsHvmKedZoWa+3tBVGdPtxq4zKxgKZCoJ2c924olBTW4Bnha6SHl93Yo7+QqsNn6ZpAC0ojhutacAg== dependencies: - "@testim/chrome-version" "^1.0.7" - axios "^0.21.2" + "@testim/chrome-version" "^1.1.2" + axios "^0.24.0" del "^6.0.0" extract-zip "^2.0.1" https-proxy-agent "^5.0.0" @@ -14320,11 +14313,6 @@ follow-redirects@^1.0.0, follow-redirects@^1.10.0: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.0.tgz#b42e8d93a2a7eea5ed88633676d6597bc8e384db" integrity sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA== -follow-redirects@^1.14.0: - version "1.14.3" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.3.tgz#6ada78118d8d24caee595595accdc0ac6abd022e" - integrity sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw== - follow-redirects@^1.14.4: version "1.14.6" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.6.tgz#8cfb281bbc035b3c067d6cd975b0f6ade6e855cd"