From 9575ebbcafbb059f476622c2129e7fe93f5c88c4 Mon Sep 17 00:00:00 2001 From: Faisal Kanout Date: Thu, 27 Jan 2022 14:09:40 +0300 Subject: [PATCH 01/45] 121273 [RAC][APM] review readability alert reason msg (#123018) * Update Error count reason msg * Update anomaly reason message * Add interval and update reason msg for Trasn Error and Latency * Add threshold to Latency duration anomaly * Update errorCount reason msg * Update interval format * Update the test msgs * Remove unused import * Update i18n msgs * Add missing points in the text * Update test msg * Code review fixes * Remove > sign from serverity alert * Remove the threashold value from the reason message for Anomaly alert * Remove moment and use O11Y shared duration format function * Remove empty spaces Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- x-pack/plugins/apm/common/alert_types.ts | 55 +++++++++++++++++-- .../alerting/register_apm_alerts.ts | 41 +++----------- .../alerts/register_error_count_alert_type.ts | 2 + ...egister_transaction_duration_alert_type.ts | 3 + ...transaction_duration_anomaly_alert_type.ts | 2 + ...ister_transaction_error_rate_alert_type.ts | 2 + .../translations/translations/ja-JP.json | 4 -- .../translations/translations/zh-CN.json | 4 -- .../trial/__snapshots__/create_rule.snap | 4 +- 9 files changed, 68 insertions(+), 49 deletions(-) diff --git a/x-pack/plugins/apm/common/alert_types.ts b/x-pack/plugins/apm/common/alert_types.ts index 68ca22c41ec92..04288fccf0a05 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 db50a68aa0018..3be124573728b 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/server/routes/alerts/register_error_count_alert_type.ts b/x-pack/plugins/apm/server/routes/alerts/register_error_count_alert_type.ts index 9e0c58b70b6ea..b75f687d0dcaf 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 eee0a3888e1b7..0c5546f3549f5 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 00261e2efffd5..d95432458d068 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 2855ac60e571c..c48baf0457335 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/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index eab63af4637ed..33d693d3598b2 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -6382,16 +6382,12 @@ "xpack.apm.alerts.anomalySeverity.warningLabel": "警告", "xpack.apm.alertTypes.errorCount.defaultActionMessage": "次の条件のため、\\{\\{alertName\\}\\}アラートが実行されています。\n\n- サービス名:\\{\\{context.serviceName\\}\\}\n- 環境:\\{\\{context.environment\\}\\}\n- しきい値\\{\\{context.threshold\\}\\}エラー\n- トリガーされた値:過去\\{\\{context.interval\\}\\}に\\{\\{context.triggerValue\\}\\}件のエラー", "xpack.apm.alertTypes.errorCount.description": "サービスのエラー数が定義されたしきい値を超過したときにアラートを発行します。", - "xpack.apm.alertTypes.errorCount.reason": "エラー数が{serviceName}の{threshold}を超えています(現在の値は{measured})", "xpack.apm.alertTypes.transactionDuration.defaultActionMessage": "次の条件のため、\\{\\{alertName\\}\\}アラートが実行されています。\n\n- サービス名:\\{\\{context.serviceName\\}\\}\n- タイプ:\\{\\{context.transactionType\\}\\}\n- 環境:\\{\\{context.environment\\}\\}\n- レイテンシしきい値:\\{\\{context.threshold\\}\\}ミリ秒\n- 観察されたレイテンシ:直前の\\{\\{context.interval\\}\\}に\\{\\{context.triggerValue\\}\\}", "xpack.apm.alertTypes.transactionDuration.description": "サービスの特定のトランザクションタイプのレイテンシが定義されたしきい値を超えたときにアラートを発行します。", - "xpack.apm.alertTypes.transactionDuration.reason": "レイテンシが{serviceName}の{threshold}を超えています(現在の値は{measured})", "xpack.apm.alertTypes.transactionDurationAnomaly.defaultActionMessage": "次の条件のため、\\{\\{alertName\\}\\}アラートが実行されています。\n\n- サービス名:\\{\\{context.serviceName\\}\\}\n- タイプ:\\{\\{context.transactionType\\}\\}\n- 環境:\\{\\{context.environment\\}\\}\n- 重要度しきい値:\\{\\{context.threshold\\}\\}%\n- 重要度値:\\{\\{context.triggerValue\\}\\}\n", "xpack.apm.alertTypes.transactionDurationAnomaly.description": "サービスのレイテンシが異常であるときにアラートを表示します。", - "xpack.apm.alertTypes.transactionDurationAnomaly.reason": "{serviceName}の{severityLevel}異常が検知されました(スコアは{measured})", "xpack.apm.alertTypes.transactionErrorRate.defaultActionMessage": "次の条件のため、\\{\\{alertName\\}\\}アラートが実行されています。\n\n- サービス名:\\{\\{context.serviceName\\}\\}\n- タイプ:\\{\\{context.transactionType\\}\\}\n- 環境:\\{\\{context.environment\\}\\}\n- しきい値:\\{\\{context.threshold\\}\\}%\n- トリガーされた値:過去\\{\\{context.interval\\}\\}にエラーの\\{\\{context.triggerValue\\}\\}%", "xpack.apm.alertTypes.transactionErrorRate.description": "サービスのトランザクションエラー率が定義されたしきい値を超過したときにアラートを発行します。", - "xpack.apm.alertTypes.transactionErrorRate.reason": "トランザクションエラー率が{serviceName}の{threshold}を超えています(現在の値は{measured})", "xpack.apm.analyzeDataButton.label": "データの探索", "xpack.apm.analyzeDataButton.tooltip": "データの探索では、任意のディメンションの結果データを選択してフィルタリングし、パフォーマンスの問題の原因または影響を調査することができます。", "xpack.apm.analyzeDataButtonLabel": "データの探索", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index e5b29b15c25f7..416a2187fac95 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -6434,16 +6434,12 @@ "xpack.apm.alerts.anomalySeverity.warningLabel": "警告", "xpack.apm.alertTypes.errorCount.defaultActionMessage": "由于以下条件 \\{\\{alertName\\}\\} 告警触发:\n\n- 服务名称:\\{\\{context.serviceName\\}\\}\n- 环境:\\{\\{context.environment\\}\\}\n- 阈值:\\{\\{context.threshold\\}\\} 个错误\n- 已触发的值:在过去 \\{\\{context.interval\\}\\}有 \\{\\{context.triggerValue\\}\\} 个错误", "xpack.apm.alertTypes.errorCount.description": "当服务中的错误数量超过定义的阈值时告警。", - "xpack.apm.alertTypes.errorCount.reason": "{serviceName} 的错误计数大于 {threshold}(当前值为 {measured})", "xpack.apm.alertTypes.transactionDuration.defaultActionMessage": "由于以下条件 \\{\\{alertName\\}\\} 告警触发:\n\n- 服务名称:\\{\\{context.serviceName\\}\\}\n- 类型:\\{\\{context.transactionType\\}\\}\n- 环境:\\{\\{context.environment\\}\\}\n- 延迟阈值:\\{\\{context.threshold\\}\\}ms\n- 观察的延迟:在过去 \\{\\{context.interval\\}\\}为 \\{\\{context.triggerValue\\}\\}", "xpack.apm.alertTypes.transactionDuration.description": "当服务中特定事务类型的延迟超过定义的阈值时告警。", - "xpack.apm.alertTypes.transactionDuration.reason": "{serviceName} 的延迟高于 {threshold}(当前值为 {measured})", "xpack.apm.alertTypes.transactionDurationAnomaly.defaultActionMessage": "由于以下条件 \\{\\{alertName\\}\\} 告警触发:\n\n- 服务名称:\\{\\{context.serviceName\\}\\}\n- 类型:\\{\\{context.transactionType\\}\\}\n- 环境:\\{\\{context.environment\\}\\}\n- 严重性阈值:\\{\\{context.threshold\\}\\}\n- 严重性值:\\{\\{context.triggerValue\\}\\}\n", "xpack.apm.alertTypes.transactionDurationAnomaly.description": "服务的延迟异常时告警。", - "xpack.apm.alertTypes.transactionDurationAnomaly.reason": "{serviceName} 检查到 {severityLevel} 异常(分数为 {measured})", "xpack.apm.alertTypes.transactionErrorRate.defaultActionMessage": "由于以下条件 \\{\\{alertName\\}\\} 告警触发:\n\n- 服务名称:\\{\\{context.serviceName\\}\\}\n- 类型:\\{\\{context.transactionType\\}\\}\n- 环境:\\{\\{context.environment\\}\\}\n- 阈值:\\{\\{context.threshold\\}\\}%\n- 已触发的值:在过去 \\{\\{context.interval\\}\\}有 \\{\\{context.triggerValue\\}\\}% 的错误", "xpack.apm.alertTypes.transactionErrorRate.description": "当服务中的事务错误率超过定义的阈值时告警。", - "xpack.apm.alertTypes.transactionErrorRate.reason": "{serviceName} 的失败事务率大于 {threshold}(当前值为 {measured})", "xpack.apm.analyzeDataButton.label": "浏览数据", "xpack.apm.analyzeDataButton.tooltip": "“浏览数据”允许您选择和筛选任意维度中的结果数据以及查找性能问题的原因或影响", "xpack.apm.analyzeDataButtonLabel": "浏览数据", 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 7e74063480e90..a080cbf7247a6 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", From 71e9c609fc1fa32552b7b41c059d3fe8c7d83e90 Mon Sep 17 00:00:00 2001 From: Nick Partridge Date: Thu, 27 Jan 2022 05:15:33 -0600 Subject: [PATCH 02/45] Upgrade elastic charts v43.1.1 (#121593) --- package.json | 2 +- .../gauge_component.test.tsx.snap | 4 +- .../public/components/heatmap_component.tsx | 121 +- .../public/components/pie_vis_component.tsx | 14 +- .../expression_pie/public/utils/get_config.ts | 81 -- .../expression_pie/public/utils/get_layers.ts | 10 +- ...ig.test.ts => get_partition_theme.test.ts} | 16 +- .../public/utils/get_partition_theme.ts | 85 ++ .../expression_pie/public/utils/index.ts | 2 +- .../public/services/theme/theme.test.tsx | 2 +- .../charts/public/services/theme/theme.ts | 5 +- .../static/utils/transform_click_event.ts | 17 +- .../public/components/series/area.tsx | 51 +- .../__snapshots__/area_decorator.test.js.snap | 2 +- .../__snapshots__/bar_decorator.test.js.snap | 2 +- .../xy/public/components/xy_settings.tsx | 4 +- .../page_objects/visualize_chart_page.ts | 2 +- .../charts/page_load_dist_chart.tsx | 2 + .../charts/visitor_breakdown_chart.tsx | 16 +- .../breakdown_series.tsx | 2 + .../service_profiling_flamegraph.tsx | 30 +- .../service_profiling_timeline.tsx | 1 + .../shared/charts/breakdown_chart/index.tsx | 7 +- .../shared/charts/spark_plot/index.tsx | 8 +- .../shared/charts/timeseries_chart.tsx | 14 +- .../transaction_distribution_chart/index.tsx | 39 +- .../get_time_range_comparison.ts | 3 +- .../metric_distribution_chart.tsx | 4 +- .../render_function.test.tsx | 11 +- .../pie_visualization/render_function.tsx | 81 +- .../__snapshots__/expression.test.tsx.snap | 70 +- .../public/xy_visualization/expression.tsx | 8 +- .../feature_importance_summary.tsx | 23 +- .../explorer/swimlane_container.tsx | 103 +- .../public/hooks/use_chart_theme.tsx | 42 +- .../common/components/charts/common.tsx | 4 +- .../__snapshots__/donut_chart.test.tsx.snap | 1078 ++++++++++------- .../components/common/charts/donut_chart.tsx | 33 +- yarn.lock | 8 +- 39 files changed, 1102 insertions(+), 905 deletions(-) delete mode 100644 src/plugins/chart_expressions/expression_pie/public/utils/get_config.ts rename src/plugins/chart_expressions/expression_pie/public/utils/{get_config.test.ts => get_partition_theme.test.ts} (80%) create mode 100644 src/plugins/chart_expressions/expression_pie/public/utils/get_partition_theme.ts diff --git a/package.json b/package.json index 69bf4f62918aa..f17b4017058d8 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", 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 b588c1d341a75..bd39344807643 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 02e1617b3b294..dff56c34e6c1a 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 0da439884ae68..0000000000000 --- 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 05512eab72fe0..9268f5631e735 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 5eaa1bb9b2848..1cccdf8a5e47b 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 0000000000000..4daaf835fa782 --- /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 3ee51003ca1e9..e1b779c511bfc 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 079acbb5fefbc..5154c1ce5ad63 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 1aad4f0ab6328..4397084d890ae 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 d175046b20ebb..ae255455b39b1 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/vis_types/timelion/public/components/series/area.tsx b/src/plugins/vis_types/timelion/public/components/series/area.tsx index d149d675d63d7..50c52f69de5bb 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/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 fceb9c3fdb819..7ded8e2254aa9 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`] = ` - & { - onPointerUpdate: SettingsSpecProps['onPointerUpdate']; + onPointerUpdate: SettingsProps['onPointerUpdate']; xDomain?: DomainRange; adjustedXDomain?: DomainRange; showLegend: boolean; diff --git a/test/functional/page_objects/visualize_chart_page.ts b/test/functional/page_objects/visualize_chart_page.ts index dc36197034691..a3fbd631722f5 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/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 8b34ad8980774..ff9fb97197db0 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 89f49a9669b45..2cdeb7be85ce3 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 db5932a96fb12..5e98f36cc0798 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 6f8c1d685ba2b..e0c2483b70f88 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 d5dc2f5d56afc..a625d87f05d9c 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 78bfd8911c351..a6989897641bd 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 2f38ab9cdeb4b..0843fafe0f92f 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 1cb8a4facfd69..64c070c25f94b 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 b33f152a63016..91d3c0a727877 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({ = ({ 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/lens/public/pie_visualization/render_function.test.tsx b/x-pack/plugins/lens/public/pie_visualization/render_function.test.tsx index ef160b1dd682b..8cd8e4f50d625 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 9fb016dc0a2d7..008ab9a9cae9e 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 e2566aa22ce9e..1402cd715283a 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/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 8d5d4c5e4ca23..7d80b91f94c77 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 02fc0ef32dde9..42ff021679ce0 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/security_solution/public/common/components/charts/common.tsx b/x-pack/plugins/security_solution/public/common/components/charts/common.tsx index ee292a66702e5..d7bafffec9a8f 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/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 5f463751fae24..c90283a8386f4 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 007ec8f737852..3638b52e39783 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/yarn.lock b/yarn.lock index 50a4bdea73c76..c92b32c7d0451 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" From 95e6dd695e09d4853a2cae4ffcce233bbddaf2e4 Mon Sep 17 00:00:00 2001 From: Robert Oskamp Date: Thu, 27 Jan 2022 13:20:56 +0100 Subject: [PATCH 03/45] [ML] Add codeowner for docs screenshots (#123901) This PR adds elastic/ml-ui as code owner for the ML specific bits of the screenshot_creation directory. --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f218cffe032b8..dee16cf2fa94c 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 From e0bbd3c4e4929dfe5e0c989309fa808ae78e62b4 Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Thu, 27 Jan 2022 13:32:00 +0100 Subject: [PATCH 04/45] [Lens] Filtered field list using field caps API (#122915) --- x-pack/plugins/lens/kibana.json | 1 + x-pack/plugins/lens/server/plugin.tsx | 4 + .../server/routes/existing_fields.test.ts | 46 ++- .../lens/server/routes/existing_fields.ts | 143 +++++-- x-pack/plugins/lens/server/ui_settings.ts | 31 ++ .../apis/lens/existing_fields.ts | 268 ++++--------- .../test/api_integration/apis/lens/index.ts | 1 + .../apis/lens/legacy_existing_fields.ts | 269 +++++++++++++ .../lens/constant_keyword/data.json | 25 ++ .../lens/constant_keyword/mappings.json | 59 +++ .../kbn_archiver/lens/constant_keyword.json | 16 + .../functional/apps/lens/drag_and_drop.ts | 2 + .../test/functional/apps/lens/epoch_millis.ts | 4 +- .../es_archives/lens/epoch_millis/data.json | 4 +- .../lens/epoch_millis/mappings.json | 377 +++++++++++++++++- .../kbn_archiver/lens/epoch_millis.json | 2 +- 16 files changed, 1012 insertions(+), 240 deletions(-) create mode 100644 x-pack/plugins/lens/server/ui_settings.ts create mode 100644 x-pack/test/api_integration/apis/lens/legacy_existing_fields.ts create mode 100644 x-pack/test/api_integration/es_archives/lens/constant_keyword/data.json create mode 100644 x-pack/test/api_integration/es_archives/lens/constant_keyword/mappings.json create mode 100644 x-pack/test/api_integration/fixtures/kbn_archiver/lens/constant_keyword.json diff --git a/x-pack/plugins/lens/kibana.json b/x-pack/plugins/lens/kibana.json index 884b17a085ad6..1debe6e6141b2 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/server/plugin.tsx b/x-pack/plugins/lens/server/plugin.tsx index 3f0a41efc21c7..5f8f15b21ff94 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 3a57a77a97726..0ee1d92d1b4ec 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 0000000000000..63f16f3aeebb7 --- /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/test/api_integration/apis/lens/existing_fields.ts b/x-pack/test/api_integration/apis/lens/existing_fields.ts index 952659c2960d4..e51980e47fd06 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 5b51f2dbd94e3..04508f011158a 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 0000000000000..370807c99d806 --- /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/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 0000000000000..8ef482e7b40c3 --- /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 0000000000000..af5dc3a651e96 --- /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 0000000000000..fb7c105ec462b --- /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 2858ff1588f7c..27e336a1cbc12 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 9ff418c8e5ce8..deaa3e720101e 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/es_archives/lens/epoch_millis/data.json b/x-pack/test/functional/es_archives/lens/epoch_millis/data.json index db9d5ccc379d7..a15bc25f56802 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 ee1c8dce8219d..ae803d98870d7 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 fc7deabc0ead1..bd4a9ed17cc6e 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", From b1e3bdfa3dd261dc9c7853087cd1793b5c66f88f Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Thu, 27 Jan 2022 13:44:37 +0100 Subject: [PATCH 05/45] [Discover] Fix document explorer cell popover rendering (#123194) --- .../get_render_cell_value.test.tsx | 86 ++++++-- .../discover_grid/get_render_cell_value.tsx | 205 ++++++++++-------- 2 files changed, 181 insertions(+), 110 deletions(-) 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 4479e051b1f26..07ed170258fb1 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 436281b119bff..5e1a1a7e39db8 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]; +} From f2447cfd7b444cbe60aa86f35731289e945d8176 Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Thu, 27 Jan 2022 13:47:14 +0100 Subject: [PATCH 06/45] [Security Solution] [Detections] Fixes EQL error message when there is an empty query (#123533) * fixes issues 121983 * refactor Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../rules/step_define_rule/schema.tsx | 23 +++++++++++-------- .../rules/step_define_rule/translations.tsx | 7 ++++++ 2 files changed, 20 insertions(+), 10 deletions(-) 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 4717dd6f92104..a2018280bebc6 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 d41d36813dee2..a2b01ba87dd69 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', { From 7e1b7806724d611b734b6c19346c4077f65e5382 Mon Sep 17 00:00:00 2001 From: Alexey Antonov Date: Thu, 27 Jan 2022 16:12:50 +0300 Subject: [PATCH 07/45] [TSVB] Fix shard failures are not reported (#123474) * [TSVB] Fix shard failures are not reported #122944 Closes: #122944 * fix PR comments * Update ui_settings.ts Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- src/plugins/data/public/index.ts | 1 + src/plugins/data/public/search/index.ts | 1 + .../adapters/request/request_responder.ts | 2 +- .../common/adapters/request/types.ts | 1 + .../vis_types/timeseries/common/constants.ts | 1 + .../timeseries/common/types/index.ts | 10 +++- .../timeseries/common/types/vis_data.ts | 32 ++++++++----- src/plugins/vis_types/timeseries/kibana.json | 2 +- .../application/components/annotation_row.tsx | 4 +- .../field_text_select.tsx | 2 +- .../index_pattern_select.tsx | 2 +- .../vis_types/timeseries/public/metrics_fn.ts | 7 ++- .../timeseries/public/metrics_type.ts | 5 +- .../timeseries/public/request_handler.ts | 26 ++++++++-- .../server/lib/search_strategies/index.ts | 1 + .../abstract_search_strategy.test.ts | 6 +-- .../strategies/abstract_search_strategy.ts | 35 ++++++++++++-- .../strategies/rollup_search_strategy.ts | 9 ++-- .../annotations/get_request_params.ts | 15 ++++-- .../server/lib/vis_data/get_annotations.ts | 28 ++++++----- .../server/lib/vis_data/get_series_data.ts | 12 +++-- .../server/lib/vis_data/get_table_data.ts | 48 +++++++++++-------- .../lib/vis_data/series/get_request_params.ts | 15 ++++-- .../timeseries/server/ui_settings.ts | 14 ++++++ test/functional/apps/visualize/_tsvb_chart.ts | 4 +- .../metrics/kibana_metrics_adapter.ts | 4 +- 26 files changed, 208 insertions(+), 79 deletions(-) diff --git a/src/plugins/data/public/index.ts b/src/plugins/data/public/index.ts index 2e746e4ecec93..ec380a0845985 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 810436dc30b98..6923ec7e8705b 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/inspector/common/adapters/request/request_responder.ts b/src/plugins/inspector/common/adapters/request/request_responder.ts index 1b8da2e57e7f2..1d3a999e4834d 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 a204a7aa00a4a..4e6a8d324559f 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/timeseries/common/constants.ts b/src/plugins/vis_types/timeseries/common/constants.ts index 4f15cea7faad3..30fb814990925 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 7a35532802678..01b200c6774d1 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 1a7be0b467004..07c078a6e8aae 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 40f934e531973..66c5b416a0d96 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 bc408aef7092a..856948cb7601e 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/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 86d1758932301..682279d5639e5 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 840787e2af1af..6c095a9074bb7 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 ? ( ({ 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 a51e0a48c3212..548368b30759a 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 e9037c0b84a5e..bb15f32886cdc 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 ca0c50a79564a..721e1dad473f0 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 6216bce00fc7d..1a52132612f71 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 bce07d2cdb300..1d3650ccedbd3 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 e3ede57774224..2508c68066017 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 1973e3b85b966..41f7e7c86708f 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 8a005deccaea9..481ddc7891817 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 e67592271728d..9b111b0469d22 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 d810fba50abce..2b63749fac642 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 046b207050ca0..d176eb8b99392 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 2adbc31482f04..c64d5771479b6 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/test/functional/apps/visualize/_tsvb_chart.ts b/test/functional/apps/visualize/_tsvb_chart.ts index 1958cc4699f92..4080ca2a0ba75 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/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 e05a5b647ad2b..2a87c9cbca994 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) => { From c5fa8e2be4a0be267242d4e63ddcfe99036a2bba Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Thu, 27 Jan 2022 08:15:04 -0500 Subject: [PATCH 08/45] [Upgrade Assistant] Fix deprecated index settings resolution (#123599) (#123763) --- .../fix_issues_step/mock_es_issues.ts | 2 +- .../upgrade_assistant/common/constants.ts | 2 +- .../lib/__fixtures__/fake_deprecations.json | 2 +- .../es_deprecations_status.test.ts.snap | 2 +- .../apis/upgrade_assistant/es_deprecations.ts | 109 ++++++++++++++---- 5 files changed, 91 insertions(+), 26 deletions(-) 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 13505b47c5a7f..a5106ccc314e9 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 bbe50d940af87..06659ad073302 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 2337e0e2dc039..00ae96ba33f7a 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 be9ea11a4886e..23cbf7aa265e7 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/test/api_integration/apis/upgrade_assistant/es_deprecations.ts b/x-pack/test/api_integration/apis/upgrade_assistant/es_deprecations.ts index aea003a317963..b05cf8b901b5b 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 + ); + }); }); }); }); From 481fb8f536880e09a73c5e35253b7bec8eacb22f Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Thu, 27 Jan 2022 08:16:35 -0500 Subject: [PATCH 09/45] [Upgrade Assistant] Avoid creating the new index if it already exists when reindexing (#123817) (#123865) --- .../server/lib/reindexing/reindex_service.ts | 27 +++++++++++++------ .../upgrade_assistant/reindexing.js | 26 ++++++++++++++++++ 2 files changed, 45 insertions(+), 8 deletions(-) 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 db427161f50d3..724b282a87747 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/test/upgrade_assistant_integration/upgrade_assistant/reindexing.js b/x-pack/test/upgrade_assistant_integration/upgrade_assistant/reindexing.js index 6a326840bc551..635cb8e288ae1 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'); From 94e64e4da53c3bd52a0f593906bf82b8dc31a3d0 Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Thu, 27 Jan 2022 08:26:56 -0500 Subject: [PATCH 10/45] [Upgrade Assistant] Minimize reindex attributes used to create credential hash (#123727) (#123864) --- .../server/lib/reindexing/credential_store.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 66885a23cf96b..b3d4d5e165a13 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 ({ From cc082bc5f394a3ef65cb577c8863932270c1c95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=A1nchez?= Date: Thu, 27 Jan 2022 14:45:22 +0100 Subject: [PATCH 11/45] Adds error message when there are duplicated entries. Also adds unit test for that use case (#123812) --- .../create_trusted_app_form.test.tsx | 12 ++++++++++++ .../components/create_trusted_app_form.tsx | 19 ++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) 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 952b707b5d5c3..f2313a4d0f794 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 d9b1cc6624042..7cff989f008a0 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, From 4f1d97a908273d3bf21a94269d48d3b0c5d6283b Mon Sep 17 00:00:00 2001 From: Robert Oskamp Date: Thu, 27 Jan 2022 15:04:17 +0100 Subject: [PATCH 12/45] [ML] Functional tests - reduce job run time in date nanos and categorization tests (#123899) This PR stabilizes the date nanos job and categorization job tests for cloud execution by reducing the job run time. --- .../anomaly_detection/categorization_job.ts | 40 +++++++++---------- .../ml/anomaly_detection/date_nanos_job.ts | 8 ++-- x-pack/test/functional/apps/ml/index.ts | 2 +- 3 files changed, 25 insertions(+), 25 deletions(-) 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 2d2da23213f8f..7c07acd7e7185 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 efa9e7812e20d..fb60534b87aa0 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 7ac4d46b4dfbd..eeae200f35ba7 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'); From baa6510547a79aab39ad819a94f2330cd2fca2c5 Mon Sep 17 00:00:00 2001 From: Maja Grubic Date: Thu, 27 Jan 2022 15:05:58 +0100 Subject: [PATCH 13/45] [Discover] Redirect if no data views (#123366) * [Discover] Redirect if new Kibana instance * Add a functional test * Remove state; add redirect * Code polishing Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../application/main/discover_main_route.tsx | 27 ++++++++++++++--- test/functional/apps/discover/_empty_state.ts | 30 +++++++++++++++++++ test/functional/apps/discover/index.ts | 1 + 3 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 test/functional/apps/discover/_empty_state.ts 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 dd1d036b811a2..f1d7cc2385cd0 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/test/functional/apps/discover/_empty_state.ts b/test/functional/apps/discover/_empty_state.ts new file mode 100644 index 0000000000000..e78f5de8bd780 --- /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 1241b0e892e9c..b5eb160526876 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')); }); } From d965ba791a396ba7f3578f35f5a6d6b1f418971d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=A1nchez?= Date: Thu, 27 Jan 2022 15:30:49 +0100 Subject: [PATCH 14/45] [Security Solution][Endpoint] Event filters ux adjustments for 8.1 (#123853) * Don't show a default value '-' for emoty descriptions on artifacts list. Also removes empty spaces * Update copy to say 'event filters' instead of 'exceptions' * Decrease spacing between avatar and comments textbox * Adds extra spacing between last exception builder field and the buttons group * Reduces effect scope togle width to by dynamic depending on translations * Makes effected policy button group persistent across different artifact forms * Removes unused import * Center button group for small devices --- .../builder/exception_items_renderer.tsx | 4 ++- .../exceptions/add_exception_comments.tsx | 2 +- .../effected_policy_select.tsx | 25 ++++++++++++++----- .../view/event_filters_list_page.tsx | 2 ++ .../view/host_isolation_exceptions_list.tsx | 2 ++ .../list/policy_event_filters_list.test.tsx | 2 +- .../list/policy_event_filters_list.tsx | 3 ++- .../components/trusted_apps_grid/index.tsx | 1 + 8 files changed, 31 insertions(+), 10 deletions(-) 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 54cb00bfe3868..9656f0815dd7d 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/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 87f7f5fe2f507..8cc9a6a43c895 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/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 e20df0c122956..ee2d274704408 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/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 d83bc8d36dd23..adb76683ebb77 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 8a1bc3fa2128f..96b095826cbe2 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 dc78c3edb87fa..e8425a57b4012 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 2e2ca9b4835fd..5ab6f4bfb0eba 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/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 72b52b0f35278..a8e2187083523 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, }; } From eeeef83ea480a942fd7f87f876206b98950b175a Mon Sep 17 00:00:00 2001 From: Scotty Bollinger Date: Thu, 27 Jan 2022 08:35:52 -0600 Subject: [PATCH 15/45] [Enterprise Search] Fix bug where no content when user has no Enterprise Search access (#123877) * Add docs link for kibana xpack-security * Add callout when user has no Enterprise Search access * Updated API documentation and the API review file --- ...-plugin-core-public.doclinksstart.links.md | 1 + ...kibana-plugin-core-public.doclinksstart.md | 2 +- .../public/doc_links/doc_links_service.ts | 2 + src/core/public/public.api.md | 1 + .../product_selector/lock_light.svg | 1 + .../product_selector.test.tsx | 18 ++- .../product_selector/product_selector.tsx | 115 ++++++++++++++---- .../shared/doc_links/doc_links.ts | 3 + 8 files changed, 118 insertions(+), 25 deletions(-) create mode 100644 x-pack/plugins/enterprise_search/public/applications/enterprise_search/components/product_selector/lock_light.svg 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 03862cedf5477..7864f2ca828db 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 618aef54423bb..ed7fd160f8f3f 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/src/core/public/doc_links/doc_links_service.ts b/src/core/public/doc_links/doc_links_service.ts index 763cd4b70a880..186f6b337fbde 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`, @@ -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 603d6f184dd6f..a29b8d0b5cc68 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/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 0000000000000..2a93dbdde2efe --- /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 c713507083b08..ff2ea86bb3911 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 690122efc2f20..a94c5d008b124 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 376941b018f6a..841bf8e35731d 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; From 2d982c0070067f3d3be4bf0427ee3ab0b55517ce Mon Sep 17 00:00:00 2001 From: Stacey Gammon Date: Thu, 27 Jan 2022 09:48:49 -0500 Subject: [PATCH 16/45] Update api docs (#123839) * Support the docs scripts knowing which json files are specifically for dev docs. * Update jest snapshot docs * Update api docs --- .../{actions.json => actions.devdocs.json} | 2 +- api_docs/actions.mdx | 2 +- ...gs.json => advanced_settings.devdocs.json} | 0 api_docs/advanced_settings.mdx | 2 +- .../{alerting.json => alerting.devdocs.json} | 146 +- api_docs/alerting.mdx | 4 +- api_docs/{apm.json => apm.devdocs.json} | 4069 +++++++++-------- api_docs/apm.mdx | 4 +- .../{banners.json => banners.devdocs.json} | 0 api_docs/banners.mdx | 2 +- api_docs/{bfetch.json => bfetch.devdocs.json} | 0 api_docs/bfetch.mdx | 2 +- api_docs/{canvas.json => canvas.devdocs.json} | 0 api_docs/canvas.mdx | 2 +- api_docs/{cases.json => cases.devdocs.json} | 0 api_docs/cases.mdx | 8 +- api_docs/{charts.json => charts.devdocs.json} | 160 +- api_docs/charts.mdx | 4 +- api_docs/{cloud.json => cloud.devdocs.json} | 0 api_docs/cloud.mdx | 2 +- .../{console.json => console.devdocs.json} | 0 api_docs/console.mdx | 2 +- .../{controls.json => controls.devdocs.json} | 0 api_docs/controls.mdx | 2 +- api_docs/{core.json => core.devdocs.json} | 495 +- api_docs/core.mdx | 4 +- ...ion.json => core_application.devdocs.json} | 56 +- api_docs/core_application.mdx | 4 +- ...e_chrome.json => core_chrome.devdocs.json} | 0 api_docs/core_chrome.mdx | 4 +- ...{core_http.json => core_http.devdocs.json} | 12 +- api_docs/core_http.mdx | 4 +- ...s.json => core_saved_objects.devdocs.json} | 0 api_docs/core_saved_objects.mdx | 4 +- ....json => custom_integrations.devdocs.json} | 0 api_docs/custom_integrations.mdx | 2 +- ...{dashboard.json => dashboard.devdocs.json} | 19 +- api_docs/dashboard.mdx | 4 +- ...d.json => dashboard_enhanced.devdocs.json} | 0 api_docs/dashboard_enhanced.mdx | 2 +- api_docs/{data.json => data.devdocs.json} | 2211 +++------ api_docs/data.mdx | 4 +- ...te.json => data_autocomplete.devdocs.json} | 0 api_docs/data_autocomplete.mdx | 4 +- ...hanced.json => data_enhanced.devdocs.json} | 0 api_docs/data_enhanced.mdx | 2 +- ...ata_query.json => data_query.devdocs.json} | 0 api_docs/data_query.mdx | 4 +- ...a_search.json => data_search.devdocs.json} | 345 +- api_docs/data_search.mdx | 4 +- .../{data_ui.json => data_ui.devdocs.json} | 0 api_docs/data_ui.mdx | 4 +- ...tor.json => data_view_editor.devdocs.json} | 0 api_docs/data_view_editor.mdx | 2 +- ...on => data_view_field_editor.devdocs.json} | 0 api_docs/data_view_field_editor.mdx | 2 +- ...json => data_view_management.devdocs.json} | 0 api_docs/data_view_management.mdx | 2 +- ...ata_views.json => data_views.devdocs.json} | 1269 ++--- api_docs/data_views.mdx | 7 +- api_docs/data_visualizer.devdocs.json | 364 ++ api_docs/data_visualizer.json | 1192 ----- api_docs/data_visualizer.mdx | 18 +- api_docs/deprecations_by_api.mdx | 96 +- api_docs/deprecations_by_plugin.mdx | 146 +- ...{dev_tools.json => dev_tools.devdocs.json} | 0 api_docs/dev_tools.mdx | 2 +- .../{discover.json => discover.devdocs.json} | 0 api_docs/discover.mdx | 2 +- ...ed.json => discover_enhanced.devdocs.json} | 0 api_docs/discover_enhanced.mdx | 2 +- ...on => elastic_apm_synthtrace.devdocs.json} | 0 api_docs/elastic_apm_synthtrace.mdx | 2 +- ...ath.json => elastic_datemath.devdocs.json} | 0 api_docs/elastic_datemath.mdx | 2 +- ...mbeddable.json => embeddable.devdocs.json} | 416 +- api_docs/embeddable.mdx | 4 +- ....json => embeddable_enhanced.devdocs.json} | 0 api_docs/embeddable_enhanced.mdx | 2 +- ...n => encrypted_saved_objects.devdocs.json} | 0 api_docs/encrypted_saved_objects.mdx | 2 +- ...ch.json => enterprise_search.devdocs.json} | 0 api_docs/enterprise_search.mdx | 2 +- ..._shared.json => es_ui_shared.devdocs.json} | 0 api_docs/es_ui_shared.mdx | 2 +- ...{event_log.json => event_log.devdocs.json} | 21 +- api_docs/event_log.mdx | 4 +- ...ror.json => expression_error.devdocs.json} | 0 api_docs/expression_error.mdx | 2 +- ...uge.json => expression_gauge.devdocs.json} | 4 +- api_docs/expression_gauge.mdx | 2 +- ...p.json => expression_heatmap.devdocs.json} | 204 +- api_docs/expression_heatmap.mdx | 4 +- ...age.json => expression_image.devdocs.json} | 0 api_docs/expression_image.mdx | 2 +- ...ic.json => expression_metric.devdocs.json} | 2 +- api_docs/expression_metric.mdx | 2 +- ...son => expression_metric_vis.devdocs.json} | 0 api_docs/expression_metric_vis.mdx | 2 +- ...n_pie.json => expression_pie.devdocs.json} | 0 api_docs/expression_pie.mdx | 2 +- ...n => expression_repeat_image.devdocs.json} | 2 +- api_docs/expression_repeat_image.mdx | 2 +- ...n => expression_reveal_image.devdocs.json} | 2 +- api_docs/expression_reveal_image.mdx | 2 +- ...ape.json => expression_shape.devdocs.json} | 0 api_docs/expression_shape.mdx | 2 +- ....json => expression_tagcloud.devdocs.json} | 0 api_docs/expression_tagcloud.mdx | 2 +- ...ressions.json => expressions.devdocs.json} | 227 +- api_docs/expressions.mdx | 2 +- .../{features.json => features.devdocs.json} | 16 +- api_docs/features.mdx | 2 +- ...ormats.json => field_formats.devdocs.json} | 0 api_docs/field_formats.mdx | 2 +- api_docs/file_upload.devdocs.json | 899 ++++ api_docs/file_upload.json | 1942 -------- api_docs/file_upload.mdx | 10 +- api_docs/{fleet.json => fleet.devdocs.json} | 467 +- api_docs/fleet.mdx | 4 +- ...search.json => global_search.devdocs.json} | 0 api_docs/global_search.mdx | 2 +- api_docs/{home.json => home.devdocs.json} | 14 +- api_docs/home.mdx | 2 +- ...> index_lifecycle_management.devdocs.json} | 0 api_docs/index_lifecycle_management.mdx | 2 +- ...ent.json => index_management.devdocs.json} | 0 api_docs/index_management.mdx | 2 +- api_docs/{infra.json => infra.devdocs.json} | 57 +- api_docs/infra.mdx | 7 +- ...{inspector.json => inspector.devdocs.json} | 0 api_docs/inspector.mdx | 2 +- ...up.json => interactive_setup.devdocs.json} | 0 api_docs/interactive_setup.mdx | 2 +- .../{kbn_ace.json => kbn_ace.devdocs.json} | 0 api_docs/kbn_ace.mdx | 2 +- ...bn_alerts.json => kbn_alerts.devdocs.json} | 0 api_docs/kbn_alerts.mdx | 2 +- ...lytics.json => kbn_analytics.devdocs.json} | 0 api_docs/kbn_analytics.mdx | 2 +- ...son => kbn_apm_config_loader.devdocs.json} | 0 api_docs/kbn_apm_config_loader.mdx | 2 +- ..._utils.json => kbn_apm_utils.devdocs.json} | 0 api_docs/kbn_apm_utils.mdx | 2 +- ...ode.json => kbn_cli_dev_mode.devdocs.json} | 0 api_docs/kbn_cli_dev_mode.mdx | 2 +- ...bn_config.json => kbn_config.devdocs.json} | 84 +- api_docs/kbn_config.mdx | 4 +- ...ma.json => kbn_config_schema.devdocs.json} | 0 api_docs/kbn_config_schema.mdx | 2 +- ...bn_crypto.json => kbn_crypto.devdocs.json} | 0 api_docs/kbn_crypto.mdx | 2 +- ..._utils.json => kbn_dev_utils.devdocs.json} | 4 +- api_docs/kbn_dev_utils.mdx | 2 +- ...utils.json => kbn_docs_utils.devdocs.json} | 0 api_docs/kbn_docs_utils.mdx | 2 +- ...iver.json => kbn_es_archiver.devdocs.json} | 0 api_docs/kbn_es_archiver.mdx | 2 +- ...s_query.json => kbn_es_query.devdocs.json} | 31 +- api_docs/kbn_es_query.mdx | 4 +- ...ypes.json => kbn_field_types.devdocs.json} | 0 api_docs/kbn_field_types.mdx | 2 +- .../{kbn_i18n.json => kbn_i18n.devdocs.json} | 0 api_docs/kbn_i18n.mdx | 2 +- ...eter.json => kbn_interpreter.devdocs.json} | 337 +- api_docs/kbn_interpreter.mdx | 8 +- ...tils.json => kbn_io_ts_utils.devdocs.json} | 49 +- api_docs/kbn_io_ts_utils.mdx | 7 +- ..._logging.json => kbn_logging.devdocs.json} | 4 +- api_docs/kbn_logging.mdx | 2 +- ...box_gl.json => kbn_mapbox_gl.devdocs.json} | 0 api_docs/kbn_mapbox_gl.mdx | 2 +- ...bn_monaco.json => kbn_monaco.devdocs.json} | 0 api_docs/kbn_monaco.mdx | 2 +- ...imizer.json => kbn_optimizer.devdocs.json} | 0 api_docs/kbn_optimizer.mdx | 2 +- ...json => kbn_plugin_generator.devdocs.json} | 0 api_docs/kbn_plugin_generator.mdx | 2 +- ...s.json => kbn_plugin_helpers.devdocs.json} | 0 api_docs/kbn_plugin_helpers.mdx | 2 +- api_docs/{kbn_pm.json => kbn_pm.devdocs.json} | 0 api_docs/kbn_pm.mdx | 2 +- ...ield.json => kbn_react_field.devdocs.json} | 0 api_docs/kbn_react_field.mdx | 2 +- ....json => kbn_rule_data_utils.devdocs.json} | 16 +- api_docs/kbn_rule_data_utils.mdx | 4 +- ...ecuritysolution_autocomplete.devdocs.json} | 0 .../kbn_securitysolution_autocomplete.mdx | 2 +- ...bn_securitysolution_es_utils.devdocs.json} | 0 api_docs/kbn_securitysolution_es_utils.mdx | 2 +- ..._securitysolution_hook_utils.devdocs.json} | 0 api_docs/kbn_securitysolution_hook_utils.mdx | 2 +- ...olution_io_ts_alerting_types.devdocs.json} | 0 ..._securitysolution_io_ts_alerting_types.mdx | 2 +- ...itysolution_io_ts_list_types.devdocs.json} | 2 +- .../kbn_securitysolution_io_ts_list_types.mdx | 2 +- ...securitysolution_io_ts_types.devdocs.json} | 0 api_docs/kbn_securitysolution_io_ts_types.mdx | 2 +- ...securitysolution_io_ts_utils.devdocs.json} | 0 api_docs/kbn_securitysolution_io_ts_utils.mdx | 2 +- ...bn_securitysolution_list_api.devdocs.json} | 0 api_docs/kbn_securitysolution_list_api.mdx | 2 +- ...uritysolution_list_constants.devdocs.json} | 0 .../kbn_securitysolution_list_constants.mdx | 2 +- ..._securitysolution_list_hooks.devdocs.json} | 0 api_docs/kbn_securitysolution_list_hooks.mdx | 2 +- ..._securitysolution_list_utils.devdocs.json} | 0 api_docs/kbn_securitysolution_list_utils.mdx | 2 +- ...> kbn_securitysolution_rules.devdocs.json} | 0 api_docs/kbn_securitysolution_rules.mdx | 2 +- ... kbn_securitysolution_t_grid.devdocs.json} | 0 api_docs/kbn_securitysolution_t_grid.mdx | 2 +- ...> kbn_securitysolution_utils.devdocs.json} | 0 api_docs/kbn_securitysolution_utils.mdx | 2 +- ...son => kbn_server_http_tools.devdocs.json} | 0 api_docs/kbn_server_http_tools.mdx | 2 +- ... kbn_server_route_repository.devdocs.json} | 339 +- api_docs/kbn_server_route_repository.mdx | 4 +- .../{kbn_std.json => kbn_std.devdocs.json} | 0 api_docs/kbn_std.mdx | 2 +- ...rybook.json => kbn_storybook.devdocs.json} | 0 api_docs/kbn_storybook.mdx | 2 +- ....json => kbn_telemetry_tools.devdocs.json} | 0 api_docs/kbn_telemetry_tools.mdx | 2 +- .../{kbn_test.json => kbn_test.devdocs.json} | 396 +- api_docs/kbn_test.mdx | 4 +- ...bn_typed_react_router_config.devdocs.json} | 881 +--- api_docs/kbn_typed_react_router_config.mdx | 4 +- api_docs/kbn_ui_theme.devdocs.json | 123 + api_docs/kbn_ui_theme.mdx | 30 + ...es.json => kbn_utility_types.devdocs.json} | 0 api_docs/kbn_utility_types.mdx | 2 +- ...{kbn_utils.json => kbn_utils.devdocs.json} | 0 api_docs/kbn_utils.mdx | 2 +- ...view.json => kibana_overview.devdocs.json} | 0 api_docs/kibana_overview.mdx | 2 +- ...a_react.json => kibana_react.devdocs.json} | 19 + api_docs/kibana_react.mdx | 4 +- ...a_utils.json => kibana_utils.devdocs.json} | 80 +- api_docs/kibana_utils.mdx | 4 +- api_docs/{lens.json => lens.devdocs.json} | 283 +- api_docs/lens.mdx | 4 +- ...rd.json => license_api_guard.devdocs.json} | 0 api_docs/license_api_guard.mdx | 2 +- ...t.json => license_management.devdocs.json} | 0 api_docs/license_management.mdx | 2 +- ...{licensing.json => licensing.devdocs.json} | 39 +- api_docs/licensing.mdx | 2 +- api_docs/{lists.json => lists.devdocs.json} | 170 +- api_docs/lists.mdx | 4 +- ...anagement.json => management.devdocs.json} | 0 api_docs/management.mdx | 2 +- api_docs/{maps.json => maps.devdocs.json} | 196 +- api_docs/maps.mdx | 4 +- .../{maps_ems.json => maps_ems.devdocs.json} | 1267 ++--- api_docs/maps_ems.mdx | 11 +- ...ies.json => metrics_entities.devdocs.json} | 0 api_docs/metrics_entities.mdx | 2 +- api_docs/{ml.json => ml.devdocs.json} | 1333 +----- api_docs/ml.mdx | 4 +- ...onitoring.json => monitoring.devdocs.json} | 4 +- api_docs/monitoring.mdx | 2 +- ...avigation.json => navigation.devdocs.json} | 0 api_docs/navigation.mdx | 2 +- .../{newsfeed.json => newsfeed.devdocs.json} | 0 api_docs/newsfeed.mdx | 2 +- ...bility.json => observability.devdocs.json} | 252 +- api_docs/observability.mdx | 7 +- .../{osquery.json => osquery.devdocs.json} | 0 api_docs/osquery.mdx | 2 +- api_docs/plugin_directory.mdx | 82 +- ...il.json => presentation_util.devdocs.json} | 84 +- api_docs/presentation_util.mdx | 4 +- ...ters.json => remote_clusters.devdocs.json} | 0 api_docs/remote_clusters.mdx | 2 +- ...{reporting.json => reporting.devdocs.json} | 72 +- api_docs/reporting.mdx | 4 +- api_docs/{rollup.json => rollup.devdocs.json} | 0 api_docs/rollup.mdx | 2 +- ...gistry.json => rule_registry.devdocs.json} | 23 +- api_docs/rule_registry.mdx | 4 +- ...ields.json => runtime_fields.devdocs.json} | 0 api_docs/runtime_fields.mdx | 2 +- ...bjects.json => saved_objects.devdocs.json} | 16 +- api_docs/saved_objects.mdx | 2 +- ... => saved_objects_management.devdocs.json} | 6 +- api_docs/saved_objects_management.mdx | 2 +- ...son => saved_objects_tagging.devdocs.json} | 0 api_docs/saved_objects_tagging.mdx | 2 +- ...=> saved_objects_tagging_oss.devdocs.json} | 0 api_docs/saved_objects_tagging_oss.mdx | 2 +- ...mode.json => screenshot_mode.devdocs.json} | 0 api_docs/screenshot_mode.mdx | 2 +- ...tting.json => screenshotting.devdocs.json} | 0 api_docs/screenshotting.mdx | 2 +- .../{security.json => security.devdocs.json} | 37 +- api_docs/security.mdx | 4 +- ...on.json => security_solution.devdocs.json} | 6 +- api_docs/security_solution.mdx | 4 +- api_docs/{share.json => share.devdocs.json} | 40 +- api_docs/share.mdx | 2 +- ...hared_u_x.json => shared_u_x.devdocs.json} | 0 api_docs/shared_u_x.mdx | 2 +- ...ore.json => snapshot_restore.devdocs.json} | 60 - api_docs/snapshot_restore.mdx | 4 +- api_docs/{spaces.json => spaces.devdocs.json} | 0 api_docs/spaces.mdx | 2 +- ..._alerts.json => stack_alerts.devdocs.json} | 0 api_docs/stack_alerts.mdx | 2 +- ...manager.json => task_manager.devdocs.json} | 0 api_docs/task_manager.mdx | 2 +- ...{telemetry.json => telemetry.devdocs.json} | 0 api_docs/telemetry.mdx | 2 +- ...telemetry_collection_manager.devdocs.json} | 0 api_docs/telemetry_collection_manager.mdx | 2 +- ...> telemetry_collection_xpack.devdocs.json} | 0 api_docs/telemetry_collection_xpack.mdx | 2 +- ...telemetry_management_section.devdocs.json} | 0 api_docs/telemetry_management_section.mdx | 2 +- ...{timelines.json => timelines.devdocs.json} | 25 +- api_docs/timelines.mdx | 4 +- ...{transform.json => transform.devdocs.json} | 0 api_docs/transform.mdx | 2 +- ....json => triggers_actions_ui.devdocs.json} | 12 +- api_docs/triggers_actions_ui.mdx | 2 +- ...i_actions.json => ui_actions.devdocs.json} | 0 api_docs/ui_actions.mdx | 2 +- ....json => ui_actions_enhanced.devdocs.json} | 16 +- api_docs/ui_actions_enhanced.mdx | 2 +- ...rding.json => url_forwarding.devdocs.json} | 0 api_docs/url_forwarding.mdx | 2 +- ...ion.json => usage_collection.devdocs.json} | 0 api_docs/usage_collection.mdx | 2 +- ...r.json => vis_default_editor.devdocs.json} | 12 +- api_docs/vis_default_editor.mdx | 2 +- ...map.json => vis_type_heatmap.devdocs.json} | 0 api_docs/vis_type_heatmap.mdx | 2 +- ...ype_pie.json => vis_type_pie.devdocs.json} | 0 api_docs/vis_type_pie.mdx | 2 +- ...table.json => vis_type_table.devdocs.json} | 0 api_docs/vis_type_table.mdx | 2 +- ...on.json => vis_type_timelion.devdocs.json} | 0 api_docs/vis_type_timelion.mdx | 2 +- ....json => vis_type_timeseries.devdocs.json} | 0 api_docs/vis_type_timeseries.mdx | 2 +- ...e_vega.json => vis_type_vega.devdocs.json} | 0 api_docs/vis_type_vega.mdx | 2 +- ...slib.json => vis_type_vislib.devdocs.json} | 0 api_docs/vis_type_vislib.mdx | 2 +- ..._type_xy.json => vis_type_xy.devdocs.json} | 0 api_docs/vis_type_xy.mdx | 2 +- ...tions.json => visualizations.devdocs.json} | 774 ++-- api_docs/visualizations.mdx | 4 +- api_docs/visualize.json | 378 -- api_docs/visualize.mdx | 33 - .../src/api_docs/mdx/write_plugin_mdx_docs.ts | 7 +- .../{plugin_a.json => plugin_a.devdocs.json} | 2 +- .../src/api_docs/tests/snapshots/plugin_a.mdx | 2 +- ...n_a_foo.json => plugin_a_foo.devdocs.json} | 0 .../api_docs/tests/snapshots/plugin_a_foo.mdx | 2 +- .../{plugin_b.json => plugin_b.devdocs.json} | 0 .../src/api_docs/tests/snapshots/plugin_b.mdx | 2 +- 362 files changed, 10067 insertions(+), 12905 deletions(-) rename api_docs/{actions.json => actions.devdocs.json} (99%) rename api_docs/{advanced_settings.json => advanced_settings.devdocs.json} (100%) rename api_docs/{alerting.json => alerting.devdocs.json} (97%) rename api_docs/{apm.json => apm.devdocs.json} (93%) rename api_docs/{banners.json => banners.devdocs.json} (100%) rename api_docs/{bfetch.json => bfetch.devdocs.json} (100%) rename api_docs/{canvas.json => canvas.devdocs.json} (100%) rename api_docs/{cases.json => cases.devdocs.json} (100%) rename api_docs/{charts.json => charts.devdocs.json} (96%) rename api_docs/{cloud.json => cloud.devdocs.json} (100%) rename api_docs/{console.json => console.devdocs.json} (100%) rename api_docs/{controls.json => controls.devdocs.json} (100%) rename api_docs/{core.json => core.devdocs.json} (96%) rename api_docs/{core_application.json => core_application.devdocs.json} (98%) rename api_docs/{core_chrome.json => core_chrome.devdocs.json} (100%) rename api_docs/{core_http.json => core_http.devdocs.json} (98%) rename api_docs/{core_saved_objects.json => core_saved_objects.devdocs.json} (100%) rename api_docs/{custom_integrations.json => custom_integrations.devdocs.json} (100%) rename api_docs/{dashboard.json => dashboard.devdocs.json} (99%) rename api_docs/{dashboard_enhanced.json => dashboard_enhanced.devdocs.json} (100%) rename api_docs/{data.json => data.devdocs.json} (95%) rename api_docs/{data_autocomplete.json => data_autocomplete.devdocs.json} (100%) rename api_docs/{data_enhanced.json => data_enhanced.devdocs.json} (100%) rename api_docs/{data_query.json => data_query.devdocs.json} (100%) rename api_docs/{data_search.json => data_search.devdocs.json} (99%) rename api_docs/{data_ui.json => data_ui.devdocs.json} (100%) rename api_docs/{data_view_editor.json => data_view_editor.devdocs.json} (100%) rename api_docs/{data_view_field_editor.json => data_view_field_editor.devdocs.json} (100%) rename api_docs/{data_view_management.json => data_view_management.devdocs.json} (100%) rename api_docs/{data_views.json => data_views.devdocs.json} (95%) create mode 100644 api_docs/data_visualizer.devdocs.json delete mode 100644 api_docs/data_visualizer.json rename api_docs/{dev_tools.json => dev_tools.devdocs.json} (100%) rename api_docs/{discover.json => discover.devdocs.json} (100%) rename api_docs/{discover_enhanced.json => discover_enhanced.devdocs.json} (100%) rename api_docs/{elastic_apm_synthtrace.json => elastic_apm_synthtrace.devdocs.json} (100%) rename api_docs/{elastic_datemath.json => elastic_datemath.devdocs.json} (100%) rename api_docs/{embeddable.json => embeddable.devdocs.json} (96%) rename api_docs/{embeddable_enhanced.json => embeddable_enhanced.devdocs.json} (100%) rename api_docs/{encrypted_saved_objects.json => encrypted_saved_objects.devdocs.json} (100%) rename api_docs/{enterprise_search.json => enterprise_search.devdocs.json} (100%) rename api_docs/{es_ui_shared.json => es_ui_shared.devdocs.json} (100%) rename api_docs/{event_log.json => event_log.devdocs.json} (88%) rename api_docs/{expression_error.json => expression_error.devdocs.json} (100%) rename api_docs/{expression_gauge.json => expression_gauge.devdocs.json} (99%) rename api_docs/{expression_heatmap.json => expression_heatmap.devdocs.json} (86%) rename api_docs/{expression_image.json => expression_image.devdocs.json} (100%) rename api_docs/{expression_metric.json => expression_metric.devdocs.json} (97%) rename api_docs/{expression_metric_vis.json => expression_metric_vis.devdocs.json} (100%) rename api_docs/{expression_pie.json => expression_pie.devdocs.json} (100%) rename api_docs/{expression_repeat_image.json => expression_repeat_image.devdocs.json} (96%) rename api_docs/{expression_reveal_image.json => expression_reveal_image.devdocs.json} (96%) rename api_docs/{expression_shape.json => expression_shape.devdocs.json} (100%) rename api_docs/{expression_tagcloud.json => expression_tagcloud.devdocs.json} (100%) rename api_docs/{expressions.json => expressions.devdocs.json} (99%) rename api_docs/{features.json => features.devdocs.json} (99%) rename api_docs/{field_formats.json => field_formats.devdocs.json} (100%) create mode 100644 api_docs/file_upload.devdocs.json delete mode 100644 api_docs/file_upload.json rename api_docs/{fleet.json => fleet.devdocs.json} (98%) rename api_docs/{global_search.json => global_search.devdocs.json} (100%) rename api_docs/{home.json => home.devdocs.json} (98%) rename api_docs/{index_lifecycle_management.json => index_lifecycle_management.devdocs.json} (100%) rename api_docs/{index_management.json => index_management.devdocs.json} (100%) rename api_docs/{infra.json => infra.devdocs.json} (88%) rename api_docs/{inspector.json => inspector.devdocs.json} (100%) rename api_docs/{interactive_setup.json => interactive_setup.devdocs.json} (100%) rename api_docs/{kbn_ace.json => kbn_ace.devdocs.json} (100%) rename api_docs/{kbn_alerts.json => kbn_alerts.devdocs.json} (100%) rename api_docs/{kbn_analytics.json => kbn_analytics.devdocs.json} (100%) rename api_docs/{kbn_apm_config_loader.json => kbn_apm_config_loader.devdocs.json} (100%) rename api_docs/{kbn_apm_utils.json => kbn_apm_utils.devdocs.json} (100%) rename api_docs/{kbn_cli_dev_mode.json => kbn_cli_dev_mode.devdocs.json} (100%) rename api_docs/{kbn_config.json => kbn_config.devdocs.json} (95%) rename api_docs/{kbn_config_schema.json => kbn_config_schema.devdocs.json} (100%) rename api_docs/{kbn_crypto.json => kbn_crypto.devdocs.json} (100%) rename api_docs/{kbn_dev_utils.json => kbn_dev_utils.devdocs.json} (99%) rename api_docs/{kbn_docs_utils.json => kbn_docs_utils.devdocs.json} (100%) rename api_docs/{kbn_es_archiver.json => kbn_es_archiver.devdocs.json} (100%) rename api_docs/{kbn_es_query.json => kbn_es_query.devdocs.json} (99%) rename api_docs/{kbn_field_types.json => kbn_field_types.devdocs.json} (100%) rename api_docs/{kbn_i18n.json => kbn_i18n.devdocs.json} (100%) rename api_docs/{kbn_interpreter.json => kbn_interpreter.devdocs.json} (64%) rename api_docs/{kbn_io_ts_utils.json => kbn_io_ts_utils.devdocs.json} (87%) rename api_docs/{kbn_logging.json => kbn_logging.devdocs.json} (99%) rename api_docs/{kbn_mapbox_gl.json => kbn_mapbox_gl.devdocs.json} (100%) rename api_docs/{kbn_monaco.json => kbn_monaco.devdocs.json} (100%) rename api_docs/{kbn_optimizer.json => kbn_optimizer.devdocs.json} (100%) rename api_docs/{kbn_plugin_generator.json => kbn_plugin_generator.devdocs.json} (100%) rename api_docs/{kbn_plugin_helpers.json => kbn_plugin_helpers.devdocs.json} (100%) rename api_docs/{kbn_pm.json => kbn_pm.devdocs.json} (100%) rename api_docs/{kbn_react_field.json => kbn_react_field.devdocs.json} (100%) rename api_docs/{kbn_rule_data_utils.json => kbn_rule_data_utils.devdocs.json} (94%) rename api_docs/{kbn_securitysolution_autocomplete.json => kbn_securitysolution_autocomplete.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_es_utils.json => kbn_securitysolution_es_utils.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_hook_utils.json => kbn_securitysolution_hook_utils.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_io_ts_alerting_types.json => kbn_securitysolution_io_ts_alerting_types.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_io_ts_list_types.json => kbn_securitysolution_io_ts_list_types.devdocs.json} (99%) rename api_docs/{kbn_securitysolution_io_ts_types.json => kbn_securitysolution_io_ts_types.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_io_ts_utils.json => kbn_securitysolution_io_ts_utils.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_list_api.json => kbn_securitysolution_list_api.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_list_constants.json => kbn_securitysolution_list_constants.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_list_hooks.json => kbn_securitysolution_list_hooks.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_list_utils.json => kbn_securitysolution_list_utils.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_rules.json => kbn_securitysolution_rules.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_t_grid.json => kbn_securitysolution_t_grid.devdocs.json} (100%) rename api_docs/{kbn_securitysolution_utils.json => kbn_securitysolution_utils.devdocs.json} (100%) rename api_docs/{kbn_server_http_tools.json => kbn_server_http_tools.devdocs.json} (100%) rename api_docs/{kbn_server_route_repository.json => kbn_server_route_repository.devdocs.json} (64%) rename api_docs/{kbn_std.json => kbn_std.devdocs.json} (100%) rename api_docs/{kbn_storybook.json => kbn_storybook.devdocs.json} (100%) rename api_docs/{kbn_telemetry_tools.json => kbn_telemetry_tools.devdocs.json} (100%) rename api_docs/{kbn_test.json => kbn_test.devdocs.json} (89%) rename api_docs/{kbn_typed_react_router_config.json => kbn_typed_react_router_config.devdocs.json} (81%) create mode 100644 api_docs/kbn_ui_theme.devdocs.json create mode 100644 api_docs/kbn_ui_theme.mdx rename api_docs/{kbn_utility_types.json => kbn_utility_types.devdocs.json} (100%) rename api_docs/{kbn_utils.json => kbn_utils.devdocs.json} (100%) rename api_docs/{kibana_overview.json => kibana_overview.devdocs.json} (100%) rename api_docs/{kibana_react.json => kibana_react.devdocs.json} (99%) rename api_docs/{kibana_utils.json => kibana_utils.devdocs.json} (99%) rename api_docs/{lens.json => lens.devdocs.json} (93%) rename api_docs/{license_api_guard.json => license_api_guard.devdocs.json} (100%) rename api_docs/{license_management.json => license_management.devdocs.json} (100%) rename api_docs/{licensing.json => licensing.devdocs.json} (98%) rename api_docs/{lists.json => lists.devdocs.json} (97%) rename api_docs/{management.json => management.devdocs.json} (100%) rename api_docs/{maps.json => maps.devdocs.json} (95%) rename api_docs/{maps_ems.json => maps_ems.devdocs.json} (60%) rename api_docs/{metrics_entities.json => metrics_entities.devdocs.json} (100%) rename api_docs/{ml.json => ml.devdocs.json} (69%) rename api_docs/{monitoring.json => monitoring.devdocs.json} (89%) rename api_docs/{navigation.json => navigation.devdocs.json} (100%) rename api_docs/{newsfeed.json => newsfeed.devdocs.json} (100%) rename api_docs/{observability.json => observability.devdocs.json} (91%) rename api_docs/{osquery.json => osquery.devdocs.json} (100%) rename api_docs/{presentation_util.json => presentation_util.devdocs.json} (97%) rename api_docs/{remote_clusters.json => remote_clusters.devdocs.json} (100%) rename api_docs/{reporting.json => reporting.devdocs.json} (89%) rename api_docs/{rollup.json => rollup.devdocs.json} (100%) rename api_docs/{rule_registry.json => rule_registry.devdocs.json} (92%) rename api_docs/{runtime_fields.json => runtime_fields.devdocs.json} (100%) rename api_docs/{saved_objects.json => saved_objects.devdocs.json} (99%) rename api_docs/{saved_objects_management.json => saved_objects_management.devdocs.json} (99%) rename api_docs/{saved_objects_tagging.json => saved_objects_tagging.devdocs.json} (100%) rename api_docs/{saved_objects_tagging_oss.json => saved_objects_tagging_oss.devdocs.json} (100%) rename api_docs/{screenshot_mode.json => screenshot_mode.devdocs.json} (100%) rename api_docs/{screenshotting.json => screenshotting.devdocs.json} (100%) rename api_docs/{security.json => security.devdocs.json} (98%) rename api_docs/{security_solution.json => security_solution.devdocs.json} (97%) rename api_docs/{share.json => share.devdocs.json} (98%) rename api_docs/{shared_u_x.json => shared_u_x.devdocs.json} (100%) rename api_docs/{snapshot_restore.json => snapshot_restore.devdocs.json} (80%) rename api_docs/{spaces.json => spaces.devdocs.json} (100%) rename api_docs/{stack_alerts.json => stack_alerts.devdocs.json} (100%) rename api_docs/{task_manager.json => task_manager.devdocs.json} (100%) rename api_docs/{telemetry.json => telemetry.devdocs.json} (100%) rename api_docs/{telemetry_collection_manager.json => telemetry_collection_manager.devdocs.json} (100%) rename api_docs/{telemetry_collection_xpack.json => telemetry_collection_xpack.devdocs.json} (100%) rename api_docs/{telemetry_management_section.json => telemetry_management_section.devdocs.json} (100%) rename api_docs/{timelines.json => timelines.devdocs.json} (99%) rename api_docs/{transform.json => transform.devdocs.json} (100%) rename api_docs/{triggers_actions_ui.json => triggers_actions_ui.devdocs.json} (99%) rename api_docs/{ui_actions.json => ui_actions.devdocs.json} (100%) rename api_docs/{ui_actions_enhanced.json => ui_actions_enhanced.devdocs.json} (99%) rename api_docs/{url_forwarding.json => url_forwarding.devdocs.json} (100%) rename api_docs/{usage_collection.json => usage_collection.devdocs.json} (100%) rename api_docs/{vis_default_editor.json => vis_default_editor.devdocs.json} (99%) rename api_docs/{vis_type_heatmap.json => vis_type_heatmap.devdocs.json} (100%) rename api_docs/{vis_type_pie.json => vis_type_pie.devdocs.json} (100%) rename api_docs/{vis_type_table.json => vis_type_table.devdocs.json} (100%) rename api_docs/{vis_type_timelion.json => vis_type_timelion.devdocs.json} (100%) rename api_docs/{vis_type_timeseries.json => vis_type_timeseries.devdocs.json} (100%) rename api_docs/{vis_type_vega.json => vis_type_vega.devdocs.json} (100%) rename api_docs/{vis_type_vislib.json => vis_type_vislib.devdocs.json} (100%) rename api_docs/{vis_type_xy.json => vis_type_xy.devdocs.json} (100%) rename api_docs/{visualizations.json => visualizations.devdocs.json} (91%) delete mode 100644 api_docs/visualize.json delete mode 100644 api_docs/visualize.mdx rename packages/kbn-docs-utils/src/api_docs/tests/snapshots/{plugin_a.json => plugin_a.devdocs.json} (99%) rename packages/kbn-docs-utils/src/api_docs/tests/snapshots/{plugin_a_foo.json => plugin_a_foo.devdocs.json} (100%) rename packages/kbn-docs-utils/src/api_docs/tests/snapshots/{plugin_b.json => plugin_b.devdocs.json} (100%) 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 01f15db6c0893..29a799f020c22 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 dc7d971d016d4..ca0c4b4e91795 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 bfad2205ddfd2..a60b799dce6c9 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 dd236a0e39110..871a2886848a5 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 b1a48fb8b1656..a4c78c1249832 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 a6e2b5f8c8216..5059a88c10b7d 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 118cc005d2290..b3a77bd237b87 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 403d6671aad18..8b4afe1b8cf6a 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 9203b5e611339..00ba4298f1238 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 18f7c86e644fd..bae6975abdd42 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 c2f0322f6d680..0c0cbd84cc3fb 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 1892cdac8c0ee..96c915f5997ed 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 efa090cff2994..c14a971309e1c 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 d86fd08d0f09a..6c483ae1dd390 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 f97c82618c74f..d7301cbcf6258 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 db618e32862a0..f8539c484752f 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 882a450230f54..57243eaf987dd 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 9edf7bbb1393f..321438d49b035 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 30a26761208ec..193b728e1c088 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 25a75888d0d15..56599e1c86938 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 446ae5f2f6415..4ed582a92dd17 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 e7a3f7dc985a1..da58151d20c5b 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 24372b551f763..cefc422199b1e 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 f9d9de525b9c0..d843587611869 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 87c2d3e6f3d99..0016a07fe626d 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 47e16e70e60ca..1d7e09bd36c08 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 b65358ee19642..87877a1bcfc61 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 f828151690529..f570c458d2033 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 2e9931b72f816..ef0e1dcb9c7a1 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 a8f087c8c321a..e650df9b484a8 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 aa786ceb8715d..f548e7dc7209d 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 f645a9721d37e..327b8ee8b1dda 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 5598f6e478f86..4089aa809e3b2 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 b2f8576f9353c..d20980b9ea85d 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 82db9a16235d0..2ef8e0569b7dc 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 e6206e6076063..208632d9231a2 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 98d99fe759424..4c5ab246646c4 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 b1e7c2e53c0f7..5d9476dbf6c00 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 41d00bfe300d6..c108e886a9544 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 41f778ab4b750..ac618b8e72899 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 df099cec286e8..fcbe3589df7f2 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 0000000000000..8bdc2a75d8605 --- /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 0d96692e2ba3e..0000000000000 --- 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 fee566e17fe12..2da419a8b561f 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 6e6f9a653d06c..1aab530e2ebe4 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 838a9c2868b2e..16d5e67ab1cde 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 3f73439370a26..95b90a3248ef1 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 a3d11bf30fac4..ed763c223de62 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 5bf63f70393f6..d0de6f5358f56 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 8c17d89db41d4..ff32bcd269521 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 0a6589a5bbed0..13d610d79d740 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 42311baf4e4a0..3f01a77bfec81 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 e3ecf2ad81190..552c90307b02b 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 31953010f7716..54fbc95643d7d 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 f9a6e27d13844..ec2eaf45caf04 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 0f977ccddb109..e2fd4ce7a12c6 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 b74a520142545..ccf99a399585e 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 1b0aa6fa9b34d..8c428f4ebe563 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 4225376095039..420184f8b75fe 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 724bbffc3a84e..d62a18a552498 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 d3f4695b698d0..6093c5bfcde1a 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 9382a561374b2..d445cda2d232c 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 67167c15a236c..7d684f0bab50f 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 14a4066628a97..95160192c412c 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 634bde9393a95..0b8b2df34aa66 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 c736a3b7c69ae..f0f4f50143cf4 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 cf75e686ad424..53a3a39558ed4 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 bc5f27850fb23..72c8f7063a414 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 4c373851fa4c2..c8502e3247063 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 76dcc47168d8b..453e06676238a 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 ff6d90b6c5e1a..853b1d48f80dd 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 4f64a0a1f0189..bb5503a83a2ba 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 c75ce5befaba2..5a851d07e3756 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 7e756274c1036..0638f4ef72455 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 0000000000000..864ac45ccd775 --- /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 fed190559c098..0000000000000 --- 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 aa073546296e7..6ea39247b4a0d 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 8845a6c2e05bc..5008cff334928 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 57c85b8c4f0dd..0591712f9d6d8 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 3b25b7c0940d8..4356c36102ce6 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 0a2eb52e56322..1a3d4fb0fa88a 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 08dc94f310dfe..a45fbfd59d06f 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 7caeaf14e3425..d822b17115945 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 4ddde876aa3b2..029223ed66a2f 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 f525b7bef3dd2..ea811c16216ce 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 a81f6de1165d9..626608d0cfb12 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 e240122179f76..13dcdca6c76af 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 89e0fa09a674d..272e3880cbae1 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 187d3e585e757..0c3b8d3c23085 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 2f0acc4393f8b..66f644bc432a2 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 8cd520e8659ce..53f6c6aa3d186 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 6f5dd21d46094..79837dd6dc09e 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 5cbf64e48fcfa..dace3da180009 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 39615f18f2628..c783e172c8d72 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 2e2937368b278..383df777d15f6 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 1a7eef06313ce..3fa38a34b0680 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 9c4d23a526ffc..d6ef1ea0186fd 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 441ee558c5aa4..3dc3647259db3 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 529541c63be1a..7f31eaecf1852 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 76de61e81db1a..3289527637504 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 064252914ae85..1710d4b84a9f3 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 b7557c69234aa..6517e3f9e3ca4 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 da14ca58214f7..eac92f395ff74 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 c329aeb2e36b1..88afa3fcd145b 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 36933bdda9952..30444e4f5904a 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 49d02964e42b4..49da6d668b667 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 654d1fc5b9037..8aa52cf619028 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 19d302bb306f5..94fd0897fe1a3 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 b7af72f41f1ff..0eac86c5269a4 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 ca7f28de82b58..da1ef28891025 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 5b2dc28bdcee7..574eac0a280ca 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 b3d493ffa6064..a7cc25ba000f7 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 a177fca031847..b92f3b66bda46 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 df62501231b77..35835226ad936 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 ed3727e084618..9981ad9f47da3 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 a358b75b98434..d819c24ae99ea 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 cc72c40852b4b..10a03b103e60d 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 18ebfd03a0f36..3fde9cc524785 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 b4ac7f4ca44c9..1389e78737356 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 bf60cb3346bfc..700b6c6ddb37f 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 c06c3814ca1a5..d4a630ab7d377 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 9d2cc527b4118..7e99ef4f4558a 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 54108a2c88b78..2235ccc9f5276 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 7a85565573e3a..6b2b4ec1dac3e 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 f4a7566f0fae3..689fdfd6c3fbe 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 a7a7adcc2c7b8..7d525a716f3d3 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 6eb1a50c725b9..b006ed07c5c1a 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 61fd6cc3ae940..514c53211b67b 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 15eae08f44944..79917150b1746 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 93c6d9d1f1eb5..e0cb314cd4d49 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 de5d035dd07f0..b6ede38c26ab0 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 602c776fa0555..465bdbc7457e9 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 552ec45aea7df..a4fdbae577e2f 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 bf8d2265386d9..55303e48b54d5 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 850ca02524159..5467f2659dacd 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 7f0a9b2d9f5f2..93e625706da95 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 0294a7d30c475..f36659b79489f 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 4cade8df1ea4f..170693037e662 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 90571640338bc..cb268a2f9cb51 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 369a49d284d76..f0226566129a5 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 527cf88d18f6c..e376dc0f468ac 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 2e34226376a9c..e4e4064530f77 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 267bfc30f4806..d534e0b3a71c7 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 cbf28200d3be1..07f4243d68ab9 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 0764b51821f45..3eede9aa54719 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 588d8fe361110..1a7f7fc353b63 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 0000000000000..48f661a45c775 --- /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 0000000000000..c64f599e230c3 --- /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 9eeb100070624..9085cf9e0c844 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 8c91613a58e32..31c917591dcb7 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 d3c059310dbc9..0b87d40a82d18 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 baacb79e5c55b..c253bc77f6a6b 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 130ae3a5823e4..58904fbd011e2 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 f229a6e45b9c7..18bb3b4a35d4a 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 7016cda971099..4662b67b91eb1 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 1e8cd05d235ea..a5401a4ff7d80 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 fc2a2fbf269bb..55e8d55499443 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 5d0538df1e6b3..699fff49bff0f 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 f882f53193f14..f2ad08dfd5cc6 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 a433dbc7c9141..0f8d44f2f39f7 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 69e6a1c5007b9..1198fe6807582 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 995ce647f847d..132246088013b 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 1901fd9dc9b0a..4285a72430c91 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 6027197c78810..10313181e7a87 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 6f494854f4c5b..52c4b8e9aa962 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 c33515f07323f..b6e7fd89d7fa2 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 bb0459e3b82cb..ce36232ca4ed2 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 cd14ac2fcae38..8ba74b9918d64 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 30a838d84f196..6dd3e841eaa9c 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 bb2bc6f93729f..8c762bdbe4f39 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 64105f354e5e3..0bf283918e755 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 5283f208c7969..260f6222fb20e 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 4eac90edd643f..a96ab53a3426f 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 a22a769b4f4a7..720848946de31 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 07838740d1e33..003f17186d897 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 308b51bfea0e6..231e72cb1a2bd 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 1549a0cda7979..1b9dc72f0c156 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 587541a385749..71a3c3ad64f55 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 d038fa59ee9a3..2477db7d36fa7 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 52640ac208289..d90f46c200913 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 5bb6491ca8ae4..455c184064d88 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 26fd58a52f38a..764acfed74116 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 7749853e02328..486bc5dcb32db 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 14f7a47644693..38a10b3ed9dd0 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 7cb6bf4fcf84f..2ab83d6b7c70f 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 d119e0185c631..f8c41be72aa9f 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 70812ec5ecd91..0915109310ac4 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 6c8f3f3376bca..b9adc74de4d46 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 5fc7d039bebf5..dae2d6ffb190a 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 0078bbef46c62..8a206d05b61e7 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 67e3efdba1b40..f99cbc11cffce 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 c9905f7b00597..5d0479487ea31 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 0b7bcdbab5b20..de7333a2f140e 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 960f72582725a..16b6a646e0cd8 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 329c0738d798c..0a3b46a31d9ae 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 429d81eb1b865..5a0d3abdd9ab0 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 6c016e2f94f15..537377bc339e7 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 99e66fbe4914b..02f4a118e21bd 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 66592a05234d0..1ba7557881b9a 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 68a48e8c6f86e..a47a10d8c4d52 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 604bf19c24608..58935cb956d5e 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 896a9b72875c4..fde07adc1a8f1 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 d49c1f6e4a448..6153e6643994e 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 1c18673b2e47c..c16e7c3ee72f4 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 8ddb1cc9167a1..b7b63200e9705 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 740263db2b051..c3d99ae66d8a5 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 cd22a406eb8b1..50b88186a1368 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 74673ddfa539c..eb62f916a1f72 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 6040f09f52ec1..1fda3e1be1d86 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 a56df53b137a0..5de467cede62a 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 13f2ff13cb655..99f0fc03c8e03 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 b48a1f17e1bcc..1aee905a09db3 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 c0b592e5db830..a729f89d17332 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 3193308f9544c..aaadb0375ca46 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 e3ff7fa1c5dad..dcb2fceedf8b2 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 4e8452c6dbca9..905eb1592c5ce 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 64b2210e4f64f..aff1f9c6b0f58 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 0d78abbc1ae7c..ffb35430700ef 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 a7d9dfff60bc7..3b0d84d8d7efc 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 41f95f7367cb8..2e1df86a1e749 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 0a3ac122b235e..861d73e29126c 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 aba6a100c0f1b..5232cffff0b44 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 2a417f3f945bc..f073badd0ffd1 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 db07ab012ab87..d7adf220a3800 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 c0b0d2d78a5f5..feabafde5a751 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 5f752866a9cf8..b65ec9a34e2cd 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 8104d30e52b80..982994e396e42 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 3283bc2944cd2..d8458d6d974f8 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 fa04cb7c600d1..e8c6c39d97e68 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 25b8c1d02ecde..6a8cffb34b126 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 2bd319848a50e..79b0594c646d3 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 5a9e22dc8efb6..69ac6f406be0f 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 46fa87dff03f9..00e88ef0d2723 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 e3dd5526c261d..d199ce3c552c1 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 033c38ac831b2..0000000000000 --- 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 f1b6e78e482c0..0000000000000 --- 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/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 fabe55d93c8ef..562296418bbbe 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 a3b3cdcbe28d0..ff977517cb5a7 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 f6a7893fe5998..9d3b2f5d3cf99 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 13754ad452b01..6d7f42982b89b 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 afc42a59ee96d..c86fbed82c23c 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'; From 2ba9dacd35546961eff92734c764188ff4069dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20C=C3=B4t=C3=A9?= Date: Thu, 27 Jan 2022 09:55:23 -0500 Subject: [PATCH 17/45] Re-enable skipped long running rule tests (#123234) * Re-enable skipped tests * Attempt at fixing flakiness * Remove .only(...) * Lint fixes Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../builtin_alert_types/long_running/rule.ts | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) 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 7ed78a793901c..580b058d3ab1e 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` From badfaab907eb5516af343c2fb7706e31be11fa56 Mon Sep 17 00:00:00 2001 From: Faisal Kanout Date: Thu, 27 Jan 2022 18:05:56 +0300 Subject: [PATCH 18/45] Remove getDuration and use formatDurationFromTimeUnitChar (#123920) --- .../log_threshold/reason_formatters.ts | 25 ++++--------------- 1 file changed, 5 insertions(+), 20 deletions(-) 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 9fe0d73569a89..25f8ca50e995d 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), }, }); From be5bc27f0fb8259bb39e180d59e4e4a15de10572 Mon Sep 17 00:00:00 2001 From: Khristinin Nikita Date: Thu, 27 Jan 2022 16:08:25 +0100 Subject: [PATCH 19/45] Change default threat match query (#123590) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- x-pack/plugins/security_solution/common/constants.ts | 2 +- .../integration/detection_rules/indicator_match_rule.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/common/constants.ts b/x-pack/plugins/security_solution/common/constants.ts index 23bf41c3d91ee..12df1874754f0 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/integration/detection_rules/indicator_match_rule.spec.ts b/x-pack/plugins/security_solution/cypress/integration/detection_rules/indicator_match_rule.spec.ts index cef5660d446e7..aede7552ed53b 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 @@ -113,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', () => { From 3d8697d967f0b2ddcd1ab3b3693134d825fc5f2b Mon Sep 17 00:00:00 2001 From: Nicolas Chaulet Date: Thu, 27 Jan 2022 10:13:38 -0500 Subject: [PATCH 20/45] [Fleet] Use admin user for jest integration tests (#123871) --- .../reset_preconfiguration.test.ts | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) 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 7db9903f421e7..87203ad4ff0a0 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', From 7dedc8871cb426660d02a559320106f91c4b9a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Thu, 27 Jan 2022 17:08:25 +0100 Subject: [PATCH 21/45] [Fixtures/Newsfeed] Server-side importing public types (#123923) --- test/common/fixtures/plugins/newsfeed/server/index.ts | 2 +- test/common/fixtures/plugins/newsfeed/server/plugin.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/common/fixtures/plugins/newsfeed/server/index.ts b/test/common/fixtures/plugins/newsfeed/server/index.ts index 17ac12bcd7284..8077c979014d9 100644 --- a/test/common/fixtures/plugins/newsfeed/server/index.ts +++ b/test/common/fixtures/plugins/newsfeed/server/index.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { PluginInitializerContext } from 'kibana/public'; +import type { PluginInitializerContext } from 'kibana/server'; import { NewsFeedSimulatorPlugin } from './plugin'; export function plugin(initializerContext: PluginInitializerContext) { diff --git a/test/common/fixtures/plugins/newsfeed/server/plugin.ts b/test/common/fixtures/plugins/newsfeed/server/plugin.ts index 49ffa464efac9..a592a832532ce 100644 --- a/test/common/fixtures/plugins/newsfeed/server/plugin.ts +++ b/test/common/fixtures/plugins/newsfeed/server/plugin.ts @@ -6,8 +6,7 @@ * Side Public License, v 1. */ -import { CoreSetup, Plugin } from 'kibana/server'; -import { PluginInitializerContext } from 'kibana/public'; +import type { CoreSetup, Plugin, PluginInitializerContext } from 'kibana/server'; export class NewsFeedSimulatorPlugin implements Plugin { constructor(private readonly initializerContext: PluginInitializerContext) {} From bb37d9904b4022a3cdaba04d2330915936a72fdd Mon Sep 17 00:00:00 2001 From: Kevin Logan <56395104+kevinlog@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:34:18 -0500 Subject: [PATCH 22/45] [Security Solution] Add advanced options for Endpoint in 8.1 (#123932) --- .../policy/models/advanced_policy_schema.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/models/advanced_policy_schema.ts b/x-pack/plugins/security_solution/public/management/pages/policy/models/advanced_policy_schema.ts index 2a69d6ba4a3ab..c7ba1a5c30c22 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/models/advanced_policy_schema.ts +++ b/x-pack/plugins/security_solution/public/management/pages/policy/models/advanced_policy_schema.ts @@ -820,4 +820,24 @@ export const AdvancedPolicySchema: AdvancedPolicySchemaType[] = [ } ), }, + { + key: 'windows.advanced.events.etw', + first_supported_version: '8.1', + documentation: i18n.translate( + 'xpack.securitySolution.endpoint.policy.advanced.windows.advanced.events.etw', + { + defaultMessage: 'Enable collection of ETW events. Default: true', + } + ), + }, + { + key: 'windows.advanced.diagnostic.rollback_telemetry_enabled', + first_supported_version: '8.1', + documentation: i18n.translate( + 'xpack.securitySolution.endpoint.policy.advanced.windows.advanced.diagnostic.rollback_telemetry_enabled', + { + defaultMessage: 'Enable diagnostic rollback telemetry. Default: true', + } + ), + }, ]; From 3c6e36c25e895058b675831d5069d16440c9a868 Mon Sep 17 00:00:00 2001 From: Ying Mao Date: Thu, 27 Jan 2022 11:51:56 -0500 Subject: [PATCH 23/45] [Alerting] Add alerting rule execution uuid to action event log documents (#123653) * Passing alerting execution uuid to action executor to persist in action event log documents * Unit tests * Unit tests * Fixing types check * Fixing types check * Adding functional tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../actions/server/actions_client.test.ts | 4 + .../server/create_execute_function.test.ts | 12 +++ .../actions/server/create_execute_function.ts | 7 +- .../server/lib/action_executor.test.ts | 47 +++++++++++- .../actions/server/lib/action_executor.ts | 6 ++ ...ate_action_event_log_record_object.test.ts | 24 ++++++ .../create_action_event_log_record_object.ts | 14 +++- .../server/lib/task_runner_factory.test.ts | 22 ++++++ .../actions/server/lib/task_runner_factory.ts | 6 +- .../server/saved_objects/mappings.json | 3 + x-pack/plugins/actions/server/types.ts | 1 + .../create_execution_handler.test.ts | 4 + .../task_runner/create_execution_handler.ts | 1 + .../server/task_runner/task_runner.test.ts | 4 + .../fixtures/plugins/alerts/server/routes.ts | 1 + .../spaces_only/tests/alerting/event_log.ts | 74 ++++++++++++++++--- 16 files changed, 213 insertions(+), 17 deletions(-) diff --git a/x-pack/plugins/actions/server/actions_client.test.ts b/x-pack/plugins/actions/server/actions_client.test.ts index 868b8be7a041c..3565a978b5f07 100644 --- a/x-pack/plugins/actions/server/actions_client.test.ts +++ b/x-pack/plugins/actions/server/actions_client.test.ts @@ -1888,6 +1888,7 @@ describe('enqueueExecution()', () => { id: uuid.v4(), params: {}, spaceId: 'default', + executionId: '123abc', apiKey: null, }); expect(authorization.ensureAuthorized).toHaveBeenCalledWith('execute'); @@ -1906,6 +1907,7 @@ describe('enqueueExecution()', () => { id: uuid.v4(), params: {}, spaceId: 'default', + executionId: '123abc', apiKey: null, }) ).rejects.toMatchInlineSnapshot(`[Error: Unauthorized to execute all actions]`); @@ -1922,6 +1924,7 @@ describe('enqueueExecution()', () => { id: uuid.v4(), params: {}, spaceId: 'default', + executionId: '123abc', apiKey: null, }); @@ -1937,6 +1940,7 @@ describe('enqueueExecution()', () => { id: uuid.v4(), params: { baz: false }, spaceId: 'default', + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }; await expect(actionsClient.enqueueExecution(opts)).resolves.toMatchInlineSnapshot(`undefined`); diff --git a/x-pack/plugins/actions/server/create_execute_function.test.ts b/x-pack/plugins/actions/server/create_execute_function.test.ts index f31916458e59c..916dd9ed02b9f 100644 --- a/x-pack/plugins/actions/server/create_execute_function.test.ts +++ b/x-pack/plugins/actions/server/create_execute_function.test.ts @@ -49,6 +49,7 @@ describe('execute()', () => { id: '123', params: { baz: false }, spaceId: 'default', + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), source: asHttpRequestExecutionSource(request), }); @@ -74,6 +75,7 @@ describe('execute()', () => { { actionId: '123', params: { baz: false }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, { @@ -119,6 +121,7 @@ describe('execute()', () => { spaceId: 'default', apiKey: Buffer.from('123:abc').toString('base64'), source: asHttpRequestExecutionSource(request), + executionId: '123abc', relatedSavedObjects: [ { id: 'some-id', @@ -134,6 +137,7 @@ describe('execute()', () => { actionId: '123', params: { baz: false }, apiKey: Buffer.from('123:abc').toString('base64'), + executionId: '123abc', relatedSavedObjects: [ { id: 'related_some-type_0', @@ -196,6 +200,7 @@ describe('execute()', () => { id: '123', params: { baz: false }, spaceId: 'default', + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), source: asSavedObjectExecutionSource(source), }); @@ -221,6 +226,7 @@ describe('execute()', () => { { actionId: '123', params: { baz: false }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, { @@ -273,6 +279,7 @@ describe('execute()', () => { spaceId: 'default', apiKey: Buffer.from('123:abc').toString('base64'), source: asSavedObjectExecutionSource(source), + executionId: '123abc', relatedSavedObjects: [ { id: 'some-id', @@ -305,6 +312,7 @@ describe('execute()', () => { actionId: '123', params: { baz: false }, apiKey: Buffer.from('123:abc').toString('base64'), + executionId: '123abc', relatedSavedObjects: [ { id: 'related_some-type_0', @@ -343,6 +351,7 @@ describe('execute()', () => { id: '123', params: { baz: false }, spaceId: 'default', + executionId: '123abc', apiKey: null, }) ).rejects.toThrowErrorMatchingInlineSnapshot( @@ -372,6 +381,7 @@ describe('execute()', () => { id: '123', params: { baz: false }, spaceId: 'default', + executionId: '123abc', apiKey: null, }) ).rejects.toThrowErrorMatchingInlineSnapshot( @@ -404,6 +414,7 @@ describe('execute()', () => { id: '123', params: { baz: false }, spaceId: 'default', + executionId: '123abc', apiKey: null, }) ).rejects.toThrowErrorMatchingInlineSnapshot(`"Fail"`); @@ -446,6 +457,7 @@ describe('execute()', () => { id: '123', params: { baz: false }, spaceId: 'default', + executionId: '123abc', apiKey: null, }); diff --git a/x-pack/plugins/actions/server/create_execute_function.ts b/x-pack/plugins/actions/server/create_execute_function.ts index de15a1e0ca446..c071be4759de4 100644 --- a/x-pack/plugins/actions/server/create_execute_function.ts +++ b/x-pack/plugins/actions/server/create_execute_function.ts @@ -29,6 +29,7 @@ export interface ExecuteOptions extends Pick { return async function execute( unsecuredSavedObjectsClient: SavedObjectsClientContract, - { id, params, spaceId, source, apiKey, relatedSavedObjects }: ExecuteOptions + { id, params, spaceId, source, apiKey, executionId, relatedSavedObjects }: ExecuteOptions ) { if (!isESOCanEncrypt) { throw new Error( @@ -87,6 +88,7 @@ export function createExecutionEnqueuerFunction({ actionId: id, params, apiKey, + executionId, relatedSavedObjects: relatedSavedObjectWithRefs, }, { @@ -113,7 +115,7 @@ export function createEphemeralExecutionEnqueuerFunction({ }: CreateExecuteFunctionOptions): ExecutionEnqueuer { return async function execute( unsecuredSavedObjectsClient: SavedObjectsClientContract, - { id, params, spaceId, source, apiKey }: ExecuteOptions + { id, params, spaceId, source, apiKey, executionId }: ExecuteOptions ): Promise { const { action } = await getAction(unsecuredSavedObjectsClient, preconfiguredActions, id); validateCanActionBeUsed(action); @@ -131,6 +133,7 @@ export function createEphemeralExecutionEnqueuerFunction({ // eslint-disable-next-line @typescript-eslint/no-explicit-any params: params as Record, ...(apiKey ? { apiKey } : {}), + ...(executionId ? { executionId } : {}), }, ...executionSourceAsSavedObjectReferences(source), }; diff --git a/x-pack/plugins/actions/server/lib/action_executor.test.ts b/x-pack/plugins/actions/server/lib/action_executor.test.ts index 1d678c244c1b0..9b7f9a97e58ec 100644 --- a/x-pack/plugins/actions/server/lib/action_executor.test.ts +++ b/x-pack/plugins/actions/server/lib/action_executor.test.ts @@ -30,6 +30,7 @@ const executeParams = { params: { foo: true, }, + executionId: '123abc', request: {} as KibanaRequest, }; @@ -118,6 +119,13 @@ test('successfully executes', async () => { "kind": "action", }, "kibana": Object { + "alert": Object { + "rule": Object { + "execution": Object { + "uuid": "123abc", + }, + }, + }, "saved_objects": Array [ Object { "id": "1", @@ -139,6 +147,13 @@ test('successfully executes', async () => { "outcome": "success", }, "kibana": Object { + "alert": Object { + "rule": Object { + "execution": Object { + "uuid": "123abc", + }, + }, + }, "saved_objects": Array [ Object { "id": "1", @@ -518,15 +533,24 @@ test('writes to event log for execute timeout', async () => { await actionExecutor.logCancellation({ actionId: 'action1', + executionId: '123abc', relatedSavedObjects: [], request: {} as KibanaRequest, }); expect(eventLogger.logEvent).toHaveBeenCalledTimes(1); - expect(eventLogger.logEvent.mock.calls[0][0]).toMatchObject({ + expect(eventLogger.logEvent).toHaveBeenNthCalledWith(1, { event: { action: 'execute-timeout', + kind: 'action', }, kibana: { + alert: { + rule: { + execution: { + uuid: '123abc', + }, + }, + }, saved_objects: [ { rel: 'primary', @@ -549,11 +573,19 @@ test('writes to event log for execute and execute start', async () => { }); await actionExecutor.execute(executeParams); expect(eventLogger.logEvent).toHaveBeenCalledTimes(2); - expect(eventLogger.logEvent.mock.calls[0][0]).toMatchObject({ + expect(eventLogger.logEvent).toHaveBeenNthCalledWith(1, { event: { action: 'execute-start', + kind: 'action', }, kibana: { + alert: { + rule: { + execution: { + uuid: '123abc', + }, + }, + }, saved_objects: [ { rel: 'primary', @@ -566,11 +598,20 @@ test('writes to event log for execute and execute start', async () => { }, message: 'action started: test:1: action-1', }); - expect(eventLogger.logEvent.mock.calls[1][0]).toMatchObject({ + expect(eventLogger.logEvent).toHaveBeenNthCalledWith(2, { event: { action: 'execute', + kind: 'action', + outcome: 'success', }, kibana: { + alert: { + rule: { + execution: { + uuid: '123abc', + }, + }, + }, saved_objects: [ { rel: 'primary', diff --git a/x-pack/plugins/actions/server/lib/action_executor.ts b/x-pack/plugins/actions/server/lib/action_executor.ts index 9737630628823..0efdc4f8f082f 100644 --- a/x-pack/plugins/actions/server/lib/action_executor.ts +++ b/x-pack/plugins/actions/server/lib/action_executor.ts @@ -60,6 +60,7 @@ export interface ExecuteOptions { params: Record; source?: ActionExecutionSource; taskInfo?: TaskInfo; + executionId?: string; relatedSavedObjects?: RelatedSavedObjects; } @@ -90,6 +91,7 @@ export class ActionExecutor { source, isEphemeral, taskInfo, + executionId, relatedSavedObjects, }: ExecuteOptions): Promise> { if (!this.isInitialized) { @@ -187,6 +189,7 @@ export class ActionExecutor { action: EVENT_LOG_ACTIONS.execute, ...namespace, ...task, + executionId, savedObjects: [ { type: 'action', @@ -283,11 +286,13 @@ export class ActionExecutor { request, relatedSavedObjects, source, + executionId, taskInfo, }: { actionId: string; request: KibanaRequest; taskInfo?: TaskInfo; + executionId?: string; relatedSavedObjects: RelatedSavedObjects; source?: ActionExecutionSource; }) { @@ -327,6 +332,7 @@ export class ActionExecutor { }' execution cancelled due to timeout - exceeded default timeout of "5m"`, ...namespace, ...task, + executionId, savedObjects: [ { type: 'action', diff --git a/x-pack/plugins/actions/server/lib/create_action_event_log_record_object.test.ts b/x-pack/plugins/actions/server/lib/create_action_event_log_record_object.test.ts index ee58f8a01488c..bea2a2680bb83 100644 --- a/x-pack/plugins/actions/server/lib/create_action_event_log_record_object.test.ts +++ b/x-pack/plugins/actions/server/lib/create_action_event_log_record_object.test.ts @@ -18,6 +18,7 @@ describe('createActionEventLogRecordObject', () => { scheduled: '1970-01-01T00:00:00.000Z', scheduleDelay: 0, }, + executionId: '123abc', savedObjects: [ { id: '1', @@ -34,6 +35,13 @@ describe('createActionEventLogRecordObject', () => { kind: 'action', }, kibana: { + alert: { + rule: { + execution: { + uuid: '123abc', + }, + }, + }, saved_objects: [ { id: '1', @@ -58,6 +66,7 @@ describe('createActionEventLogRecordObject', () => { action: 'execute', message: 'action execution start', namespace: 'default', + executionId: '123abc', savedObjects: [ { id: '2', @@ -73,6 +82,13 @@ describe('createActionEventLogRecordObject', () => { kind: 'action', }, kibana: { + alert: { + rule: { + execution: { + uuid: '123abc', + }, + }, + }, saved_objects: [ { id: '2', @@ -95,6 +111,7 @@ describe('createActionEventLogRecordObject', () => { task: { scheduled: '1970-01-01T00:00:00.000Z', }, + executionId: '123abc', savedObjects: [ { id: '1', @@ -110,6 +127,13 @@ describe('createActionEventLogRecordObject', () => { kind: 'action', }, kibana: { + alert: { + rule: { + execution: { + uuid: '123abc', + }, + }, + }, saved_objects: [ { id: '1', diff --git a/x-pack/plugins/actions/server/lib/create_action_event_log_record_object.ts b/x-pack/plugins/actions/server/lib/create_action_event_log_record_object.ts index 1a1c5e9e6b3aa..5555fe8ada325 100644 --- a/x-pack/plugins/actions/server/lib/create_action_event_log_record_object.ts +++ b/x-pack/plugins/actions/server/lib/create_action_event_log_record_object.ts @@ -20,6 +20,7 @@ interface CreateActionEventLogRecordParams { scheduled?: string; scheduleDelay?: number; }; + executionId?: string; savedObjects: Array<{ type: string; id: string; @@ -29,7 +30,7 @@ interface CreateActionEventLogRecordParams { } export function createActionEventLogRecordObject(params: CreateActionEventLogRecordParams): Event { - const { action, message, task, namespace } = params; + const { action, message, task, namespace, executionId } = params; const event: Event = { ...(params.timestamp ? { '@timestamp': params.timestamp } : {}), @@ -38,6 +39,17 @@ export function createActionEventLogRecordObject(params: CreateActionEventLogRec kind: 'action', }, kibana: { + ...(executionId + ? { + alert: { + rule: { + execution: { + uuid: executionId, + }, + }, + }, + } + : {}), saved_objects: params.savedObjects.map((so) => ({ ...(so.relation ? { rel: so.relation } : {}), type: so.type, diff --git a/x-pack/plugins/actions/server/lib/task_runner_factory.test.ts b/x-pack/plugins/actions/server/lib/task_runner_factory.test.ts index 0ea6b5316fb82..ab4d50338684b 100644 --- a/x-pack/plugins/actions/server/lib/task_runner_factory.test.ts +++ b/x-pack/plugins/actions/server/lib/task_runner_factory.test.ts @@ -111,6 +111,7 @@ test('executes the task by calling the executor with proper parameters, using gi attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [], @@ -131,6 +132,7 @@ test('executes the task by calling the executor with proper parameters, using gi isEphemeral: false, params: { baz: true }, relatedSavedObjects: [], + executionId: '123abc', request: expect.objectContaining({ headers: { // base64 encoded "123:abc" @@ -163,6 +165,7 @@ test('executes the task by calling the executor with proper parameters, using st attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ @@ -188,6 +191,7 @@ test('executes the task by calling the executor with proper parameters, using st actionId: '9', isEphemeral: false, params: { baz: true }, + executionId: '123abc', relatedSavedObjects: [], request: expect.objectContaining({ headers: { @@ -221,6 +225,7 @@ test('cleans up action_task_params object', async () => { attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ @@ -244,6 +249,7 @@ test('task runner should implement CancellableTask cancel method with logging wa attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ @@ -281,6 +287,7 @@ test('runs successfully when cleanup fails and logs the error', async () => { attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ @@ -312,6 +319,7 @@ test('throws an error with suggested retry logic when return status is error', a attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ @@ -353,6 +361,7 @@ test('uses API key when provided', async () => { attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ @@ -370,6 +379,7 @@ test('uses API key when provided', async () => { actionId: '2', isEphemeral: false, params: { baz: true }, + executionId: '123abc', relatedSavedObjects: [], request: expect.objectContaining({ headers: { @@ -403,6 +413,7 @@ test('uses relatedSavedObjects merged with references when provided', async () = attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), relatedSavedObjects: [{ id: 'related_some-type_0', type: 'some-type' }], }, @@ -426,6 +437,7 @@ test('uses relatedSavedObjects merged with references when provided', async () = actionId: '2', isEphemeral: false, params: { baz: true }, + executionId: '123abc', relatedSavedObjects: [ { id: 'some-id', @@ -458,6 +470,7 @@ test('uses relatedSavedObjects as is when references are empty', async () => { attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), relatedSavedObjects: [{ id: 'abc', type: 'some-type', namespace: 'yo' }], }, @@ -476,6 +489,7 @@ test('uses relatedSavedObjects as is when references are empty', async () => { actionId: '2', isEphemeral: false, params: { baz: true }, + executionId: '123abc', relatedSavedObjects: [ { id: 'abc', @@ -509,6 +523,7 @@ test('sanitizes invalid relatedSavedObjects when provided', async () => { attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), relatedSavedObjects: [{ Xid: 'related_some-type_0', type: 'some-type' }], }, @@ -537,6 +552,7 @@ test('sanitizes invalid relatedSavedObjects when provided', async () => { authorization: 'ApiKey MTIzOmFiYw==', }, }), + executionId: '123abc', relatedSavedObjects: [], taskInfo: { scheduled: new Date(), @@ -558,6 +574,7 @@ test(`doesn't use API key when not provided`, async () => { attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', }, references: [ { @@ -574,6 +591,7 @@ test(`doesn't use API key when not provided`, async () => { actionId: '2', isEphemeral: false, params: { baz: true }, + executionId: '123abc', relatedSavedObjects: [], request: expect.objectContaining({ headers: {}, @@ -608,6 +626,7 @@ test(`throws an error when license doesn't support the action type`, async () => attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ @@ -646,6 +665,7 @@ test(`treats errors as errors if the task is retryable`, async () => { attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ @@ -693,6 +713,7 @@ test(`treats errors as successes if the task is not retryable`, async () => { attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ @@ -737,6 +758,7 @@ test('treats errors as errors if the error is thrown instead of returned', async attributes: { actionId: '2', params: { baz: true }, + executionId: '123abc', apiKey: Buffer.from('123:abc').toString('base64'), }, references: [ diff --git a/x-pack/plugins/actions/server/lib/task_runner_factory.ts b/x-pack/plugins/actions/server/lib/task_runner_factory.ts index f3fdf627e08ff..99aead5a73a40 100644 --- a/x-pack/plugins/actions/server/lib/task_runner_factory.ts +++ b/x-pack/plugins/actions/server/lib/task_runner_factory.ts @@ -86,7 +86,7 @@ export class TaskRunnerFactory { const { spaceId } = actionTaskExecutorParams; const { - attributes: { actionId, params, apiKey, relatedSavedObjects }, + attributes: { actionId, params, apiKey, executionId, relatedSavedObjects }, references, } = await getActionTaskParams( actionTaskExecutorParams, @@ -114,6 +114,7 @@ export class TaskRunnerFactory { request, ...getSourceFromReferences(references), taskInfo, + executionId, relatedSavedObjects: validatedRelatedSavedObjects(logger, relatedSavedObjects), }); } catch (e) { @@ -178,7 +179,7 @@ export class TaskRunnerFactory { const { spaceId } = actionTaskExecutorParams; const { - attributes: { actionId, apiKey, relatedSavedObjects }, + attributes: { actionId, apiKey, executionId, relatedSavedObjects }, references, } = await getActionTaskParams( actionTaskExecutorParams, @@ -193,6 +194,7 @@ export class TaskRunnerFactory { await actionExecutor.logCancellation({ actionId, request, + executionId, relatedSavedObjects: (relatedSavedObjects || []) as RelatedSavedObjects, ...getSourceFromReferences(references), }); diff --git a/x-pack/plugins/actions/server/saved_objects/mappings.json b/x-pack/plugins/actions/server/saved_objects/mappings.json index a357d095d85c6..deb80c4c9798f 100644 --- a/x-pack/plugins/actions/server/saved_objects/mappings.json +++ b/x-pack/plugins/actions/server/saved_objects/mappings.json @@ -36,6 +36,9 @@ "apiKey": { "type": "binary" }, + "executionId": { + "type": "keyword" + }, "relatedSavedObjects": { "enabled": false, "type": "object" diff --git a/x-pack/plugins/actions/server/types.ts b/x-pack/plugins/actions/server/types.ts index 04159ec7b8963..1e58627cefbcc 100644 --- a/x-pack/plugins/actions/server/types.ts +++ b/x-pack/plugins/actions/server/types.ts @@ -138,6 +138,7 @@ export interface ActionTaskParams extends SavedObjectAttributes { // eslint-disable-next-line @typescript-eslint/no-explicit-any params: Record; apiKey?: string; + executionId?: string; } interface PersistedActionTaskExecutorParams { diff --git a/x-pack/plugins/alerting/server/task_runner/create_execution_handler.test.ts b/x-pack/plugins/alerting/server/task_runner/create_execution_handler.test.ts index 71ec12e29a9dd..3442216a2f1fd 100644 --- a/x-pack/plugins/alerting/server/task_runner/create_execution_handler.test.ts +++ b/x-pack/plugins/alerting/server/task_runner/create_execution_handler.test.ts @@ -134,6 +134,7 @@ test('enqueues execution per selected action', async () => { Array [ Object { "apiKey": "MTIzOmFiYw==", + "executionId": "5f6aa57d-3e22-484e-bae8-cbed868f4d28", "id": "1", "params": Object { "alertVal": "My 1 name-of-alert test1 tag-A,tag-B 2 goes here", @@ -276,6 +277,7 @@ test(`doesn't call actionsPlugin.execute for disabled actionTypes`, async () => ], spaceId: 'test1', apiKey: createExecutionHandlerParams.apiKey, + executionId: '5f6aa57d-3e22-484e-bae8-cbed868f4d28', }); }); @@ -347,6 +349,7 @@ test('context attribute gets parameterized', async () => { Array [ Object { "apiKey": "MTIzOmFiYw==", + "executionId": "5f6aa57d-3e22-484e-bae8-cbed868f4d28", "id": "1", "params": Object { "alertVal": "My 1 name-of-alert test1 tag-A,tag-B 2 goes here", @@ -388,6 +391,7 @@ test('state attribute gets parameterized', async () => { Array [ Object { "apiKey": "MTIzOmFiYw==", + "executionId": "5f6aa57d-3e22-484e-bae8-cbed868f4d28", "id": "1", "params": Object { "alertVal": "My 1 name-of-alert test1 tag-A,tag-B 2 goes here", diff --git a/x-pack/plugins/alerting/server/task_runner/create_execution_handler.ts b/x-pack/plugins/alerting/server/task_runner/create_execution_handler.ts index 58f8089890c87..84f044f4041ba 100644 --- a/x-pack/plugins/alerting/server/task_runner/create_execution_handler.ts +++ b/x-pack/plugins/alerting/server/task_runner/create_execution_handler.ts @@ -181,6 +181,7 @@ export function createExecutionHandler< id: ruleId, type: 'alert', }), + executionId, relatedSavedObjects: [ { id: ruleId, 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 30336a7d5fc48..c4fc6b0171be0 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 @@ -455,6 +455,7 @@ describe('Task Runner', () => { Array [ Object { "apiKey": "MTIzOmFiYw==", + "executionId": "5f6aa57d-3e22-484e-bae8-cbed868f4d28", "id": "1", "params": Object { "foo": true, @@ -1370,6 +1371,7 @@ describe('Task Runner', () => { Array [ Object { "apiKey": "MTIzOmFiYw==", + "executionId": "5f6aa57d-3e22-484e-bae8-cbed868f4d28", "id": "1", "params": Object { "foo": true, @@ -2003,6 +2005,7 @@ describe('Task Runner', () => { Array [ Object { "apiKey": "MTIzOmFiYw==", + "executionId": "5f6aa57d-3e22-484e-bae8-cbed868f4d28", "id": "2", "params": Object { "isResolved": true, @@ -2238,6 +2241,7 @@ describe('Task Runner', () => { Array [ Object { "apiKey": "MTIzOmFiYw==", + "executionId": "5f6aa57d-3e22-484e-bae8-cbed868f4d28", "id": "2", "params": Object { "isResolved": true, diff --git a/x-pack/test/alerting_api_integration/common/fixtures/plugins/alerts/server/routes.ts b/x-pack/test/alerting_api_integration/common/fixtures/plugins/alerts/server/routes.ts index 111ee7739a80f..ae55eff23c579 100644 --- a/x-pack/test/alerting_api_integration/common/fixtures/plugins/alerts/server/routes.ts +++ b/x-pack/test/alerting_api_integration/common/fixtures/plugins/alerts/server/routes.ts @@ -306,6 +306,7 @@ export function defineRoutes(core: CoreSetup, { logger }: { lo await actionsClient.enqueueExecution({ id: req.params.id, spaceId: spaces ? spaces.spacesService.getSpaceId(req) : 'default', + executionId: uuid.v4(), apiKey: createAPIKeyResult ? Buffer.from(`${createAPIKeyResult.id}:${createAPIKeyResult.api_key}`).toString( 'base64' diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/event_log.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/event_log.ts index 0a4a6c76f7196..1d35595cf055d 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/event_log.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/event_log.ts @@ -124,10 +124,14 @@ export default function eventLogTests({ getService }: FtrProviderContext) { // validate each event let executeCount = 0; + let currentExecutionId; + const executionIds = []; const executeStatuses = ['ok', 'active', 'active']; for (const event of events) { switch (event?.event?.action) { case 'execute-start': + currentExecutionId = event?.kibana?.alert?.rule?.execution?.uuid; + executionIds.push(currentExecutionId); validateEvent(event, { spaceId: space.id, savedObjects: [ @@ -135,6 +139,7 @@ export default function eventLogTests({ getService }: FtrProviderContext) { ], message: `rule execution start: "${alertId}"`, shouldHaveTask: true, + executionId: currentExecutionId, rule: { id: alertId, category: response.body.rule_type_id, @@ -153,6 +158,7 @@ export default function eventLogTests({ getService }: FtrProviderContext) { message: `rule executed: test.patternFiring:${alertId}: 'abc'`, status: executeStatuses[executeCount++], shouldHaveTask: true, + executionId: currentExecutionId, rule: { id: alertId, category: response.body.rule_type_id, @@ -172,6 +178,7 @@ export default function eventLogTests({ getService }: FtrProviderContext) { message: `alert: test.patternFiring:${alertId}: 'abc' instanceId: 'instance' scheduled actionGroup: 'default' action: test.noop:${createdAction.id}`, instanceId: 'instance', actionGroupId: 'default', + executionId: currentExecutionId, rule: { id: alertId, category: response.body.rule_type_id, @@ -182,16 +189,27 @@ export default function eventLogTests({ getService }: FtrProviderContext) { }); break; case 'new-instance': - validateInstanceEvent(event, `created new alert: 'instance'`, false); + validateInstanceEvent( + event, + `created new alert: 'instance'`, + false, + currentExecutionId + ); break; case 'recovered-instance': - validateInstanceEvent(event, `alert 'instance' has recovered`, true); + validateInstanceEvent( + event, + `alert 'instance' has recovered`, + true, + currentExecutionId + ); break; case 'active-instance': validateInstanceEvent( event, `active alert: 'instance' in actionGroup: 'default'`, - false + false, + currentExecutionId ); break; // this will get triggered as we add new event actions @@ -214,6 +232,10 @@ export default function eventLogTests({ getService }: FtrProviderContext) { for (const event of actionEvents) { switch (event?.event?.action) { case 'execute': + expect(event?.kibana?.alert?.rule?.execution?.uuid).not.to.be(undefined); + expect( + executionIds.indexOf(event?.kibana?.alert?.rule?.execution?.uuid) + ).to.be.greaterThan(-1); validateEvent(event, { spaceId: space.id, savedObjects: [ @@ -231,7 +253,8 @@ export default function eventLogTests({ getService }: FtrProviderContext) { function validateInstanceEvent( event: IValidatedEvent, subMessage: string, - shouldHaveEventEnd: boolean + shouldHaveEventEnd: boolean, + executionId?: string ) { validateEvent(event, { spaceId: space.id, @@ -242,6 +265,7 @@ export default function eventLogTests({ getService }: FtrProviderContext) { instanceId: 'instance', actionGroupId: 'default', shouldHaveEventEnd, + executionId, rule: { id: alertId, category: response.body.rule_type_id, @@ -335,10 +359,12 @@ export default function eventLogTests({ getService }: FtrProviderContext) { // validate each event let executeCount = 0; + let currentExecutionId; const executeStatuses = ['ok', 'active', 'active']; for (const event of events) { switch (event?.event?.action) { case 'execute-start': + currentExecutionId = event?.kibana?.alert?.rule?.execution?.uuid; validateEvent(event, { spaceId: space.id, savedObjects: [ @@ -346,6 +372,7 @@ export default function eventLogTests({ getService }: FtrProviderContext) { ], message: `rule execution start: "${alertId}"`, shouldHaveTask: true, + executionId: currentExecutionId, rule: { id: alertId, category: response.body.rule_type_id, @@ -364,6 +391,7 @@ export default function eventLogTests({ getService }: FtrProviderContext) { message: `rule executed: test.patternFiring:${alertId}: 'abc'`, status: executeStatuses[executeCount++], shouldHaveTask: true, + executionId: currentExecutionId, rule: { id: alertId, category: response.body.rule_type_id, @@ -388,6 +416,7 @@ export default function eventLogTests({ getService }: FtrProviderContext) { message: `alert: test.patternFiring:${alertId}: 'abc' instanceId: 'instance' scheduled actionGroup(subgroup): 'default(${event?.kibana?.alerting?.action_subgroup})' action: test.noop:${createdAction.id}`, instanceId: 'instance', actionGroupId: 'default', + executionId: currentExecutionId, rule: { id: alertId, category: response.body.rule_type_id, @@ -398,10 +427,20 @@ export default function eventLogTests({ getService }: FtrProviderContext) { }); break; case 'new-instance': - validateInstanceEvent(event, `created new alert: 'instance'`, false); + validateInstanceEvent( + event, + `created new alert: 'instance'`, + false, + currentExecutionId + ); break; case 'recovered-instance': - validateInstanceEvent(event, `alert 'instance' has recovered`, true); + validateInstanceEvent( + event, + `alert 'instance' has recovered`, + true, + currentExecutionId + ); break; case 'active-instance': expect( @@ -412,7 +451,8 @@ export default function eventLogTests({ getService }: FtrProviderContext) { validateInstanceEvent( event, `active alert: 'instance' in actionGroup(subgroup): 'default(${event?.kibana?.alerting?.action_subgroup})'`, - false + false, + currentExecutionId ); break; // this will get triggered as we add new event actions @@ -424,7 +464,8 @@ export default function eventLogTests({ getService }: FtrProviderContext) { function validateInstanceEvent( event: IValidatedEvent, subMessage: string, - shouldHaveEventEnd: boolean + shouldHaveEventEnd: boolean, + executionId?: string ) { validateEvent(event, { spaceId: space.id, @@ -435,6 +476,7 @@ export default function eventLogTests({ getService }: FtrProviderContext) { instanceId: 'instance', actionGroupId: 'default', shouldHaveEventEnd, + executionId, rule: { id: alertId, category: response.body.rule_type_id, @@ -541,6 +583,7 @@ interface ValidateEventLogParams { actionGroupId?: string; instanceId?: string; reason?: string; + executionId?: string; rule?: { id: string; name?: string; @@ -555,7 +598,16 @@ interface ValidateEventLogParams { } export function validateEvent(event: IValidatedEvent, params: ValidateEventLogParams): void { - const { spaceId, savedObjects, outcome, message, errorMessage, rule, shouldHaveTask } = params; + const { + spaceId, + savedObjects, + outcome, + message, + errorMessage, + rule, + shouldHaveTask, + executionId, + } = params; const { status, actionGroupId, instanceId, reason, shouldHaveEventEnd } = params; if (status) { @@ -574,6 +626,10 @@ export function validateEvent(event: IValidatedEvent, params: ValidateEventLogPa expect(event?.event?.reason).to.be(reason); } + if (executionId) { + expect(event?.kibana?.alert?.rule?.execution?.uuid).to.be(executionId); + } + const duration = event?.event?.duration; const timestamp = Date.parse(event?.['@timestamp'] || 'undefined'); const eventStart = Date.parse(event?.event?.start || 'undefined'); From 8527ffc1f67f5b2aebff2d4e10bc147fc314a2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=A1nchez?= Date: Thu, 27 Jan 2022 18:48:32 +0100 Subject: [PATCH 24/45] [Security Solution] [Endpoint] Fixes capitalizations in texts and update translations (#123929) * Fixes capitalizations in texts and update translations. Also update unit tests * Fixes test * Fix policy related test --- .../view/components/event_filter_delete_modal.test.tsx | 4 ++-- .../view/components/event_filter_delete_modal.tsx | 4 ++-- .../pages/event_filters/view/components/flyout/index.tsx | 2 +- .../view/components/delete_modal.test.tsx | 4 ++-- .../view/components/delete_modal.tsx | 6 +++--- .../host_isolation_exceptions/view/components/empty.tsx | 6 +++--- .../view/components/translations.ts | 2 +- .../view/host_isolation_exceptions_list.test.tsx | 2 +- .../view/host_isolation_exceptions_list.tsx | 8 ++++---- .../host_isolation_exceptions/components/list.test.tsx | 2 +- .../view/host_isolation_exceptions/components/list.tsx | 5 +++-- .../host_isolation_exceptions_tab.test.tsx | 2 +- .../host_isolation_exceptions_tab.tsx | 2 +- .../trusted_apps/view/trusted_apps_notifications.test.tsx | 4 ++-- .../trusted_apps/view/trusted_apps_notifications.tsx | 6 +++--- .../pages/trusted_apps/view/trusted_apps_page.test.tsx | 2 +- 16 files changed, 31 insertions(+), 30 deletions(-) diff --git a/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/event_filter_delete_modal.test.tsx b/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/event_filter_delete_modal.test.tsx index e0d511b23f4f8..2c09eed85b191 100644 --- a/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/event_filter_delete_modal.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/event_filter_delete_modal.test.tsx @@ -151,7 +151,7 @@ describe('When event filters delete modal is shown', () => { }); expect(coreStart.notifications.toasts.addSuccess).toHaveBeenCalledWith( - '"tic-tac-toe" has been removed from the Event Filters list.' + '"tic-tac-toe" has been removed from the event filters list.' ); }); @@ -170,7 +170,7 @@ describe('When event filters delete modal is shown', () => { }); expect(coreStart.notifications.toasts.addDanger).toHaveBeenCalledWith( - 'Unable to remove "tic-tac-toe" from the Event Filters list. Reason: oh oh' + 'Unable to remove "tic-tac-toe" from the event filters list. Reason: oh oh' ); expect(showDeleteModal(getCurrentState())).toBe(true); }); diff --git a/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/event_filter_delete_modal.tsx b/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/event_filter_delete_modal.tsx index 544fa60d29b0a..75e49bf270bab 100644 --- a/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/event_filter_delete_modal.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/event_filter_delete_modal.tsx @@ -58,7 +58,7 @@ export const EventFilterDeleteModal = memo<{}>(() => { if (wasDeleted) { toasts.addSuccess( i18n.translate('xpack.securitySolution.eventFilters.deletionDialog.deleteSuccess', { - defaultMessage: '"{name}" has been removed from the Event Filters list.', + defaultMessage: '"{name}" has been removed from the event filters list.', values: { name: eventFilter?.name }, }) ); @@ -73,7 +73,7 @@ export const EventFilterDeleteModal = memo<{}>(() => { toasts.addDanger( i18n.translate('xpack.securitySolution.eventFilters.deletionDialog.deleteFailure', { defaultMessage: - 'Unable to remove "{name}" from the Event Filters list. Reason: {message}', + 'Unable to remove "{name}" from the event filters list. Reason: {message}', values: { name: eventFilter?.name, message: deleteError.message }, }) ); diff --git a/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/flyout/index.tsx b/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/flyout/index.tsx index 9bffd2fc41871..95e08753b9b87 100644 --- a/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/flyout/index.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/flyout/index.tsx @@ -257,7 +257,7 @@ export const EventFiltersFlyout: React.FC = memo( diff --git a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/delete_modal.test.tsx b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/delete_modal.test.tsx index e64ab09367ca8..0477e8fa5055d 100644 --- a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/delete_modal.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/delete_modal.test.tsx @@ -119,7 +119,7 @@ describe('When on the host isolation exceptions delete modal', () => { await waitFor(expect(deleteOneHostIsolationExceptionItemMock).toHaveBeenCalled); expect(coreStart.notifications.toasts.addSuccess).toHaveBeenCalledWith( - '"some name" has been removed from the Host isolation exceptions list.' + '"some name" has been removed from the host isolation exceptions list.' ); expect(onCancel).toHaveBeenCalledWith(true); }); @@ -140,7 +140,7 @@ describe('When on the host isolation exceptions delete modal', () => { await waitFor(expect(deleteOneHostIsolationExceptionItemMock).toHaveBeenCalled); expect(coreStart.notifications.toasts.addDanger).toHaveBeenCalledWith( - 'Unable to remove "some name" from the Host isolation exceptions list. Reason: That\'s not true. That\'s impossible' + 'Unable to remove "some name" from the host isolation exceptions list. Reason: That\'s not true. That\'s impossible' ); expect(onCancel).toHaveBeenCalledWith(true); }); diff --git a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/delete_modal.tsx b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/delete_modal.tsx index 259313f5c7ee1..c101f4884825b 100644 --- a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/delete_modal.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/delete_modal.tsx @@ -50,7 +50,7 @@ export const HostIsolationExceptionDeleteModal = memo( 'xpack.securitySolution.hostIsolationExceptions.deletionDialog.deleteFailure', { defaultMessage: - 'Unable to remove "{name}" from the Host isolation exceptions list. Reason: {message}', + 'Unable to remove "{name}" from the host isolation exceptions list. Reason: {message}', values: { name: item?.name, message: error.message }, } ) @@ -63,7 +63,7 @@ export const HostIsolationExceptionDeleteModal = memo( 'xpack.securitySolution.hostIsolationExceptions.deletionDialog.deleteSuccess', { defaultMessage: - '"{name}" has been removed from the Host isolation exceptions list.', + '"{name}" has been removed from the host isolation exceptions list.', values: { name: item?.name }, } ) @@ -87,7 +87,7 @@ export const HostIsolationExceptionDeleteModal = memo( diff --git a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/empty.tsx b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/empty.tsx index f4b4388086012..605229dc04c53 100644 --- a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/empty.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/empty.tsx @@ -30,14 +30,14 @@ export const HostIsolationExceptionsEmptyState = memo<{

} body={ } actions={[ @@ -48,7 +48,7 @@ export const HostIsolationExceptionsEmptyState = memo<{ > , diff --git a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/translations.ts b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/translations.ts index 9504aa0673e54..2690a0e68d78d 100644 --- a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/translations.ts +++ b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/components/translations.ts @@ -60,7 +60,7 @@ export const IP_LABEL = i18n.translate( export const IP_ERROR = i18n.translate( 'xpack.securitySolution.hostIsolationExceptions.form.ip.error', { - defaultMessage: 'The ip is invalid. Only IPv4 with optional CIDR is supported', + defaultMessage: 'The IP is invalid. Only IPv4 with optional CIDR is supported', } ); diff --git a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/host_isolation_exceptions_list.test.tsx b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/host_isolation_exceptions_list.test.tsx index b206dd708329e..097fbe97fd908 100644 --- a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/host_isolation_exceptions_list.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/host_isolation_exceptions_list.test.tsx @@ -123,7 +123,7 @@ describe('When on the host isolation exceptions page', () => { await waitForApiCall(); expect(renderResult.getByTestId('searchExceptions')).toBeTruthy(); expect(renderResult.getByTestId('hostIsolationExceptions-totalCount').textContent).toBe( - 'Showing 1 exception' + 'Showing 1 host isolation exception' ); expect(renderResult.getByTestId('policiesSelectorButton')).toBeTruthy(); }); 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 96b095826cbe2..083c7bb58e340 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 @@ -214,7 +214,7 @@ export const HostIsolationExceptionsList = () => { subtitle={ } actions={ @@ -228,7 +228,7 @@ export const HostIsolationExceptionsList = () => { > ) : ( @@ -256,7 +256,7 @@ export const HostIsolationExceptionsList = () => { placeholder={i18n.translate( 'xpack.securitySolution.hostIsolationExceptions.search.placeholder', { - defaultMessage: 'Search on the fields below: name, description, ip', + defaultMessage: 'Search on the fields below: name, description, IP', } )} /> @@ -264,7 +264,7 @@ export const HostIsolationExceptionsList = () => { diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/components/list.test.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/components/list.test.tsx index 52af3343972d4..55667a79d66a4 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/components/list.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/components/list.test.tsx @@ -63,7 +63,7 @@ describe('Policy details host isolation exceptions tab', () => { render(emptyList); expect( renderResult.getByTestId('policyDetailsHostIsolationExceptionsSearchCount') - ).toHaveTextContent('Showing 0 exceptions'); + ).toHaveTextContent('Showing 0 host isolation exceptions'); expect(renderResult.getByTestId('searchField')).toBeTruthy(); }); diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/components/list.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/components/list.tsx index 80c35783fd99b..f8f18a2292c5d 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/components/list.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/components/list.tsx @@ -160,7 +160,8 @@ export const PolicyHostIsolationExceptionsList = ({ return i18n.translate( 'xpack.securitySolution.endpoint.policy.hostIsolationExceptions.list.totalItemCount', { - defaultMessage: 'Showing {totalItemsCount, plural, one {# exception} other {# exceptions}}', + defaultMessage: + 'Showing {totalItemsCount, plural, one {# host isolation exception} other {# host isolation exceptions}}', values: { totalItemsCount: pagination.totalItemCount }, } ); @@ -179,7 +180,7 @@ export const PolicyHostIsolationExceptionsList = ({ placeholder={i18n.translate( 'xpack.securitySolution.endpoint.policy.hostIsolationExceptions.list.search.placeholder', { - defaultMessage: 'Search on the fields below: name, description, ip', + defaultMessage: 'Search on the fields below: name, description, IP', } )} defaultValue={urlParams.filter} diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/host_isolation_exceptions_tab.test.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/host_isolation_exceptions_tab.test.tsx index e36849796b879..e76433d670f63 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/host_isolation_exceptions_tab.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/host_isolation_exceptions_tab.test.tsx @@ -109,7 +109,7 @@ describe('Policy details host isolation exceptions tab', () => { render(); expect( await renderResult.findByTestId('policyHostIsolationExceptionsTabSubtitle') - ).toHaveTextContent('There are 4 exceptions associated with this policy'); + ).toHaveTextContent('There are 4 host isolation exceptions associated with this policy'); }); it('should apply a filter when requested from location search params', async () => { diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/host_isolation_exceptions_tab.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/host_isolation_exceptions_tab.tsx index c5281fd0407fd..e55038d6a11f2 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/host_isolation_exceptions_tab.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/host_isolation_exceptions/host_isolation_exceptions_tab.tsx @@ -89,7 +89,7 @@ export const PolicyHostIsolationExceptionsTab = ({ policy }: { policy: PolicyDat return policySearchedExceptionsListRequest.data ? ( { }); expect(notifications.toasts.addSuccess).toBeCalledWith({ - text: '"trusted app 3" has been removed from the Trusted Applications list.', + text: '"trusted app 3" has been removed from the trusted applications list.', title: 'Successfully removed', }); expect(notifications.toasts.addDanger).not.toBeCalled(); @@ -91,7 +91,7 @@ describe('TrustedAppsNotifications', () => { expect(notifications.toasts.addSuccess).not.toBeCalled(); expect(notifications.toasts.addDanger).toBeCalledWith({ - text: 'Unable to remove "trusted app 3" from the Trusted Applications list. Reason: Not Found', + text: 'Unable to remove "trusted app 3" from the trusted applications list. Reason: Not Found', title: 'Removal failure', }); }); diff --git a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_notifications.tsx b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_notifications.tsx index a86a08a894ed9..dd03636d7cc66 100644 --- a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_notifications.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_notifications.tsx @@ -29,7 +29,7 @@ const getDeletionErrorMessage = (error: ServerApiError, entry: Immutable) => { defaultMessage: 'Successfully removed', }), text: i18n.translate('xpack.securitySolution.trustedapps.deletionSuccess.text', { - defaultMessage: '"{name}" has been removed from the Trusted Applications list.', + defaultMessage: '"{name}" has been removed from the trusted applications list.', values: { name: entry?.name }, }), }; @@ -55,7 +55,7 @@ const getCreationSuccessMessage = (entry: Immutable) => { text: i18n.translate( 'xpack.securitySolution.trustedapps.createTrustedAppFlyout.successToastTitle', { - defaultMessage: '"{name}" has been added to the Trusted Applications list.', + defaultMessage: '"{name}" has been added to the trusted applications list.', values: { name: entry.name }, } ), diff --git a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_page.test.tsx b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_page.test.tsx index 31b259c73b540..73d85077e9579 100644 --- a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_page.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_page.test.tsx @@ -595,7 +595,7 @@ describe('When on the Trusted Apps Page', () => { it('should show success toast notification', () => { expect(coreStart.notifications.toasts.addSuccess.mock.calls[0][0]).toEqual({ - text: '"Generated Exception (3xnng)" has been added to the Trusted Applications list.', + text: '"Generated Exception (3xnng)" has been added to the trusted applications list.', title: 'Success!', }); }); From 41ffa3e0fa8e489ad157b8489ac14b33fcea29d1 Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Thu, 27 Jan 2022 19:31:55 +0100 Subject: [PATCH 25/45] [Cases] strip down milliseconds for dates and extra dates in tooltips (#123821) --- .../public/components/all_cases/columns.tsx | 2 +- .../components/case_view/metrics/status.tsx | 6 ++-- .../case_view/metrics/translations.ts | 2 +- .../components/formatted_date/index.test.tsx | 28 +++++++++++++++++ .../components/formatted_date/index.tsx | 30 +++++++++++++------ .../localized_date_tooltip/index.test.tsx | 17 +++++++---- .../localized_date_tooltip/index.tsx | 15 ++-------- 7 files changed, 69 insertions(+), 31 deletions(-) diff --git a/x-pack/plugins/cases/public/components/all_cases/columns.tsx b/x-pack/plugins/cases/public/components/all_cases/columns.tsx index 701a2ec24a3ee..d08f788c85311 100644 --- a/x-pack/plugins/cases/public/components/all_cases/columns.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/columns.tsx @@ -305,7 +305,7 @@ export const useCasesColumns = ({ if (createdAt != null) { return ( - + ); } diff --git a/x-pack/plugins/cases/public/components/case_view/metrics/status.tsx b/x-pack/plugins/cases/public/components/case_view/metrics/status.tsx index 1451e5409ff63..f3bfcee1ab947 100644 --- a/x-pack/plugins/cases/public/components/case_view/metrics/status.tsx +++ b/x-pack/plugins/cases/public/components/case_view/metrics/status.tsx @@ -18,7 +18,7 @@ import { CASE_REOPENED_ON, } from './translations'; import { getMaybeDate } from '../../formatted_date/maybe_date'; -import { FormattedDate, FormattedRelativePreferenceDate } from '../../formatted_date'; +import { FormattedRelativePreferenceDate } from '../../formatted_date'; import { getEmptyTagValue } from '../../empty_value'; import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common'; import { CaseViewMetricsProps } from './types'; @@ -118,6 +118,7 @@ const CreationDate: React.FC<{ date: string }> = React.memo(({ date }) => { ); }); @@ -210,9 +211,10 @@ const ValueWithExplanationIcon: React.FC<{ {explanationValues.map((explanationValue, index) => { return ( - {isNotLastItem(index, explanationValues.length) ? : null} diff --git a/x-pack/plugins/cases/public/components/case_view/metrics/translations.ts b/x-pack/plugins/cases/public/components/case_view/metrics/translations.ts index 7964bc7ac98e2..0ca0ec7ae7380 100644 --- a/x-pack/plugins/cases/public/components/case_view/metrics/translations.ts +++ b/x-pack/plugins/cases/public/components/case_view/metrics/translations.ts @@ -66,5 +66,5 @@ export const CASE_REOPENED = i18n.translate('xpack.cases.caseView.metrics.lifesp }); export const CASE_REOPENED_ON = i18n.translate('xpack.cases.caseView.metrics.lifespan.reopenedOn', { - defaultMessage: 'Reopened on ', + defaultMessage: 'Reopened ', }); diff --git a/x-pack/plugins/cases/public/components/formatted_date/index.test.tsx b/x-pack/plugins/cases/public/components/formatted_date/index.test.tsx index d54430b9f27da..3a61928e9f4c7 100644 --- a/x-pack/plugins/cases/public/components/formatted_date/index.test.tsx +++ b/x-pack/plugins/cases/public/components/formatted_date/index.test.tsx @@ -63,6 +63,23 @@ describe('formatted_date', () => { expect(wrapper.text()).toEqual('Feb-25-2019'); }); + + test('it strips down milliseconds when stripMs is passed', () => { + const date = new Date('2022-01-27T10:30:00.000Z'); + + const wrapper = mount(); + + expect(wrapper.text()).toEqual('Jan 27, 2022 @ 10:30:00'); + }); + + test('it strips down milliseconds when stripMs is passed and user-defined format is used', () => { + const date = new Date('2022-01-27T10:30:00.000Z'); + mockUseDateFormat.mockImplementation(() => 'HH:mm:ss.SSS'); + + const wrapper = mount(); + + expect(wrapper.text()).toEqual('10:30:00'); + }); }); describe('FormattedDate', () => { @@ -166,5 +183,16 @@ describe('formatted_date', () => { expect(wrapper.text()).toBe(getEmptyValue()); }); + + test('strips down the time milliseconds when stripMs is passed', () => { + const date = new Date('2022-01-27T10:30:00.000Z'); + const wrapper = mount( + + + + ); + + expect(wrapper.text()).toBe('Jan 27, 2022 @ 10:30:00'); + }); }); }); 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 8e00ddf80e045..567cf9e95636d 100644 --- a/x-pack/plugins/cases/public/components/formatted_date/index.tsx +++ b/x-pack/plugins/cases/public/components/formatted_date/index.tsx @@ -14,12 +14,17 @@ import { getOrEmptyTagFromValue } from '../empty_value'; import { LocalizedDateTooltip } from '../localized_date_tooltip'; import { getMaybeDate } from './maybe_date'; -export const PreferenceFormattedDate = React.memo<{ dateFormat?: string; value: Date }>( - /* eslint-disable-next-line react-hooks/rules-of-hooks */ - ({ value, dateFormat = useDateFormat() }) => ( - <>{moment.tz(value, useTimeZone()).format(dateFormat)} - ) -); +export const PreferenceFormattedDate = React.memo<{ + dateFormat?: string; + value: Date; + stripMs?: boolean; +}>(({ value, dateFormat, stripMs = false }) => { + const systemDateFormat = useDateFormat(); + const toUseDateFormat = dateFormat ? dateFormat : systemDateFormat; + const strippedDateFormat = + toUseDateFormat && stripMs ? toUseDateFormat.replace(/\.?SSS/, '') : toUseDateFormat; + return <>{moment.tz(value, useTimeZone()).format(strippedDateFormat)}; +}); PreferenceFormattedDate.displayName = 'PreferenceFormattedDate'; @@ -121,9 +126,16 @@ FormattedDate.displayName = 'FormattedDate'; * - a humanized relative date (e.g. 16 minutes ago) * - a long representation of the date that includes the day of the week (e.g. Thursday, March 21, 2019 6:47pm) * - the raw date value (e.g. 2019-03-22T00:47:46Z) + * @param value - raw date + * @param stripMs - strip milliseconds when formatting time (remove ".SSS" from the date format) */ - -export const FormattedRelativePreferenceDate = ({ value }: { value?: string | number | null }) => { +export const FormattedRelativePreferenceDate = ({ + value, + stripMs = false, +}: { + value?: string | number | null; + stripMs?: boolean; +}) => { if (value == null) { return getOrEmptyTagFromValue(value); } @@ -135,7 +147,7 @@ export const FormattedRelativePreferenceDate = ({ value }: { value?: string | nu return ( {moment(date).add(1, 'hours').isBefore(new Date()) ? ( - + ) : ( )} diff --git a/x-pack/plugins/cases/public/components/localized_date_tooltip/index.test.tsx b/x-pack/plugins/cases/public/components/localized_date_tooltip/index.test.tsx index 83fba7a041ca5..901afd55dd38a 100644 --- a/x-pack/plugins/cases/public/components/localized_date_tooltip/index.test.tsx +++ b/x-pack/plugins/cases/public/components/localized_date_tooltip/index.test.tsx @@ -10,6 +10,7 @@ import moment from 'moment-timezone'; import React from 'react'; import { LocalizedDateTooltip } from '.'; +import { TestProviders } from '../../common/mock'; describe('LocalizedDateTooltip', () => { beforeEach(() => { @@ -29,9 +30,11 @@ describe('LocalizedDateTooltip', () => { test('it renders the child content', () => { const wrapper = mount( - - - + + + + + ); expect(wrapper.find('[data-test-subj="sample-content"]').exists()).toEqual(true); @@ -39,9 +42,11 @@ describe('LocalizedDateTooltip', () => { test('it renders', () => { const wrapper = mount( - - - + + + + + ); expect(wrapper.find('[data-test-subj="localized-date-tool-tip"]').exists()).toEqual(true); diff --git a/x-pack/plugins/cases/public/components/localized_date_tooltip/index.tsx b/x-pack/plugins/cases/public/components/localized_date_tooltip/index.tsx index 34825dfa5ae9d..108f94a636d3b 100644 --- a/x-pack/plugins/cases/public/components/localized_date_tooltip/index.tsx +++ b/x-pack/plugins/cases/public/components/localized_date_tooltip/index.tsx @@ -6,9 +6,9 @@ */ import { EuiFlexGroup, EuiFlexItem, EuiToolTip } from '@elastic/eui'; -import { FormattedRelative } from '@kbn/i18n-react'; -import moment from 'moment'; +import moment from 'moment-timezone'; import React from 'react'; +import { useTimeZone } from '../../common/lib/kibana'; export const LocalizedDateTooltip = React.memo<{ children: React.ReactNode; @@ -26,17 +26,8 @@ export const LocalizedDateTooltip = React.memo<{ {fieldName} ) : null} - - - - {moment.utc(date).local().format('llll')} - - - {moment(date).format()} + {moment.tz(date, useTimeZone()).format('llll')} } From 14d6f7c871542eaa0076dd539cbc64309c929936 Mon Sep 17 00:00:00 2001 From: Thomas Neirynck Date: Thu, 27 Jan 2022 13:43:12 -0500 Subject: [PATCH 26/45] [Maps] Add execution context (#123651) --- .../user/troubleshooting/trace-query.asciidoc | 2 +- .../plugins/maps/common/execution_context.ts | 18 +++++++++ .../es_geo_grid_source/es_geo_grid_source.tsx | 3 ++ .../es_geo_line_source/es_geo_line_source.tsx | 3 ++ .../es_pew_pew_source/es_pew_pew_source.js | 3 ++ .../es_search_source/es_search_source.tsx | 9 ++++- .../classes/sources/es_source/es_source.ts | 7 ++++ .../sources/es_term_source/es_term_source.ts | 2 + x-pack/plugins/maps/public/util.ts | 9 +++++ .../plugins/maps/server/mvt/get_grid_tile.ts | 38 ++++++++++++------- x-pack/plugins/maps/server/mvt/get_tile.ts | 37 +++++++++++------- x-pack/plugins/maps/server/mvt/mvt_routes.ts | 8 +++- x-pack/plugins/maps/server/routes.ts | 14 +++---- 13 files changed, 117 insertions(+), 36 deletions(-) create mode 100644 x-pack/plugins/maps/common/execution_context.ts diff --git a/docs/user/troubleshooting/trace-query.asciidoc b/docs/user/troubleshooting/trace-query.asciidoc index 70c7853d3a3f3..f037b26ade630 100644 --- a/docs/user/troubleshooting/trace-query.asciidoc +++ b/docs/user/troubleshooting/trace-query.asciidoc @@ -3,7 +3,7 @@ Sometimes the {es} server might be slowed down by the execution of an expensive query. Such queries are logged to {es}'s {ref}/index-modules-slowlog.html#search-slow-log[search slow log] file. But there is a problem: it's impossible to say what triggered a slow search request—a {kib} instance or a user accessing an {es} endpoint directly. To simplify the investigation of such cases, the search slow log file includes the `x-opaque-id` header, which might provide additional information about a request if it originated from {kib}. -WARNING: At the moment, {kib} can only highlight cases where a slow query originated from a {kib} visualization, *Lens*, *Discover*, or *Alerting*. +WARNING: At the moment, {kib} can only highlight cases where a slow query originated from a {kib} visualization, *Lens*, *Discover*, *Maps*, or *Alerting*. For example, if a request to {es} was initiated by a Vega visualization on a dashboard, you will see the following in the slow logs: [source,json] diff --git a/x-pack/plugins/maps/common/execution_context.ts b/x-pack/plugins/maps/common/execution_context.ts new file mode 100644 index 0000000000000..23de29cfa8cd7 --- /dev/null +++ b/x-pack/plugins/maps/common/execution_context.ts @@ -0,0 +1,18 @@ +/* + * 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 { APP_ID } from './constants'; + +export function makeExecutionContext(id: string, url: string, description?: string) { + return { + name: APP_ID, + type: 'application', + id, + description: description || '', + url, + }; +} diff --git a/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx b/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx index 9b90f5f35827e..95f0204320fd0 100644 --- a/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx +++ b/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx @@ -44,6 +44,7 @@ import { ISearchSource } from '../../../../../../../src/plugins/data/common/sear import { IndexPattern } from '../../../../../../../src/plugins/data/common'; import { Adapters } from '../../../../../../../src/plugins/inspector/common/adapters'; import { isValidStringConfig } from '../../util/valid_string_config'; +import { makePublicExecutionContext } from '../../../util'; type ESGeoGridSourceSyncMeta = Pick; @@ -287,6 +288,7 @@ export class ESGeoGridSource extends AbstractESAggSource implements IMvtVectorSo } ), searchSessionId, + executionContext: makePublicExecutionContext('es_geo_grid_source:cluster_composite'), }); features.push(...convertCompositeRespToGeoJson(esResponse, this._descriptor.requestType)); @@ -360,6 +362,7 @@ export class ESGeoGridSource extends AbstractESAggSource implements IMvtVectorSo defaultMessage: 'Elasticsearch geo grid aggregation request', }), searchSessionId, + executionContext: makePublicExecutionContext('es_geo_grid_source:cluster'), }); return convertRegularRespToGeoJson(esResponse, this._descriptor.requestType); diff --git a/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx b/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx index 7c165d076e35e..e98b45e407087 100644 --- a/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx +++ b/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx @@ -39,6 +39,7 @@ import { ITooltipProperty, TooltipProperty } from '../../tooltips/tooltip_proper import { esFilters } from '../../../../../../../src/plugins/data/public'; import { getIsGoldPlus } from '../../../licensed_features'; import { LICENSED_FEATURES } from '../../../licensed_features'; +import { makePublicExecutionContext } from '../../../util'; type ESGeoLineSourceSyncMeta = Pick; @@ -225,6 +226,7 @@ export class ESGeoLineSource extends AbstractESAggSource { defaultMessage: 'Elasticsearch terms request to fetch entities within map buffer.', }), searchSessionId: searchFilters.searchSessionId, + executionContext: makePublicExecutionContext('es_geo_line:entities'), }); const entityBuckets: Array<{ key: string; doc_count: number }> = _.get( entityResp, @@ -296,6 +298,7 @@ export class ESGeoLineSource extends AbstractESAggSource { 'Elasticsearch geo_line request to fetch tracks for entities. Tracks are not filtered by map buffer.', }), searchSessionId: searchFilters.searchSessionId, + executionContext: makePublicExecutionContext('es_geo_line:tracks'), }); const { featureCollection, numTrimmedTracks } = convertToGeoJson( tracksResp, diff --git a/x-pack/plugins/maps/public/classes/sources/es_pew_pew_source/es_pew_pew_source.js b/x-pack/plugins/maps/public/classes/sources/es_pew_pew_source/es_pew_pew_source.js index 8a916192cfe16..b3d2074c91667 100644 --- a/x-pack/plugins/maps/public/classes/sources/es_pew_pew_source/es_pew_pew_source.js +++ b/x-pack/plugins/maps/public/classes/sources/es_pew_pew_source/es_pew_pew_source.js @@ -18,6 +18,7 @@ import { AbstractESAggSource } from '../es_agg_source'; import { registerSource } from '../source_registry'; import { turfBboxToBounds } from '../../../../common/elasticsearch_util'; import { DataRequestAbortError } from '../../util/data_request'; +import { makePublicExecutionContext } from '../../../util'; const MAX_GEOTILE_LEVEL = 29; @@ -163,6 +164,7 @@ export class ESPewPewSource extends AbstractESAggSource { defaultMessage: 'Source-destination connections request', }), searchSessionId: searchFilters.searchSessionId, + executionContext: makePublicExecutionContext('es_pew_pew_source:connections'), }); const { featureCollection } = convertToLines(esResponse); @@ -202,6 +204,7 @@ export class ESPewPewSource extends AbstractESAggSource { const esResp = await searchSource.fetch({ abortSignal: abortController.signal, legacyHitsTotal: false, + executionContext: makePublicExecutionContext('es_pew_pew_source:bounds'), }); if (esResp.aggregations.destFitToBounds.bounds) { corners.push([ diff --git a/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx b/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx index 1b7c9e1cd6aa0..a9fdc7458bfd0 100644 --- a/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx +++ b/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx @@ -72,6 +72,7 @@ import { getIsDrawLayer, getMatchingIndexes, } from './util/feature_edit'; +import { makePublicExecutionContext } from '../../../util'; type ESSearchSourceSyncMeta = Pick< ESSearchSourceDescriptor, @@ -357,6 +358,7 @@ export class ESSearchSource extends AbstractESSource implements IMvtVectorSource registerCancelCallback, requestDescription: 'Elasticsearch document top hits request', searchSessionId: searchFilters.searchSessionId, + executionContext: makePublicExecutionContext('es_search_source:top_hits'), }); const allHits: any[] = []; @@ -438,6 +440,7 @@ export class ESSearchSource extends AbstractESSource implements IMvtVectorSource registerCancelCallback, requestDescription: 'Elasticsearch document request', searchSessionId: searchFilters.searchSessionId, + executionContext: makePublicExecutionContext('es_search_source:doc_search'), }); const isTimeExtentForTimeslice = @@ -599,7 +602,10 @@ export class ESSearchSource extends AbstractESSource implements IMvtVectorSource searchSource.setField('query', query); searchSource.setField('fieldsFromSource', this._getTooltipPropertyNames()); - const resp = await searchSource.fetch({ legacyHitsTotal: false }); + const resp = await searchSource.fetch({ + legacyHitsTotal: false, + executionContext: makePublicExecutionContext('es_search_source:load_tooltip_properties'), + }); const hit = _.get(resp, 'hits.hits[0]'); if (!hit) { @@ -905,6 +911,7 @@ export class ESSearchSource extends AbstractESSource implements IMvtVectorSource abortSignal: abortController.signal, sessionId: searchFilters.searchSessionId, legacyHitsTotal: false, + executionContext: makePublicExecutionContext('es_search_source:all_doc_counts'), }); return !isTotalHitsGreaterThan(resp.hits.total as unknown as TotalHits, maxResultWindow); } diff --git a/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts b/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts index 71e58c0174fd3..54746773b6317 100644 --- a/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts +++ b/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts @@ -10,6 +10,7 @@ import uuid from 'uuid/v4'; import { Filter } from '@kbn/es-query'; import { IndexPatternField, IndexPattern, ISearchSource } from 'src/plugins/data/public'; import type { Query } from 'src/plugins/data/common'; +import type { KibanaExecutionContext } from 'kibana/public'; import { AbstractVectorSource, BoundsRequestMeta } from '../vector_source'; import { getAutocompleteService, @@ -38,6 +39,7 @@ import { IField } from '../../fields/field'; import { FieldFormatter } from '../../../../common/constants'; import { Adapters } from '../../../../../../../src/plugins/inspector/common/adapters'; import { isValidStringConfig } from '../../util/valid_string_config'; +import { makePublicExecutionContext } from '../../../util'; export function isSearchSourceAbortError(error: Error) { return error.name === 'AbortError'; @@ -160,6 +162,7 @@ export class AbstractESSource extends AbstractVectorSource implements IESSource requestName, searchSessionId, searchSource, + executionContext, }: { registerCancelCallback: (callback: () => void) => void; requestDescription: string; @@ -167,6 +170,7 @@ export class AbstractESSource extends AbstractVectorSource implements IESSource requestName: string; searchSessionId?: string; searchSource: ISearchSource; + executionContext: KibanaExecutionContext; }): Promise { const abortController = new AbortController(); registerCancelCallback(() => abortController.abort()); @@ -183,6 +187,7 @@ export class AbstractESSource extends AbstractVectorSource implements IESSource title: requestName, description: requestDescription, }, + executionContext, }) .toPromise(); return resp; @@ -277,6 +282,7 @@ export class AbstractESSource extends AbstractVectorSource implements IESSource const esResp = await searchSource.fetch({ abortSignal: abortController.signal, legacyHitsTotal: false, + executionContext: makePublicExecutionContext('es_source:bounds'), }); if (!esResp.aggregations) { @@ -469,6 +475,7 @@ export class AbstractESSource extends AbstractVectorSource implements IESSource } ), searchSessionId, + executionContext: makePublicExecutionContext('es_source:style_meta'), }); return resp.aggregations; diff --git a/x-pack/plugins/maps/public/classes/sources/es_term_source/es_term_source.ts b/x-pack/plugins/maps/public/classes/sources/es_term_source/es_term_source.ts index f7fc863eabb4a..b583dc7b281d0 100644 --- a/x-pack/plugins/maps/public/classes/sources/es_term_source/es_term_source.ts +++ b/x-pack/plugins/maps/public/classes/sources/es_term_source/es_term_source.ts @@ -32,6 +32,7 @@ import { PropertiesMap } from '../../../../common/elasticsearch_util'; import { isValidStringConfig } from '../../util/valid_string_config'; import { ITermJoinSource } from '../term_join_source'; import { IField } from '../../fields/field'; +import { makePublicExecutionContext } from '../../../util'; const TERMS_AGG_NAME = 'join'; const TERMS_BUCKET_KEYS_TO_IGNORE = ['key', 'doc_count']; @@ -153,6 +154,7 @@ export class ESTermSource extends AbstractESAggSource implements ITermJoinSource }, }), searchSessionId: searchFilters.searchSessionId, + executionContext: makePublicExecutionContext('es_term_source:terms'), }); const countPropertyName = this.getAggKey(AGG_TYPE.COUNT); diff --git a/x-pack/plugins/maps/public/util.ts b/x-pack/plugins/maps/public/util.ts index 18b9cd87850b4..a1118c3e3cec6 100644 --- a/x-pack/plugins/maps/public/util.ts +++ b/x-pack/plugins/maps/public/util.ts @@ -6,9 +6,11 @@ */ import { EMSClient, FileLayer, TMSService } from '@elastic/ems-client'; +import type { KibanaExecutionContext } from 'kibana/public'; import { FONTS_API_PATH } from '../common/constants'; import { getHttp, getTilemap, getEMSSettings, getMapsEmsStart } from './kibana_services'; import { getLicenseId } from './licensed_features'; +import { makeExecutionContext } from '../common/execution_context'; export function getKibanaTileMap(): unknown { return getTilemap(); @@ -56,3 +58,10 @@ export function getGlyphUrl(): string { export function isRetina(): boolean { return window.devicePixelRatio === 2; } + +export function makePublicExecutionContext( + id: string, + description?: string +): KibanaExecutionContext { + return makeExecutionContext(id, window.location.pathname, description); +} diff --git a/x-pack/plugins/maps/server/mvt/get_grid_tile.ts b/x-pack/plugins/maps/server/mvt/get_grid_tile.ts index cfaabef12b432..2eb55056692d6 100644 --- a/x-pack/plugins/maps/server/mvt/get_grid_tile.ts +++ b/x-pack/plugins/maps/server/mvt/get_grid_tile.ts @@ -5,13 +5,16 @@ * 2.0. */ -import { Logger } from 'src/core/server'; +import { CoreStart, Logger } from 'src/core/server'; import type { DataRequestHandlerContext } from 'src/plugins/data/server'; import { Stream } from 'stream'; import { RENDER_AS } from '../../common/constants'; import { isAbortError } from './util'; +import { makeExecutionContext } from '../../common/execution_context'; export async function getEsGridTile({ + url, + core, logger, context, index, @@ -24,6 +27,8 @@ export async function getEsGridTile({ gridPrecision, abortController, }: { + url: string; + core: CoreStart; x: number; y: number; z: number; @@ -49,20 +54,27 @@ export async function getEsGridTile({ fields: requestBody.fields, runtime_mappings: requestBody.runtime_mappings, }; - const tile = await context.core.elasticsearch.client.asCurrentUser.transport.request( - { - method: 'GET', - path, - body, - }, - { - signal: abortController.signal, - headers: { - 'Accept-Encoding': 'gzip', - }, - asStream: true, + + const tile = await core.executionContext.withContext( + makeExecutionContext('mvt:get_grid_tile', url), + async () => { + return await context.core.elasticsearch.client.asCurrentUser.transport.request( + { + method: 'GET', + path, + body, + }, + { + signal: abortController.signal, + headers: { + 'Accept-Encoding': 'gzip', + }, + asStream: true, + } + ); } ); + return tile.body as Stream; } catch (e) { if (!isAbortError(e)) { diff --git a/x-pack/plugins/maps/server/mvt/get_tile.ts b/x-pack/plugins/maps/server/mvt/get_tile.ts index 33a8ee291116a..35c3ad044216c 100644 --- a/x-pack/plugins/maps/server/mvt/get_tile.ts +++ b/x-pack/plugins/maps/server/mvt/get_tile.ts @@ -6,12 +6,15 @@ */ import _ from 'lodash'; -import { Logger } from 'src/core/server'; +import { CoreStart, Logger } from 'src/core/server'; import type { DataRequestHandlerContext } from 'src/plugins/data/server'; import { Stream } from 'stream'; import { isAbortError } from './util'; +import { makeExecutionContext } from '../../common/execution_context'; export async function getEsTile({ + url, + core, logger, context, index, @@ -22,6 +25,8 @@ export async function getEsTile({ requestBody = {}, abortController, }: { + url: string; + core: CoreStart; x: number; y: number; z: number; @@ -45,18 +50,24 @@ export async function getEsTile({ runtime_mappings: requestBody.runtime_mappings, track_total_hits: requestBody.size + 1, }; - const tile = await context.core.elasticsearch.client.asCurrentUser.transport.request( - { - method: 'GET', - path, - body, - }, - { - signal: abortController.signal, - headers: { - 'Accept-Encoding': 'gzip', - }, - asStream: true, + + const tile = await core.executionContext.withContext( + makeExecutionContext('mvt:get_tile', url), + async () => { + return await context.core.elasticsearch.client.asCurrentUser.transport.request( + { + method: 'GET', + path, + body, + }, + { + signal: abortController.signal, + headers: { + 'Accept-Encoding': 'gzip', + }, + asStream: true, + } + ); } ); diff --git a/x-pack/plugins/maps/server/mvt/mvt_routes.ts b/x-pack/plugins/maps/server/mvt/mvt_routes.ts index 6d3b531c466bf..ad6b3f8eb1235 100644 --- a/x-pack/plugins/maps/server/mvt/mvt_routes.ts +++ b/x-pack/plugins/maps/server/mvt/mvt_routes.ts @@ -8,7 +8,7 @@ import rison from 'rison-node'; import { Stream } from 'stream'; import { schema } from '@kbn/config-schema'; -import { KibanaRequest, KibanaResponseFactory, Logger } from 'src/core/server'; +import { CoreStart, KibanaRequest, KibanaResponseFactory, Logger } from 'src/core/server'; import { IRouter } from 'src/core/server'; import type { DataRequestHandlerContext } from 'src/plugins/data/server'; import { @@ -25,9 +25,11 @@ const CACHE_TIMEOUT_SECONDS = 60 * 60; export function initMVTRoutes({ router, logger, + core, }: { router: IRouter; logger: Logger; + core: CoreStart; }) { router.get( { @@ -58,6 +60,8 @@ export function initMVTRoutes({ const requestBodyDSL = rison.decode(query.requestBody as string); const gzippedTile = await getEsTile({ + url: `${API_ROOT_PATH}/${MVT_GETTILE_API_PATH}/{z}/{x}/{y}.pbf`, + core, logger, context, geometryFieldName: query.geometryFieldName as string, @@ -104,6 +108,8 @@ export function initMVTRoutes({ const requestBodyDSL = rison.decode(query.requestBody as string); const gzipTileStream = await getEsGridTile({ + url: `${API_ROOT_PATH}/${MVT_GETGRIDTILE_API_PATH}/{z}/{x}/{y}.pbf`, + core, logger, context, geometryFieldName: query.geometryFieldName as string, diff --git a/x-pack/plugins/maps/server/routes.ts b/x-pack/plugins/maps/server/routes.ts index ec1519f20bb54..56e178741b21d 100644 --- a/x-pack/plugins/maps/server/routes.ts +++ b/x-pack/plugins/maps/server/routes.ts @@ -8,18 +8,18 @@ import { schema } from '@kbn/config-schema'; import fs from 'fs'; import path from 'path'; -import { CoreSetup, IRouter, Logger } from 'kibana/server'; +import { CoreSetup, CoreStart, IRouter, Logger } from 'kibana/server'; import { INDEX_SETTINGS_API_PATH, FONTS_API_PATH } from '../common/constants'; import { getIndexPatternSettings } from './lib/get_index_pattern_settings'; import { initMVTRoutes } from './mvt/mvt_routes'; import { initIndexingRoutes } from './data_indexing/indexing_routes'; -import { StartDeps, SetupDeps } from './types'; +import { StartDeps } from './types'; import { DataRequestHandlerContext } from '../../../../src/plugins/data/server'; -export async function initRoutes(core: CoreSetup, logger: Logger): Promise { - const router: IRouter = core.http.createRouter(); - const [, { data: dataPlugin }]: [SetupDeps, StartDeps] = - (await core.getStartServices()) as unknown as [SetupDeps, StartDeps]; +export async function initRoutes(coreSetup: CoreSetup, logger: Logger): Promise { + const router: IRouter = coreSetup.http.createRouter(); + const [coreStart, { data: dataPlugin }]: [CoreStart, StartDeps] = + (await coreSetup.getStartServices()) as unknown as [CoreStart, StartDeps]; router.get( { @@ -94,6 +94,6 @@ export async function initRoutes(core: CoreSetup, logger: Logger): Promise } ); - initMVTRoutes({ router, logger }); + initMVTRoutes({ router, logger, core: coreStart }); initIndexingRoutes({ router, logger, dataPlugin }); } From 80306936c13f31a93e43f318e3f01654042f3ae2 Mon Sep 17 00:00:00 2001 From: Paul Tavares <56442535+paul-tavares@users.noreply.github.com> Date: Thu, 27 Jan 2022 15:21:42 -0500 Subject: [PATCH 27/45] [Lists] Add an instance of `ExceptionListClient` with server extension points turned off to context object provided to callbacks (#123885) * Add an instance of ExceptionListClient with server extension points turned off to the `context` provided to callbacks * Unit test cases to validate context --- .../exception_list_client.test.ts | 26 +++++++++++++++++++ .../exception_lists/exception_list_client.ts | 17 ++++++++++++ .../extension_point_storage.mock.ts | 2 ++ .../extension_point_storage_client.test.ts | 4 +-- .../server/services/extension_points/types.ts | 8 ++++++ 5 files changed, 54 insertions(+), 3 deletions(-) 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 255aa587666c7..3b6f2cb6ae4f2 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 @@ -12,6 +12,7 @@ import { createExtensionPointStorageMock, } from '../extension_points/extension_point_storage.mock'; import type { ExtensionPointCallbackDataArgument } from '../extension_points'; +import { httpServerMock } from '../../../../../../src/core/server/mocks'; import { getCreateExceptionListItemOptionsMock, @@ -49,13 +50,16 @@ describe('exception_list_client', () => { describe('server extension points execution', () => { let extensionPointStorageContext: ExtensionPointStorageContextMock; let exceptionListClient: ExceptionListClient; + let kibanaRequest: ReturnType; beforeEach(() => { extensionPointStorageContext = createExtensionPointStorageMock(); + kibanaRequest = httpServerMock.createKibanaRequest(); }); it('should initialize class instance with `enableServerExtensionPoints` enabled by default', async () => { exceptionListClient = new ExceptionListClient({ + request: kibanaRequest, savedObjectsClient: getExceptionListSavedObjectClientMock(), serverExtensionsClient: extensionPointStorageContext.extensionPointStorage.getClient(), user: 'elastic', @@ -98,6 +102,7 @@ describe('exception_list_client', () => { describe('and server extension points are enabled', () => { beforeEach(() => { exceptionListClient = new ExceptionListClient({ + request: kibanaRequest, savedObjectsClient: getExceptionListSavedObjectClientMock(), serverExtensionsClient: extensionPointStorageContext.extensionPointStorage.getClient(), @@ -111,6 +116,15 @@ describe('exception_list_client', () => { expect(getExtensionPointCallback()).toHaveBeenCalled(); }); + it('should provide `context` object to extension point callbacks', async () => { + await callExceptionListClientMethod(); + + expect(getExtensionPointCallback().mock.calls[0][0].context).toEqual({ + exceptionListClient: expect.any(ExceptionListClient), + request: kibanaRequest, + }); + }); + it('should error if extension point callback throws an error', async () => { const error = new Error('foo'); const extensionCallback = getExtensionPointCallback(); @@ -157,6 +171,7 @@ describe('exception_list_client', () => { beforeEach(() => { exceptionListClient = new ExceptionListClient({ enableServerExtensionPoints: false, + request: kibanaRequest, savedObjectsClient: getExceptionListSavedObjectClientMock(), serverExtensionsClient: extensionPointStorageContext.extensionPointStorage.getClient(), @@ -305,6 +320,7 @@ describe('exception_list_client', () => { (methodName, callExceptionListClientMethod, getExtensionPointCallback) => { beforeEach(() => { exceptionListClient = new ExceptionListClient({ + request: kibanaRequest, savedObjectsClient: getExceptionListSavedObjectClientMock(), serverExtensionsClient: extensionPointStorageContext.extensionPointStorage.getClient(), user: 'elastic', @@ -317,6 +333,15 @@ describe('exception_list_client', () => { expect(getExtensionPointCallback()).toHaveBeenCalled(); }); + it('should provide `context` object to extension point callbacks', async () => { + await callExceptionListClientMethod(); + + expect(getExtensionPointCallback().mock.calls[0][0].context).toEqual({ + exceptionListClient: expect.any(ExceptionListClient), + request: kibanaRequest, + }); + }); + it('should error if extension point callback throws an error', async () => { const error = new Error('foo'); const extensionCallback = getExtensionPointCallback(); @@ -332,6 +357,7 @@ describe('exception_list_client', () => { beforeEach(() => { exceptionListClient = new ExceptionListClient({ enableServerExtensionPoints: false, + request: kibanaRequest, savedObjectsClient: getExceptionListSavedObjectClientMock(), serverExtensionsClient: extensionPointStorageContext.extensionPointStorage.getClient(), 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 62fa8524cd466..93f5077f021d5 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 @@ -103,7 +103,24 @@ export class ExceptionListClient { } private getServerExtensionCallbackContext(): ServerExtensionCallbackContext { + const { user, serverExtensionsClient, savedObjectsClient, request } = this; + let exceptionListClient: undefined | ExceptionListClient; + return { + // Lazy getter so that we only initialize a new instance of the class if needed + get exceptionListClient(): ExceptionListClient { + if (!exceptionListClient) { + exceptionListClient = new ExceptionListClient({ + enableServerExtensionPoints: false, + request, + savedObjectsClient, + serverExtensionsClient, + user, + }); + } + + return exceptionListClient; + }, request: this.request, }; } 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 2a63da494dc3b..47eeee057e072 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 @@ -8,6 +8,7 @@ import { MockedLogger, loggerMock } from '@kbn/logging/mocks'; import { httpServerMock } from '../../../../../../src/core/server/mocks'; +import { ExceptionListClient } from '../exception_lists/exception_list_client'; import { ExtensionPointStorage } from './extension_point_storage'; import { @@ -122,6 +123,7 @@ export const createExtensionPointStorageMock = ( return { callbackContext: { + exceptionListClient: {} as unknown as ExceptionListClient, request: httpServerMock.createKibanaRequest(), }, exceptionPreCreate, diff --git a/x-pack/plugins/lists/server/services/extension_points/extension_point_storage_client.test.ts b/x-pack/plugins/lists/server/services/extension_points/extension_point_storage_client.test.ts index 1e094f7258f86..567a83fd2eb35 100644 --- a/x-pack/plugins/lists/server/services/extension_points/extension_point_storage_client.test.ts +++ b/x-pack/plugins/lists/server/services/extension_points/extension_point_storage_client.test.ts @@ -138,9 +138,7 @@ describe('When using the ExtensionPointStorageClient', () => { if (extensionPointsMock.type === 'exceptionsListPreCreateItem') { expect(extensionPointsMock.callback).toHaveBeenCalledWith( expect.objectContaining({ - context: { - request: expect.any(Object), - }, + context: callbackContext, }) ); } 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 c8fdddc4b0969..dd94612a60295 100644 --- a/x-pack/plugins/lists/server/services/extension_points/types.ts +++ b/x-pack/plugins/lists/server/services/extension_points/types.ts @@ -19,6 +19,7 @@ import { UpdateExceptionListItemOptions, } from '../exception_lists/exception_list_client_types'; import { PromiseFromStreams } from '../exception_lists/import_exception_list_and_items'; +import type { ExceptionListClient } from '../exception_lists/exception_list_client'; /** * The `this` context provided to extension point's callback function @@ -30,6 +31,13 @@ export interface ServerExtensionCallbackContext { * is not triggered via one of the HTTP handlers */ request?: KibanaRequest; + + /** + * An `ExceptionListClient` instance that **DOES NOT** execute server extension point callbacks. + * This client should be used when needing to access Exception List content from within an Extension + * Point to avoid circular infinite loops + */ + exceptionListClient: ExceptionListClient; } export type ServerExtensionCallback = (args: { From b1b04d298e1a7c8f7ebca1c6cce1a0d3334c7211 Mon Sep 17 00:00:00 2001 From: Nicolas Chaulet Date: Thu, 27 Jan 2022 15:32:32 -0500 Subject: [PATCH 28/45] [Fleet] Remove usage of IFieldType in Fleet (#123960) --- .../applications/fleet/components/search_bar.tsx | 8 ++++---- .../components/agent_logs/query_bar.tsx | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx b/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx index f1a23ea759def..b1cc6ad81ec5f 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.tsx @@ -9,7 +9,7 @@ import React, { useState, useEffect, useMemo } from 'react'; import { fromKueryExpression } from '@kbn/es-query'; -import type { IFieldType } from '../../../../../../../src/plugins/data/public'; +import type { FieldSpec } from '../../../../../../../src/plugins/data/common'; import { QueryStringInput } from '../../../../../../../src/plugins/data/public'; import { useStartServices } from '../hooks'; import { INDEX_NAME, AGENTS_PREFIX } from '../constants'; @@ -32,7 +32,7 @@ export const SearchBar: React.FunctionComponent = ({ indexPattern = INDEX_NAME, }) => { const { data } = useStartServices(); - const [indexPatternFields, setIndexPatternFields] = useState(); + const [indexPatternFields, setIndexPatternFields] = useState(); const isQueryValid = useMemo(() => { if (!value || value === '') { @@ -50,7 +50,7 @@ export const SearchBar: React.FunctionComponent = ({ useEffect(() => { const fetchFields = async () => { try { - const _fields: IFieldType[] = await data.indexPatterns.getFieldsForWildcard({ + const _fields: FieldSpec[] = await data.dataViews.getFieldsForWildcard({ pattern: indexPattern, }); const fields = (_fields || []).filter((field) => { @@ -69,7 +69,7 @@ export const SearchBar: React.FunctionComponent = ({ } }; fetchFields(); - }, [data.indexPatterns, fieldPrefix, indexPattern]); + }, [data.dataViews, fieldPrefix, indexPattern]); return ( void; }> = memo(({ query, isQueryValid, onUpdateQuery }) => { const { data } = useStartServices(); - const [indexPatternFields, setIndexPatternFields] = useState(); + const [indexPatternFields, setIndexPatternFields] = useState(); useEffect(() => { const fetchFields = async () => { try { const fields = ( - ((await data.indexPatterns.getFieldsForWildcard({ + (await data.dataViews.getFieldsForWildcard({ pattern: AGENT_LOG_INDEX_PATTERN, - })) as IFieldType[]) || [] + })) || [] ).filter((field) => { return !EXCLUDED_FIELDS.includes(field.name); }); @@ -45,7 +45,7 @@ export const LogQueryBar: React.FunctionComponent<{ } }; fetchFields(); - }, [data.indexPatterns]); + }, [data.dataViews]); return ( Date: Thu, 27 Jan 2022 15:08:45 -0600 Subject: [PATCH 29/45] Reenable alert_add test suite (#123862) * Reenable alert_add test suite * Remove delays Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../sections/alert_form/alert_add.test.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/alert_form/alert_add.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/alert_form/alert_add.test.tsx index d3a6e94c786a4..3187021518c9c 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/alert_form/alert_add.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/alert_form/alert_add.test.tsx @@ -47,11 +47,6 @@ const actionTypeRegistry = actionTypeRegistryMock.create(); const ruleTypeRegistry = ruleTypeRegistryMock.create(); const useKibanaMock = useKibana as jest.Mocked; -const delay = (wait: number = 1000) => - new Promise((resolve) => { - setTimeout(resolve, wait); - }); - export const TestExpression: FunctionComponent = () => { return ( @@ -64,8 +59,7 @@ export const TestExpression: FunctionComponent = () => { ); }; -// FLAKY: https://github.com/elastic/kibana/issues/g -describe.skip('alert_add', () => { +describe('alert_add', () => { let wrapper: ReactWrapper; async function setup( @@ -179,7 +173,6 @@ describe.skip('alert_add', () => { it('renders alert add flyout', async () => { const onClose = jest.fn(); await setup({}, onClose); - await delay(1000); expect(wrapper.find('[data-test-subj="addAlertFlyoutTitle"]').exists()).toBeTruthy(); expect(wrapper.find('[data-test-subj="saveAlertButton"]').exists()).toBeTruthy(); @@ -209,8 +202,6 @@ describe.skip('alert_add', () => { onClose ); - await delay(1000); - expect(wrapper.find('input#alertName').props().value).toBe('Simple status alert'); expect(wrapper.find('[data-test-subj="tagsComboBox"]').first().text()).toBe('uptimelogs'); @@ -249,7 +240,6 @@ describe.skip('alert_add', () => { it('should enforce any default inteval', async () => { await setup({ alertTypeId: 'my-alert-type' }, jest.fn(), '3h'); - await delay(1000); // Wait for handlers to fire await act(async () => { From bfb9e94c21260a5b99b9da3314f867e0d39c67c1 Mon Sep 17 00:00:00 2001 From: Candace Park <56409205+parkiino@users.noreply.github.com> Date: Thu, 27 Jan 2022 16:24:33 -0500 Subject: [PATCH 30/45] [Security Solution][Endpoint][Policy] Remove GET policy list api route (#123873) --- .../common/endpoint/schema/policy.ts | 18 ---- .../endpoint/routes/policy/handlers.test.ts | 90 +------------------ .../server/endpoint/routes/policy/handlers.ts | 33 ------- .../server/endpoint/routes/policy/index.ts | 21 +---- .../apis/endpoint_authz.ts | 5 -- 5 files changed, 2 insertions(+), 165 deletions(-) diff --git a/x-pack/plugins/security_solution/common/endpoint/schema/policy.ts b/x-pack/plugins/security_solution/common/endpoint/schema/policy.ts index dab0845dd252d..9b02ab073c9ce 100644 --- a/x-pack/plugins/security_solution/common/endpoint/schema/policy.ts +++ b/x-pack/plugins/security_solution/common/endpoint/schema/policy.ts @@ -19,21 +19,3 @@ export const GetAgentPolicySummaryRequestSchema = { policy_id: schema.nullable(schema.string()), }), }; - -const ListWithKuerySchema = schema.object({ - page: schema.maybe(schema.number({ defaultValue: 1 })), - pageSize: schema.maybe(schema.number({ defaultValue: 20 })), - sort: schema.maybe(schema.string()), - sortOrder: schema.maybe(schema.oneOf([schema.literal('desc'), schema.literal('asc')])), - showUpgradeable: schema.maybe(schema.boolean()), - kuery: schema.maybe( - schema.oneOf([ - schema.string(), - schema.any(), // KueryNode - ]) - ), -}); - -export const GetEndpointPackagePolicyRequestSchema = { - query: ListWithKuerySchema, -}; diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/policy/handlers.test.ts b/x-pack/plugins/security_solution/server/endpoint/routes/policy/handlers.test.ts index 9ad26443cf0d5..b8efa2636d8c7 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/policy/handlers.test.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/policy/handlers.test.ts @@ -12,12 +12,7 @@ import { createRouteHandlerContext, } from '../../mocks'; import { createMockAgentClient, createMockAgentService } from '../../../../../fleet/server/mocks'; -import { PACKAGE_POLICY_SAVED_OBJECT_TYPE } from '../../../../../fleet/common'; -import { - getHostPolicyResponseHandler, - getAgentPolicySummaryHandler, - getPolicyListHandler, -} from './handlers'; +import { getHostPolicyResponseHandler, getAgentPolicySummaryHandler } from './handlers'; import { KibanaResponseFactory, SavedObjectsClientContract, @@ -38,7 +33,6 @@ import { AgentClient, AgentService } from '../../../../../fleet/server/services' import { get } from 'lodash'; // eslint-disable-next-line @kbn/eslint/no-restricted-paths import { ScopedClusterClientMock } from '../../../../../../../src/core/server/elasticsearch/client/mocks'; -import { PackagePolicyServiceInterface } from '../../../../../fleet/server'; describe('test policy response handler', () => { let endpointAppContextService: EndpointAppContextService; @@ -242,88 +236,6 @@ describe('test policy response handler', () => { }); }); }); - describe('test GET policy list handler', () => { - let mockPackagePolicyService: jest.Mocked; - let policyHandler: ReturnType; - - beforeEach(() => { - const endpointAppContextServiceStartContract = - createMockEndpointAppContextServiceStartContract(); - - mockScopedClient = elasticsearchServiceMock.createScopedClusterClient(); - mockSavedObjectClient = savedObjectsClientMock.create(); - mockResponse = httpServerMock.createResponseFactory(); - - if (endpointAppContextServiceStartContract.packagePolicyService) { - mockPackagePolicyService = - endpointAppContextServiceStartContract.packagePolicyService as jest.Mocked; - } else { - expect(endpointAppContextServiceStartContract.packagePolicyService).toBeTruthy(); - } - - mockPackagePolicyService.list.mockImplementation(() => { - return Promise.resolve({ - items: [], - total: 0, - page: 1, - perPage: 10, - }); - }); - endpointAppContextService = new EndpointAppContextService(); - endpointAppContextService.setup(createMockEndpointAppContextServiceSetupContract()); - endpointAppContextService.start(endpointAppContextServiceStartContract); - policyHandler = getPolicyListHandler({ - logFactory: loggingSystemMock.create(), - service: endpointAppContextService, - config: () => Promise.resolve(createMockConfig()), - experimentalFeatures: parseExperimentalConfigValue(createMockConfig().enableExperimental), - }); - }); - - afterEach(() => endpointAppContextService.stop()); - - it('should return a list of endpoint package policies', async () => { - const mockRequest = httpServerMock.createKibanaRequest({ - query: {}, - }); - - await policyHandler( - createRouteHandlerContext(mockScopedClient, mockSavedObjectClient), - mockRequest, - mockResponse - ); - expect(mockPackagePolicyService.list).toHaveBeenCalled(); - expect(mockPackagePolicyService.list.mock.calls[0][1]).toEqual({ - kuery: `${PACKAGE_POLICY_SAVED_OBJECT_TYPE}.package.name: endpoint`, - perPage: undefined, - sortField: undefined, - }); - expect(mockResponse.ok).toBeCalled(); - expect(mockResponse.ok.mock.calls[0][0]?.body).toEqual({ - items: [], - total: 0, - page: 1, - perPage: 10, - }); - }); - - it('should add endpoint-specific kuery to the requests kuery', async () => { - const mockRequest = httpServerMock.createKibanaRequest({ - query: { kuery: 'some query' }, - }); - - await policyHandler( - createRouteHandlerContext(mockScopedClient, mockSavedObjectClient), - mockRequest, - mockResponse - ); - expect(mockPackagePolicyService.list.mock.calls[0][1]).toEqual({ - kuery: `(some query) and ${PACKAGE_POLICY_SAVED_OBJECT_TYPE}.package.name: endpoint`, - perPage: undefined, - sortField: undefined, - }); - }); - }); }); /** diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/policy/handlers.ts b/x-pack/plugins/security_solution/server/endpoint/routes/policy/handlers.ts index beb197ec5d5f7..d02e0402a922e 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/policy/handlers.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/policy/handlers.ts @@ -11,13 +11,10 @@ import { policyIndexPattern } from '../../../../common/endpoint/constants'; import { GetPolicyResponseSchema, GetAgentPolicySummaryRequestSchema, - GetEndpointPackagePolicyRequestSchema, } from '../../../../common/endpoint/schema/policy'; import { EndpointAppContext } from '../../types'; import { getAgentPolicySummary, getPolicyResponseByAgentId } from './service'; import { GetAgentSummaryResponse } from '../../../../common/endpoint/types'; -import { wrapErrorIfNeeded } from '../../utils'; -import { PACKAGE_POLICY_SAVED_OBJECT_TYPE } from '../../../../../fleet/common'; export const getHostPolicyResponseHandler = function (): RequestHandler< undefined, @@ -65,33 +62,3 @@ export const getAgentPolicySummaryHandler = function ( }); }; }; - -export const getPolicyListHandler = function ( - endpointAppContext: EndpointAppContext -): RequestHandler< - undefined, - TypeOf, - undefined -> { - return async (context, request, response) => { - const soClient = context.core.savedObjects.client; - const fleetServices = endpointAppContext.service.getScopedFleetServices(request); - const endpointFilteredKuery = `${ - request?.query?.kuery ? `(${request.query.kuery}) and ` : '' - }${PACKAGE_POLICY_SAVED_OBJECT_TYPE}.package.name: endpoint`; - try { - const listResponse = await fleetServices.packagePolicy.list(soClient, { - ...request.query, - perPage: request.query.pageSize, - sortField: request.query.sort, - kuery: endpointFilteredKuery, - }); - - return response.ok({ - body: listResponse, - }); - } catch (error) { - throw wrapErrorIfNeeded(error); - } - }; -}; diff --git a/x-pack/plugins/security_solution/server/endpoint/routes/policy/index.ts b/x-pack/plugins/security_solution/server/endpoint/routes/policy/index.ts index 53afaadc23142..8991dfa9a6bcc 100644 --- a/x-pack/plugins/security_solution/server/endpoint/routes/policy/index.ts +++ b/x-pack/plugins/security_solution/server/endpoint/routes/policy/index.ts @@ -10,16 +10,10 @@ import { EndpointAppContext } from '../../types'; import { GetPolicyResponseSchema, GetAgentPolicySummaryRequestSchema, - GetEndpointPackagePolicyRequestSchema, } from '../../../../common/endpoint/schema/policy'; -import { - getHostPolicyResponseHandler, - getAgentPolicySummaryHandler, - getPolicyListHandler, -} from './handlers'; +import { getHostPolicyResponseHandler, getAgentPolicySummaryHandler } from './handlers'; import { AGENT_POLICY_SUMMARY_ROUTE, - BASE_POLICY_ROUTE, BASE_POLICY_RESPONSE_ROUTE, } from '../../../../common/endpoint/constants'; import { withEndpointAuthz } from '../with_endpoint_authz'; @@ -54,17 +48,4 @@ export function registerPolicyRoutes(router: IRouter, endpointAppContext: Endpoi getAgentPolicySummaryHandler(endpointAppContext) ) ); - - router.get( - { - path: BASE_POLICY_ROUTE, - validate: GetEndpointPackagePolicyRequestSchema, - options: { authRequired: true }, - }, - withEndpointAuthz( - { all: ['canAccessEndpointManagement'] }, - logger, - getPolicyListHandler(endpointAppContext) - ) - ); } diff --git a/x-pack/test/security_solution_endpoint_api_int/apis/endpoint_authz.ts b/x-pack/test/security_solution_endpoint_api_int/apis/endpoint_authz.ts index a2b03198234a6..1b9ce8911c5bf 100644 --- a/x-pack/test/security_solution_endpoint_api_int/apis/endpoint_authz.ts +++ b/x-pack/test/security_solution_endpoint_api_int/apis/endpoint_authz.ts @@ -62,11 +62,6 @@ export default function ({ getService }: FtrProviderContext) { path: '/api/endpoint/policy_response?agentId=1', body: undefined, }, - { - method: 'get', - path: '/api/endpoint/policy', - body: undefined, - }, { method: 'post', path: '/api/endpoint/isolate', From 159825a4769862bc4c797010528bcf4783f7d190 Mon Sep 17 00:00:00 2001 From: Kyle Pollich Date: Thu, 27 Jan 2022 16:45:43 -0500 Subject: [PATCH 31/45] Fix package policy merge logic for boolean values (#123974) --- .../fleet/server/services/package_policy.test.ts | 13 +++++++++++++ .../plugins/fleet/server/services/package_policy.ts | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/fleet/server/services/package_policy.test.ts b/x-pack/plugins/fleet/server/services/package_policy.test.ts index 72f6ff49e608d..a44355522dd42 100644 --- a/x-pack/plugins/fleet/server/services/package_policy.test.ts +++ b/x-pack/plugins/fleet/server/services/package_policy.test.ts @@ -1993,6 +1993,10 @@ describe('Package policy service', () => { type: 'text', value: ['/var/log/logfile.log'], }, + is_value_enabled: { + type: 'bool', + value: false, + }, }, streams: [], }, @@ -2023,6 +2027,10 @@ describe('Package policy service', () => { name: 'path', type: 'text', }, + { + name: 'is_value_enabled', + type: 'bool', + }, ], }, ], @@ -2042,6 +2050,10 @@ describe('Package policy service', () => { type: 'text', value: '/var/log/new-logfile.log', }, + is_value_enabled: { + type: 'bool', + value: 'true', + }, }, }, ]; @@ -2055,6 +2067,7 @@ describe('Package policy service', () => { false ); expect(result.inputs[0]?.vars?.path.value).toEqual(['/var/log/logfile.log']); + expect(result.inputs[0]?.vars?.is_value_enabled.value).toEqual(false); }); }); diff --git a/x-pack/plugins/fleet/server/services/package_policy.ts b/x-pack/plugins/fleet/server/services/package_policy.ts index 1ad4ff1adbdd0..b0ef179834ebb 100644 --- a/x-pack/plugins/fleet/server/services/package_policy.ts +++ b/x-pack/plugins/fleet/server/services/package_policy.ts @@ -1369,7 +1369,7 @@ function deepMergeVars(original: any, override: any, keepOriginalValue = false): // Ensure that any value from the original object is persisted on the newly merged resulting object, // even if we merge other data about the given variable - if (keepOriginalValue && originalVar?.value) { + if (keepOriginalValue && originalVar?.value !== undefined) { result.vars[name].value = originalVar.value; } } From 940bc78407fe23ad983375a56831083d5bc81071 Mon Sep 17 00:00:00 2001 From: Melissa Alvarez Date: Thu, 27 Jan 2022 17:48:44 -0500 Subject: [PATCH 32/45] replace deprecated api usage (#123970) --- x-pack/plugins/ml/public/maps/anomaly_source_field.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/public/maps/anomaly_source_field.ts b/x-pack/plugins/ml/public/maps/anomaly_source_field.ts index 40c64171a310b..bc03363970893 100644 --- a/x-pack/plugins/ml/public/maps/anomaly_source_field.ts +++ b/x-pack/plugins/ml/public/maps/anomaly_source_field.ts @@ -8,12 +8,12 @@ // eslint-disable-next-line max-classes-per-file import { escape } from 'lodash'; import { i18n } from '@kbn/i18n'; +import { Filter } from '@kbn/es-query'; import { IField, IVectorSource } from '../../../maps/public'; import { FIELD_ORIGIN } from '../../../maps/common'; import { TileMetaFeature } from '../../../maps/common/descriptor_types'; import { AnomalySource } from './anomaly_source'; import { ITooltipProperty } from '../../../maps/public'; -import { Filter } from '../../../../../src/plugins/data/public'; export const ACTUAL_LABEL = i18n.translate('xpack.ml.maps.anomalyLayerActualLabel', { defaultMessage: 'Actual', From 761ea6f1485b5da3229e2c7feab30ee91db22e9f Mon Sep 17 00:00:00 2001 From: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com> Date: Thu, 27 Jan 2022 23:55:58 +0100 Subject: [PATCH 33/45] [Alerting] Remove state variables from action variable menu (#123702) * Remove state variables from action variable menu in the create rule flyout --- .../application/lib/action_variables.test.ts | 702 +++++------------- .../application/lib/action_variables.ts | 22 +- .../action_type_form.tsx | 6 +- .../triggers_actions_ui/public/types.ts | 4 +- 4 files changed, 187 insertions(+), 547 deletions(-) diff --git a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_variables.test.ts b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_variables.test.ts index 474fff65795a5..30e594f35d1f8 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_variables.test.ts +++ b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_variables.test.ts @@ -11,564 +11,196 @@ import { ALERTS_FEATURE_ID } from '../../../../alerting/common'; beforeEach(() => jest.resetAllMocks()); +const mockContextVariables = (withBraces: boolean = false) => [ + { + name: 'fooC', + description: 'fooC-description', + ...(withBraces && { useWithTripleBracesInTemplates: true }), + }, + { name: 'barC', description: 'barC-description' }, +]; + +const mockStateVariables = (withBraces: boolean = false) => [ + { name: 'fooS', description: 'fooS-description' }, + { + name: 'barS', + description: 'barS-description', + ...(withBraces && { useWithTripleBracesInTemplates: true }), + }, +]; + +const mockParamsVariables = (withBraces: boolean = false) => [ + { + name: 'fooP', + description: 'fooP-description', + ...(withBraces && { useWithTripleBracesInTemplates: true }), + }, +]; + +const expectedTransformResult = [ + { description: 'The ID of the rule.', name: 'rule.id' }, + { description: 'The name of the rule.', name: 'rule.name' }, + { description: 'The space ID of the rule.', name: 'rule.spaceId' }, + { description: 'The tags of the rule.', name: 'rule.tags' }, + { description: 'The type of rule.', name: 'rule.type' }, + { description: 'The date the rule scheduled the action.', name: 'date' }, + { description: 'The ID of the alert that scheduled actions for the rule.', name: 'alert.id' }, + { + description: 'The action group of the alert that scheduled actions for the rule.', + name: 'alert.actionGroup', + }, + { + description: 'The action subgroup of the alert that scheduled actions for the rule.', + name: 'alert.actionSubgroup', + }, + { + description: + 'The human readable name of the action group of the alert that scheduled actions for the rule.', + name: 'alert.actionGroupName', + }, + { + description: 'The configured server.publicBaseUrl value or empty string if not configured.', + name: 'kibanaBaseUrl', + }, + { + deprecated: true, + description: 'This has been deprecated in favor of rule.id.', + name: 'alertId', + }, + { + deprecated: true, + description: 'This has been deprecated in favor of rule.name.', + name: 'alertName', + }, + { + deprecated: true, + description: 'This has been deprecated in favor of alert.id.', + name: 'alertInstanceId', + }, + { + deprecated: true, + description: 'This has been deprecated in favor of alert.actionGroup.', + name: 'alertActionGroup', + }, + { + deprecated: true, + description: 'This has been deprecated in favor of alert.actionGroupName.', + name: 'alertActionGroupName', + }, + { + deprecated: true, + description: 'This has been deprecated in favor of alert.actionSubgroup.', + name: 'alertActionSubgroup', + }, + { + deprecated: true, + description: 'This has been deprecated in favor of rule.spaceId.', + name: 'spaceId', + }, + { + deprecated: true, + description: 'This has been deprecated in favor of rule.tags.', + name: 'tags', + }, +]; + +const expectedContextTransformResult = (withBraces: boolean = false) => [ + { + description: 'fooC-description', + name: 'context.fooC', + ...(withBraces && { useWithTripleBracesInTemplates: true }), + }, + { + description: 'barC-description', + name: 'context.barC', + }, +]; + +const expectedStateTransformResult = (withBraces: boolean = false) => [ + { description: 'fooS-description', name: 'state.fooS' }, + { + description: 'barS-description', + name: 'state.barS', + ...(withBraces && { useWithTripleBracesInTemplates: true }), + }, +]; + +const expectedParamsTransformResult = (withBraces: boolean = false) => [ + { + description: 'fooP-description', + name: 'params.fooP', + ...(withBraces && { useWithTripleBracesInTemplates: true }), + }, +]; + describe('transformActionVariables', () => { - test('should return correct variables when no state or context provided', async () => { + test('should return correct variables when no state, no context, no params provided', async () => { const alertType = getAlertType({ context: [], state: [], params: [] }); - expect(transformActionVariables(alertType.actionVariables)).toMatchInlineSnapshot(` - Array [ - Object { - "description": "The ID of the rule.", - "name": "rule.id", - }, - Object { - "description": "The name of the rule.", - "name": "rule.name", - }, - Object { - "description": "The space ID of the rule.", - "name": "rule.spaceId", - }, - Object { - "description": "The tags of the rule.", - "name": "rule.tags", - }, - Object { - "description": "The type of rule.", - "name": "rule.type", - }, - Object { - "description": "The date the rule scheduled the action.", - "name": "date", - }, - Object { - "description": "The ID of the alert that scheduled actions for the rule.", - "name": "alert.id", - }, - Object { - "description": "The action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroup", - }, - Object { - "description": "The action subgroup of the alert that scheduled actions for the rule.", - "name": "alert.actionSubgroup", - }, - Object { - "description": "The human readable name of the action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroupName", - }, - Object { - "description": "The configured server.publicBaseUrl value or empty string if not configured.", - "name": "kibanaBaseUrl", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.id.", - "name": "alertId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.name.", - "name": "alertName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.id.", - "name": "alertInstanceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroup.", - "name": "alertActionGroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroupName.", - "name": "alertActionGroupName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionSubgroup.", - "name": "alertActionSubgroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.spaceId.", - "name": "spaceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.tags.", - "name": "tags", - }, - ] - `); + expect(transformActionVariables(alertType.actionVariables)).toEqual(expectedTransformResult); }); - test('should return correct variables when no state provided', async () => { + test('should return correct variables when context is provided', async () => { const alertType = getAlertType({ - context: [ - { name: 'foo', description: 'foo-description' }, - { name: 'bar', description: 'bar-description' }, - ], + context: mockContextVariables(), state: [], params: [], }); - expect(transformActionVariables(alertType.actionVariables)).toMatchInlineSnapshot(` - Array [ - Object { - "description": "The ID of the rule.", - "name": "rule.id", - }, - Object { - "description": "The name of the rule.", - "name": "rule.name", - }, - Object { - "description": "The space ID of the rule.", - "name": "rule.spaceId", - }, - Object { - "description": "The tags of the rule.", - "name": "rule.tags", - }, - Object { - "description": "The type of rule.", - "name": "rule.type", - }, - Object { - "description": "The date the rule scheduled the action.", - "name": "date", - }, - Object { - "description": "The ID of the alert that scheduled actions for the rule.", - "name": "alert.id", - }, - Object { - "description": "The action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroup", - }, - Object { - "description": "The action subgroup of the alert that scheduled actions for the rule.", - "name": "alert.actionSubgroup", - }, - Object { - "description": "The human readable name of the action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroupName", - }, - Object { - "description": "The configured server.publicBaseUrl value or empty string if not configured.", - "name": "kibanaBaseUrl", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.id.", - "name": "alertId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.name.", - "name": "alertName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.id.", - "name": "alertInstanceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroup.", - "name": "alertActionGroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroupName.", - "name": "alertActionGroupName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionSubgroup.", - "name": "alertActionSubgroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.spaceId.", - "name": "spaceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.tags.", - "name": "tags", - }, - Object { - "description": "foo-description", - "name": "context.foo", - }, - Object { - "description": "bar-description", - "name": "context.bar", - }, - ] - `); + expect(transformActionVariables(alertType.actionVariables)).toEqual([ + ...expectedTransformResult, + ...expectedContextTransformResult(), + ]); }); - test('should return correct variables when no context provided', async () => { + test('should return correct variables when state is provided', async () => { const alertType = getAlertType({ context: [], - state: [ - { name: 'foo', description: 'foo-description' }, - { name: 'bar', description: 'bar-description' }, - ], + state: mockStateVariables(), params: [], }); - expect(transformActionVariables(alertType.actionVariables)).toMatchInlineSnapshot(` - Array [ - Object { - "description": "The ID of the rule.", - "name": "rule.id", - }, - Object { - "description": "The name of the rule.", - "name": "rule.name", - }, - Object { - "description": "The space ID of the rule.", - "name": "rule.spaceId", - }, - Object { - "description": "The tags of the rule.", - "name": "rule.tags", - }, - Object { - "description": "The type of rule.", - "name": "rule.type", - }, - Object { - "description": "The date the rule scheduled the action.", - "name": "date", - }, - Object { - "description": "The ID of the alert that scheduled actions for the rule.", - "name": "alert.id", - }, - Object { - "description": "The action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroup", - }, - Object { - "description": "The action subgroup of the alert that scheduled actions for the rule.", - "name": "alert.actionSubgroup", - }, - Object { - "description": "The human readable name of the action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroupName", - }, - Object { - "description": "The configured server.publicBaseUrl value or empty string if not configured.", - "name": "kibanaBaseUrl", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.id.", - "name": "alertId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.name.", - "name": "alertName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.id.", - "name": "alertInstanceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroup.", - "name": "alertActionGroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroupName.", - "name": "alertActionGroupName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionSubgroup.", - "name": "alertActionSubgroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.spaceId.", - "name": "spaceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.tags.", - "name": "tags", - }, - Object { - "description": "foo-description", - "name": "state.foo", - }, - Object { - "description": "bar-description", - "name": "state.bar", - }, - ] - `); + expect(transformActionVariables(alertType.actionVariables)).toEqual([ + ...expectedTransformResult, + ...expectedStateTransformResult(), + ]); }); - test('should return correct variables when both context and state provided', async () => { + test('should return correct variables when context, state and params are provided', async () => { const alertType = getAlertType({ - context: [ - { name: 'fooC', description: 'fooC-description' }, - { name: 'barC', description: 'barC-description' }, - ], - state: [ - { name: 'fooS', description: 'fooS-description' }, - { name: 'barS', description: 'barS-description' }, - ], - params: [{ name: 'fooP', description: 'fooP-description' }], + context: mockContextVariables(), + state: mockStateVariables(), + params: mockParamsVariables(), }); - expect(transformActionVariables(alertType.actionVariables)).toMatchInlineSnapshot(` - Array [ - Object { - "description": "The ID of the rule.", - "name": "rule.id", - }, - Object { - "description": "The name of the rule.", - "name": "rule.name", - }, - Object { - "description": "The space ID of the rule.", - "name": "rule.spaceId", - }, - Object { - "description": "The tags of the rule.", - "name": "rule.tags", - }, - Object { - "description": "The type of rule.", - "name": "rule.type", - }, - Object { - "description": "The date the rule scheduled the action.", - "name": "date", - }, - Object { - "description": "The ID of the alert that scheduled actions for the rule.", - "name": "alert.id", - }, - Object { - "description": "The action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroup", - }, - Object { - "description": "The action subgroup of the alert that scheduled actions for the rule.", - "name": "alert.actionSubgroup", - }, - Object { - "description": "The human readable name of the action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroupName", - }, - Object { - "description": "The configured server.publicBaseUrl value or empty string if not configured.", - "name": "kibanaBaseUrl", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.id.", - "name": "alertId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.name.", - "name": "alertName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.id.", - "name": "alertInstanceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroup.", - "name": "alertActionGroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroupName.", - "name": "alertActionGroupName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionSubgroup.", - "name": "alertActionSubgroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.spaceId.", - "name": "spaceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.tags.", - "name": "tags", - }, - Object { - "description": "fooC-description", - "name": "context.fooC", - }, - Object { - "description": "barC-description", - "name": "context.barC", - }, - Object { - "description": "fooP-description", - "name": "params.fooP", - }, - Object { - "description": "fooS-description", - "name": "state.fooS", - }, - Object { - "description": "barS-description", - "name": "state.barS", - }, - ] - `); + expect(transformActionVariables(alertType.actionVariables)).toEqual([ + ...expectedTransformResult, + ...expectedContextTransformResult(), + ...expectedParamsTransformResult(), + ...expectedStateTransformResult(), + ]); }); test('should return useWithTripleBracesInTemplates with action variables if specified', () => { const alertType = getAlertType({ - context: [ - { name: 'fooC', description: 'fooC-description', useWithTripleBracesInTemplates: true }, - { name: 'barC', description: 'barC-description' }, - ], - state: [ - { name: 'fooS', description: 'fooS-description' }, - { name: 'barS', description: 'barS-description', useWithTripleBracesInTemplates: true }, - ], - params: [ - { - name: 'fooP', - description: 'fooP-description', - useWithTripleBracesInTemplates: true, - }, - ], + context: mockContextVariables(true), + state: mockStateVariables(true), + params: mockParamsVariables(true), + }); + expect(transformActionVariables(alertType.actionVariables)).toEqual([ + ...expectedTransformResult, + ...expectedContextTransformResult(true), + ...expectedParamsTransformResult(true), + ...expectedStateTransformResult(true), + ]); + }); + + test('should return only the required action variables when omitOptionalMessageVariables is provided', () => { + const alertType = getAlertType({ + context: mockContextVariables(), + state: mockStateVariables(), + params: mockParamsVariables(), }); - expect(transformActionVariables(alertType.actionVariables)).toMatchInlineSnapshot(` - Array [ - Object { - "description": "The ID of the rule.", - "name": "rule.id", - }, - Object { - "description": "The name of the rule.", - "name": "rule.name", - }, - Object { - "description": "The space ID of the rule.", - "name": "rule.spaceId", - }, - Object { - "description": "The tags of the rule.", - "name": "rule.tags", - }, - Object { - "description": "The type of rule.", - "name": "rule.type", - }, - Object { - "description": "The date the rule scheduled the action.", - "name": "date", - }, - Object { - "description": "The ID of the alert that scheduled actions for the rule.", - "name": "alert.id", - }, - Object { - "description": "The action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroup", - }, - Object { - "description": "The action subgroup of the alert that scheduled actions for the rule.", - "name": "alert.actionSubgroup", - }, - Object { - "description": "The human readable name of the action group of the alert that scheduled actions for the rule.", - "name": "alert.actionGroupName", - }, - Object { - "description": "The configured server.publicBaseUrl value or empty string if not configured.", - "name": "kibanaBaseUrl", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.id.", - "name": "alertId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.name.", - "name": "alertName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.id.", - "name": "alertInstanceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroup.", - "name": "alertActionGroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionGroupName.", - "name": "alertActionGroupName", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of alert.actionSubgroup.", - "name": "alertActionSubgroup", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.spaceId.", - "name": "spaceId", - }, - Object { - "deprecated": true, - "description": "This has been deprecated in favor of rule.tags.", - "name": "tags", - }, - Object { - "description": "fooC-description", - "name": "context.fooC", - "useWithTripleBracesInTemplates": true, - }, - Object { - "description": "barC-description", - "name": "context.barC", - }, - Object { - "description": "fooP-description", - "name": "params.fooP", - "useWithTripleBracesInTemplates": true, - }, - Object { - "description": "fooS-description", - "name": "state.fooS", - }, - Object { - "description": "barS-description", - "name": "state.barS", - "useWithTripleBracesInTemplates": true, - }, - ] - `); + expect(transformActionVariables(alertType.actionVariables, true)).toEqual([ + ...expectedTransformResult, + ...expectedParamsTransformResult(), + ]); }); }); diff --git a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_variables.ts b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_variables.ts index 9722cc42ed396..2cf1df85a3447 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/lib/action_variables.ts +++ b/x-pack/plugins/triggers_actions_ui/public/application/lib/action_variables.ts @@ -6,17 +6,27 @@ */ import { i18n } from '@kbn/i18n'; -import { ActionVariables } from '../../types'; +import { pick } from 'lodash'; +import { ActionVariables, REQUIRED_ACTION_VARIABLES } from '../../types'; import { ActionVariable } from '../../../../alerting/common'; // return a "flattened" list of action variables for an alertType -export function transformActionVariables(actionVariables: ActionVariables): ActionVariable[] { +export function transformActionVariables( + actionVariables: ActionVariables, + omitOptionalMessageVariables?: boolean +): ActionVariable[] { + const filteredActionVariables: ActionVariables = omitOptionalMessageVariables + ? pick(actionVariables, ...REQUIRED_ACTION_VARIABLES) + : actionVariables; + const alwaysProvidedVars = getAlwaysProvidedActionVariables(); - const contextVars = actionVariables.context - ? prefixKeys(actionVariables.context, 'context.') + const paramsVars = prefixKeys(filteredActionVariables.params, 'params.'); + const contextVars = filteredActionVariables.context + ? prefixKeys(filteredActionVariables.context, 'context.') + : []; + const stateVars = filteredActionVariables.state + ? prefixKeys(filteredActionVariables.state, 'state.') : []; - const paramsVars = prefixKeys(actionVariables.params, 'params.'); - const stateVars = prefixKeys(actionVariables.state, 'state.'); return alwaysProvidedVars.concat(contextVars, paramsVars, stateVars); } diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx index 10244213614e2..4a4230c233dfa 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx @@ -24,7 +24,7 @@ import { EuiBadge, EuiErrorBoundary, } from '@elastic/eui'; -import { partition, pick } from 'lodash'; +import { partition } from 'lodash'; import { ActionVariable, AlertActionParam } from '../../../../../alerting/common'; import { IErrorObject, @@ -33,7 +33,6 @@ import { ActionConnector, ActionVariables, ActionTypeRegistryContract, - REQUIRED_ACTION_VARIABLES, } from '../../../types'; import { checkActionFormActionTypeEnabled } from '../../lib/check_action_type_enabled'; import { hasSaveActionsCapability } from '../../lib/capabilities'; @@ -346,9 +345,8 @@ function getAvailableActionVariables( actionGroup?: ActionGroupWithMessageVariables ) { const transformedActionVariables: ActionVariable[] = transformActionVariables( + actionVariables, actionGroup?.omitOptionalMessageVariables - ? pick(actionVariables, ...REQUIRED_ACTION_VARIABLES) - : actionVariables ); // partition deprecated items so they show up last diff --git a/x-pack/plugins/triggers_actions_ui/public/types.ts b/x-pack/plugins/triggers_actions_ui/public/types.ts index bfb1c9b6280c3..f4ff0254ce0ce 100644 --- a/x-pack/plugins/triggers_actions_ui/public/types.ts +++ b/x-pack/plugins/triggers_actions_ui/public/types.ts @@ -199,8 +199,8 @@ export type ActionConnectorTableItem = ActionConnector & { type AsActionVariables = { [Req in Keys]: ActionVariable[]; }; -export const REQUIRED_ACTION_VARIABLES = ['state', 'params'] as const; -export const OPTIONAL_ACTION_VARIABLES = ['context'] as const; +export const REQUIRED_ACTION_VARIABLES = ['params'] as const; +export const OPTIONAL_ACTION_VARIABLES = ['state', 'context'] as const; export type ActionVariables = AsActionVariables & Partial>; From 75f1e39ac24496f7ebbfed56eb63b131a54f872e Mon Sep 17 00:00:00 2001 From: Scotty Bollinger Date: Thu, 27 Jan 2022 17:20:07 -0600 Subject: [PATCH 34/45] [Workplace Search] Fix bug where modal visible after deleting a group (#123976) This PR fixes a bug in Workplace Search where, after you delete a group, the next group you click into will automatically show the delete modal for that group. --- .../workplace_search/views/groups/group_logic.test.ts | 2 ++ .../applications/workplace_search/views/groups/group_logic.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/group_logic.test.ts b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/group_logic.test.ts index 3048dcedef26f..df61e23fa3cdc 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/group_logic.test.ts +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/group_logic.test.ts @@ -210,11 +210,13 @@ describe('GroupLogic', () => { describe('deleteGroup', () => { beforeEach(() => { GroupLogic.actions.onInitializeGroup(group); + GroupLogic.actions.showConfirmDeleteModal(); }); it('deletes a group', async () => { http.delete.mockReturnValue(Promise.resolve(true)); GroupLogic.actions.deleteGroup(); + expect(GroupLogic.values.confirmDeleteModalVisible).toEqual(false); expect(http.delete).toHaveBeenCalledWith('/internal/workplace_search/groups/123'); await nextTick(); diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/group_logic.ts b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/group_logic.ts index 6e465854ff44f..6b6fa0f21aba2 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/group_logic.ts +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/groups/group_logic.ts @@ -122,6 +122,7 @@ export const GroupLogic = kea>({ { showConfirmDeleteModal: () => true, hideConfirmDeleteModal: () => false, + deleteGroup: () => false, }, ], groupNameInputValue: [ From edf8f203030752885b9a8fc33816945aea85bbf9 Mon Sep 17 00:00:00 2001 From: Davis Plumlee <56367316+dplumlee@users.noreply.github.com> Date: Thu, 27 Jan 2022 19:50:42 -0500 Subject: [PATCH 35/45] [Security Solution][Exceptions] Switches modal to flyout component (#123408) --- .../__tests__/enumerate_patterns.test.js | 4 +- ...odal.spec.ts => exceptions_flyout.spec.ts} | 18 +-- .../cypress/screens/exceptions.ts | 4 +- .../cypress/tasks/exceptions.ts | 10 +- .../cypress/tasks/rule_details.ts | 2 +- .../index.test.tsx | 20 +-- .../index.tsx | 110 ++++++++------- .../translations.ts | 0 .../index.test.tsx | 36 +++-- .../index.tsx | 125 ++++++++++-------- .../translations.ts | 0 .../components/exceptions/viewer/index.tsx | 20 +-- .../components/exceptions/viewer/reducer.ts | 6 +- .../timeline_actions/alert_context_menu.tsx | 22 +-- .../side_panel/event_details/footer.tsx | 4 +- 15 files changed, 202 insertions(+), 179 deletions(-) rename x-pack/plugins/security_solution/cypress/integration/exceptions/{exceptions_modal.spec.ts => exceptions_flyout.spec.ts} (94%) rename x-pack/plugins/security_solution/public/common/components/exceptions/{add_exception_modal => add_exception_flyout}/index.test.tsx (97%) rename x-pack/plugins/security_solution/public/common/components/exceptions/{add_exception_modal => add_exception_flyout}/index.tsx (89%) rename x-pack/plugins/security_solution/public/common/components/exceptions/{add_exception_modal => add_exception_flyout}/translations.ts (100%) rename x-pack/plugins/security_solution/public/common/components/exceptions/{edit_exception_modal => edit_exception_flyout}/index.test.tsx (93%) rename x-pack/plugins/security_solution/public/common/components/exceptions/{edit_exception_modal => edit_exception_flyout}/index.tsx (84%) rename x-pack/plugins/security_solution/public/common/components/exceptions/{edit_exception_modal => edit_exception_flyout}/translations.ts (100%) diff --git a/src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js b/src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js index 40d36ed46ea34..d8b67b677ae1b 100644 --- a/src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js +++ b/src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js @@ -37,13 +37,13 @@ describe(`enumeratePatterns`, () => { 'src/plugins/charts/common/static/color_maps/color_maps.ts kibana-app' ); }); - it(`should resolve x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_modal/translations.ts to kibana-security`, () => { + it(`should resolve x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_flyout/translations.ts to kibana-security`, () => { const short = 'x-pack/plugins/security_solution'; const actual = enumeratePatterns(REPO_ROOT)(log)(new Map([[short, ['kibana-security']]])); expect( actual[0].includes( - `${short}/public/common/components/exceptions/edit_exception_modal/translations.ts kibana-security` + `${short}/public/common/components/exceptions/edit_exception_flyout/translations.ts kibana-security` ) ).toBe(true); }); 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_flyout.spec.ts similarity index 94% rename from x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_modal.spec.ts rename to x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_flyout.spec.ts index 557cb9f36721c..26e00e4f6ae79 100644 --- a/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_modal.spec.ts +++ b/x-pack/plugins/security_solution/cypress/integration/exceptions/exceptions_flyout.spec.ts @@ -13,11 +13,11 @@ import { createCustomRule } from '../../tasks/api_calls/rules'; import { goToRuleDetails } from '../../tasks/alerts_detection_rules'; import { esArchiverLoad, esArchiverUnload } from '../../tasks/es_archiver'; import { loginAndWaitForPageWithoutDateRange } from '../../tasks/login'; -import { openExceptionModalFromRuleSettings, goToExceptionsTab } from '../../tasks/rule_details'; +import { openExceptionFlyoutFromRuleSettings, goToExceptionsTab } from '../../tasks/rule_details'; import { addExceptionEntryFieldValue, addExceptionEntryFieldValueOfItemX, - closeExceptionBuilderModal, + closeExceptionBuilderFlyout, } from '../../tasks/exceptions'; import { ADD_AND_BTN, @@ -35,11 +35,11 @@ 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 +// but the exceptions flyout has a lot of logic making it difficult // to test in enzyme and very small changes can inadvertently add // bugs. As the complexity within the builder grows, these should // ensure the most basic logic holds. -describe('Exceptions modal', () => { +describe('Exceptions flyout', () => { before(() => { cleanKibana(); loginAndWaitForPageWithoutDateRange(DETECTIONS_RULE_MANAGEMENT_URL); @@ -76,7 +76,7 @@ describe('Exceptions modal', () => { cy.get(FIELD_INPUT).eq(0).should('have.text', 'agent.name'); cy.get(FIELD_INPUT).eq(1).should('have.text', 'c'); - closeExceptionBuilderModal(); + closeExceptionBuilderFlyout(); }); it('Does not overwrite values or-ed together', () => { @@ -129,11 +129,11 @@ describe('Exceptions modal', () => { .should('have.text', 'user.id.keyword'); cy.get(EXCEPTION_ITEM_CONTAINER).eq(1).should('not.exist'); - closeExceptionBuilderModal(); + closeExceptionBuilderFlyout(); }); it('Does not overwrite values of nested entry items', () => { - openExceptionModalFromRuleSettings(); + openExceptionFlyoutFromRuleSettings(); cy.get(LOADING_SPINNER).should('not.exist'); // exception item 1 @@ -193,7 +193,7 @@ describe('Exceptions modal', () => { .eq(1) .should('have.text', '@timestamp'); - closeExceptionBuilderModal(); + closeExceptionBuilderFlyout(); }); it('Contains custom index fields', () => { @@ -202,6 +202,6 @@ describe('Exceptions modal', () => { cy.get(FIELD_INPUT).eq(0).click({ force: true }); cy.get(EXCEPTION_FIELD_LIST).contains('unique_value.test'); - closeExceptionBuilderModal(); + closeExceptionBuilderFlyout(); }); }); diff --git a/x-pack/plugins/security_solution/cypress/screens/exceptions.ts b/x-pack/plugins/security_solution/cypress/screens/exceptions.ts index 9bba5e4b555dc..e1b9e0639dfaa 100644 --- a/x-pack/plugins/security_solution/cypress/screens/exceptions.ts +++ b/x-pack/plugins/security_solution/cypress/screens/exceptions.ts @@ -34,7 +34,7 @@ export const ENTRY_DELETE_BTN = '[data-test-subj="builderItemEntryDeleteButton"] export const CANCEL_BTN = '[data-test-subj="cancelExceptionAddButton"]'; -export const BUILDER_MODAL_BODY = '[data-test-subj="exceptionsBuilderWrapper"]'; +export const BUILDER_FLYOUT_BODY = '[data-test-subj="exceptionsBuilderWrapper"]'; export const EXCEPTIONS_TABLE = '[data-test-subj="exceptions-table"]'; @@ -59,3 +59,5 @@ export const EXCEPTION_ITEM_CONTAINER = '[data-test-subj="exceptionEntriesContai export const EXCEPTION_FIELD_LIST = '[data-test-subj="comboBoxOptionsList fieldAutocompleteComboBox-optionsList"]'; + +export const EXCEPTION_FLYOUT_TITLE = '[data-test-subj="exception-flyout-title"]'; diff --git a/x-pack/plugins/security_solution/cypress/tasks/exceptions.ts b/x-pack/plugins/security_solution/cypress/tasks/exceptions.ts index 4548c921890c8..1dddc7890e6dc 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/exceptions.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/exceptions.ts @@ -9,8 +9,8 @@ import { FIELD_INPUT, OPERATOR_INPUT, CANCEL_BTN, - BUILDER_MODAL_BODY, EXCEPTION_ITEM_CONTAINER, + EXCEPTION_FLYOUT_TITLE, } from '../screens/exceptions'; export const addExceptionEntryFieldValueOfItemX = ( @@ -23,19 +23,19 @@ export const addExceptionEntryFieldValueOfItemX = ( .find(FIELD_INPUT) .eq(fieldIndex) .type(`${field}{enter}`); - cy.get(BUILDER_MODAL_BODY).click(); + cy.get(EXCEPTION_FLYOUT_TITLE).click(); }; export const addExceptionEntryFieldValue = (field: string, index = 0) => { cy.get(FIELD_INPUT).eq(index).type(`${field}{enter}`); - cy.get(BUILDER_MODAL_BODY).click(); + cy.get(EXCEPTION_FLYOUT_TITLE).click(); }; export const addExceptionEntryOperatorValue = (operator: string, index = 0) => { cy.get(OPERATOR_INPUT).eq(index).type(`${operator}{enter}`); - cy.get(BUILDER_MODAL_BODY).click(); + cy.get(EXCEPTION_FLYOUT_TITLE).click(); }; -export const closeExceptionBuilderModal = () => { +export const closeExceptionBuilderFlyout = () => { cy.get(CANCEL_BTN).click(); }; diff --git a/x-pack/plugins/security_solution/cypress/tasks/rule_details.ts b/x-pack/plugins/security_solution/cypress/tasks/rule_details.ts index f001af9df62d2..a9f22a492d117 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/rule_details.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/rule_details.ts @@ -58,7 +58,7 @@ export const addsFieldsToTimeline = (search: string, fields: string[]) => { closeFieldsBrowser(); }; -export const openExceptionModalFromRuleSettings = () => { +export const openExceptionFlyoutFromRuleSettings = () => { cy.get(ADD_EXCEPTIONS_BTN).click(); cy.get(LOADING_SPINNER).should('not.exist'); cy.get(FIELD_INPUT).should('be.visible'); diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_modal/index.test.tsx b/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_flyout/index.test.tsx similarity index 97% rename from x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_modal/index.test.tsx rename to x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_flyout/index.test.tsx index 0e118d527c69b..d61501fb08be7 100644 --- a/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_modal/index.test.tsx +++ b/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_flyout/index.test.tsx @@ -10,8 +10,8 @@ import { ThemeProvider } from 'styled-components'; import { mount, ReactWrapper } from 'enzyme'; import { waitFor } from '@testing-library/react'; -import { AddExceptionModal } from './'; -import { useCurrentUser } from '../../../../common/lib/kibana'; +import { AddExceptionFlyout } from '.'; +import { useCurrentUser } from '../../../lib/kibana'; import { getExceptionBuilderComponentLazy } from '../../../../../../lists/public'; import { useAsync } from '@kbn/securitysolution-hook-utils'; import { getExceptionListSchemaMock } from '../../../../../../lists/common/schemas/response/exception_list_schema.mock'; @@ -127,7 +127,7 @@ describe('When the add exception modal is opened', () => { ]); wrapper = mount( - { ); }); it('should show the loading spinner', () => { - expect(wrapper.find('[data-test-subj="loadingAddExceptionModal"]').exists()).toBeTruthy(); + expect(wrapper.find('[data-test-subj="loadingAddExceptionFlyout"]').exists()).toBeTruthy(); }); }); @@ -148,7 +148,7 @@ describe('When the add exception modal is opened', () => { beforeEach(async () => { wrapper = mount( - { }; wrapper = mount( - { }; wrapper = mount( - { }; wrapper = mount( - { }; wrapper = mount( - { test('when there are exception builder errors submit button is disabled', async () => { const wrapper = mount( - void; } -const Modal = styled(EuiModal)` +const FlyoutHeader = styled(EuiFlyoutHeader)` ${({ theme }) => css` - width: ${theme.eui.euiBreakpoints.l}; - max-width: ${theme.eui.euiBreakpoints.l}; + border-bottom: 1px solid ${theme.eui.euiColorLightShade}; `} `; -const ModalHeader = styled(EuiModalHeader)` - flex-direction: column; - align-items: flex-start; -`; - -const ModalHeaderSubtitle = styled.div` +const FlyoutSubtitle = styled.div` ${({ theme }) => css` color: ${theme.eui.euiColorMediumShade}; `} `; -const ModalBodySection = styled.section` +const FlyoutBodySection = styled.section` ${({ theme }) => css` padding: ${theme.eui.euiSizeS} ${theme.eui.euiSizeL}; @@ -112,7 +108,22 @@ const ModalBodySection = styled.section` `} `; -export const AddExceptionModal = memo(function AddExceptionModal({ +const FlyoutCheckboxesSection = styled(EuiFlyoutBody)` + overflow-y: inherit; + height: auto; + + .euiFlyoutBody__overflowContent { + padding-top: 0; + } +`; + +const FlyoutFooterGroup = styled(EuiFlexGroup)` + ${({ theme }) => css` + padding: ${theme.eui.euiSizeS}; + `} +`; + +export const AddExceptionFlyout = memo(function AddExceptionFlyout({ ruleName, ruleId, ruleIndices, @@ -123,7 +134,7 @@ export const AddExceptionModal = memo(function AddExceptionModal({ onConfirm, onRuleChange, alertStatus, -}: AddExceptionModalProps) { +}: AddExceptionFlyoutProps) { const { http, data } = useKibana().services; const [errorsExist, setErrorExists] = useState(false); const [comment, setComment] = useState(''); @@ -411,17 +422,20 @@ export const AddExceptionModal = memo(function AddExceptionModal({ }, [hasOsSelection, selectedOs]); return ( - - - {addExceptionMessage} + + + +

{addExceptionMessage}

+
- + {ruleName} - -
+ + + {fetchOrCreateListError != null && ( - + - + )} {fetchOrCreateListError == null && (isLoadingExceptionList || @@ -439,7 +453,7 @@ export const AddExceptionModal = memo(function AddExceptionModal({ isSignalIndexLoading || isAlertDataLoading || isSignalIndexPatternLoading) && ( - + )} {fetchOrCreateListError == null && !isSignalIndexLoading && @@ -451,7 +465,7 @@ export const AddExceptionModal = memo(function AddExceptionModal({ !isAlertDataLoading && ruleExceptionList && ( <> - + {isRuleEQLSequenceStatement && ( <> - + - + {alertData != null && alertStatus !== 'closed' && ( )} - + )} {fetchOrCreateListError == null && ( - - - {i18n.CANCEL} - - - - {addExceptionMessage} - - + + + + {i18n.CANCEL} + + + + {addExceptionMessage} + + + )} -
+ ); }); diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_modal/translations.ts b/x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_flyout/translations.ts similarity index 100% rename from x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_modal/translations.ts rename to x-pack/plugins/security_solution/public/common/components/exceptions/add_exception_flyout/translations.ts diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_modal/index.test.tsx b/x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_flyout/index.test.tsx similarity index 93% rename from x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_modal/index.test.tsx rename to x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_flyout/index.test.tsx index 7a634b7fe10ec..daa4efa9f6874 100644 --- a/x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_modal/index.test.tsx +++ b/x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_flyout/index.test.tsx @@ -10,8 +10,8 @@ import { waitFor } from '@testing-library/react'; import { ThemeProvider } from 'styled-components'; import { mount, ReactWrapper } from 'enzyme'; -import { EditExceptionModal } from './'; -import { useCurrentUser } from '../../../../common/lib/kibana'; +import { EditExceptionFlyout } from '.'; +import { useCurrentUser } from '../../../lib/kibana'; import { useFetchIndex } from '../../../containers/source'; import { stubIndexPattern, createStubIndexPattern } from 'src/plugins/data/common/stubs'; import { useAddOrUpdateException } from '../use_add_exception'; @@ -61,7 +61,7 @@ describe('When the edit exception modal is opened', () => { const ruleName = 'test rule'; beforeEach(() => { - const emptyComp = ; + const emptyComp = ; mockGetExceptionBuilderComponentLazy.mockReturnValue(emptyComp); mockUseSignalIndex.mockReturnValue({ loading: false, @@ -109,7 +109,7 @@ describe('When the edit exception modal is opened', () => { ]); const wrapper = mount( - { ); await waitFor(() => { - expect(wrapper.find('[data-test-subj="loadingEditExceptionModal"]').exists()).toBeTruthy(); + expect(wrapper.find('[data-test-subj="loadingEditExceptionFlyout"]').exists()).toBeTruthy(); }); }); }); @@ -138,7 +138,7 @@ describe('When the edit exception modal is opened', () => { }; wrapper = mount( - { ).not.toBeDisabled(); }); it('renders the exceptions builder', () => { - expect( - wrapper.find('[data-test-subj="edit-exception-modal-builder"]').exists() - ).toBeTruthy(); + expect(wrapper.find('[data-test-subj="edit-exception-builder"]').exists()).toBeTruthy(); }); it('should contain the endpoint specific documentation text', () => { expect( @@ -183,7 +181,7 @@ describe('When the edit exception modal is opened', () => { beforeEach(async () => { wrapper = mount( - { ).toBeDisabled(); }); it('renders the exceptions builder', () => { - expect( - wrapper.find('[data-test-subj="edit-exception-modal-builder"]').exists() - ).toBeTruthy(); + expect(wrapper.find('[data-test-subj="edit-exception-builder"]').exists()).toBeTruthy(); }); it('should contain the endpoint specific documentation text', () => { expect( @@ -236,7 +232,7 @@ describe('When the edit exception modal is opened', () => { })); wrapper = mount( - { ).not.toBeDisabled(); }); it('renders the exceptions builder', () => { - expect(wrapper.find('[data-test-subj="edit-exception-modal-builder"]').exists()).toBeTruthy(); + expect(wrapper.find('[data-test-subj="edit-exception-builder"]').exists()).toBeTruthy(); }); it('should not contain the endpoint specific documentation text', () => { expect(wrapper.find('[data-test-subj="edit-exception-endpoint-text"]').exists()).toBeFalsy(); @@ -280,7 +276,7 @@ describe('When the edit exception modal is opened', () => { beforeEach(async () => { wrapper = mount( - { ).not.toBeDisabled(); }); it('renders the exceptions builder', () => { - expect(wrapper.find('[data-test-subj="edit-exception-modal-builder"]').exists()).toBeTruthy(); + expect(wrapper.find('[data-test-subj="edit-exception-builder"]').exists()).toBeTruthy(); }); it('should not contain the endpoint specific documentation text', () => { expect(wrapper.find('[data-test-subj="edit-exception-endpoint-text"]').exists()).toBeFalsy(); @@ -325,7 +321,7 @@ describe('When the edit exception modal is opened', () => { const exceptionItemMock = { ...getExceptionListItemSchemaMock(), entries: [] }; wrapper = mount( - { ).toBeDisabled(); }); it('renders the exceptions builder', () => { - expect(wrapper.find('[data-test-subj="edit-exception-modal-builder"]').exists()).toBeTruthy(); + expect(wrapper.find('[data-test-subj="edit-exception-builder"]').exists()).toBeTruthy(); }); it('should have the bulk close checkbox disabled', () => { expect( @@ -361,7 +357,7 @@ describe('When the edit exception modal is opened', () => { test('when there are exception builder errors has the add exception button disabled', async () => { const wrapper = mount( - void; } -const Modal = styled(EuiModal)` +const FlyoutHeader = styled(EuiFlyoutHeader)` ${({ theme }) => css` - width: ${theme.eui.euiBreakpoints.l}; - max-width: ${theme.eui.euiBreakpoints.l}; + border-bottom: 1px solid ${theme.eui.euiColorLightShade}; `} `; -const ModalHeader = styled(EuiModalHeader)` - flex-direction: column; - align-items: flex-start; -`; - -const ModalHeaderSubtitle = styled.div` +const FlyoutSubtitle = styled.div` ${({ theme }) => css` color: ${theme.eui.euiColorMediumShade}; `} `; -const ModalBodySection = styled.section` +const FlyoutBodySection = styled.section` ${({ theme }) => css` padding: ${theme.eui.euiSizeS} ${theme.eui.euiSizeL}; + `} +`; - &.builder-section { - overflow-y: scroll; - } +const FlyoutCheckboxesSection = styled(EuiFlyoutBody)` + overflow-y: inherit; + height: auto; + .euiFlyoutBody__overflowContent { + padding-top: 0; + } +`; + +const FlyoutFooterGroup = styled(EuiFlexGroup)` + ${({ theme }) => css` + padding: ${theme.eui.euiSizeS}; `} `; -export const EditExceptionModal = memo(function EditExceptionModal({ +export const EditExceptionFlyout = memo(function EditExceptionFlyout({ ruleName, ruleId, ruleIndices, @@ -105,7 +111,7 @@ export const EditExceptionModal = memo(function EditExceptionModal({ onCancel, onConfirm, onRuleChange, -}: EditExceptionModalProps) { +}: EditExceptionFlyoutProps) { const { http, data } = useKibana().services; const [comment, setComment] = useState(''); const [errorsExist, setErrorExists] = useState(false); @@ -305,20 +311,21 @@ export const EditExceptionModal = memo(function EditExceptionModal({ }; return ( - - - - {exceptionListType === 'endpoint' - ? i18n.EDIT_ENDPOINT_EXCEPTION_TITLE - : i18n.EDIT_EXCEPTION_TITLE} - + + + +

+ {exceptionListType === 'endpoint' + ? i18n.EDIT_ENDPOINT_EXCEPTION_TITLE + : i18n.EDIT_EXCEPTION_TITLE} +

+
- - {ruleName} - -
+ + + {(addExceptionIsLoading || isIndexPatternLoading || isSignalIndexLoading) && ( - + )} {!isSignalIndexLoading && !addExceptionIsLoading && @@ -326,7 +333,7 @@ export const EditExceptionModal = memo(function EditExceptionModal({ !isRuleLoading && !mlJobLoading && ( <> - + {isRuleEQLSequenceStatement && ( <> - + - + )} - + )} {updateError != null && ( - + - + )} {hasVersionConflict && ( - +

{i18n.VERSION_CONFLICT_ERROR_DESCRIPTION}

-
+ )} {updateError == null && ( - - - {i18n.CANCEL} - - - - {i18n.EDIT_EXCEPTION_SAVE_BUTTON} - - + + + + {i18n.CANCEL} + + + + {i18n.EDIT_EXCEPTION_SAVE_BUTTON} + + + )} -
+ ); }); diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_modal/translations.ts b/x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_flyout/translations.ts similarity index 100% rename from x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_modal/translations.ts rename to x-pack/plugins/security_solution/public/common/components/exceptions/edit_exception_flyout/translations.ts diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/viewer/index.tsx b/x-pack/plugins/security_solution/public/common/components/exceptions/viewer/index.tsx index bad7948e569dc..61e0aee13e923 100644 --- a/x-pack/plugins/security_solution/public/common/components/exceptions/viewer/index.tsx +++ b/x-pack/plugins/security_solution/public/common/components/exceptions/viewer/index.tsx @@ -24,13 +24,13 @@ import { Panel } from '../../../../common/components/panel'; import { Loader } from '../../../../common/components/loader'; import { ExceptionsViewerHeader } from './exceptions_viewer_header'; import { ExceptionListItemIdentifiers, Filter } from '../types'; -import { allExceptionItemsReducer, State, ViewerModalName } from './reducer'; +import { allExceptionItemsReducer, State, ViewerFlyoutName } from './reducer'; import { ExceptionsViewerPagination } from './exceptions_pagination'; import { ExceptionsViewerUtility } from './exceptions_utility'; import { ExceptionsViewerItems } from './exceptions_viewer_items'; -import { EditExceptionModal } from '../edit_exception_modal'; -import { AddExceptionModal } from '../add_exception_modal'; +import { EditExceptionFlyout } from '../edit_exception_flyout'; +import { AddExceptionFlyout } from '../add_exception_flyout'; const initialState: State = { filterOptions: { filter: '', tags: [] }, @@ -154,7 +154,7 @@ const ExceptionsViewerComponent = ({ }); const setCurrentModal = useCallback( - (modalName: ViewerModalName): void => { + (modalName: ViewerFlyoutName): void => { dispatch({ type: 'updateModalOpen', modalName, @@ -246,7 +246,7 @@ const ExceptionsViewerComponent = ({ type: 'updateExceptionListTypeToEdit', exceptionListType: type, }); - setCurrentModal('addModal'); + setCurrentModal('addException'); }, [setCurrentModal] ); @@ -259,7 +259,7 @@ const ExceptionsViewerComponent = ({ exception, }); - setCurrentModal('editModal'); + setCurrentModal('editException'); }, [setCurrentModal, exceptionListsMeta] ); @@ -334,10 +334,10 @@ const ExceptionsViewerComponent = ({ return ( <> - {currentModal === 'editModal' && + {currentModal === 'editException' && exceptionToEdit != null && exceptionListTypeToEdit != null && ( - )} - {currentModal === 'addModal' && exceptionListTypeToEdit != null && ( - ; } | { type: 'updateIsInitLoading'; loading: boolean } - | { type: 'updateModalOpen'; modalName: ViewerModalName } + | { type: 'updateModalOpen'; modalName: ViewerFlyoutName } | { type: 'updateExceptionToEdit'; lists: ExceptionListIdentifiers[]; diff --git a/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/alert_context_menu.tsx b/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/alert_context_menu.tsx index 3e4090706f91e..14820c4b34315 100644 --- a/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/alert_context_menu.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/alerts_table/timeline_actions/alert_context_menu.tsx @@ -18,9 +18,9 @@ import { EventsTdContent } from '../../../../timelines/components/timeline/style import { DEFAULT_ACTION_BUTTON_WIDTH } from '../../../../../../timelines/public'; import { Ecs } from '../../../../../common/ecs'; import { - AddExceptionModal, - AddExceptionModalProps, -} from '../../../../common/components/exceptions/add_exception_modal'; + AddExceptionFlyout, + AddExceptionFlyoutProps, +} from '../../../../common/components/exceptions/add_exception_flyout'; import * as i18n from '../translations'; import { inputsModel, inputsSelectors, State } from '../../../../common/store'; import { TimelineId } from '../../../../../common/types'; @@ -208,7 +208,7 @@ const AlertContextMenuComponent: React.FC; export const AlertContextMenu = connector(React.memo(AlertContextMenuComponent)); -type AddExceptionModalWrapperProps = Omit< - AddExceptionModalProps, +type AddExceptionFlyoutWrapperProps = Omit< + AddExceptionFlyoutProps, 'alertData' | 'isAlertDataLoading' > & { eventId?: string; }; /** - * This component exists to fetch needed data outside of the AddExceptionModal - * Due to the conditional nature of the modal and how we use the `ecsData` field, - * we cannot use the fetch hook within the modal component itself + * This component exists to fetch needed data outside of the AddExceptionFlyout + * Due to the conditional nature of the flyout and how we use the `ecsData` field, + * we cannot use the fetch hook within the flyout component itself */ -export const AddExceptionModalWrapper: React.FC = ({ +export const AddExceptionFlyoutWrapper: React.FC = ({ ruleName, ruleId, ruleIndices, @@ -305,7 +305,7 @@ export const AddExceptionModalWrapper: React.FC = const isLoading = isLoadingAlertData && isSignalIndexLoading; return ( - Date: Fri, 28 Jan 2022 09:17:55 +0100 Subject: [PATCH 36/45] [Security Solution][Endpoint] Update Fleet Trusted Apps and Host Isolation Exception cards to use exception list summary API (#123900) * don't use deprecated class ref elastic/kibana/pull/123476 * update TA card to use summary api with filter ref https://github.com/elastic/kibana/pull/123476#pullrequestreview-862328441 * update fleet hie card to use summary api ref https://github.com/elastic/kibana/pull/123476#pullrequestreview-862328441 * update param types review changes Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../host_isolation_exceptions/service.ts | 4 ++- .../fleet_integration_event_filters_card.tsx | 7 ++-- ...on_host_isolation_exceptions_card.test.tsx | 35 +++++++++++-------- ...gration_host_isolation_exceptions_card.tsx | 18 +++------- .../fleet_trusted_apps_card.test.tsx | 2 +- .../components/fleet_trusted_apps_card.tsx | 30 ++++------------ .../service/trusted_apps_http_service.ts | 3 +- 7 files changed, 41 insertions(+), 58 deletions(-) diff --git a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/service.ts b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/service.ts index 143426226eec8..e8c78e049d865 100644 --- a/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/service.ts +++ b/x-pack/plugins/security_solution/public/management/pages/host_isolation_exceptions/service.ts @@ -130,10 +130,12 @@ export async function updateOneHostIsolationExceptionItem( }); } export async function getHostIsolationExceptionSummary( - http: HttpStart + http: HttpStart, + filter?: string ): Promise { return http.get(`${EXCEPTION_LIST_URL}/summary`, { query: { + filter, list_id: ENDPOINT_HOST_ISOLATION_EXCEPTIONS_LIST_ID, namespace_type: 'agnostic', }, 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 087f2607bd8e5..c6857531a9dd0 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 @@ -21,7 +21,7 @@ import { parsePoliciesToKQL } from '../../../../../../common/utils'; import { ExceptionItemsSummary } from './exception_items_summary'; import { LinkWithIcon } from './link_with_icon'; import { StyledEuiFlexItem } from './styled_components'; -import { EventFiltersHttpService } from '../../../../../event_filters/service'; +import { getSummary } from '../../../../../event_filters/service/service_actions'; export const FleetIntegrationEventFiltersCard = memo<{ policyId: string; @@ -32,7 +32,6 @@ export const FleetIntegrationEventFiltersCard = memo<{ const isMounted = useRef(); const { getAppUrl } = useAppUrl(); - const eventFiltersApi = useMemo(() => new EventFiltersHttpService(http), [http]); const policyEventFiltersPath = getPolicyEventFiltersPath(policyId); const policyEventFiltersRouteState = useMemo(() => { @@ -86,7 +85,7 @@ export const FleetIntegrationEventFiltersCard = memo<{ isMounted.current = true; const fetchStats = async () => { try { - const summary = await eventFiltersApi.getSummary(parsePoliciesToKQL([policyId, 'all'])); + const summary = await getSummary({ http, filter: parsePoliciesToKQL([policyId, 'all']) }); if (isMounted.current) { setStats(summary); } @@ -108,7 +107,7 @@ export const FleetIntegrationEventFiltersCard = memo<{ return () => { isMounted.current = false; }; - }, [eventFiltersApi, policyId, toasts]); + }, [http, policyId, toasts]); return ( { ); }; afterEach(() => { - getHostIsolationExceptionItemsMock.mockReset(); + getHostIsolationExceptionSummaryMock.mockReset(); }); describe('With canIsolateHost privileges', () => { beforeEach(() => { @@ -41,18 +41,19 @@ describe('Fleet host isolation exceptions card filters card', () => { }); it('should call the API and render the card correctly', async () => { - getHostIsolationExceptionItemsMock.mockResolvedValue({ + getHostIsolationExceptionSummaryMock.mockResolvedValue({ + linux: 5, + macos: 5, total: 5, + windows: 5, }); const renderResult = renderComponent(); await waitFor(() => { - expect(getHostIsolationExceptionItemsMock).toHaveBeenCalledWith({ - http: mockedContext.coreStart.http, - filter: `(exception-list-agnostic.attributes.tags:"policy:${policyId}" OR exception-list-agnostic.attributes.tags:"policy:all")`, - page: 1, - perPage: 1, - }); + expect(getHostIsolationExceptionSummaryMock).toHaveBeenCalledWith( + mockedContext.coreStart.http, + `(exception-list-agnostic.attributes.tags:"policy:${policyId}" OR exception-list-agnostic.attributes.tags:"policy:all")` + ); }); expect( @@ -71,13 +72,16 @@ describe('Fleet host isolation exceptions card filters card', () => { }); it('should not render the card if there are no exceptions associated', async () => { - getHostIsolationExceptionItemsMock.mockResolvedValue({ + getHostIsolationExceptionSummaryMock.mockResolvedValue({ + linux: 0, + macos: 0, total: 0, + windows: 0, }); const renderResult = renderComponent(); await waitFor(() => { - expect(getHostIsolationExceptionItemsMock).toHaveBeenCalled(); + expect(getHostIsolationExceptionSummaryMock).toHaveBeenCalled(); }); expect( @@ -86,13 +90,16 @@ describe('Fleet host isolation exceptions card filters card', () => { }); it('should render the card if there are exceptions associated', async () => { - getHostIsolationExceptionItemsMock.mockResolvedValue({ + getHostIsolationExceptionSummaryMock.mockResolvedValue({ + linux: 1, + macos: 1, total: 1, + windows: 1, }); const renderResult = renderComponent(); await waitFor(() => { - expect(getHostIsolationExceptionItemsMock).toHaveBeenCalled(); + expect(getHostIsolationExceptionSummaryMock).toHaveBeenCalled(); }); expect( diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_host_isolation_exceptions_card.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_host_isolation_exceptions_card.tsx index 0eca6968cdd83..66846c131ad10 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_host_isolation_exceptions_card.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_integration_host_isolation_exceptions_card.tsx @@ -19,7 +19,7 @@ import { import { useAppUrl, useHttp, useToasts } from '../../../../../../../common/lib/kibana'; import { getPolicyHostIsolationExceptionsPath } from '../../../../../../common/routing'; import { parsePoliciesToKQL } from '../../../../../../common/utils'; -import { getHostIsolationExceptionItems } from '../../../../../host_isolation_exceptions/service'; +import { getHostIsolationExceptionSummary } from '../../../../../host_isolation_exceptions/service'; import { ExceptionItemsSummary } from './exception_items_summary'; import { LinkWithIcon } from './link_with_icon'; import { StyledEuiFlexItem } from './styled_components'; @@ -86,20 +86,12 @@ export const FleetIntegrationHostIsolationExceptionsCard = memo<{ isMounted.current = true; const fetchStats = async () => { try { - const summary = await getHostIsolationExceptionItems({ + const summary = await getHostIsolationExceptionSummary( http, - perPage: 1, - page: 1, - filter: parsePoliciesToKQL([policyId, 'all']), - }); + parsePoliciesToKQL([policyId, 'all']) + ); if (isMounted.current) { - setStats({ - total: summary.total, - // the following properties are not relevant for this specific card - 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/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_trusted_apps_card.test.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_trusted_apps_card.test.tsx index dec30f36869ac..f1ab47b2ea425 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_trusted_apps_card.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_trusted_apps_card.test.tsx @@ -114,7 +114,7 @@ describe('Fleet trusted apps card', () => { it('should render correctly with policyId', async () => { TrustedAppsHttpServiceMock.mockImplementationOnce(() => { return { - getTrustedAppsList: () => () => promise, + getTrustedAppsSummary: () => () => promise, }; }); const component = await renderComponent({ policyId: 'policy-1' }); diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_trusted_apps_card.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_trusted_apps_card.tsx index 74f3ff9a91096..c0bc7de5b7350 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_trusted_apps_card.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/ingest_manager_integration/endpoint_package_custom_extension/components/fleet_trusted_apps_card.tsx @@ -13,6 +13,7 @@ import { GetExceptionSummaryResponse } from '../../../../../../../../common/endp import { useKibana, useToasts } from '../../../../../../../common/lib/kibana'; import { ExceptionItemsSummary } from './exception_items_summary'; +import { parsePoliciesToKQL } from '../../../../../../common/utils'; import { TrustedAppsHttpService } from '../../../../../trusted_apps/service'; import { StyledEuiFlexGridGroup, @@ -40,30 +41,11 @@ export const FleetTrustedAppsCard = memo( isMounted.current = true; const fetchStats = async () => { try { - let response; - if (policyId) { - response = await trustedAppsApi.getTrustedAppsList({ - per_page: 1, - kuery: `(exception-list-agnostic.attributes.tags:"policy:${policyId}" OR exception-list-agnostic.attributes.tags:"policy:all")`, - }); - if (isMounted.current) { - setStats({ - total: response.total, - windows: 0, - macos: 0, - linux: 0, - }); - } - } else { - response = await trustedAppsApi.getTrustedAppsSummary(); - if (isMounted.current) { - setStats({ - total: response.total, - windows: response.windows, - macos: response.macos, - linux: response.linux, - }); - } + const response = await trustedAppsApi.getTrustedAppsSummary( + policyId ? parsePoliciesToKQL([policyId, 'all']) : undefined + ); + if (isMounted.current) { + setStats(response); } } catch (error) { if (isMounted.current) { diff --git a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/service/trusted_apps_http_service.ts b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/service/trusted_apps_http_service.ts index 393f1ca8aa5e5..6e883b614f01f 100644 --- a/x-pack/plugins/security_solution/public/management/pages/trusted_apps/service/trusted_apps_http_service.ts +++ b/x-pack/plugins/security_solution/public/management/pages/trusted_apps/service/trusted_apps_http_service.ts @@ -194,11 +194,12 @@ export class TrustedAppsHttpService implements TrustedAppsService { }; } - async getTrustedAppsSummary() { + async getTrustedAppsSummary(filter?: string) { return (await this.getHttpService()).get( `${EXCEPTION_LIST_URL}/summary`, { query: { + filter, list_id: ENDPOINT_TRUSTED_APPS_LIST_ID, namespace_type: 'agnostic', }, From e774ab491412944a08bff8d25c5b9654afb766a1 Mon Sep 17 00:00:00 2001 From: Khristinin Nikita Date: Fri, 28 Jan 2022 09:32:04 +0100 Subject: [PATCH 37/45] Stop IM rule execution if there are no events (#123811) * Add event count check * Fix linter * Make tuple required --- .../threat_mapping/create_threat_signals.ts | 19 +++ .../threat_mapping/get_event_count.test.ts | 132 ++++++++++++++++++ .../signals/threat_mapping/get_event_count.ts | 38 +++++ .../signals/threat_mapping/types.ts | 11 ++ 4 files changed, 200 insertions(+) create mode 100644 x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/get_event_count.test.ts create mode 100644 x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/get_event_count.ts diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/create_threat_signals.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/create_threat_signals.ts index 3728ff840db59..93eba0709a0d1 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/create_threat_signals.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/create_threat_signals.ts @@ -13,6 +13,7 @@ import { createThreatSignal } from './create_threat_signal'; import { SearchAfterAndBulkCreateReturnType } from '../types'; import { buildExecutionIntervalValidator, combineConcurrentResults } from './utils'; import { buildThreatEnrichment } from './build_threat_enrichment'; +import { getEventCount } from './get_event_count'; export const createThreatSignals = async ({ alertId, @@ -62,6 +63,23 @@ export const createThreatSignals = async ({ warningMessages: [], }; + const eventCount = await getEventCount({ + esClient: services.scopedClusterClient.asCurrentUser, + index: inputIndex, + exceptionItems, + tuple, + query, + language, + filters, + }); + + logger.debug(`Total event count: ${eventCount}`); + + if (eventCount === 0) { + logger.debug(buildRuleMessage('Indicator matching rule has completed')); + return results; + } + let threatListCount = await getThreatListCount({ esClient: services.scopedClusterClient.asCurrentUser, exceptionItems, @@ -70,6 +88,7 @@ export const createThreatSignals = async ({ language: threatLanguage, index: threatIndex, }); + logger.debug(buildRuleMessage(`Total indicator items: ${threatListCount}`)); let threatList = await getThreatList({ diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/get_event_count.test.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/get_event_count.test.ts new file mode 100644 index 0000000000000..bd10c4817e6dc --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/get_event_count.test.ts @@ -0,0 +1,132 @@ +/* + * 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 moment from 'moment'; +import { elasticsearchServiceMock } from 'src/core/server/mocks'; +import { getEventCount } from './get_event_count'; + +describe('getEventCount', () => { + const esClient = elasticsearchServiceMock.createElasticsearchClient(); + + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('can respect tuple', () => { + getEventCount({ + esClient, + query: '*:*', + language: 'kuery', + filters: [], + exceptionItems: [], + index: ['test-index'], + tuple: { to: moment('2022-01-14'), from: moment('2022-01-13'), maxSignals: 1337 }, + }); + + expect(esClient.count).toHaveBeenCalledWith({ + body: { + query: { + bool: { + filter: [ + { bool: { must: [], filter: [], should: [], must_not: [] } }, + { + bool: { + filter: [ + { + bool: { + should: [ + { + range: { + '@timestamp': { + lte: '2022-01-14T05:00:00.000Z', + gte: '2022-01-13T05:00:00.000Z', + format: 'strict_date_optional_time', + }, + }, + }, + ], + minimum_should_match: 1, + }, + }, + ], + }, + }, + { match_all: {} }, + ], + }, + }, + }, + ignore_unavailable: true, + index: ['test-index'], + }); + }); + + it('can override timestamp', () => { + getEventCount({ + esClient, + query: '*:*', + language: 'kuery', + filters: [], + exceptionItems: [], + index: ['test-index'], + tuple: { to: moment('2022-01-14'), from: moment('2022-01-13'), maxSignals: 1337 }, + timestampOverride: 'event.ingested', + }); + + expect(esClient.count).toHaveBeenCalledWith({ + body: { + query: { + bool: { + filter: [ + { bool: { must: [], filter: [], should: [], must_not: [] } }, + { + bool: { + filter: [ + { + bool: { + should: [ + { + range: { + 'event.ingested': { + lte: '2022-01-14T05:00:00.000Z', + gte: '2022-01-13T05:00:00.000Z', + format: 'strict_date_optional_time', + }, + }, + }, + { + bool: { + filter: [ + { + range: { + '@timestamp': { + lte: '2022-01-14T05:00:00.000Z', + gte: '2022-01-13T05:00:00.000Z', + format: 'strict_date_optional_time', + }, + }, + }, + { bool: { must_not: { exists: { field: 'event.ingested' } } } }, + ], + }, + }, + ], + minimum_should_match: 1, + }, + }, + ], + }, + }, + { match_all: {} }, + ], + }, + }, + }, + ignore_unavailable: true, + index: ['test-index'], + }); + }); +}); diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/get_event_count.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/get_event_count.ts new file mode 100644 index 0000000000000..1833491851831 --- /dev/null +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/get_event_count.ts @@ -0,0 +1,38 @@ +/* + * 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 { EventCountOptions } from './types'; +import { getQueryFilter } from '../../../../../common/detection_engine/get_query_filter'; +import { buildEventsSearchQuery } from '../build_events_query'; + +export const getEventCount = async ({ + esClient, + query, + language, + filters, + index, + exceptionItems, + tuple, + timestampOverride, +}: EventCountOptions): Promise => { + const filter = getQueryFilter(query, language ?? 'kuery', filters, index, exceptionItems); + const eventSearchQueryBodyQuery = buildEventsSearchQuery({ + index, + from: tuple.from.toISOString(), + to: tuple.to.toISOString(), + filter, + size: 0, + timestampOverride, + searchAfterSortIds: undefined, + }).body.query; + const { body: response } = await esClient.count({ + body: { query: eventSearchQueryBodyQuery }, + ignore_unavailable: true, + index, + }); + return response.count; +}; diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/types.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/types.ts index bf710cde93fe6..1f12b60e09628 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/types.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/threat_mapping/types.ts @@ -203,3 +203,14 @@ export interface BuildThreatEnrichmentOptions { threatLanguage: ThreatLanguageOrUndefined; threatQuery: ThreatQuery; } + +export interface EventCountOptions { + esClient: ElasticsearchClient; + exceptionItems: ExceptionListItemSchema[]; + index: string[]; + language: ThreatLanguageOrUndefined; + query: string; + filters: unknown[]; + tuple: RuleRangeTuple; + timestampOverride?: string; +} From 35f1c4d78e40556676cb161b7429f3608ec36fc7 Mon Sep 17 00:00:00 2001 From: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com> Date: Fri, 28 Jan 2022 11:40:59 +0300 Subject: [PATCH 38/45] [Discover] Remove services from component dependencies (#121691) * [Discover] remove services from component dependencies * [Discover] fix eslint * [Discover] fix imports * [Discover] fix build problems * [Discover] get rid of getServices and setServices * [Discover] fix unit tests, update services init process * [Discover] fix redundant dependency * [Discover] fix imports * [Discover] fix test implementation * Update src/plugins/discover/public/components/discover_grid/discover_grid.test.tsx Co-authored-by: Matthias Wilhelm * [Discover] apply suggestions * [Discover] fix jest test Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Matthias Wilhelm --- .../application/context/context_app.test.tsx | 78 +- .../application/context/context_app.tsx | 6 +- .../context/context_app_content.test.tsx | 41 +- .../context/context_app_content.tsx | 7 +- .../application/context/context_app_route.tsx | 6 +- .../services/context.predecessors.test.ts | 35 +- .../services/context.successors.test.ts | 33 +- .../application/context/services/context.ts | 4 +- ...test.ts => use_context_app_fetch.test.tsx} | 51 +- .../context/utils/use_context_app_fetch.tsx | 14 +- .../application/discover_router.test.tsx | 18 +- .../public/application/discover_router.tsx | 68 +- .../application/doc/components/doc.test.tsx | 55 +- .../public/application/doc/components/doc.tsx | 5 +- .../application/doc/single_doc_route.tsx | 8 +- .../discover/public/application/index.tsx | 5 +- .../components/chart/discover_chart.test.tsx | 16 +- .../main/components/chart/discover_chart.tsx | 10 +- .../main/components/chart/histogram.test.tsx | 18 +- .../main/components/chart/histogram.tsx | 19 +- .../field_stats_table/field_stats_table.tsx | 13 +- ...ld_stats_table_saved_search_embeddable.tsx | 29 - .../components/field_stats_table/index.ts | 1 - .../layout/discover_documents.test.tsx | 27 +- .../components/layout/discover_documents.tsx | 7 +- .../layout/discover_layout.test.tsx | 55 +- .../components/layout/discover_layout.tsx | 14 +- .../main/components/layout/types.ts | 2 - .../components/no_results/no_results.test.tsx | 30 +- ...ver_index_pattern_management.test.tsx.snap | 1159 +++++++++-------- .../sidebar/discover_field.test.tsx | 45 +- ...discover_index_pattern_management.test.tsx | 14 +- .../discover_index_pattern_management.tsx | 8 +- .../sidebar/discover_sidebar.test.tsx | 12 +- .../components/sidebar/discover_sidebar.tsx | 11 +- .../discover_sidebar_responsive.test.tsx | 9 +- .../sidebar/discover_sidebar_responsive.tsx | 10 +- .../top_nav/discover_topnav.test.tsx | 8 +- .../components/top_nav/discover_topnav.tsx | 5 +- .../components/top_nav/get_top_nav_links.ts | 2 + .../top_nav/open_options_popover.test.tsx | 41 +- .../top_nav/open_options_popover.tsx | 17 +- .../top_nav/open_search_panel.test.tsx | 48 +- .../components/top_nav/open_search_panel.tsx | 4 +- .../top_nav/show_open_search_panel.tsx | 13 +- .../main/discover_main_app.test.tsx | 22 +- .../application/main/discover_main_app.tsx | 17 +- .../application/main/discover_main_route.tsx | 25 +- .../application/not_found/not_found_route.tsx | 12 +- .../discover/public/application/types.ts | 8 - src/plugins/discover/public/build_services.ts | 5 +- .../discover_grid/discover_grid.test.tsx | 21 +- .../discover_grid/discover_grid.tsx | 9 +- .../discover_grid_flyout.test.tsx | 74 +- .../discover_grid/discover_grid_flyout.tsx | 9 +- .../get_render_cell_value.test.tsx | 24 +- .../discover_grid/get_render_cell_value.tsx | 58 +- .../table_header/table_header.test.tsx | 48 +- .../components/table_header/table_header.tsx | 20 +- .../doc_table/components/table_row.test.tsx | 69 +- .../doc_table/components/table_row.tsx | 30 +- .../doc_table/doc_table_embeddable.tsx | 7 +- .../doc_table/doc_table_infinite.tsx | 9 +- .../doc_table/doc_table_wrapper.test.tsx | 30 +- .../doc_table/doc_table_wrapper.tsx | 66 +- .../doc_table/lib/row_formatter.test.ts | 41 +- .../doc_table/lib/row_formatter.tsx | 13 +- .../embeddable/saved_search_embeddable.tsx | 46 +- .../public/embeddable/saved_search_grid.tsx | 41 +- .../embeddable/search_embeddable_factory.ts | 13 +- .../view_saved_search_action.test.ts | 8 - .../discover/public/kibana_services.ts | 14 +- src/plugins/discover/public/plugin.tsx | 36 +- .../components/doc_viewer/doc_viewer.test.tsx | 15 +- .../components/doc_viewer/doc_viewer_tab.tsx | 8 +- .../__snapshots__/source.test.tsx.snap | 306 ----- .../doc_viewer_source/source.test.tsx | 69 +- .../components/doc_viewer_source/source.tsx | 5 +- .../doc_viewer_table/legacy/table.test.tsx | 30 +- .../doc_viewer_table/legacy/table.tsx | 13 +- .../components/doc_viewer_table/table.tsx | 25 +- .../services/doc_views/doc_views_types.ts | 3 +- .../discover/public/utils/format_hit.test.ts | 53 +- .../discover/public/utils/format_hit.ts | 16 +- .../public/utils/format_value.test.ts | 39 +- .../discover/public/utils/format_value.ts | 7 +- .../public/utils/use_discover_services.ts | 12 + .../public/utils/use_es_doc_search.test.tsx | 39 +- .../public/utils/use_es_doc_search.ts | 4 +- .../utils/use_navigation_props.test.tsx | 19 +- .../public/utils/use_navigation_props.tsx | 26 +- .../public/utils/with_query_params.test.tsx | 24 +- .../public/utils/with_query_params.tsx | 20 +- 93 files changed, 1614 insertions(+), 1975 deletions(-) rename src/plugins/discover/public/application/context/utils/{use_context_app_fetch.test.ts => use_context_app_fetch.test.tsx} (88%) delete mode 100644 src/plugins/discover/public/application/main/components/field_stats_table/field_stats_table_saved_search_embeddable.tsx create mode 100644 src/plugins/discover/public/utils/use_discover_services.ts diff --git a/src/plugins/discover/public/application/context/context_app.test.tsx b/src/plugins/discover/public/application/context/context_app.test.tsx index a31557124d49a..b97c9ed9fe8d9 100644 --- a/src/plugins/discover/public/application/context/context_app.test.tsx +++ b/src/plugins/discover/public/application/context/context_app.test.tsx @@ -14,17 +14,49 @@ import { mockTopNavMenu } from './__mocks__/top_nav_menu'; import { ContextAppContent } from './context_app_content'; import { indexPatternMock } from '../../__mocks__/index_pattern'; import { ContextApp } from './context_app'; -import { setServices } from '../../kibana_services'; import { DiscoverServices } from '../../build_services'; import { indexPatternsMock } from '../../__mocks__/index_patterns'; import { act } from 'react-dom/test-utils'; import { uiSettingsMock } from '../../__mocks__/ui_settings'; import { themeServiceMock } from '../../../../../core/public/mocks'; +import { KibanaContextProvider } from '../../../../kibana_react/public'; const mockFilterManager = createFilterManagerMock(); const mockNavigationPlugin = { ui: { TopNavMenu: mockTopNavMenu } }; describe('ContextApp test', () => { + const services = { + data: { + search: { + searchSource: { + createEmpty: jest.fn(), + }, + }, + }, + capabilities: { + discover: { + save: true, + }, + indexPatterns: { + save: true, + }, + }, + indexPatterns: indexPatternsMock, + toastNotifications: { addDanger: () => {} }, + navigation: mockNavigationPlugin, + core: { + notifications: { toasts: [] }, + theme: { theme$: themeServiceMock.createStartContract().theme$ }, + }, + history: () => {}, + fieldFormats: { + getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => value })), + getFormatterForField: jest.fn(() => ({ convert: (value: unknown) => value })), + }, + filterManager: mockFilterManager, + uiSettings: uiSettingsMock, + } as unknown as DiscoverServices; + const defaultProps = { indexPattern: indexPatternMock, anchorId: 'mocked_anchor_id', @@ -41,42 +73,16 @@ describe('ContextApp test', () => { useDefaultBehaviors: true, }; - beforeEach(() => { - setServices({ - data: { - search: { - searchSource: { - createEmpty: jest.fn(), - }, - }, - }, - capabilities: { - discover: { - save: true, - }, - indexPatterns: { - save: true, - }, - }, - indexPatterns: indexPatternsMock, - toastNotifications: { addDanger: () => {} }, - navigation: mockNavigationPlugin, - core: { - notifications: { toasts: [] }, - theme: { theme$: themeServiceMock.createStartContract().theme$ }, - }, - history: () => {}, - fieldFormats: { - getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => value })), - getFormatterForField: jest.fn(() => ({ convert: (value: unknown) => value })), - }, - filterManager: mockFilterManager, - uiSettings: uiSettingsMock, - } as unknown as DiscoverServices); - }); + const mountComponent = () => { + return mountWithIntl( + + + + ); + }; it('renders correctly', async () => { - const component = mountWithIntl(); + const component = mountComponent(); await waitFor(() => { expect(component.find(ContextAppContent).length).toBe(1); const topNavMenu = component.find(mockTopNavMenu); @@ -86,7 +92,7 @@ describe('ContextApp test', () => { }); it('should set filters correctly', async () => { - const component = mountWithIntl(); + const component = mountComponent(); await act(async () => { component.find(ContextAppContent).invoke('addFilter')( diff --git a/src/plugins/discover/public/application/context/context_app.tsx b/src/plugins/discover/public/application/context/context_app.tsx index 8faabdbd0682d..f93bc2b49fdd5 100644 --- a/src/plugins/discover/public/application/context/context_app.tsx +++ b/src/plugins/discover/public/application/context/context_app.tsx @@ -17,7 +17,6 @@ import { DOC_TABLE_LEGACY, SEARCH_FIELDS_FROM_SOURCE } from '../../../common'; import { ContextErrorMessage } from './components/context_error_message'; import { DataView, DataViewField } from '../../../../data/common'; import { LoadingStatus } from './services/context_query_state'; -import { getServices } from '../../kibana_services'; import { AppState, isEqualFilters } from './services/context_state'; import { useColumns } from '../../utils/use_data_grid_columns'; import { useContextAppState } from './utils/use_context_app_state'; @@ -26,6 +25,7 @@ import { popularizeField } from '../../utils/popularize_field'; import { ContextAppContent } from './context_app_content'; import { SurrDocType } from './services/context'; import { DocViewFilterFn } from '../../services/doc_views/doc_views_types'; +import { useDiscoverServices } from '../../utils/use_discover_services'; const ContextAppContentMemoized = memo(ContextAppContent); @@ -35,7 +35,7 @@ export interface ContextAppProps { } export const ContextApp = ({ indexPattern, anchorId }: ContextAppProps) => { - const services = getServices(); + const services = useDiscoverServices(); const { uiSettings, capabilities, indexPatterns, navigation, filterManager } = services; const isLegacy = useMemo(() => uiSettings.get(DOC_TABLE_LEGACY), [uiSettings]); @@ -56,7 +56,6 @@ export const ContextApp = ({ indexPattern, anchorId }: ContextAppProps) => { indexPattern, appState, useNewFieldsApi, - services, }); /** * Reset state when anchor changes @@ -163,7 +162,6 @@ export const ContextApp = ({ indexPattern, anchorId }: ContextAppProps) => { { - let hit; - let defaultProps: ContextAppContentProps; - - beforeEach(() => { - setServices(discoverServiceMock); - - hit = { + const mountComponent = ({ + anchorStatus, + isLegacy, + }: { + anchorStatus?: LoadingStatus; + isLegacy?: boolean; + }) => { + const hit = { _id: '123', _index: 'test_index', _score: null, @@ -48,12 +49,12 @@ describe('ContextAppContent test', () => { }, sort: [1603114502000, 2092], }; - defaultProps = { + const props = { columns: ['order_date', '_source'], indexPattern: indexPatternMock, appState: {} as unknown as AppState, stateContainer: {} as unknown as GetStateReturn, - anchorStatus: LoadingStatus.LOADED, + anchorStatus: anchorStatus || LoadingStatus.LOADED, predecessorsStatus: LoadingStatus.LOADED, successorsStatus: LoadingStatus.LOADED, rows: [hit] as unknown as EsHitRecordList, @@ -67,16 +68,21 @@ describe('ContextAppContent test', () => { onAddColumn: () => {}, onRemoveColumn: () => {}, onSetColumns: () => {}, - services: getServices(), sort: [['order_date', 'desc']] as Array<[string, SortDirection]>, - isLegacy: true, + isLegacy: isLegacy ?? true, setAppState: () => {}, addFilter: () => {}, } as unknown as ContextAppContentProps; - }); + + return mountWithIntl( + + + + ); + }; it('should render legacy table correctly', () => { - const component = mountWithIntl(); + const component = mountComponent({}); expect(component.find(DocTableWrapper).length).toBe(1); const loadingIndicator = findTestSubject(component, 'contextApp_loadingIndicator'); expect(loadingIndicator.length).toBe(0); @@ -84,17 +90,14 @@ describe('ContextAppContent test', () => { }); it('renders loading indicator', () => { - const props = { ...defaultProps }; - props.anchorStatus = LoadingStatus.LOADING; - const component = mountWithIntl(); + const component = mountComponent({ anchorStatus: LoadingStatus.LOADING }); const loadingIndicator = findTestSubject(component, 'contextApp_loadingIndicator'); expect(component.find(DocTableWrapper).length).toBe(1); expect(loadingIndicator.length).toBe(1); }); it('should render discover grid correctly', () => { - const props = { ...defaultProps, isLegacy: false }; - const component = mountWithIntl(); + const component = mountComponent({ isLegacy: false }); expect(component.find(DiscoverGrid).length).toBe(1); }); }); diff --git a/src/plugins/discover/public/application/context/context_app_content.tsx b/src/plugins/discover/public/application/context/context_app_content.tsx index 8c23dc2608973..67efd36f1bc7c 100644 --- a/src/plugins/discover/public/application/context/context_app_content.tsx +++ b/src/plugins/discover/public/application/context/context_app_content.tsx @@ -17,19 +17,18 @@ import { DiscoverGrid } from '../../components/discover_grid/discover_grid'; import { DocViewFilterFn } from '../../services/doc_views/doc_views_types'; import { AppState } from './services/context_state'; import { SurrDocType } from './services/context'; -import { DiscoverServices } from '../../build_services'; import { MAX_CONTEXT_SIZE, MIN_CONTEXT_SIZE } from './services/constants'; import { DocTableContext } from '../../components/doc_table/doc_table_context'; import { EsHitRecordList } from '../types'; import { SortPairArr } from '../../components/doc_table/lib/get_sort'; import { ElasticSearchHit } from '../../types'; +import { useDiscoverServices } from '../../utils/use_discover_services'; export interface ContextAppContentProps { columns: string[]; onAddColumn: (columnsName: string) => void; onRemoveColumn: (columnsName: string) => void; onSetColumns: (columnsNames: string[], hideTimeColumn: boolean) => void; - services: DiscoverServices; indexPattern: DataView; predecessorCount: number; successorCount: number; @@ -60,7 +59,6 @@ export function ContextAppContent({ onAddColumn, onRemoveColumn, onSetColumns, - services, indexPattern, predecessorCount, successorCount, @@ -75,7 +73,7 @@ export function ContextAppContent({ setAppState, addFilter, }: ContextAppContentProps) { - const { uiSettings: config } = services; + const { uiSettings: config } = useDiscoverServices(); const [expandedDoc, setExpandedDoc] = useState(); const isAnchorLoading = @@ -154,7 +152,6 @@ export function ContextAppContent({ sort={sort as SortPairArr[]} isSortEnabled={false} showTimeCol={showTimeCol} - services={services} useNewFieldsApi={useNewFieldsApi} isPaginationEnabled={false} controlColumnIds={controlColumnIds} diff --git a/src/plugins/discover/public/application/context/context_app_route.tsx b/src/plugins/discover/public/application/context/context_app_route.tsx index d81b540418f99..5bbbefa5cdb93 100644 --- a/src/plugins/discover/public/application/context/context_app_route.tsx +++ b/src/plugins/discover/public/application/context/context_app_route.tsx @@ -14,16 +14,16 @@ import { ContextApp } from './context_app'; import { getRootBreadcrumbs } from '../../utils/breadcrumbs'; import { LoadingIndicator } from '../../components/common/loading_indicator'; import { useIndexPattern } from '../../utils/use_index_pattern'; -import { DiscoverRouteProps } from '../types'; import { useMainRouteBreadcrumb } from '../../utils/use_navigation_props'; +import { useDiscoverServices } from '../../utils/use_discover_services'; export interface ContextUrlParams { indexPatternId: string; id: string; } -export function ContextAppRoute(props: DiscoverRouteProps) { - const { services } = props; +export function ContextAppRoute() { + const services = useDiscoverServices(); const { chrome } = services; const { indexPatternId, id } = useParams(); diff --git a/src/plugins/discover/public/application/context/services/context.predecessors.test.ts b/src/plugins/discover/public/application/context/services/context.predecessors.test.ts index 810bd76ef60ad..136a2cb0a3acc 100644 --- a/src/plugins/discover/public/application/context/services/context.predecessors.test.ts +++ b/src/plugins/discover/public/application/context/services/context.predecessors.test.ts @@ -11,9 +11,7 @@ import { get, last } from 'lodash'; import { DataView, SortDirection } from 'src/plugins/data/common'; import { createContextSearchSourceStub } from './_stubs'; import { fetchSurroundingDocs, SurrDocType } from './context'; -import { setServices } from '../../../kibana_services'; -import { Query } from '../../../../../data/public'; -import { DiscoverServices } from '../../../build_services'; +import { DataPublicPluginStart, Query } from '../../../../../data/public'; import { EsHitRecord, EsHitRecordList } from '../../types'; const MS_PER_DAY = 24 * 60 * 60 * 1000; @@ -29,6 +27,7 @@ interface Timestamp { } describe('context predecessors', function () { + let dataPluginMock: DataPublicPluginStart; let fetchPredecessors: ( timeValIso: string, timeValNr: number, @@ -36,6 +35,7 @@ describe('context predecessors', function () { tieBreakerValue: number, size: number ) => Promise; + // eslint-disable-next-line @typescript-eslint/no-explicit-any let mockSearchSource: any; const indexPattern = { @@ -48,16 +48,13 @@ describe('context predecessors', function () { describe('function fetchPredecessors', function () { beforeEach(() => { mockSearchSource = createContextSearchSourceStub('@timestamp'); - - setServices({ - data: { - search: { - searchSource: { - createEmpty: jest.fn().mockImplementation(() => mockSearchSource), - }, + dataPluginMock = { + search: { + searchSource: { + createEmpty: jest.fn().mockImplementation(() => mockSearchSource), }, }, - } as unknown as DiscoverServices); + } as unknown as DataPublicPluginStart; fetchPredecessors = (timeValIso, timeValNr, tieBreakerField, tieBreakerValue, size = 10) => { const anchor = { @@ -74,7 +71,8 @@ describe('context predecessors', function () { tieBreakerField, SortDirection.desc, size, - [] + [], + dataPluginMock ); }; }); @@ -192,15 +190,13 @@ describe('context predecessors', function () { beforeEach(() => { mockSearchSource = createContextSearchSourceStub('@timestamp'); - setServices({ - data: { - search: { - searchSource: { - createEmpty: jest.fn().mockImplementation(() => mockSearchSource), - }, + dataPluginMock = { + search: { + searchSource: { + createEmpty: jest.fn().mockImplementation(() => mockSearchSource), }, }, - } as unknown as DiscoverServices); + } as unknown as DataPublicPluginStart; fetchPredecessors = (timeValIso, timeValNr, tieBreakerField, tieBreakerValue, size = 10) => { const anchor = { @@ -218,6 +214,7 @@ describe('context predecessors', function () { SortDirection.desc, size, [], + dataPluginMock, true ); }; diff --git a/src/plugins/discover/public/application/context/services/context.successors.test.ts b/src/plugins/discover/public/application/context/services/context.successors.test.ts index dc2e673a8ebca..d9736498bf66e 100644 --- a/src/plugins/discover/public/application/context/services/context.successors.test.ts +++ b/src/plugins/discover/public/application/context/services/context.successors.test.ts @@ -10,10 +10,8 @@ import moment from 'moment'; import { get, last } from 'lodash'; import { DataView, SortDirection } from 'src/plugins/data/common'; import { createContextSearchSourceStub } from './_stubs'; -import { setServices } from '../../../kibana_services'; -import { Query } from '../../../../../data/public'; +import { DataPublicPluginStart, Query } from '../../../../../data/public'; import { fetchSurroundingDocs, SurrDocType } from './context'; -import { DiscoverServices } from '../../../build_services'; import { EsHitRecord, EsHitRecordList } from '../../types'; const MS_PER_DAY = 24 * 60 * 60 * 1000; @@ -35,6 +33,7 @@ describe('context successors', function () { tieBreakerValue: number, size: number ) => Promise; + let dataPluginMock: DataPublicPluginStart; // eslint-disable-next-line @typescript-eslint/no-explicit-any let mockSearchSource: any; const indexPattern = { @@ -48,15 +47,13 @@ describe('context successors', function () { beforeEach(() => { mockSearchSource = createContextSearchSourceStub('@timestamp'); - setServices({ - data: { - search: { - searchSource: { - createEmpty: jest.fn().mockImplementation(() => mockSearchSource), - }, + dataPluginMock = { + search: { + searchSource: { + createEmpty: jest.fn().mockImplementation(() => mockSearchSource), }, }, - } as unknown as DiscoverServices); + } as unknown as DataPublicPluginStart; fetchSuccessors = (timeValIso, timeValNr, tieBreakerField, tieBreakerValue, size) => { const anchor = { @@ -73,7 +70,8 @@ describe('context successors', function () { tieBreakerField, SortDirection.desc, size, - [] + [], + dataPluginMock ); }; }); @@ -185,15 +183,13 @@ describe('context successors', function () { beforeEach(() => { mockSearchSource = createContextSearchSourceStub('@timestamp'); - setServices({ - data: { - search: { - searchSource: { - createEmpty: jest.fn().mockImplementation(() => mockSearchSource), - }, + dataPluginMock = { + search: { + searchSource: { + createEmpty: jest.fn().mockImplementation(() => mockSearchSource), }, }, - } as unknown as DiscoverServices); + } as unknown as DataPublicPluginStart; fetchSuccessors = (timeValIso, timeValNr, tieBreakerField, tieBreakerValue, size) => { const anchor = { @@ -211,6 +207,7 @@ describe('context successors', function () { SortDirection.desc, size, [], + dataPluginMock, true ); }; diff --git a/src/plugins/discover/public/application/context/services/context.ts b/src/plugins/discover/public/application/context/services/context.ts index 7333c5f67e1cc..d5dae272689b9 100644 --- a/src/plugins/discover/public/application/context/services/context.ts +++ b/src/plugins/discover/public/application/context/services/context.ts @@ -6,13 +6,13 @@ * Side Public License, v 1. */ import { Filter, DataView, ISearchSource } from 'src/plugins/data/common'; +import { DataPublicPluginStart } from 'src/plugins/data/public'; import { reverseSortDir, SortDirection } from '../utils/sorting'; import { convertIsoToMillis, extractNanos } from '../utils/date_conversion'; import { fetchHitsInInterval } from '../utils/fetch_hits_in_interval'; import { generateIntervals } from '../utils/generate_intervals'; import { getEsQuerySearchAfter } from '../utils/get_es_query_search_after'; import { getEsQuerySort } from '../utils/get_es_query_sort'; -import { getServices } from '../../../kibana_services'; import { EsHitRecord, EsHitRecordList } from '../../types'; export enum SurrDocType { @@ -46,12 +46,12 @@ export async function fetchSurroundingDocs( sortDir: SortDirection, size: number, filters: Filter[], + data: DataPublicPluginStart, useNewFieldsApi?: boolean ): Promise { if (typeof anchor !== 'object' || anchor === null || !size) { return []; } - const { data } = getServices(); const timeField = indexPattern.timeFieldName!; const searchSource = data.search.searchSource.createEmpty(); updateSearchSource(searchSource, indexPattern, filters, Boolean(useNewFieldsApi)); diff --git a/src/plugins/discover/public/application/context/utils/use_context_app_fetch.test.ts b/src/plugins/discover/public/application/context/utils/use_context_app_fetch.test.tsx similarity index 88% rename from src/plugins/discover/public/application/context/utils/use_context_app_fetch.test.ts rename to src/plugins/discover/public/application/context/utils/use_context_app_fetch.test.tsx index 6d2d1c4519383..b9eb4db79a992 100644 --- a/src/plugins/discover/public/application/context/utils/use_context_app_fetch.test.ts +++ b/src/plugins/discover/public/application/context/utils/use_context_app_fetch.test.tsx @@ -6,8 +6,8 @@ * Side Public License, v 1. */ +import React from 'react'; import { act, renderHook } from '@testing-library/react-hooks'; -import { setServices, getServices } from '../../../kibana_services'; import { createFilterManagerMock } from '../../../../../data/public/query/filter_manager/filter_manager.mock'; import { CONTEXT_TIE_BREAKER_FIELDS_SETTING } from '../../../../common'; import { DiscoverServices } from '../../../build_services'; @@ -22,6 +22,7 @@ import { indexPatternWithTimefieldMock } from '../../../__mocks__/index_pattern_ import { createContextSearchSourceStub } from '../services/_stubs'; import { DataView } from '../../../../../data_views/common'; import { themeServiceMock } from '../../../../../../core/public/mocks'; +import { KibanaContextProvider } from '../../../../../kibana_react/public'; const mockFilterManager = createFilterManagerMock(); @@ -52,7 +53,7 @@ const initDefaults = (tieBreakerFields: string[], indexPatternId = 'the-index-pa const dangerNotification = jest.fn(); const mockSearchSource = createContextSearchSourceStub('timestamp'); - setServices({ + const services = { data: { search: { searchSource: { @@ -74,9 +75,9 @@ const initDefaults = (tieBreakerFields: string[], indexPatternId = 'the-index-pa } }, }, - } as unknown as DiscoverServices); + } as unknown as DiscoverServices; - return { + const props = { dangerNotification, props: { anchorId: 'mock_anchor_id', @@ -86,18 +87,22 @@ const initDefaults = (tieBreakerFields: string[], indexPatternId = 'the-index-pa successorCount: 2, }, useNewFieldsApi: false, - services: getServices(), - } as unknown as ContextAppFetchProps, + } as ContextAppFetchProps, + }; + + return { + result: renderHook(() => useContextAppFetch(props.props), { + wrapper: ({ children }) => ( + {children} + ), + }).result, + dangerNotification, }; }; describe('test useContextAppFetch', () => { it('should fetch all correctly', async () => { - const { props } = initDefaults(['_doc']); - - const { result } = renderHook(() => { - return useContextAppFetch(props); - }); + const { result } = initDefaults(['_doc']); expect(result.current.fetchedState.anchorStatus.value).toBe(LoadingStatus.UNINITIALIZED); expect(result.current.fetchedState.predecessorsStatus.value).toBe(LoadingStatus.UNINITIALIZED); @@ -116,11 +121,7 @@ describe('test useContextAppFetch', () => { }); it('should set anchorStatus to failed when tieBreakingField array is empty', async () => { - const { props } = initDefaults([]); - - const { result } = renderHook(() => { - return useContextAppFetch(props); - }); + const { result } = initDefaults([]); expect(result.current.fetchedState.anchorStatus.value).toBe(LoadingStatus.UNINITIALIZED); @@ -136,11 +137,7 @@ describe('test useContextAppFetch', () => { }); it('should set anchorStatus to failed when invalid indexPatternId provided', async () => { - const { props, dangerNotification } = initDefaults(['_doc'], ''); - - const { result } = renderHook(() => { - return useContextAppFetch(props); - }); + const { result, dangerNotification } = initDefaults(['_doc'], ''); expect(result.current.fetchedState.anchorStatus.value).toBe(LoadingStatus.UNINITIALIZED); @@ -157,11 +154,7 @@ describe('test useContextAppFetch', () => { }); it('should fetch context rows correctly', async () => { - const { props } = initDefaults(['_doc']); - - const { result } = renderHook(() => { - return useContextAppFetch(props); - }); + const { result } = initDefaults(['_doc']); expect(result.current.fetchedState.predecessorsStatus.value).toBe(LoadingStatus.UNINITIALIZED); expect(result.current.fetchedState.successorsStatus.value).toBe(LoadingStatus.UNINITIALIZED); @@ -177,11 +170,7 @@ describe('test useContextAppFetch', () => { }); it('should set context rows statuses to failed when invalid indexPatternId provided', async () => { - const { props, dangerNotification } = initDefaults(['_doc'], ''); - - const { result } = renderHook(() => { - return useContextAppFetch(props); - }); + const { result, dangerNotification } = initDefaults(['_doc'], ''); expect(result.current.fetchedState.predecessorsStatus.value).toBe(LoadingStatus.UNINITIALIZED); expect(result.current.fetchedState.successorsStatus.value).toBe(LoadingStatus.UNINITIALIZED); diff --git a/src/plugins/discover/public/application/context/utils/use_context_app_fetch.tsx b/src/plugins/discover/public/application/context/utils/use_context_app_fetch.tsx index 430fda3c15376..2568a574df25d 100644 --- a/src/plugins/discover/public/application/context/utils/use_context_app_fetch.tsx +++ b/src/plugins/discover/public/application/context/utils/use_context_app_fetch.tsx @@ -8,7 +8,6 @@ import React, { useCallback, useMemo, useState } from 'react'; import { i18n } from '@kbn/i18n'; import { CONTEXT_TIE_BREAKER_FIELDS_SETTING } from '../../../../common'; -import { DiscoverServices } from '../../../build_services'; import { fetchAnchor } from '../services/anchor'; import { fetchSurroundingDocs, SurrDocType } from '../services/context'; import { MarkdownSimple, toMountPoint, wrapWithTheme } from '../../../../../kibana_react/public'; @@ -22,6 +21,7 @@ import { import { AppState } from '../services/context_state'; import { getFirstSortableField } from './sorting'; import { EsHitRecord } from '../../types'; +import { useDiscoverServices } from '../../../utils/use_discover_services'; const createError = (statusKey: string, reason: FailureReason, error?: Error) => ({ [statusKey]: { value: LoadingStatus.FAILED, error, reason }, @@ -32,7 +32,6 @@ export interface ContextAppFetchProps { indexPattern: DataView; appState: AppState; useNewFieldsApi: boolean; - services: DiscoverServices; } export function useContextAppFetch({ @@ -40,9 +39,14 @@ export function useContextAppFetch({ indexPattern, appState, useNewFieldsApi, - services, }: ContextAppFetchProps) { - const { uiSettings: config, data, toastNotifications, filterManager, core } = services; + const { + uiSettings: config, + data, + toastNotifications, + filterManager, + core, + } = useDiscoverServices(); const { theme$ } = core.theme; const searchSource = useMemo(() => { @@ -133,6 +137,7 @@ export function useContextAppFetch({ SortDirection.desc, count, filters, + data, useNewFieldsApi ); setState({ [type]: rows, [statusKey]: { value: LoadingStatus.LOADED } }); @@ -156,6 +161,7 @@ export function useContextAppFetch({ toastNotifications, useNewFieldsApi, theme$, + data, ] ); diff --git a/src/plugins/discover/public/application/discover_router.test.tsx b/src/plugins/discover/public/application/discover_router.test.tsx index dad796bc7c5f6..9d8d66f333137 100644 --- a/src/plugins/discover/public/application/discover_router.test.tsx +++ b/src/plugins/discover/public/application/discover_router.test.tsx @@ -12,20 +12,14 @@ import { createSearchSessionMock } from '../__mocks__/search_session'; import { discoverServiceMock as mockDiscoverServices } from '../__mocks__/services'; import { discoverRouter } from './discover_router'; import { DiscoverMainRoute } from './main'; -import { DiscoverMainProps } from './main/discover_main_route'; import { SingleDocRoute } from './doc'; import { ContextAppRoute } from './context'; const pathMap: Record = {}; -let mainRouteProps: DiscoverMainProps; describe('Discover router', () => { beforeAll(() => { const { history } = createSearchSessionMock(); - mainRouteProps = { - history, - services: mockDiscoverServices, - }; const component = shallow(discoverRouter(mockDiscoverServices, history)); component.find(Route).forEach((route) => { const routeProps = route.props() as RouteProps; @@ -39,22 +33,18 @@ describe('Discover router', () => { }); it('should show DiscoverMainRoute component for / route', () => { - expect(pathMap['/']).toMatchObject(); + expect(pathMap['/']).toMatchObject(); }); it('should show DiscoverMainRoute component for /view/:id route', () => { - expect(pathMap['/view/:id']).toMatchObject(); + expect(pathMap['/view/:id']).toMatchObject(); }); it('should show SingleDocRoute component for /doc/:indexPatternId/:index route', () => { - expect(pathMap['/doc/:indexPatternId/:index']).toMatchObject( - - ); + expect(pathMap['/doc/:indexPatternId/:index']).toMatchObject(); }); it('should show ContextAppRoute component for /context/:indexPatternId/:id route', () => { - expect(pathMap['/context/:indexPatternId/:id']).toMatchObject( - - ); + expect(pathMap['/context/:indexPatternId/:id']).toMatchObject(); }); }); diff --git a/src/plugins/discover/public/application/discover_router.tsx b/src/plugins/discover/public/application/discover_router.tsx index 66ad0cccd03c7..16ff443d15d24 100644 --- a/src/plugins/discover/public/application/discover_router.tsx +++ b/src/plugins/discover/public/application/discover_router.tsx @@ -16,41 +16,35 @@ import { SingleDocRoute } from './doc'; import { DiscoverMainRoute } from './main'; import { NotFoundRoute } from './not_found'; import { DiscoverServices } from '../build_services'; -import { DiscoverMainProps } from './main/discover_main_route'; -export const discoverRouter = (services: DiscoverServices, history: History) => { - const mainRouteProps: DiscoverMainProps = { - services, - history, - }; - - return ( - - - - - } - /> - ( - - )} - /> - } - /> - } /> - } /> - - - - - - ); -}; +export const discoverRouter = (services: DiscoverServices, history: History) => ( + + + + + + + + ( + + )} + /> + + + + + + + + + + + + + + +); diff --git a/src/plugins/discover/public/application/doc/components/doc.test.tsx b/src/plugins/discover/public/application/doc/components/doc.test.tsx index 4131a004d299b..f9b024b9c6835 100644 --- a/src/plugins/discover/public/application/doc/components/doc.test.tsx +++ b/src/plugins/discover/public/application/doc/components/doc.test.tsx @@ -15,6 +15,7 @@ import { findTestSubject } from '@elastic/eui/lib/test'; import { Doc, DocProps } from './doc'; import { SEARCH_FIELDS_FROM_SOURCE as mockSearchFieldsFromSource } from '../../../../common'; import { indexPatternMock } from '../../../__mocks__/index_pattern'; +import { KibanaContextProvider } from '../../../../../kibana_react/public'; const mockSearchApi = jest.fn(); @@ -23,30 +24,6 @@ jest.mock('../../../kibana_services', () => { let registry: any[] = []; return { - getServices: () => ({ - metadata: { - branch: 'test', - }, - data: { - search: { - search: mockSearchApi, - }, - }, - docLinks: { - links: { - apis: { - indexExists: 'mockUrl', - }, - }, - }, - uiSettings: { - get: (key: string) => { - if (key === mockSearchFieldsFromSource) { - return false; - } - }, - }, - }), getDocViewsRegistry: () => ({ // eslint-disable-next-line @typescript-eslint/no-explicit-any addDocView(view: any) { @@ -82,8 +59,36 @@ async function mountDoc(update = false) { indexPattern: indexPatternMock, } as DocProps; let comp!: ReactWrapper; + const services = { + metadata: { + branch: 'test', + }, + data: { + search: { + search: mockSearchApi, + }, + }, + docLinks: { + links: { + apis: { + indexExists: 'mockUrl', + }, + }, + }, + uiSettings: { + get: (key: string) => { + if (key === mockSearchFieldsFromSource) { + return false; + } + }, + }, + }; await act(async () => { - comp = mountWithIntl(); + comp = mountWithIntl( + + + + ); if (update) comp.update(); }); if (update) { diff --git a/src/plugins/discover/public/application/doc/components/doc.tsx b/src/plugins/discover/public/application/doc/components/doc.tsx index 59fef7ea0b9fd..e70f66de30244 100644 --- a/src/plugins/discover/public/application/doc/components/doc.tsx +++ b/src/plugins/discover/public/application/doc/components/doc.tsx @@ -10,10 +10,10 @@ import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; import { EuiCallOut, EuiLink, EuiLoadingSpinner, EuiPageContent, EuiPage } from '@elastic/eui'; import { DataView } from 'src/plugins/data/common'; -import { getServices } from '../../../kibana_services'; import { DocViewer } from '../../../services/doc_views/components/doc_viewer'; import { ElasticRequestState } from '../types'; import { useEsDocSearch } from '../../../utils/use_es_doc_search'; +import { useDiscoverServices } from '../../../utils/use_discover_services'; export interface DocProps { /** @@ -37,7 +37,8 @@ export interface DocProps { export function Doc(props: DocProps) { const { indexPattern } = props; const [reqState, hit] = useEsDocSearch(props); - const indexExistsLink = getServices().docLinks.links.apis.indexExists; + const { docLinks } = useDiscoverServices(); + const indexExistsLink = docLinks.links.apis.indexExists; return ( diff --git a/src/plugins/discover/public/application/doc/single_doc_route.tsx b/src/plugins/discover/public/application/doc/single_doc_route.tsx index 0d65bbeb714cf..d11c6bdca76a0 100644 --- a/src/plugins/discover/public/application/doc/single_doc_route.tsx +++ b/src/plugins/discover/public/application/doc/single_doc_route.tsx @@ -14,10 +14,10 @@ import { LoadingIndicator } from '../../components/common/loading_indicator'; import { useIndexPattern } from '../../utils/use_index_pattern'; import { withQueryParams } from '../../utils/with_query_params'; import { useMainRouteBreadcrumb } from '../../utils/use_navigation_props'; -import { DiscoverRouteProps } from '../types'; import { Doc } from './components/doc'; +import { useDiscoverServices } from '../../utils/use_discover_services'; -export interface SingleDocRouteProps extends DiscoverRouteProps { +export interface SingleDocRouteProps { /** * Document id */ @@ -29,8 +29,8 @@ export interface DocUrlParams { index: string; } -const SingleDoc = (props: SingleDocRouteProps) => { - const { id, services } = props; +const SingleDoc = ({ id }: SingleDocRouteProps) => { + const services = useDiscoverServices(); const { chrome, timefilter } = services; const { indexPatternId, index } = useParams(); diff --git a/src/plugins/discover/public/application/index.tsx b/src/plugins/discover/public/application/index.tsx index 55407835c0a4b..826a02c29ce1a 100644 --- a/src/plugins/discover/public/application/index.tsx +++ b/src/plugins/discover/public/application/index.tsx @@ -6,12 +6,11 @@ * Side Public License, v 1. */ import { i18n } from '@kbn/i18n'; -import { getServices } from '../kibana_services'; import { discoverRouter } from './discover_router'; import { toMountPoint, wrapWithTheme } from '../../../kibana_react/public'; +import { DiscoverServices } from '../build_services'; -export const renderApp = (element: HTMLElement) => { - const services = getServices(); +export const renderApp = (element: HTMLElement, services: DiscoverServices) => { const { history: getHistory, capabilities, chrome, data, core } = services; const history = getHistory(); diff --git a/src/plugins/discover/public/application/main/components/chart/discover_chart.test.tsx b/src/plugins/discover/public/application/main/components/chart/discover_chart.test.tsx index 673d831f3fc96..3feb8f2cea6b5 100644 --- a/src/plugins/discover/public/application/main/components/chart/discover_chart.test.tsx +++ b/src/plugins/discover/public/application/main/components/chart/discover_chart.test.tsx @@ -20,10 +20,11 @@ import { FetchStatus } from '../../../types'; import { Chart } from './point_series'; import { DiscoverChart } from './discover_chart'; import { VIEW_MODE } from '../../../../components/view_mode_toggle'; +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; setHeaderActionMenuMounter(jest.fn()); -function getProps(isTimeBased: boolean = false) { +function mountComponent(isTimeBased: boolean = false) { const searchSourceMock = createSearchSourceMock({}); const services = discoverServiceMock; services.data.query.timefilter.timefilter.getAbsoluteTime = () => { @@ -84,7 +85,7 @@ function getProps(isTimeBased: boolean = false) { }, }) as DataCharts$; - return { + const props = { isTimeBased, resetSavedSearch: jest.fn(), savedSearch: savedSearchMock, @@ -92,21 +93,26 @@ function getProps(isTimeBased: boolean = false) { savedSearchDataTotalHits$: totalHits$, savedSearchRefetch$: new Subject(), searchSource: searchSourceMock, - services, state: { columns: [] }, stateContainer: {} as GetStateReturn, viewMode: VIEW_MODE.DOCUMENT_LEVEL, setDiscoverViewMode: jest.fn(), }; + + return mountWithIntl( + + + + ); } describe('Discover chart', () => { test('render without timefield', () => { - const component = mountWithIntl(); + const component = mountComponent(); expect(component.find('[data-test-subj="discoverChartOptionsToggle"]').exists()).toBeFalsy(); }); test('render with filefield', () => { - const component = mountWithIntl(); + const component = mountComponent(true); expect(component.find('[data-test-subj="discoverChartOptionsToggle"]').exists()).toBeTruthy(); }); }); diff --git a/src/plugins/discover/public/application/main/components/chart/discover_chart.tsx b/src/plugins/discover/public/application/main/components/chart/discover_chart.tsx index 0c3d83e256525..ab9478a0f334c 100644 --- a/src/plugins/discover/public/application/main/components/chart/discover_chart.tsx +++ b/src/plugins/discover/public/application/main/components/chart/discover_chart.tsx @@ -21,10 +21,10 @@ import { SavedSearch } from '../../../../services/saved_searches'; import { GetStateReturn } from '../../services/discover_state'; import { DiscoverHistogram } from './histogram'; import { DataCharts$, DataTotalHits$ } from '../../utils/use_saved_search'; -import { DiscoverServices } from '../../../../build_services'; import { useChartPanels } from './use_chart_panels'; import { VIEW_MODE, DocumentViewModeToggle } from '../../../../components/view_mode_toggle'; import { SHOW_FIELD_STATISTICS } from '../../../../../common'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; const DiscoverHistogramMemoized = memo(DiscoverHistogram); export const CHART_HIDDEN_KEY = 'discover:chartHidden'; @@ -34,7 +34,6 @@ export function DiscoverChart({ savedSearch, savedSearchDataChart$, savedSearchDataTotalHits$, - services, stateContainer, isTimeBased, viewMode, @@ -46,7 +45,6 @@ export function DiscoverChart({ savedSearch: SavedSearch; savedSearchDataChart$: DataCharts$; savedSearchDataTotalHits$: DataTotalHits$; - services: DiscoverServices; stateContainer: GetStateReturn; isTimeBased: boolean; viewMode: VIEW_MODE; @@ -54,10 +52,9 @@ export function DiscoverChart({ hideChart?: boolean; interval?: string; }) { + const { uiSettings, data, storage } = useDiscoverServices(); const [showChartOptionsPopover, setShowChartOptionsPopover] = useState(false); - const showViewModeToggle = services.uiSettings.get(SHOW_FIELD_STATISTICS) ?? false; - - const { data, storage } = services; + const showViewModeToggle = uiSettings.get(SHOW_FIELD_STATISTICS) ?? false; const chartRef = useRef<{ element: HTMLElement | null; moveFocus: boolean }>({ element: null, @@ -165,7 +162,6 @@ export function DiscoverChart({ diff --git a/src/plugins/discover/public/application/main/components/chart/histogram.test.tsx b/src/plugins/discover/public/application/main/components/chart/histogram.test.tsx index 8950ac160b634..547c6ffe42f48 100644 --- a/src/plugins/discover/public/application/main/components/chart/histogram.test.tsx +++ b/src/plugins/discover/public/application/main/components/chart/histogram.test.tsx @@ -14,6 +14,7 @@ import { Chart } from './point_series'; import { DiscoverHistogram } from './histogram'; import React from 'react'; import * as hooks from '../../utils/use_data_state'; +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; const chartData = { xAxisOrderedValues: [ @@ -54,7 +55,7 @@ const chartData = { ], } as unknown as Chart; -function getProps(fetchStatus: FetchStatus) { +function mountComponent(fetchStatus: FetchStatus) { const services = discoverServiceMock; services.data.query.timefilter.timefilter.getAbsoluteTime = () => { return { from: '2020-05-14T11:05:13.590', to: '2020-05-14T11:20:13.590' }; @@ -72,11 +73,16 @@ function getProps(fetchStatus: FetchStatus) { const timefilterUpdateHandler = jest.fn(); - return { + const props = { savedSearchData$: charts$, - services, timefilterUpdateHandler, }; + + return mountWithIntl( + + + + ); } describe('Histogram', () => { @@ -90,7 +96,7 @@ describe('Histogram', () => { scale: 1, }, })); - const component = mountWithIntl(); + const component = mountComponent(FetchStatus.COMPLETE); expect(component.find('[data-test-subj="discoverChart"]').exists()).toBe(true); }); @@ -99,7 +105,7 @@ describe('Histogram', () => { fetchStatus: FetchStatus.ERROR, error: new Error('Loading error'), })); - const component = mountWithIntl(); + const component = mountComponent(FetchStatus.ERROR); expect(component.find('[data-test-subj="discoverChart"]').exists()).toBe(false); expect(component.find('.dscHistogram__errorChartContainer').exists()).toBe(true); expect(component.find('.dscHistogram__errorChart__text').get(1).props.children).toBe( @@ -112,7 +118,7 @@ describe('Histogram', () => { fetchStatus: FetchStatus.LOADING, chartData: null, })); - const component = mountWithIntl(); + const component = mountComponent(FetchStatus.LOADING); expect(component.find('[data-test-subj="discoverChart"]').exists()).toBe(true); expect(component.find('.dscChart__loading').exists()).toBe(true); }); diff --git a/src/plugins/discover/public/application/main/components/chart/histogram.tsx b/src/plugins/discover/public/application/main/components/chart/histogram.tsx index d411bb7ddad5c..369513d3b7a31 100644 --- a/src/plugins/discover/public/application/main/components/chart/histogram.tsx +++ b/src/plugins/discover/public/application/main/components/chart/histogram.tsx @@ -34,6 +34,7 @@ import { } from '@elastic/charts'; import { IUiSettingsClient } from 'kibana/public'; import { i18n } from '@kbn/i18n'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { CurrentTime, Endzones, @@ -42,14 +43,12 @@ import { } from '../../../../../../charts/public'; import { DataCharts$, DataChartsMessage } from '../../utils/use_saved_search'; import { FetchStatus } from '../../../types'; -import { DiscoverServices } from '../../../../build_services'; import { useDataState } from '../../utils/use_data_state'; import { LEGACY_TIME_AXIS, MULTILAYER_TIME_AXIS_STYLE } from '../../../../../../charts/common'; export interface DiscoverHistogramProps { savedSearchData$: DataCharts$; timefilterUpdateHandler: (ranges: { from: number; to: number }) => void; - services: DiscoverServices; } function getTimezone(uiSettings: IUiSettingsClient) { @@ -65,14 +64,13 @@ function getTimezone(uiSettings: IUiSettingsClient) { export function DiscoverHistogram({ savedSearchData$, timefilterUpdateHandler, - services, }: DiscoverHistogramProps) { - const chartTheme = services.theme.useChartsTheme(); - const chartBaseTheme = services.theme.useChartsBaseTheme(); + const { data, theme, uiSettings } = useDiscoverServices(); + const chartTheme = theme.useChartsTheme(); + const chartBaseTheme = theme.useChartsBaseTheme(); const dataState: DataChartsMessage = useDataState(savedSearchData$); - const uiSettings = services.uiSettings; const timeZone = getTimezone(uiSettings); const { chartData, bucketInterval, fetchStatus, error } = dataState; @@ -102,7 +100,7 @@ export function DiscoverHistogram({ [timefilterUpdateHandler] ); - const { timefilter } = services.data.query.timefilter; + const { timefilter } = data.query.timefilter; const { from, to } = timefilter.getAbsoluteTime(); const dateFormat = useMemo(() => uiSettings.get('dateFormat'), [uiSettings]); @@ -174,7 +172,6 @@ export function DiscoverHistogram({ return moment(val).format(xAxisFormat); }; - const data = chartData.values; const isDarkMode = uiSettings.get('theme:darkMode'); /* @@ -192,7 +189,7 @@ export function DiscoverHistogram({ const domainStart = domain.min.valueOf(); const domainEnd = domain.max.valueOf(); - const domainMin = Math.min(data[0]?.x, domainStart); + const domainMin = Math.min(chartData.values[0]?.x, domainStart); const domainMax = Math.max(domainEnd - xInterval, lastXValue); const xDomain = { @@ -210,7 +207,7 @@ export function DiscoverHistogram({ type: TooltipType.VerticalCursor, }; - const xAxisFormatter = services.data.fieldFormats.deserialize(chartData.yAxisFormat); + const xAxisFormatter = data.fieldFormats.deserialize(chartData.yAxisFormat); const useLegacyTimeAxis = uiSettings.get(LEGACY_TIME_AXIS, false); @@ -298,7 +295,7 @@ export function DiscoverHistogram({ yScaleType={ScaleType.Linear} xAccessor="x" yAccessors={['y']} - data={data} + data={chartData.values} yNice timeZone={timeZone} name={chartData.yAxisLabel} diff --git a/src/plugins/discover/public/application/main/components/field_stats_table/field_stats_table.tsx b/src/plugins/discover/public/application/main/components/field_stats_table/field_stats_table.tsx index 545ac6a329581..b57c28355626f 100644 --- a/src/plugins/discover/public/application/main/components/field_stats_table/field_stats_table.tsx +++ b/src/plugins/discover/public/application/main/components/field_stats_table/field_stats_table.tsx @@ -9,8 +9,8 @@ import React, { useEffect, useMemo, useRef, useState } from 'react'; import type { Filter } from '@kbn/es-query'; import { METRIC_TYPE, UiCounterMetricType } from '@kbn/analytics'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { DataViewField, DataView, Query } from '../../../../../../data/common'; -import type { DiscoverServices } from '../../../../build_services'; import { EmbeddableInput, EmbeddableOutput, @@ -57,10 +57,6 @@ export interface FieldStatisticsTableProps { * Saved search title */ searchTitle?: string; - /** - * Discover plugin services - */ - services: DiscoverServices; /** * Optional saved search */ @@ -93,7 +89,6 @@ export interface FieldStatisticsTableProps { export const FieldStatisticsTable = (props: FieldStatisticsTableProps) => { const { - services, indexPattern, savedSearch, query, @@ -105,7 +100,7 @@ export const FieldStatisticsTable = (props: FieldStatisticsTableProps) => { savedSearchRefetch$, searchSessionId, } = props; - const { uiSettings } = services; + const services = useDiscoverServices(); const [embeddable, setEmbeddable] = useState< | ErrorEmbeddable | IEmbeddable @@ -171,7 +166,7 @@ export const FieldStatisticsTable = (props: FieldStatisticsTableProps) => { embeddable.reload(); } - }, [showPreviewByDefault, uiSettings, embeddable]); + }, [showPreviewByDefault, embeddable]); useEffect(() => { let unmounted = false; @@ -216,7 +211,7 @@ export const FieldStatisticsTable = (props: FieldStatisticsTableProps) => { // Clean up embeddable upon unmounting embeddable?.destroy(); }; - }, [embeddable, embeddableRoot, uiSettings, trackUiMetric]); + }, [embeddable, embeddableRoot, trackUiMetric]); return (
- - - ); -} diff --git a/src/plugins/discover/public/application/main/components/field_stats_table/index.ts b/src/plugins/discover/public/application/main/components/field_stats_table/index.ts index 39f3dd81e74e6..b418366481fa0 100644 --- a/src/plugins/discover/public/application/main/components/field_stats_table/index.ts +++ b/src/plugins/discover/public/application/main/components/field_stats_table/index.ts @@ -7,4 +7,3 @@ */ export { FieldStatisticsTable } from './field_stats_table'; -export { FieldStatsTableSavedSearchEmbeddable } from './field_stats_table_saved_search_embeddable'; diff --git a/src/plugins/discover/public/application/main/components/layout/discover_documents.test.tsx b/src/plugins/discover/public/application/main/components/layout/discover_documents.test.tsx index 45c064d06c51f..5f9d2d41f862d 100644 --- a/src/plugins/discover/public/application/main/components/layout/discover_documents.test.tsx +++ b/src/plugins/discover/public/application/main/components/layout/discover_documents.test.tsx @@ -19,15 +19,11 @@ import { FetchStatus } from '../../../types'; import { DiscoverDocuments } from './discover_documents'; import { indexPatternMock } from '../../../../__mocks__/index_pattern'; import { ElasticSearchHit } from 'src/plugins/discover/public/types'; - -jest.mock('../../../../kibana_services', () => ({ - ...jest.requireActual('../../../../kibana_services'), - getServices: () => jest.requireActual('../../../../__mocks__/services').discoverServiceMock, -})); +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; setHeaderActionMenuMounter(jest.fn()); -function getProps(fetchStatus: FetchStatus, hits: ElasticSearchHit[]) { +function mountComponent(fetchStatus: FetchStatus, hits: ElasticSearchHit[]) { const services = discoverServiceMock; services.data.query.timefilter.timefilter.getTime = () => { return { from: '2020-05-14T11:05:13.590', to: '2020-05-14T11:20:13.590' }; @@ -38,40 +34,41 @@ function getProps(fetchStatus: FetchStatus, hits: ElasticSearchHit[]) { result: hits, }) as DataDocuments$; - return { + const props = { expandedDoc: undefined, indexPattern: indexPatternMock, onAddFilter: jest.fn(), savedSearch: savedSearchMock, documents$, searchSource: documents$, - services, setExpandedDoc: jest.fn(), state: { columns: [] }, stateContainer: {} as GetStateReturn, navigateTo: jest.fn(), }; + + return mountWithIntl( + + + + ); } describe('Discover documents layout', () => { test('render loading when loading and no documents', () => { - const component = mountWithIntl(); + const component = mountComponent(FetchStatus.LOADING, []); expect(component.find('.dscDocuments__loading').exists()).toBeTruthy(); expect(component.find('.dscTable').exists()).toBeFalsy(); }); test('render complete when loading but documents were already fetched', () => { - const component = mountWithIntl( - - ); + const component = mountComponent(FetchStatus.LOADING, esHits as ElasticSearchHit[]); expect(component.find('.dscDocuments__loading').exists()).toBeFalsy(); expect(component.find('.dscTable').exists()).toBeTruthy(); }); test('render complete', () => { - const component = mountWithIntl( - - ); + const component = mountComponent(FetchStatus.COMPLETE, esHits as ElasticSearchHit[]); expect(component.find('.dscDocuments__loading').exists()).toBeFalsy(); expect(component.find('.dscTable').exists()).toBeTruthy(); }); diff --git a/src/plugins/discover/public/application/main/components/layout/discover_documents.tsx b/src/plugins/discover/public/application/main/components/layout/discover_documents.tsx index d2b767ce5bcd8..c955157a9f703 100644 --- a/src/plugins/discover/public/application/main/components/layout/discover_documents.tsx +++ b/src/plugins/discover/public/application/main/components/layout/discover_documents.tsx @@ -14,6 +14,7 @@ import { EuiScreenReaderOnly, } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { DocViewFilterFn } from '../../../../services/doc_views/doc_views_types'; import { DiscoverGrid } from '../../../../components/discover_grid/discover_grid'; import { FetchStatus } from '../../../types'; @@ -27,7 +28,6 @@ import { useColumns } from '../../../../utils/use_data_grid_columns'; import { DataView } from '../../../../../../data/common'; import { SavedSearch } from '../../../../services/saved_searches'; import { DataDocumentsMsg, DataDocuments$ } from '../../utils/use_saved_search'; -import { DiscoverServices } from '../../../../build_services'; import { AppState, GetStateReturn } from '../../services/discover_state'; import { useDataState } from '../../utils/use_data_state'; import { DocTableInfinite } from '../../../../components/doc_table/doc_table_infinite'; @@ -43,7 +43,6 @@ function DiscoverDocumentsComponent({ indexPattern, onAddFilter, savedSearch, - services, setExpandedDoc, state, stateContainer, @@ -54,12 +53,11 @@ function DiscoverDocumentsComponent({ navigateTo: (url: string) => void; onAddFilter: DocViewFilterFn; savedSearch: SavedSearch; - services: DiscoverServices; setExpandedDoc: (doc?: ElasticSearchHit) => void; state: AppState; stateContainer: GetStateReturn; }) { - const { capabilities, indexPatterns, uiSettings } = services; + const { capabilities, indexPatterns, uiSettings } = useDiscoverServices(); const useNewFieldsApi = useMemo(() => !uiSettings.get(SEARCH_FIELDS_FROM_SOURCE), [uiSettings]); const isLegacy = useMemo(() => uiSettings.get(DOC_TABLE_LEGACY), [uiSettings]); @@ -160,7 +158,6 @@ function DiscoverDocumentsComponent({ searchTitle={savedSearch.title} setExpandedDoc={setExpandedDoc} showTimeCol={showTimeCol} - services={services} settings={state.grid} onAddColumn={onAddColumn} onFilter={onAddFilter as DocViewFilterFn} diff --git a/src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx b/src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx index c8cfd3603c9f0..b258987e3ea30 100644 --- a/src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx +++ b/src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx @@ -32,23 +32,13 @@ import { RequestAdapter } from '../../../../../../inspector'; import { Chart } from '../chart/point_series'; import { DiscoverSidebar } from '../sidebar/discover_sidebar'; import { ElasticSearchHit } from '../../../../types'; - -jest.mock('../../../../kibana_services', () => ({ - ...jest.requireActual('../../../../kibana_services'), - getServices: () => ({ - fieldFormats: { - getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => value })), - getFormatterForField: jest.fn(() => ({ convert: (value: unknown) => value })), - }, - uiSettings: { - get: jest.fn((key: string) => key === 'discover:maxDocFieldsDisplayed' && 50), - }, - }), -})); +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; +import { FieldFormatsStart } from '../../../../../../field_formats/public'; +import { IUiSettingsClient } from 'kibana/public'; setHeaderActionMenuMounter(jest.fn()); -function getProps(indexPattern: DataView, wasSidebarClosed?: boolean): DiscoverLayoutProps { +function mountComponent(indexPattern: DataView, prevSidebarClosed?: boolean) { const searchSourceMock = createSearchSourceMock({}); const services = discoverServiceMock; services.data.query.timefilter.timefilter.getAbsoluteTime = () => { @@ -56,9 +46,17 @@ function getProps(indexPattern: DataView, wasSidebarClosed?: boolean): DiscoverL }; services.storage.get = (key: string) => { if (key === SIDEBAR_CLOSED_KEY) { - return wasSidebarClosed; + return prevSidebarClosed; } }; + services.fieldFormats = { + getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => value })), + getFormatterForField: jest.fn(() => ({ convert: (value: unknown) => value })), + } as unknown as FieldFormatsStart; + services.uiSettings = { + ...services.uiSettings, + get: jest.fn((key: string) => key === 'discover:maxDocFieldsDisplayed' && 50), + } as unknown as IUiSettingsClient; const indexPatternList = [indexPattern].map((ip) => { return { ...ip, ...{ attributes: { title: ip.title } } }; @@ -135,7 +133,7 @@ function getProps(indexPattern: DataView, wasSidebarClosed?: boolean): DiscoverL charts$, }; - return { + const props = { indexPattern, indexPatternList, inspectorAdapters: { requests: new RequestAdapter() }, @@ -147,45 +145,42 @@ function getProps(indexPattern: DataView, wasSidebarClosed?: boolean): DiscoverL savedSearchData$, savedSearchRefetch$: new Subject(), searchSource: searchSourceMock, - services, state: { columns: [] }, stateContainer: {} as GetStateReturn, setExpandedDoc: jest.fn(), }; + + return mountWithIntl( + + + + ); } describe('Discover component', () => { test('selected index pattern without time field displays no chart toggle', () => { - const component = mountWithIntl(); + const component = mountComponent(indexPatternMock); expect(component.find('[data-test-subj="discoverChartOptionsToggle"]').exists()).toBeFalsy(); }); test('selected index pattern with time field displays chart toggle', () => { - const component = mountWithIntl( - - ); + const component = mountComponent(indexPatternWithTimefieldMock); expect(component.find('[data-test-subj="discoverChartOptionsToggle"]').exists()).toBeTruthy(); }); describe('sidebar', () => { test('should be opened if discover:sidebarClosed was not set', () => { - const component = mountWithIntl( - - ); + const component = mountComponent(indexPatternWithTimefieldMock, undefined); expect(component.find(DiscoverSidebar).length).toBe(1); }); test('should be opened if discover:sidebarClosed is false', () => { - const component = mountWithIntl( - - ); + const component = mountComponent(indexPatternWithTimefieldMock, false); expect(component.find(DiscoverSidebar).length).toBe(1); }); test('should be closed if discover:sidebarClosed is true', () => { - const component = mountWithIntl( - - ); + const component = mountComponent(indexPatternWithTimefieldMock, true); expect(component.find(DiscoverSidebar).length).toBe(0); }); }); diff --git a/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx b/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx index e98605326cc32..5601596a4d73b 100644 --- a/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx +++ b/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx @@ -21,6 +21,7 @@ import { import { i18n } from '@kbn/i18n'; import { METRIC_TYPE } from '@kbn/analytics'; import classNames from 'classnames'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { DiscoverNoResults } from '../no_results'; import { LoadingSpinner } from '../loading_spinner/loading_spinner'; import { esFilters } from '../../../../../../data/public'; @@ -73,7 +74,6 @@ export function DiscoverLayout({ savedSearchData$, savedSearch, searchSource, - services, state, stateContainer, }: DiscoverLayoutProps) { @@ -87,7 +87,8 @@ export function DiscoverLayout({ storage, history, spaces, - } = services; + inspector, + } = useDiscoverServices(); const { main$, charts$, totalHits$ } = savedSearchData$; const [inspectorSession, setInspectorSession] = useState(undefined); @@ -142,11 +143,11 @@ export function DiscoverLayout({ const onOpenInspector = useCallback(() => { // prevent overlapping setExpandedDoc(undefined); - const session = services.inspector.open(inspectorAdapters, { + const session = inspector.open(inspectorAdapters, { title: savedSearch.title, }); setInspectorSession(session); - }, [setExpandedDoc, inspectorAdapters, savedSearch, services.inspector]); + }, [setExpandedDoc, inspectorAdapters, savedSearch, inspector]); useEffect(() => { return () => { @@ -214,7 +215,6 @@ export function DiscoverLayout({ savedQuery={state.savedQuery} savedSearch={savedSearch} searchSource={searchSource} - services={services} stateContainer={stateContainer} updateQuery={onUpdateQuery} resetSavedSearch={resetSavedSearch} @@ -239,7 +239,6 @@ export function DiscoverLayout({ onRemoveField={onRemoveColumn} onChangeIndexPattern={onChangeIndexPattern} selectedIndexPattern={indexPattern} - services={services} state={state} isClosed={isSidebarClosed} trackUiMetric={trackUiMetric} @@ -308,7 +307,6 @@ export function DiscoverLayout({ savedSearch={savedSearch} savedSearchDataChart$={charts$} savedSearchDataTotalHits$={totalHits$} - services={services} stateContainer={stateContainer} isTimeBased={isTimeBased} viewMode={viewMode} @@ -326,7 +324,6 @@ export function DiscoverLayout({ navigateTo={navigateTo} onAddFilter={onAddFilter as DocViewFilterFn} savedSearch={savedSearch} - services={services} setExpandedDoc={setExpandedDoc} state={state} stateContainer={stateContainer} @@ -334,7 +331,6 @@ export function DiscoverLayout({ ) : ( { - return { - getServices: () => ({ - docLinks: { - links: { - query: { - luceneQuerySyntax: 'documentation-link', - }, - }, - }, - }), - }; -}); +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; beforeEach(() => { jest.clearAllMocks(); }); function mountAndFindSubjects(props: Omit) { - const component = mountWithIntl( {}} {...props} />); + const services = { + docLinks: { + links: { + query: { + luceneQuerySyntax: 'documentation-link', + }, + }, + }, + }; + const component = mountWithIntl( + + {}} {...props} /> + + ); return { mainMsg: findTestSubject(component, 'discoverNoResults').exists(), timeFieldMsg: findTestSubject(component, 'discoverNoResultsTimefilter').exists(), diff --git a/src/plugins/discover/public/application/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap b/src/plugins/discover/public/application/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap index afadc293f6420..94aa55ff23853 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap +++ b/src/plugins/discover/public/application/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap @@ -1,8 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Discover DataView Management renders correctly 1`] = ` - - + -
-
+ + } + closePopover={[Function]} + data-test-subj="discover-addRuntimeField-popover" + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="s" + > +
+
- - + type="boxesHorizontal" + > +
-
- - + + + `; diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_field.test.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_field.test.tsx index c68339575023a..758738a6cbc56 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_field.test.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_field.test.tsx @@ -13,6 +13,7 @@ import { mountWithIntl } from '@kbn/test/jest'; import { DiscoverField } from './discover_field'; import { DataViewField } from '../../../../../../data/common'; import { stubIndexPattern } from '../../../../../../data/common/stubs'; +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; jest.mock('../../../../kibana_services', () => ({ getUiActions: jest.fn(() => { @@ -20,25 +21,6 @@ jest.mock('../../../../kibana_services', () => ({ getTriggerCompatibleActions: jest.fn(() => []), }; }), - getServices: () => ({ - history: () => ({ - location: { - search: '', - }, - }), - capabilities: { - visualize: { - show: true, - }, - }, - uiSettings: { - get: (key: string) => { - if (key === 'fields:popularLimit') { - return 5; - } - }, - }, - }), })); function getComponent({ @@ -73,7 +55,30 @@ function getComponent({ showDetails, selected, }; - const comp = mountWithIntl(); + const services = { + history: () => ({ + location: { + search: '', + }, + }), + capabilities: { + visualize: { + show: true, + }, + }, + uiSettings: { + get: (key: string) => { + if (key === 'fields:popularLimit') { + return 5; + } + }, + }, + }; + const comp = mountWithIntl( + + + + ); return { comp, props }; } diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_index_pattern_management.test.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_index_pattern_management.test.tsx index d44091c27d297..8ab82924a6c23 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_index_pattern_management.test.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_index_pattern_management.test.tsx @@ -12,6 +12,7 @@ import { EuiContextMenuPanel, EuiPopover, EuiContextMenuItem } from '@elastic/eu import { DiscoverServices } from '../../../../build_services'; import { DiscoverIndexPatternManagement } from './discover_index_pattern_management'; import { stubLogstashIndexPattern } from '../../../../../../data/common/stubs'; +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; const mockServices = { history: () => ({ @@ -56,12 +57,13 @@ describe('Discover DataView Management', () => { const mountComponent = () => { return mountWithIntl( - + + + ); }; diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_index_pattern_management.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_index_pattern_management.tsx index ce201f6ed3ae5..0655357d55983 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_index_pattern_management.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_index_pattern_management.tsx @@ -9,7 +9,7 @@ import React, { useState } from 'react'; import { EuiButtonIcon, EuiContextMenuItem, EuiContextMenuPanel, EuiPopover } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { DiscoverServices } from '../../../../build_services'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { DataView } from '../../../../../../data/common'; export interface DiscoverIndexPatternManagementProps { @@ -17,10 +17,6 @@ export interface DiscoverIndexPatternManagementProps { * Currently selected index pattern */ selectedIndexPattern?: DataView; - /** - * Discover plugin services; - */ - services: DiscoverServices; /** * Read from the Fields API */ @@ -33,7 +29,7 @@ export interface DiscoverIndexPatternManagementProps { } export function DiscoverIndexPatternManagement(props: DiscoverIndexPatternManagementProps) { - const { dataViewFieldEditor, core } = props.services; + const { dataViewFieldEditor, core } = useDiscoverServices(); const { useNewFieldsApi, selectedIndexPattern, editField } = props; const dataViewEditPermission = dataViewFieldEditor?.userPermissions.editIndexPattern(); const canEditDataViewField = !!dataViewEditPermission && useNewFieldsApi; diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.test.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.test.tsx index 95c167524af48..e236d7e8a1b89 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.test.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.test.tsx @@ -23,10 +23,7 @@ import { discoverServiceMock as mockDiscoverServices } from '../../../../__mocks import { stubLogstashIndexPattern } from '../../../../../../data/common/stubs'; import { VIEW_MODE } from '../../../../components/view_mode_toggle'; import { ElasticSearchHit } from '../../../../types'; - -jest.mock('../../../../kibana_services', () => ({ - getServices: () => mockDiscoverServices, -})); +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; function getCompProps(): DiscoverSidebarProps { const indexPattern = stubLogstashIndexPattern; @@ -59,7 +56,6 @@ function getCompProps(): DiscoverSidebarProps { onAddField: jest.fn(), onRemoveField: jest.fn(), selectedIndexPattern: indexPattern, - services: mockDiscoverServices, state: {}, trackUiMetric: jest.fn(), fieldFilter: getDefaultFieldFilter(), @@ -76,7 +72,11 @@ describe('discover sidebar', function () { beforeAll(() => { props = getCompProps(); - comp = mountWithIntl(); + comp = mountWithIntl( + + + + ); }); it('should have Selected Fields and Available Fields with Popular Fields sections', function () { diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.tsx index fd5c838c42f91..087a5a6ae312b 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.tsx @@ -25,6 +25,7 @@ import useShallowCompareEffect from 'react-use/lib/useShallowCompareEffect'; import { isEqual, sortBy } from 'lodash'; import { FormattedMessage } from '@kbn/i18n-react'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { DiscoverField } from './discover_field'; import { DiscoverIndexPattern } from './discover_index_pattern'; import { DiscoverFieldSearch } from './discover_field_search'; @@ -93,7 +94,6 @@ export function DiscoverSidebarComponent({ onAddFilter, onRemoveField, selectedIndexPattern, - services, setFieldFilter, trackUiMetric, useNewFieldsApi = false, @@ -105,9 +105,9 @@ export function DiscoverSidebarComponent({ editField, viewMode, }: DiscoverSidebarProps) { + const { uiSettings, dataViewFieldEditor } = useDiscoverServices(); const [fields, setFields] = useState(null); - const { dataViewFieldEditor } = services; const dataViewFieldEditPermission = dataViewFieldEditor?.userPermissions.editIndexPattern(); const canEditDataViewField = !!dataViewFieldEditPermission && useNewFieldsApi; const [scrollContainer, setScrollContainer] = useState(null); @@ -138,10 +138,7 @@ export function DiscoverSidebarComponent({ [documents, columns, selectedIndexPattern] ); - const popularLimit = useMemo( - () => services.uiSettings.get(FIELDS_LIMIT_SETTING), - [services.uiSettings] - ); + const popularLimit = useMemo(() => uiSettings.get(FIELDS_LIMIT_SETTING), [uiSettings]); const { selected: selectedFields, @@ -299,7 +296,6 @@ export function DiscoverSidebarComponent({ ({ @@ -62,7 +63,6 @@ jest.mock('../../../../kibana_services', () => ({ getTriggerCompatibleActions: jest.fn(() => []), }; }), - getServices: () => mockServices, })); jest.mock('../../utils/calc_field_counts', () => ({ @@ -100,7 +100,6 @@ function getCompProps(): DiscoverSidebarResponsiveProps { onAddField: jest.fn(), onRemoveField: jest.fn(), selectedIndexPattern: indexPattern, - services: mockServices, state: {}, trackUiMetric: jest.fn(), onEditRuntimeField: jest.fn(), @@ -114,7 +113,11 @@ describe('discover responsive sidebar', function () { beforeAll(() => { props = getCompProps(); - comp = mountWithIntl(); + comp = mountWithIntl( + + + + ); }); it('should have Selected Fields and Available Fields with Popular Fields sections', function () { diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx index df79b4a03578e..abc59ff282863 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx @@ -26,12 +26,12 @@ import { EuiFlexGroup, EuiFlexItem, } from '@elastic/eui'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { DiscoverIndexPattern } from './discover_index_pattern'; import { DataViewField, DataView, DataViewAttributes } from '../../../../../../data/common'; import { SavedObject } from '../../../../../../../core/types'; import { getDefaultFieldFilter } from './lib/field_filter'; import { DiscoverSidebar } from './discover_sidebar'; -import { DiscoverServices } from '../../../../build_services'; import { AppState } from '../../services/discover_state'; import { DiscoverIndexPatternManagement } from './discover_index_pattern_management'; import { DataDocuments$ } from '../../utils/use_saved_search'; @@ -80,10 +80,6 @@ export interface DiscoverSidebarResponsiveProps { * Currently selected index pattern */ selectedIndexPattern?: DataView; - /** - * Discover plugin services; - */ - services: DiscoverServices; /** * Discover App state */ @@ -118,6 +114,7 @@ export interface DiscoverSidebarResponsiveProps { * Mobile: Index pattern selector is visible and a button to trigger a flyout with all elements */ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps) { + const services = useDiscoverServices(); const { selectedIndexPattern, onEditRuntimeField, useNewFieldsApi, onChangeIndexPattern } = props; const [fieldFilter, setFieldFilter] = useState(getDefaultFieldFilter()); const [isFlyoutVisible, setIsFlyoutVisible] = useState(false); @@ -170,7 +167,7 @@ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps) setIsFlyoutVisible(false); }, []); - const { dataViewFieldEditor } = props.services; + const { dataViewFieldEditor } = services; const editField = useCallback( (fieldName?: string) => { @@ -244,7 +241,6 @@ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps) ({ + ...jest.requireActual('../../../../../../kibana_react/public'), + useKibana: () => ({ + services: jest.requireActual('../../../../__mocks__/services').discoverServiceMock, + }), +})); + function getProps(savePermissions = true): DiscoverTopNavProps { discoverServiceMock.capabilities.discover!.save = savePermissions; @@ -27,7 +34,6 @@ function getProps(savePermissions = true): DiscoverTopNavProps { indexPattern: indexPatternMock, savedSearch: savedSearchMock, navigateTo: jest.fn(), - services: discoverServiceMock, query: {} as Query, savedQuery: '', updateQuery: jest.fn(), diff --git a/src/plugins/discover/public/application/main/components/top_nav/discover_topnav.tsx b/src/plugins/discover/public/application/main/components/top_nav/discover_topnav.tsx index 2e8261ce165da..63e75c74af795 100644 --- a/src/plugins/discover/public/application/main/components/top_nav/discover_topnav.tsx +++ b/src/plugins/discover/public/application/main/components/top_nav/discover_topnav.tsx @@ -7,6 +7,7 @@ */ import React, { useCallback, useMemo } from 'react'; import { useHistory } from 'react-router-dom'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { DiscoverLayoutProps } from '../layout/types'; import { getTopNavLinks } from './get_top_nav_links'; import { Query, TimeRange } from '../../../../../../data/common/query'; @@ -16,7 +17,7 @@ import { DataViewType } from '../../../../../../data_views/common'; export type DiscoverTopNavProps = Pick< DiscoverLayoutProps, - 'indexPattern' | 'navigateTo' | 'savedSearch' | 'services' | 'searchSource' + 'indexPattern' | 'navigateTo' | 'savedSearch' | 'searchSource' > & { onOpenInspector: () => void; query?: Query; @@ -36,7 +37,6 @@ export const DiscoverTopNav = ({ searchSource, navigateTo, savedSearch, - services, resetSavedSearch, }: DiscoverTopNavProps) => { const history = useHistory(); @@ -44,6 +44,7 @@ export const DiscoverTopNav = ({ () => indexPattern.isTimeBased() && indexPattern.type !== DataViewType.ROLLUP, [indexPattern] ); + const services = useDiscoverServices(); const { TopNavMenu } = services.navigation.ui; const onOpenSavedSearch = useCallback( diff --git a/src/plugins/discover/public/application/main/components/top_nav/get_top_nav_links.ts b/src/plugins/discover/public/application/main/components/top_nav/get_top_nav_links.ts index 8c7d5700b3d87..0a8bcae983d35 100644 --- a/src/plugins/discover/public/application/main/components/top_nav/get_top_nav_links.ts +++ b/src/plugins/discover/public/application/main/components/top_nav/get_top_nav_links.ts @@ -53,6 +53,7 @@ export const getTopNavLinks = ({ I18nContext: services.core.i18n.Context, anchorElement, theme$: services.core.theme.theme$, + services, }), testId: 'discoverOptionsButton', }; @@ -97,6 +98,7 @@ export const getTopNavLinks = ({ onOpenSavedSearch, I18nContext: services.core.i18n.Context, theme$: services.core.theme.theme$, + services, }), }; diff --git a/src/plugins/discover/public/application/main/components/top_nav/open_options_popover.test.tsx b/src/plugins/discover/public/application/main/components/top_nav/open_options_popover.test.tsx index 8363bfdc57616..c2059915b2af8 100644 --- a/src/plugins/discover/public/application/main/components/top_nav/open_options_popover.test.tsx +++ b/src/plugins/discover/public/application/main/components/top_nav/open_options_popover.test.tsx @@ -9,41 +9,30 @@ import React from 'react'; import { mountWithIntl } from '@kbn/test/jest'; import { findTestSubject } from '@elastic/eui/lib/test'; -import { getServices } from '../../../../kibana_services'; - -jest.mock('../../../../kibana_services', () => { - const mockUiSettings = new Map(); - return { - getServices: () => ({ - core: { - uiSettings: { - get: (key: string) => { - return mockUiSettings.get(key); - }, - set: (key: string, value: boolean) => { - mockUiSettings.set(key, value); - }, - }, - }, - addBasePath: (path: string) => path, - }), - }; -}); import { OptionsPopover } from './open_options_popover'; +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; test('should display the correct text if datagrid is selected', () => { const element = document.createElement('div'); - const component = mountWithIntl(); + const component = mountWithIntl( + '', core: { uiSettings: { get: () => false } } }} + > + + + ); expect(findTestSubject(component, 'docTableMode').text()).toBe('Document Explorer'); }); test('should display the correct text if legacy table is selected', () => { - const { - core: { uiSettings }, - } = getServices(); - uiSettings.set('doc_table:legacy', true); const element = document.createElement('div'); - const component = mountWithIntl(); + const component = mountWithIntl( + '', core: { uiSettings: { get: () => true } } }} + > + + + ); expect(findTestSubject(component, 'docTableMode').text()).toBe('Classic'); }); diff --git a/src/plugins/discover/public/application/main/components/top_nav/open_options_popover.tsx b/src/plugins/discover/public/application/main/components/top_nav/open_options_popover.tsx index ea0cd804efec0..b52aa21414664 100644 --- a/src/plugins/discover/public/application/main/components/top_nav/open_options_popover.tsx +++ b/src/plugins/discover/public/application/main/components/top_nav/open_options_popover.tsx @@ -23,9 +23,10 @@ import { } from '@elastic/eui'; import './open_options_popover.scss'; import { Observable } from 'rxjs'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; +import { DiscoverServices } from '../../../../build_services'; import { DOC_TABLE_LEGACY } from '../../../../../common'; -import { getServices } from '../../../../kibana_services'; -import { KibanaThemeProvider } from '../../../../../../kibana_react/public'; +import { KibanaContextProvider, KibanaThemeProvider } from '../../../../../../kibana_react/public'; const container = document.createElement('div'); let isOpen = false; @@ -39,7 +40,7 @@ export function OptionsPopover(props: OptionsPopoverProps) { const { core: { uiSettings }, addBasePath, - } = getServices(); + } = useDiscoverServices(); const isLegacy = uiSettings.get(DOC_TABLE_LEGACY); const mode = isLegacy @@ -128,10 +129,12 @@ export function openOptionsPopover({ I18nContext, anchorElement, theme$, + services, }: { I18nContext: I18nStart['Context']; anchorElement: HTMLElement; theme$: Observable; + services: DiscoverServices; }) { if (isOpen) { onClose(); @@ -143,9 +146,11 @@ export function openOptionsPopover({ const element = ( - - - + + + + + ); ReactDOM.render(element, container); diff --git a/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.test.tsx b/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.test.tsx index 80c70d9b1aff5..ad4c356ce63e0 100644 --- a/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.test.tsx +++ b/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.test.tsx @@ -9,39 +9,37 @@ import React from 'react'; import { shallow } from 'enzyme'; -const mockCapabilities = jest.fn().mockReturnValue({ - savedObjectsManagement: { - edit: true, - }, -}); - -jest.mock('../../../../kibana_services', () => { - return { - getServices: () => ({ - core: { uiSettings: {}, savedObjects: {} }, - addBasePath: (path: string) => path, - capabilities: mockCapabilities(), - }), - }; -}); +describe('OpenSearchPanel', () => { + beforeEach(() => { + jest.resetModules(); + }); -import { OpenSearchPanel } from './open_search_panel'; + test('render', async () => { + jest.doMock('../../../../utils/use_discover_services', () => ({ + useDiscoverServices: jest.fn().mockImplementation(() => ({ + core: { uiSettings: {}, savedObjects: {} }, + addBasePath: (path: string) => path, + capabilities: { savedObjectsManagement: { edit: true } }, + })), + })); + const { OpenSearchPanel } = await import('./open_search_panel'); -describe('OpenSearchPanel', () => { - test('render', () => { const component = shallow( ); expect(component).toMatchSnapshot(); }); - test('should not render manage searches button without permissions', () => { - mockCapabilities.mockReturnValue({ - savedObjectsManagement: { - edit: false, - delete: false, - }, - }); + test('should not render manage searches button without permissions', async () => { + jest.doMock('../../../../utils/use_discover_services', () => ({ + useDiscoverServices: jest.fn().mockImplementation(() => ({ + core: { uiSettings: {}, savedObjects: {} }, + addBasePath: (path: string) => path, + capabilities: { savedObjectsManagement: { edit: false, delete: false } }, + })), + })); + const { OpenSearchPanel } = await import('./open_search_panel'); + const component = shallow( ); diff --git a/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.tsx b/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.tsx index ce6d151261243..3c972a3f4bb98 100644 --- a/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.tsx +++ b/src/plugins/discover/public/application/main/components/top_nav/open_search_panel.tsx @@ -21,7 +21,7 @@ import { EuiTitle, } from '@elastic/eui'; import { SavedObjectFinderUi } from '../../../../../../saved_objects/public'; -import { getServices } from '../../../../kibana_services'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; const SEARCH_OBJECT_TYPE = 'search'; @@ -35,7 +35,7 @@ export function OpenSearchPanel(props: OpenSearchPanelProps) { core: { uiSettings, savedObjects }, addBasePath, capabilities, - } = getServices(); + } = useDiscoverServices(); const hasSavedObjectPermission = capabilities.savedObjectsManagement?.edit || capabilities.savedObjectsManagement?.delete; diff --git a/src/plugins/discover/public/application/main/components/top_nav/show_open_search_panel.tsx b/src/plugins/discover/public/application/main/components/top_nav/show_open_search_panel.tsx index d506de357675a..6ba1ffd15130a 100644 --- a/src/plugins/discover/public/application/main/components/top_nav/show_open_search_panel.tsx +++ b/src/plugins/discover/public/application/main/components/top_nav/show_open_search_panel.tsx @@ -10,8 +10,9 @@ import React from 'react'; import ReactDOM from 'react-dom'; import { CoreTheme, I18nStart } from 'kibana/public'; import { Observable } from 'rxjs'; +import { DiscoverServices } from '../../../../build_services'; import { OpenSearchPanel } from './open_search_panel'; -import { KibanaThemeProvider } from '../../../../../../kibana_react/public'; +import { KibanaContextProvider, KibanaThemeProvider } from '../../../../../../kibana_react/public'; let isOpen = false; @@ -19,10 +20,12 @@ export function showOpenSearchPanel({ I18nContext, onOpenSavedSearch, theme$, + services, }: { I18nContext: I18nStart['Context']; onOpenSavedSearch: (id: string) => void; theme$: Observable; + services: DiscoverServices; }) { if (isOpen) { return; @@ -39,9 +42,11 @@ export function showOpenSearchPanel({ document.body.appendChild(container); const element = ( - - - + + + + + ); ReactDOM.render(element, container); diff --git a/src/plugins/discover/public/application/main/discover_main_app.test.tsx b/src/plugins/discover/public/application/main/discover_main_app.test.tsx index cb2bad306f43f..d1699900b1498 100644 --- a/src/plugins/discover/public/application/main/discover_main_app.test.tsx +++ b/src/plugins/discover/public/application/main/discover_main_app.test.tsx @@ -9,32 +9,38 @@ import React from 'react'; import { mountWithIntl } from '@kbn/test/jest'; import { indexPatternMock } from '../../__mocks__/index_pattern'; import { DiscoverMainApp } from './discover_main_app'; -import { discoverServiceMock } from '../../__mocks__/services'; import { savedSearchMock } from '../../__mocks__/saved_search'; -import { createSearchSessionMock } from '../../__mocks__/search_session'; import { SavedObject } from '../../../../../core/types'; import { IndexPatternAttributes } from '../../../../data/common'; import { setHeaderActionMenuMounter } from '../../kibana_services'; import { findTestSubject } from '@elastic/eui/lib/test'; +import { KibanaContextProvider } from '../../../../kibana_react/public'; +import { discoverServiceMock } from '../../__mocks__/services'; +import { Router } from 'react-router-dom'; +import { createMemoryHistory } from 'history'; setHeaderActionMenuMounter(jest.fn()); describe('DiscoverMainApp', () => { test('renders', () => { - const { history } = createSearchSessionMock(); const indexPatternList = [indexPatternMock].map((ip) => { return { ...ip, ...{ attributes: { title: ip.title } } }; }) as unknown as Array>; - const props = { indexPatternList, - services: discoverServiceMock, savedSearch: savedSearchMock, - navigateTo: jest.fn(), - history, }; + const history = createMemoryHistory({ + initialEntries: ['/'], + }); - const component = mountWithIntl(); + const component = mountWithIntl( + + + + + + ); expect(findTestSubject(component, 'indexPattern-switch-link').text()).toBe( indexPatternMock.title diff --git a/src/plugins/discover/public/application/main/discover_main_app.tsx b/src/plugins/discover/public/application/main/discover_main_app.tsx index 1ef6641e9bc72..846a1fe33c826 100644 --- a/src/plugins/discover/public/application/main/discover_main_app.tsx +++ b/src/plugins/discover/public/application/main/discover_main_app.tsx @@ -6,32 +6,24 @@ * Side Public License, v 1. */ import React, { useCallback, useEffect, useState } from 'react'; -import { History } from 'history'; +import { useHistory } from 'react-router-dom'; import { DiscoverLayout } from './components/layout'; import { setBreadcrumbsTitle } from '../../utils/breadcrumbs'; import { addHelpMenuToAppChrome } from '../../components/help_menu/help_menu_util'; import { useDiscoverState } from './utils/use_discover_state'; import { useUrl } from './utils/use_url'; import { IndexPatternAttributes, SavedObject } from '../../../../data/common'; -import { DiscoverServices } from '../../build_services'; import { SavedSearch } from '../../services/saved_searches'; import { ElasticSearchHit } from '../../types'; +import { useDiscoverServices } from '../../utils/use_discover_services'; const DiscoverLayoutMemoized = React.memo(DiscoverLayout); export interface DiscoverMainProps { - /** - * Instance of browser history - */ - history: History; /** * List of available index patterns */ indexPatternList: Array>; - /** - * Kibana core services used by discover - */ - services: DiscoverServices; /** * Current instance of SavedSearch */ @@ -39,8 +31,10 @@ export interface DiscoverMainProps { } export function DiscoverMainApp(props: DiscoverMainProps) { - const { savedSearch, services, history, indexPatternList } = props; + const { savedSearch, indexPatternList } = props; + const services = useDiscoverServices(); const { chrome, docLinks, uiSettings: config, data } = services; + const history = useHistory(); const [expandedDoc, setExpandedDoc] = useState(undefined); const navigateTo = useCallback( (path: string) => { @@ -113,7 +107,6 @@ export function DiscoverMainApp(props: DiscoverMainProps) { savedSearchData$={data$} savedSearchRefetch$={refetch$} searchSource={searchSource} - services={services} state={state} stateContainer={stateContainer} /> 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 f1d7cc2385cd0..d5950085b94c7 100644 --- a/src/plugins/discover/public/application/main/discover_main_route.tsx +++ b/src/plugins/discover/public/application/main/discover_main_route.tsx @@ -6,8 +6,7 @@ * Side Public License, v 1. */ import React, { useEffect, useState, memo, useCallback } from 'react'; -import { History } from 'history'; -import { useParams } from 'react-router-dom'; +import { useParams, useHistory } from 'react-router-dom'; import { IndexPatternAttributes, ISearchSource, SavedObject } from 'src/plugins/data/common'; import { @@ -23,23 +22,18 @@ import { redirectWhenMissing } from '../../../../kibana_utils/public'; import { DataViewSavedObjectConflictError } from '../../../../data_views/common'; import { LoadingIndicator } from '../../components/common/loading_indicator'; import { DiscoverError } from '../../components/common/error_alert'; -import { DiscoverRouteProps } from '../types'; +import { useDiscoverServices } from '../../utils/use_discover_services'; import { getUrlTracker } from '../../kibana_services'; const DiscoverMainAppMemoized = memo(DiscoverMainApp); -export interface DiscoverMainProps extends DiscoverRouteProps { - /** - * Instance of browser history - */ - history: History; -} - interface DiscoverLandingParams { id: string; } -export function DiscoverMainRoute({ services, history }: DiscoverMainProps) { +export function DiscoverMainRoute() { + const history = useHistory(); + const services = useDiscoverServices(); const { core, chrome, @@ -178,12 +172,5 @@ export function DiscoverMainRoute({ services, history }: DiscoverMainProps) { return ; } - return ( - - ); + return ; } diff --git a/src/plugins/discover/public/application/not_found/not_found_route.tsx b/src/plugins/discover/public/application/not_found/not_found_route.tsx index 7b42e85584428..28f525039dd1e 100644 --- a/src/plugins/discover/public/application/not_found/not_found_route.tsx +++ b/src/plugins/discover/public/application/not_found/not_found_route.tsx @@ -11,19 +11,13 @@ import { EuiCallOut } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import { Redirect } from 'react-router-dom'; import { toMountPoint, wrapWithTheme } from '../../../../kibana_react/public'; -import { DiscoverServices } from '../../build_services'; import { getUrlTracker } from '../../kibana_services'; +import { useDiscoverServices } from '../../utils/use_discover_services'; -export interface NotFoundRouteProps { - /** - * Kibana core services used by discover - */ - services: DiscoverServices; -} let bannerId: string | undefined; -export function NotFoundRoute(props: NotFoundRouteProps) { - const { services } = props; +export function NotFoundRoute() { + const services = useDiscoverServices(); const { urlForwarding, core, history } = services; const currentLocation = history().location.pathname; diff --git a/src/plugins/discover/public/application/types.ts b/src/plugins/discover/public/application/types.ts index f33b8bb22b58c..f04f3bf77c2f9 100644 --- a/src/plugins/discover/public/application/types.ts +++ b/src/plugins/discover/public/application/types.ts @@ -6,7 +6,6 @@ * Side Public License, v 1. */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { DiscoverServices } from '../build_services'; export enum FetchStatus { UNINITIALIZED = 'uninitialized', @@ -25,10 +24,3 @@ export type EsHitRecord = Required< isAnchor?: boolean; }; export type EsHitRecordList = EsHitRecord[]; - -export interface DiscoverRouteProps { - /** - * Kibana core services used by discover - */ - services: DiscoverServices; -} diff --git a/src/plugins/discover/public/build_services.ts b/src/plugins/discover/public/build_services.ts index b77228e309286..393893432538b 100644 --- a/src/plugins/discover/public/build_services.ts +++ b/src/plugins/discover/public/build_services.ts @@ -7,6 +7,7 @@ */ import { History } from 'history'; +import { memoize } from 'lodash'; import { Capabilities, @@ -72,7 +73,7 @@ export interface DiscoverServices { spaces?: SpacesApi; } -export function buildServices( +export const buildServices = memoize(function ( core: CoreStart, plugins: DiscoverStartPlugins, context: PluginInitializerContext @@ -109,4 +110,4 @@ export function buildServices( http: core.http, spaces: plugins.spaces, }; -} +}); diff --git a/src/plugins/discover/public/components/discover_grid/discover_grid.test.tsx b/src/plugins/discover/public/components/discover_grid/discover_grid.test.tsx index 11f32890f29ea..c4ef4ffef3234 100644 --- a/src/plugins/discover/public/components/discover_grid/discover_grid.test.tsx +++ b/src/plugins/discover/public/components/discover_grid/discover_grid.test.tsx @@ -14,20 +14,12 @@ import { esHits } from '../../__mocks__/es_hits'; import { indexPatternMock } from '../../__mocks__/index_pattern'; import { mountWithIntl } from '@kbn/test/jest'; import { DiscoverGrid, DiscoverGridProps } from './discover_grid'; -import { uiSettingsMock } from '../../__mocks__/ui_settings'; -import { DiscoverServices } from '../../build_services'; import { getDocId } from './discover_grid_document_selection'; import { ElasticSearchHit } from '../../types'; - -jest.mock('../../kibana_services', () => ({ - ...jest.requireActual('../../kibana_services'), - getServices: () => jest.requireActual('../../__mocks__/services').discoverServiceMock, -})); +import { KibanaContextProvider } from '../../../../kibana_react/public'; +import { discoverServiceMock } from '../../__mocks__/services'; function getProps() { - const servicesMock = { - uiSettings: uiSettingsMock, - } as DiscoverServices; return { ariaLabelledBy: '', columns: [], @@ -44,7 +36,6 @@ function getProps() { sampleSize: 30, searchDescription: '', searchTitle: '', - services: servicesMock, setExpandedDoc: jest.fn(), settings: {}, showTimeCol: true, @@ -54,7 +45,13 @@ function getProps() { } function getComponent() { - return mountWithIntl(); + const Proxy = (props: DiscoverGridProps) => ( + + + + ); + + return mountWithIntl(); } function getSelectedDocNr(component: ReactWrapper) { diff --git a/src/plugins/discover/public/components/discover_grid/discover_grid.tsx b/src/plugins/discover/public/components/discover_grid/discover_grid.tsx index 93cbbb924f40b..4307afbeb9e38 100644 --- a/src/plugins/discover/public/components/discover_grid/discover_grid.tsx +++ b/src/plugins/discover/public/components/discover_grid/discover_grid.tsx @@ -39,7 +39,6 @@ import { pageSizeArr, toolbarVisibility as toolbarVisibilityDefaults, } from './constants'; -import { DiscoverServices } from '../../build_services'; import { getDisplayedColumns } from '../../utils/columns'; import { DOC_HIDE_TIME_COLUMN_SETTING, @@ -50,6 +49,7 @@ import { DiscoverGridDocumentToolbarBtn, getDocId } from './discover_grid_docume import { SortPairArr } from '../doc_table/lib/get_sort'; import { getFieldsToShow } from '../../utils/get_fields_to_show'; import { ElasticSearchHit } from '../../types'; +import { useDiscoverServices } from '../../utils/use_discover_services'; interface SortObj { id: string; @@ -130,10 +130,6 @@ export interface DiscoverGridProps { * Saved search title */ searchTitle?: string; - /** - * Discover plugin services - */ - services: DiscoverServices; /** * Determines whether the time columns should be displayed (legacy settings) */ @@ -182,7 +178,6 @@ export const DiscoverGrid = ({ sampleSize, searchDescription, searchTitle, - services, setExpandedDoc, settings, showTimeCol, @@ -193,6 +188,7 @@ export const DiscoverGrid = ({ controlColumnIds = CONTROL_COLUMN_IDS_DEFAULT, className, }: DiscoverGridProps) => { + const services = useDiscoverServices(); const [selectedDocs, setSelectedDocs] = useState([]); const [isFilterActive, setIsFilterActive] = useState(false); const displayedColumns = getDisplayedColumns(columns, indexPattern); @@ -481,7 +477,6 @@ export const DiscoverGrid = ({ onAddColumn={onAddColumn} onClose={() => setExpandedDoc(undefined)} setExpandedDoc={setExpandedDoc} - services={services} /> )} diff --git a/src/plugins/discover/public/components/discover_grid/discover_grid_flyout.test.tsx b/src/plugins/discover/public/components/discover_grid/discover_grid_flyout.test.tsx index 64e97b824a2f9..a6c5ecdcdf35c 100644 --- a/src/plugins/discover/public/components/discover_grid/discover_grid_flyout.test.tsx +++ b/src/plugins/discover/public/components/discover_grid/discover_grid_flyout.test.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { findTestSubject } from '@elastic/eui/lib/test'; import { mountWithIntl } from '@kbn/test/jest'; -import { DiscoverGridFlyout } from './discover_grid_flyout'; +import { DiscoverGridFlyout, DiscoverGridFlyoutProps } from './discover_grid_flyout'; import { esHits } from '../../__mocks__/es_hits'; import { createFilterManagerMock } from '../../../../data/public/query/filter_manager/filter_manager.mock'; import { indexPatternMock } from '../../__mocks__/index_pattern'; @@ -17,34 +17,54 @@ import { DiscoverServices } from '../../build_services'; import { DocViewsRegistry } from '../../services/doc_views/doc_views_registry'; import { setDocViewsRegistry } from '../../kibana_services'; import { indexPatternWithTimefieldMock } from '../../__mocks__/index_pattern_with_timefield'; +import { KibanaContextProvider } from '../../../../kibana_react/public'; +import { IndexPattern } from '../../../../data/common'; +import { ElasticSearchHit } from '../../types'; describe('Discover flyout', function () { setDocViewsRegistry(new DocViewsRegistry()); - const getProps = () => { + const mountComponent = ({ + indexPattern, + hits, + hitIndex, + }: { + indexPattern?: IndexPattern; + hits?: ElasticSearchHit[]; + hitIndex?: number; + }) => { const onClose = jest.fn(); const services = { filterManager: createFilterManagerMock(), addBasePath: (path: string) => `/base${path}`, + history: () => ({ location: {} }), } as unknown as DiscoverServices; - return { + const props = { columns: ['date'], - indexPattern: indexPatternMock, - hit: esHits[0], - hits: esHits, + indexPattern: indexPattern || indexPatternMock, + hit: hitIndex ? esHits[hitIndex] : esHits[0], + hits: hits || esHits, onAddColumn: jest.fn(), onClose, onFilter: jest.fn(), onRemoveColumn: jest.fn(), - services, setExpandedDoc: jest.fn(), }; + + const Proxy = (newProps: DiscoverGridFlyoutProps) => ( + + + + ); + + const component = mountWithIntl(); + + return { component, props }; }; it('should be rendered correctly using an index pattern without timefield', async () => { - const props = getProps(); - const component = mountWithIntl(); + const { component, props } = mountComponent({}); const url = findTestSubject(component, 'docTableRowAction').prop('href'); expect(url).toMatchInlineSnapshot(`"/base/app/discover#/doc/the-index-pattern-id/i?id=1"`); @@ -53,9 +73,7 @@ describe('Discover flyout', function () { }); it('should be rendered correctly using an index pattern with timefield', async () => { - const props = getProps(); - props.indexPattern = indexPatternWithTimefieldMock; - const component = mountWithIntl(); + const { component, props } = mountComponent({ indexPattern: indexPatternWithTimefieldMock }); const actions = findTestSubject(component, 'docTableRowAction'); expect(actions.length).toBe(2); @@ -70,24 +88,20 @@ describe('Discover flyout', function () { }); it('displays document navigation when there is more than 1 doc available', async () => { - const props = getProps(); - const component = mountWithIntl(); + const { component } = mountComponent({ indexPattern: indexPatternWithTimefieldMock }); const docNav = findTestSubject(component, 'dscDocNavigation'); expect(docNav.length).toBeTruthy(); }); it('displays no document navigation when there are 0 docs available', async () => { - const props = getProps(); - props.hits = []; - const component = mountWithIntl(); + const { component } = mountComponent({ hits: [] }); const docNav = findTestSubject(component, 'dscDocNavigation'); expect(docNav.length).toBeFalsy(); }); it('displays no document navigation when the expanded doc is not part of the given docs', async () => { // scenario: you've expanded a doc, and in the next request differed docs where fetched - const props = getProps(); - props.hits = [ + const hits = [ { _index: 'new', _id: '1', @@ -103,15 +117,14 @@ describe('Discover flyout', function () { _source: { date: '2020-20-01T12:12:12.124', name: 'test2', extension: 'jpg' }, }, ]; - const component = mountWithIntl(); + const { component } = mountComponent({ hits }); const docNav = findTestSubject(component, 'dscDocNavigation'); expect(docNav.length).toBeFalsy(); }); it('allows you to navigate to the next doc, if expanded doc is the first', async () => { // scenario: you've expanded a doc, and in the next request different docs where fetched - const props = getProps(); - const component = mountWithIntl(); + const { component, props } = mountComponent({}); findTestSubject(component, 'pagination-button-next').simulate('click'); // we selected 1, so we'd expect 2 expect(props.setExpandedDoc.mock.calls[0][0]._id).toBe('2'); @@ -119,34 +132,28 @@ describe('Discover flyout', function () { it('doesnt allow you to navigate to the previous doc, if expanded doc is the first', async () => { // scenario: you've expanded a doc, and in the next request differed docs where fetched - const props = getProps(); - const component = mountWithIntl(); + const { component, props } = mountComponent({}); findTestSubject(component, 'pagination-button-previous').simulate('click'); expect(props.setExpandedDoc).toHaveBeenCalledTimes(0); }); it('doesnt allow you to navigate to the next doc, if expanded doc is the last', async () => { // scenario: you've expanded a doc, and in the next request differed docs where fetched - const props = getProps(); - props.hit = props.hits[props.hits.length - 1]; - const component = mountWithIntl(); + const { component, props } = mountComponent({ hitIndex: esHits.length - 1 }); findTestSubject(component, 'pagination-button-next').simulate('click'); expect(props.setExpandedDoc).toHaveBeenCalledTimes(0); }); it('allows you to navigate to the previous doc, if expanded doc is the last', async () => { // scenario: you've expanded a doc, and in the next request differed docs where fetched - const props = getProps(); - props.hit = props.hits[props.hits.length - 1]; - const component = mountWithIntl(); + const { component, props } = mountComponent({ hitIndex: esHits.length - 1 }); findTestSubject(component, 'pagination-button-previous').simulate('click'); expect(props.setExpandedDoc).toHaveBeenCalledTimes(1); expect(props.setExpandedDoc.mock.calls[0][0]._id).toBe('4'); }); it('allows navigating with arrow keys through documents', () => { - const props = getProps(); - const component = mountWithIntl(); + const { component, props } = mountComponent({}); findTestSubject(component, 'docTableDetailsFlyout').simulate('keydown', { key: 'ArrowRight' }); expect(props.setExpandedDoc).toHaveBeenCalledWith(expect.objectContaining({ _id: '2' })); component.setProps({ ...props, hit: props.hits[1] }); @@ -155,8 +162,7 @@ describe('Discover flyout', function () { }); it('should not navigate with keypresses when already at the border of documents', () => { - const props = getProps(); - const component = mountWithIntl(); + const { component, props } = mountComponent({}); findTestSubject(component, 'docTableDetailsFlyout').simulate('keydown', { key: 'ArrowLeft' }); expect(props.setExpandedDoc).not.toHaveBeenCalled(); component.setProps({ ...props, hit: props.hits[props.hits.length - 1] }); diff --git a/src/plugins/discover/public/components/discover_grid/discover_grid_flyout.tsx b/src/plugins/discover/public/components/discover_grid/discover_grid_flyout.tsx index 726c211fe418b..371eb014eab8f 100644 --- a/src/plugins/discover/public/components/discover_grid/discover_grid_flyout.tsx +++ b/src/plugins/discover/public/components/discover_grid/discover_grid_flyout.tsx @@ -26,11 +26,11 @@ import { } from '@elastic/eui'; import { DocViewer } from '../../services/doc_views/components/doc_viewer/doc_viewer'; import { DocViewFilterFn } from '../../services/doc_views/doc_views_types'; -import { DiscoverServices } from '../../build_services'; import { useNavigationProps } from '../../utils/use_navigation_props'; import { ElasticSearchHit } from '../../types'; +import { useDiscoverServices } from '../../utils/use_discover_services'; -interface Props { +export interface DiscoverGridFlyoutProps { columns: string[]; hit: ElasticSearchHit; hits?: ElasticSearchHit[]; @@ -39,7 +39,6 @@ interface Props { onClose: () => void; onFilter: DocViewFilterFn; onRemoveColumn: (column: string) => void; - services: DiscoverServices; setExpandedDoc: (doc: ElasticSearchHit) => void; } @@ -67,9 +66,9 @@ export function DiscoverGridFlyout({ onClose, onRemoveColumn, onAddColumn, - services, setExpandedDoc, -}: Props) { +}: DiscoverGridFlyoutProps) { + const services = useDiscoverServices(); // Get actual hit with updated highlighted searches const actualHit = useMemo(() => hits?.find(({ _id }) => _id === hit?._id) || hit, [hit, hits]); const pageCount = useMemo(() => (hits ? hits.length : 0), [hits]); 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 07ed170258fb1..d3af215059af0 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 @@ -7,29 +7,27 @@ */ import React from 'react'; -import { ReactWrapper, shallow } from 'enzyme'; +import { shallow } from 'enzyme'; import { getRenderCellValueFn } from './get_render_cell_value'; import { indexPatternMock } from '../../__mocks__/index_pattern'; import { flattenHit } from 'src/plugins/data/common'; import { ElasticSearchHit } from '../../types'; -jest.mock('../../../../kibana_react/public', () => ({ - useUiSetting: () => true, - withKibana: (comp: ReactWrapper) => { - return comp; - }, -})); - -jest.mock('../../kibana_services', () => ({ - getServices: () => ({ +jest.mock('../../utils/use_discover_services', () => { + const services = { uiSettings: { - get: jest.fn((key) => key === 'discover:maxDocFieldsDisplayed' && 200), + get: (key: string) => key === 'discover:maxDocFieldsDisplayed' && 200, }, fieldFormats: { getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => (value ? value : '-') })), }, - }), -})); + }; + const originalModule = jest.requireActual('../../utils/use_discover_services'); + return { + ...originalModule, + useDiscoverServices: () => services, + }; +}); const rowsSource: ElasticSearchHit[] = [ { 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 5e1a1a7e39db8..fe2607415ace1 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 @@ -6,8 +6,9 @@ * Side Public License, v 1. */ -import React, { Fragment, useContext, useEffect } from 'react'; +import React, { Fragment, useContext, useEffect, useMemo } from 'react'; import { euiLightVars as themeLight, euiDarkVars as themeDark } from '@kbn/ui-theme'; + import type { DataView, DataViewField } from 'src/plugins/data/common'; import { EuiDataGridCellValueElementProps, @@ -15,6 +16,7 @@ import { EuiDescriptionListTitle, EuiDescriptionListDescription, } from '@elastic/eui'; +import { FieldFormatsStart } from '../../../../field_formats/public'; import { DiscoverGridContext } from './discover_grid_context'; import { JsonCodeEditor } from '../json_code_editor/json_code_editor'; import { defaultMonacoEditorWidth } from './constants'; @@ -22,10 +24,12 @@ import { EsHitRecord } from '../../application/types'; import { formatFieldValue } from '../../utils/format_value'; import { formatHit } from '../../utils/format_hit'; import { ElasticSearchHit } from '../../types'; +import { useDiscoverServices } from '../../utils/use_discover_services'; +import { MAX_DOC_FIELDS_DISPLAYED } from '../../../common'; export const getRenderCellValueFn = ( - indexPattern: DataView, + dataView: DataView, rows: ElasticSearchHit[] | undefined, rowsFlattened: Array>, useNewFieldsApi: boolean, @@ -33,12 +37,16 @@ export const getRenderCellValueFn = maxDocFieldsDisplayed: number ) => ({ rowIndex, columnId, isDetails, setCellProps }: EuiDataGridCellValueElementProps) => { + const { uiSettings, fieldFormats } = useDiscoverServices(); + + const maxEntries = useMemo(() => uiSettings.get(MAX_DOC_FIELDS_DISPLAYED), [uiSettings]); + const row = rows ? rows[rowIndex] : undefined; const rowFlattened = rowsFlattened ? (rowsFlattened[rowIndex] as Record) : undefined; - const field = indexPattern.fields.getByName(columnId); + const field = dataView.fields.getByName(columnId); const ctx = useContext(DiscoverGridContext); useEffect(() => { @@ -75,23 +83,24 @@ export const getRenderCellValueFn = ); if (isDetails) { - return renderPopoverContent( - row, + return renderPopoverContent({ + rowRaw: row, rowFlattened, field, columnId, - indexPattern, - useTopLevelObjectColumns - ); + dataView, + useTopLevelObjectColumns, + fieldFormats, + }); } if (field?.type === '_source' || useTopLevelObjectColumns) { const pairs = useTopLevelObjectColumns - ? getTopLevelObjectPairs(row, columnId, indexPattern, fieldsToShow).slice( + ? getTopLevelObjectPairs(row, columnId, dataView, fieldsToShow).slice( 0, maxDocFieldsDisplayed ) - : formatHit(row, indexPattern, fieldsToShow); + : formatHit(row, dataView, fieldsToShow, maxEntries, fieldFormats); return ( @@ -113,7 +122,7 @@ export const getRenderCellValueFn = // formatFieldValue guarantees sanitized values // eslint-disable-next-line react/no-danger dangerouslySetInnerHTML={{ - __html: formatFieldValue(rowFlattened[columnId], row, indexPattern, field), + __html: formatFieldValue(rowFlattened[columnId], row, fieldFormats, dataView, field), }} /> ); @@ -134,14 +143,23 @@ function getInnerColumns(fields: Record, columnId: string) { /** * Helper function for the cell popover */ -function renderPopoverContent( - rowRaw: ElasticSearchHit, - rowFlattened: Record, - field: DataViewField | undefined, - columnId: string, - dataView: DataView, - useTopLevelObjectColumns: boolean -) { +function renderPopoverContent({ + rowRaw, + rowFlattened, + field, + columnId, + dataView, + useTopLevelObjectColumns, + fieldFormats, +}: { + rowRaw: ElasticSearchHit; + rowFlattened: Record; + field: DataViewField | undefined; + columnId: string; + dataView: DataView; + useTopLevelObjectColumns: boolean; + fieldFormats: FieldFormatsStart; +}) { if (useTopLevelObjectColumns || field?.type === '_source') { const json = useTopLevelObjectColumns ? getInnerColumns(rowRaw.fields as Record, columnId) @@ -156,7 +174,7 @@ function renderPopoverContent( // formatFieldValue guarantees sanitized values // eslint-disable-next-line react/no-danger dangerouslySetInnerHTML={{ - __html: formatFieldValue(rowFlattened[columnId], rowRaw, dataView, field), + __html: formatFieldValue(rowFlattened[columnId], rowRaw, fieldFormats, dataView, field), }} /> ); diff --git a/src/plugins/discover/public/components/doc_table/components/table_header/table_header.test.tsx b/src/plugins/discover/public/components/doc_table/components/table_header/table_header.test.tsx index bdb57e3f1b586..60e9c25cb4532 100644 --- a/src/plugins/discover/public/components/doc_table/components/table_header/table_header.test.tsx +++ b/src/plugins/discover/public/components/doc_table/components/table_header/table_header.test.tsx @@ -12,6 +12,19 @@ import type { DataView, DataViewField } from 'src/plugins/data/common'; import { TableHeader } from './table_header'; import { findTestSubject } from '@elastic/eui/lib/test'; import { SortOrder } from './helpers'; +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; +import { DOC_HIDE_TIME_COLUMN_SETTING } from '../../../../../common'; +import { FORMATS_UI_SETTINGS } from '../../../../../../field_formats/common'; + +const defaultUiSettings = { + get: (key: string) => { + if (key === DOC_HIDE_TIME_COLUMN_SETTING) { + return false; + } else if (key === FORMATS_UI_SETTINGS.SHORT_DOTS_ENABLE) { + return false; + } + }, +}; function getMockIndexPattern() { return { @@ -66,11 +79,13 @@ describe('TableHeader with time column', () => { const props = getMockProps(); const wrapper = mountWithIntl( - - - - -
+ + + + + +
+
); test('renders correctly', () => { @@ -140,11 +155,24 @@ describe('TableHeader without time column', () => { const props = getMockProps({ hideTimeColumn: true }); const wrapper = mountWithIntl( - - - - -
+ { + if (key === DOC_HIDE_TIME_COLUMN_SETTING) { + return true; + } + }, + }, + }} + > + + + + +
+
); test('renders correctly', () => { diff --git a/src/plugins/discover/public/components/doc_table/components/table_header/table_header.tsx b/src/plugins/discover/public/components/doc_table/components/table_header/table_header.tsx index d78c17f9aca46..ffc0517ed5dd7 100644 --- a/src/plugins/discover/public/components/doc_table/components/table_header/table_header.tsx +++ b/src/plugins/discover/public/components/doc_table/components/table_header/table_header.tsx @@ -6,18 +6,18 @@ * Side Public License, v 1. */ -import React from 'react'; +import React, { useMemo } from 'react'; import type { DataView } from 'src/plugins/data/common'; import { TableHeaderColumn } from './table_header_column'; import { SortOrder, getDisplayedColumns } from './helpers'; import { getDefaultSort } from '../../lib/get_default_sort'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; +import { DOC_HIDE_TIME_COLUMN_SETTING, SORT_DEFAULT_ORDER_SETTING } from '../../../../../common'; +import { FORMATS_UI_SETTINGS } from '../../../../../../field_formats/common'; interface Props { columns: string[]; - defaultSortOrder: string; - hideTimeColumn: boolean; indexPattern: DataView; - isShortDots: boolean; onChangeSortOrder?: (sortOrder: SortOrder[]) => void; onMoveColumn?: (name: string, index: number) => void; onRemoveColumn?: (name: string) => void; @@ -26,15 +26,21 @@ interface Props { export function TableHeader({ columns, - defaultSortOrder, - hideTimeColumn, indexPattern, - isShortDots, onChangeSortOrder, onMoveColumn, onRemoveColumn, sortOrder, }: Props) { + const { uiSettings } = useDiscoverServices(); + const [defaultSortOrder, hideTimeColumn, isShortDots] = useMemo( + () => [ + uiSettings.get(SORT_DEFAULT_ORDER_SETTING, 'desc'), + uiSettings.get(DOC_HIDE_TIME_COLUMN_SETTING, false), + uiSettings.get(FORMATS_UI_SETTINGS.SHORT_DOTS_ENABLE), + ], + [uiSettings] + ); const displayedColumns = getDisplayedColumns(columns, indexPattern, hideTimeColumn, isShortDots); return ( diff --git a/src/plugins/discover/public/components/doc_table/components/table_row.test.tsx b/src/plugins/discover/public/components/doc_table/components/table_row.test.tsx index 7b0e4d821af65..084fddc991f74 100644 --- a/src/plugins/discover/public/components/doc_table/components/table_row.test.tsx +++ b/src/plugins/discover/public/components/doc_table/components/table_row.test.tsx @@ -9,28 +9,50 @@ import React from 'react'; import { mountWithIntl, findTestSubject } from '@kbn/test/jest'; import { TableRow, TableRowProps } from './table_row'; -import { setDocViewsRegistry, setServices } from '../../../kibana_services'; +import { setDocViewsRegistry } from '../../../kibana_services'; import { createFilterManagerMock } from '../../../../../data/public/query/filter_manager/filter_manager.mock'; -import { DiscoverServices } from '../../../build_services'; import { indexPatternWithTimefieldMock } from '../../../__mocks__/index_pattern_with_timefield'; -import { uiSettingsMock } from '../../../__mocks__/ui_settings'; import { DocViewsRegistry } from '../../../services/doc_views/doc_views_registry'; +import { KibanaContextProvider } from '../../../../../kibana_react/public'; +import { discoverServiceMock } from '../../../__mocks__/services'; + +import { + DOC_HIDE_TIME_COLUMN_SETTING, + MAX_DOC_FIELDS_DISPLAYED, +} from '../../../../../discover/common'; jest.mock('../lib/row_formatter', () => { const originalModule = jest.requireActual('../lib/row_formatter'); return { ...originalModule, - formatRow: () => mocked_document_cell, + formatRow: () => { + return mocked_document_cell; + }, }; }); const mountComponent = (props: TableRowProps) => { return mountWithIntl( - - - - -
+ { + if (key === DOC_HIDE_TIME_COLUMN_SETTING) { + return true; + } else if (key === MAX_DOC_FIELDS_DISPLAYED) { + return 100; + } + }, + }, + }} + > + + + + +
+
); }; @@ -50,27 +72,18 @@ const mockHit = { const mockFilterManager = createFilterManagerMock(); describe('Doc table row component', () => { - let mockInlineFilter; - let defaultProps: TableRowProps; + const mockInlineFilter = jest.fn(); + const defaultProps = { + columns: ['_source'], + filter: mockInlineFilter, + indexPattern: indexPatternWithTimefieldMock, + row: mockHit, + useNewFieldsApi: true, + filterManager: mockFilterManager, + addBasePath: (path: string) => path, + } as unknown as TableRowProps; beforeEach(() => { - mockInlineFilter = jest.fn(); - - defaultProps = { - columns: ['_source'], - filter: mockInlineFilter, - indexPattern: indexPatternWithTimefieldMock, - row: mockHit, - useNewFieldsApi: true, - filterManager: mockFilterManager, - addBasePath: (path: string) => path, - hideTimeColumn: true, - } as unknown as TableRowProps; - - setServices({ - uiSettings: uiSettingsMock, - } as unknown as DiscoverServices); - setDocViewsRegistry(new DocViewsRegistry()); }); diff --git a/src/plugins/discover/public/components/doc_table/components/table_row.tsx b/src/plugins/discover/public/components/doc_table/components/table_row.tsx index 8494c03f36fce..fde6edfb69cdf 100644 --- a/src/plugins/discover/public/components/doc_table/components/table_row.tsx +++ b/src/plugins/discover/public/components/doc_table/components/table_row.tsx @@ -13,13 +13,14 @@ import { EuiButtonEmpty, EuiIcon } from '@elastic/eui'; import { formatFieldValue } from '../../../utils/format_value'; import { flattenHit, DataView } from '../../../../../data/common'; import { DocViewer } from '../../../services/doc_views/components/doc_viewer/doc_viewer'; -import { FilterManager } from '../../../../../data/public'; import { TableCell } from './table_row/table_cell'; import { formatRow, formatTopLevelObject } from '../lib/row_formatter'; import { useNavigationProps } from '../../../utils/use_navigation_props'; import { DocViewFilterFn } from '../../../services/doc_views/doc_views_types'; import { ElasticSearchHit } from '../../../types'; import { TableRowDetails } from './table_row_details'; +import { useDiscoverServices } from '../../../utils/use_discover_services'; +import { DOC_HIDE_TIME_COLUMN_SETTING, MAX_DOC_FIELDS_DISPLAYED } from '../../../../common'; export type DocTableRow = ElasticSearchHit & { isAnchor?: boolean; @@ -28,15 +29,12 @@ export type DocTableRow = ElasticSearchHit & { export interface TableRowProps { columns: string[]; filter: DocViewFilterFn; - indexPattern: DataView; row: DocTableRow; - onAddColumn?: (column: string) => void; - onRemoveColumn?: (column: string) => void; + indexPattern: DataView; useNewFieldsApi: boolean; - hideTimeColumn: boolean; - filterManager: FilterManager; - addBasePath: (path: string) => string; fieldsToShow: string[]; + onAddColumn?: (column: string) => void; + onRemoveColumn?: (column: string) => void; } export const TableRow = ({ @@ -46,12 +44,17 @@ export const TableRow = ({ indexPattern, useNewFieldsApi, fieldsToShow, - hideTimeColumn, onAddColumn, onRemoveColumn, - filterManager, - addBasePath, }: TableRowProps) => { + const { uiSettings, filterManager, fieldFormats, addBasePath } = useDiscoverServices(); + const [maxEntries, hideTimeColumn] = useMemo( + () => [ + uiSettings.get(MAX_DOC_FIELDS_DISPLAYED), + uiSettings.get(DOC_HIDE_TIME_COLUMN_SETTING, false), + ], + [uiSettings] + ); const [open, setOpen] = useState(false); const docTableRowClassName = classNames('kbnDocTable__row', { // eslint-disable-next-line @typescript-eslint/naming-convention @@ -75,12 +78,13 @@ export const TableRow = ({ // If we're formatting the _source column, don't use the regular field formatter, // but our Discover mechanism to format a hit in a better human-readable way. if (fieldName === '_source') { - return formatRow(row, indexPattern, fieldsToShow); + return formatRow(row, indexPattern, fieldsToShow, maxEntries, fieldFormats); } const formattedField = formatFieldValue( flattenedRow[fieldName], row, + fieldFormats, indexPattern, mapping(fieldName) ); @@ -142,7 +146,7 @@ export const TableRow = ({ } if (columns.length === 0 && useNewFieldsApi) { - const formatted = formatRow(row, indexPattern, fieldsToShow); + const formatted = formatRow(row, indexPattern, fieldsToShow, maxEntries, fieldFormats); rowCells.push( { + const services = useDiscoverServices(); const tableWrapperRef = useRef(null); const { curPageIndex, @@ -72,8 +73,8 @@ export const DocTableEmbeddable = (props: DocTableEmbeddableProps) => { ); const sampleSize = useMemo(() => { - return getServices().uiSettings.get(SAMPLE_SIZE_SETTING, 500); - }, []); + return services.uiSettings.get(SAMPLE_SIZE_SETTING, 500); + }, [services]); const renderDocTable = useCallback( (renderProps: DocTableRenderProps) => { diff --git a/src/plugins/discover/public/components/doc_table/doc_table_infinite.tsx b/src/plugins/discover/public/components/doc_table/doc_table_infinite.tsx index c3d86c646d407..8cda3b421815c 100644 --- a/src/plugins/discover/public/components/doc_table/doc_table_infinite.tsx +++ b/src/plugins/discover/public/components/doc_table/doc_table_infinite.tsx @@ -6,14 +6,16 @@ * Side Public License, v 1. */ -import React, { Fragment, memo, useCallback, useEffect, useRef, useState } from 'react'; +import React, { Fragment, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'; import './index.scss'; import { FormattedMessage } from '@kbn/i18n-react'; import { debounce } from 'lodash'; import { EuiButtonEmpty } from '@elastic/eui'; +import { SAMPLE_SIZE_SETTING } from '../../../common'; import { DocTableProps, DocTableRenderProps, DocTableWrapper } from './doc_table_wrapper'; import { SkipBottomButton } from '../../application/main/components/skip_bottom_button'; import { shouldLoadNextDocPatch } from './lib/should_load_next_doc_patch'; +import { useDiscoverServices } from '../../utils/use_discover_services'; const FOOTER_PADDING = { padding: 0 }; @@ -28,7 +30,6 @@ interface DocTableInfiniteContentProps extends DocTableRenderProps { const DocTableInfiniteContent = ({ rows, columnLength, - sampleSize, limit, onSkipBottomButtonClick, renderHeader, @@ -36,6 +37,10 @@ const DocTableInfiniteContent = ({ onSetMaxLimit, onBackToTop, }: DocTableInfiniteContentProps) => { + const { uiSettings } = useDiscoverServices(); + + const sampleSize = useMemo(() => uiSettings.get(SAMPLE_SIZE_SETTING, 500), [uiSettings]); + const onSkipBottomButton = useCallback(() => { onSetMaxLimit(); onSkipBottomButtonClick(); diff --git a/src/plugins/discover/public/components/doc_table/doc_table_wrapper.test.tsx b/src/plugins/discover/public/components/doc_table/doc_table_wrapper.test.tsx index c6da2315a1757..3634a47e3bcf1 100644 --- a/src/plugins/discover/public/components/doc_table/doc_table_wrapper.test.tsx +++ b/src/plugins/discover/public/components/doc_table/doc_table_wrapper.test.tsx @@ -8,21 +8,15 @@ import React from 'react'; import { findTestSubject, mountWithIntl } from '@kbn/test/jest'; -import { setServices } from '../../kibana_services'; import { indexPatternMock } from '../../__mocks__/index_pattern'; -import { DocTableWrapper, DocTableWrapperProps } from './doc_table_wrapper'; +import { DocTableWrapper } from './doc_table_wrapper'; import { DocTableRow } from './components/table_row'; import { discoverServiceMock } from '../../__mocks__/services'; - -const mountComponent = (props: DocTableWrapperProps) => { - return mountWithIntl(); -}; +import { KibanaContextProvider } from '../../../../kibana_react/public'; describe('Doc table component', () => { - let defaultProps: DocTableWrapperProps; - - const initDefaults = (rows?: DocTableRow[]) => { - defaultProps = { + const mountComponent = (rows?: DocTableRow[]) => { + const props = { columns: ['_source'], indexPattern: indexPatternMock, rows: rows || [ @@ -53,21 +47,23 @@ describe('Doc table component', () => { }, }; - setServices(discoverServiceMock); + return mountWithIntl( + + + + ); }; it('should render infinite table correctly', () => { - initDefaults(); - const component = mountComponent(defaultProps); - expect(findTestSubject(component, defaultProps.dataTestSubj).exists()).toBeTruthy(); + const component = mountComponent(); + expect(findTestSubject(component, 'discoverDocTable').exists()).toBeTruthy(); expect(findTestSubject(component, 'docTable').exists()).toBeTruthy(); expect(component.find('.kbnDocTable__error').exists()).toBeFalsy(); }); it('should render error fallback if rows array is empty', () => { - initDefaults([]); - const component = mountComponent(defaultProps); - expect(findTestSubject(component, defaultProps.dataTestSubj).exists()).toBeTruthy(); + const component = mountComponent([]); + expect(findTestSubject(component, 'discoverDocTable').exists()).toBeTruthy(); expect(findTestSubject(component, 'docTable').exists()).toBeFalsy(); expect(component.find('.kbnDocTable__error').exists()).toBeTruthy(); }); diff --git a/src/plugins/discover/public/components/doc_table/doc_table_wrapper.tsx b/src/plugins/discover/public/components/doc_table/doc_table_wrapper.tsx index 0cbfb36844943..cab38790efc4a 100644 --- a/src/plugins/discover/public/components/doc_table/doc_table_wrapper.tsx +++ b/src/plugins/discover/public/components/doc_table/doc_table_wrapper.tsx @@ -11,18 +11,12 @@ import { EuiIcon, EuiSpacer, EuiText } from '@elastic/eui'; import type { DataView, DataViewField } from 'src/plugins/data/common'; import { FormattedMessage } from '@kbn/i18n-react'; import { TableHeader } from './components/table_header/table_header'; -import { FORMATS_UI_SETTINGS } from '../../../../field_formats/common'; -import { - DOC_HIDE_TIME_COLUMN_SETTING, - SAMPLE_SIZE_SETTING, - SHOW_MULTIFIELDS, - SORT_DEFAULT_ORDER_SETTING, -} from '../../../common'; -import { getServices } from '../../kibana_services'; +import { SHOW_MULTIFIELDS } from '../../../common'; import { SortOrder } from './components/table_header/helpers'; import { DocTableRow, TableRow } from './components/table_row'; import { DocViewFilterFn } from '../../services/doc_views/doc_views_types'; import { getFieldsToShow } from '../../utils/get_fields_to_show'; +import { useDiscoverServices } from '../../utils/use_discover_services'; export interface DocTableProps { /** @@ -86,7 +80,6 @@ export interface DocTableProps { export interface DocTableRenderProps { columnLength: number; rows: DocTableRow[]; - sampleSize: number; renderRows: (row: DocTableRow[]) => JSX.Element[]; renderHeader: () => JSX.Element; onSkipBottomButtonClick: () => void; @@ -122,26 +115,8 @@ export const DocTableWrapper = forwardRef( }: DocTableWrapperProps, ref ) => { - const [ - defaultSortOrder, - hideTimeColumn, - isShortDots, - sampleSize, - showMultiFields, - filterManager, - addBasePath, - ] = useMemo(() => { - const services = getServices(); - return [ - services.uiSettings.get(SORT_DEFAULT_ORDER_SETTING, 'desc'), - services.uiSettings.get(DOC_HIDE_TIME_COLUMN_SETTING, false), - services.uiSettings.get(FORMATS_UI_SETTINGS.SHORT_DOTS_ENABLE), - services.uiSettings.get(SAMPLE_SIZE_SETTING, 500), - services.uiSettings.get(SHOW_MULTIFIELDS, false), - services.filterManager, - services.addBasePath, - ]; - }, []); + const { uiSettings } = useDiscoverServices(); + const showMultiFields = useMemo(() => uiSettings.get(SHOW_MULTIFIELDS, false), [uiSettings]); const onSkipBottomButtonClick = useCallback(async () => { // delay scrolling to after the rows have been rendered @@ -169,27 +144,14 @@ export const DocTableWrapper = forwardRef( () => ( ), - [ - columns, - defaultSortOrder, - hideTimeColumn, - indexPattern, - isShortDots, - onMoveColumn, - onRemoveColumn, - onSort, - sort, - ] + [columns, indexPattern, onMoveColumn, onRemoveColumn, onSort, sort] ); const renderRows = useCallback( @@ -202,27 +164,12 @@ export const DocTableWrapper = forwardRef( indexPattern={indexPattern} row={current} useNewFieldsApi={useNewFieldsApi} - hideTimeColumn={hideTimeColumn} onAddColumn={onAddColumn} - onRemoveColumn={onRemoveColumn} - filterManager={filterManager} - addBasePath={addBasePath} fieldsToShow={fieldsToShow} /> )); }, - [ - columns, - onFilter, - indexPattern, - useNewFieldsApi, - hideTimeColumn, - onAddColumn, - onRemoveColumn, - filterManager, - addBasePath, - fieldsToShow, - ] + [columns, onFilter, indexPattern, useNewFieldsApi, onAddColumn, fieldsToShow] ); return ( @@ -239,7 +186,6 @@ export const DocTableWrapper = forwardRef( render({ columnLength: columns.length, rows, - sampleSize, onSkipBottomButtonClick, renderHeader, renderRows, diff --git a/src/plugins/discover/public/components/doc_table/lib/row_formatter.test.ts b/src/plugins/discover/public/components/doc_table/lib/row_formatter.test.ts index 039b8c4ada684..683713af12c8c 100644 --- a/src/plugins/discover/public/components/doc_table/lib/row_formatter.test.ts +++ b/src/plugins/discover/public/components/doc_table/lib/row_formatter.test.ts @@ -10,7 +10,6 @@ import ReactDOM from 'react-dom/server'; import { formatRow, formatTopLevelObject } from './row_formatter'; import { DataView } from '../../../../../data/common'; import { fieldFormatsMock } from '../../../../../field_formats/common/mocks'; -import { setServices } from '../../../kibana_services'; import { DiscoverServices } from '../../../build_services'; import { stubbedSavedObjectIndexPattern } from '../../../../../data/common/stubs'; @@ -27,6 +26,7 @@ describe('Row formatter', () => { also: 'with "quotes" or \'single quotes\'', }, }; + let services: DiscoverServices; const createIndexPattern = () => { const id = 'my-index'; @@ -49,19 +49,17 @@ describe('Row formatter', () => { const fieldsToShow = indexPattern.fields.getAll().map((fld) => fld.name); beforeEach(() => { - setServices({ - uiSettings: { - get: () => 100, - }, + services = { fieldFormats: { getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => value })), getFormatterForField: jest.fn(() => ({ convert: (value: unknown) => value })), }, - } as unknown as DiscoverServices); + } as unknown as DiscoverServices; }); it('formats document properly', () => { - expect(formatRow(hit, indexPattern, fieldsToShow)).toMatchInlineSnapshot(` + expect(formatRow(hit, indexPattern, fieldsToShow, 100, services.fieldFormats)) + .toMatchInlineSnapshot(` { }); it('limits number of rendered items', () => { - setServices({ + services = { uiSettings: { get: () => 1, }, @@ -104,8 +102,8 @@ describe('Row formatter', () => { getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => value })), getFormatterForField: jest.fn(() => ({ convert: (value: unknown) => value })), }, - } as unknown as DiscoverServices); - expect(formatRow(hit, indexPattern, [])).toMatchInlineSnapshot(` + } as unknown as DiscoverServices; + expect(formatRow(hit, indexPattern, [], 1, services.fieldFormats)).toMatchInlineSnapshot(` { }); it('formats document with highlighted fields first', () => { - expect(formatRow({ ...hit, highlight: { number: ['42'] } }, indexPattern, fieldsToShow)) - .toMatchInlineSnapshot(` + expect( + formatRow( + { ...hit, highlight: { number: ['42'] } }, + indexPattern, + fieldsToShow, + 100, + services.fieldFormats + ) + ).toMatchInlineSnapshot(` { 'object.value': [5, 10], getByName: jest.fn(), }, - indexPattern + indexPattern, + 100 ) ).toMatchInlineSnapshot(` { formatTopLevelObject( { fields: { 'a.zzz': [100], 'a.ccc': [50] } }, { 'a.zzz': [100], 'a.ccc': [50], getByName: jest.fn() }, - indexPattern + indexPattern, + 100 ) ); expect(formatted.indexOf('
a.ccc:
')).toBeLessThan(formatted.indexOf('
a.zzz:
')); @@ -249,7 +256,8 @@ describe('Row formatter', () => { 'object.keys': ['a', 'b'], getByName: jest.fn(), }, - indexPattern + indexPattern, + 100 ) ).toMatchInlineSnapshot(` { 'object.value': [5, 10], getByName: jest.fn(), }, - indexPattern + indexPattern, + 100 ) ).toMatchInlineSnapshot(` { export const formatRow = ( hit: estypes.SearchHit, indexPattern: DataView, - fieldsToShow: string[] + fieldsToShow: string[], + maxEntries: number, + fieldFormats: FieldFormatsStart ) => { - const pairs = formatHit(hit, indexPattern, fieldsToShow); + const pairs = formatHit(hit, indexPattern, fieldsToShow, maxEntries, fieldFormats); return ; }; @@ -52,7 +53,8 @@ export const formatTopLevelObject = ( row: Record, // eslint-disable-next-line @typescript-eslint/no-explicit-any fields: Record, - indexPattern: DataView + indexPattern: DataView, + maxEntries: number ) => { const highlights = row.highlight ?? {}; const highlightPairs: Array<[string, string]> = []; @@ -77,6 +79,5 @@ export const formatTopLevelObject = ( const pairs = highlights[key] ? highlightPairs : sourcePairs; pairs.push([displayKey ? displayKey : key, formatted]); }); - const maxEntries = getServices().uiSettings.get(MAX_DOC_FIELDS_DISPLAYED); return ; }; diff --git a/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx b/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx index b203b6452c5ef..5e0f06f143a0c 100644 --- a/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx +++ b/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx @@ -11,6 +11,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; import { i18n } from '@kbn/i18n'; import { isEqual } from 'lodash'; +import { I18nProvider } from '@kbn/i18n-react'; import { Container, Embeddable } from '../../../embeddable/public'; import { ISearchEmbeddable, SearchInput, SearchOutput } from './types'; import { SavedSearch } from '../services/saved_searches'; @@ -28,7 +29,6 @@ import { } from '../../../data/common'; import { SavedSearchEmbeddableComponent } from './saved_search_embeddable_component'; import { UiActionsStart } from '../../../ui_actions/public'; -import { getServices } from '../kibana_services'; import { DOC_HIDE_TIME_COLUMN_SETTING, DOC_TABLE_LEGACY, @@ -46,9 +46,9 @@ import { getDefaultSort } from '../components/doc_table'; import { SortOrder } from '../components/doc_table/components/table_header/helpers'; import { VIEW_MODE } from '../components/view_mode_toggle'; import { updateSearchSource } from './utils/update_search_source'; -import { FieldStatsTableSavedSearchEmbeddable } from '../application/main/components/field_stats_table'; +import { FieldStatisticsTable } from '../application/main/components/field_stats_table'; import { ElasticSearchHit } from '../types'; -import { KibanaThemeProvider } from '../../../kibana_react/public'; +import { KibanaContextProvider, KibanaThemeProvider } from '../../../kibana_react/public'; export type SearchProps = Partial & Partial & { @@ -56,6 +56,7 @@ export type SearchProps = Partial & description?: string; sharedItemTitle?: string; inspectorAdapters?: Adapters; + services: DiscoverServices; filter?: (field: DataViewField, value: string[], operator: string) => void; hits?: ElasticSearchHit[]; @@ -337,7 +338,7 @@ export class SavedSearchEmbeddable ? this.savedSearch.sort : getDefaultSort( this.searchProps?.indexPattern, - getServices().uiSettings.get(SORT_DEFAULT_ORDER_SETTING, 'desc') + this.services.uiSettings.get(SORT_DEFAULT_ORDER_SETTING, 'desc') ); searchProps.sort = this.input.sort || savedSearchSort; searchProps.sharedItemTitle = this.panelTitle; @@ -392,18 +393,21 @@ export class SavedSearchEmbeddable Array.isArray(searchProps.columns) ) { ReactDOM.render( - - - , + + + + + + + , domNode ); return; @@ -416,9 +420,13 @@ export class SavedSearchEmbeddable }; if (searchProps.services) { ReactDOM.render( - - - , + + + + + + + , domNode ); } diff --git a/src/plugins/discover/public/embeddable/saved_search_grid.tsx b/src/plugins/discover/public/embeddable/saved_search_grid.tsx index f0423eac4f963..b4785b9911da1 100644 --- a/src/plugins/discover/public/embeddable/saved_search_grid.tsx +++ b/src/plugins/discover/public/embeddable/saved_search_grid.tsx @@ -5,51 +5,34 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -import React, { useState } from 'react'; -import { I18nProvider } from '@kbn/i18n-react'; +import React, { useState, memo } from 'react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import { I18nProvider } from '@kbn/i18n-react'; import { DiscoverGrid, DiscoverGridProps } from '../components/discover_grid/discover_grid'; -import { getServices } from '../kibana_services'; import { TotalDocuments } from '../application/main/components/total_documents/total_documents'; import { ElasticSearchHit } from '../types'; -import { KibanaContextProvider } from '../../../kibana_react/public'; export interface DiscoverGridEmbeddableProps extends DiscoverGridProps { totalHitCount: number; } -export const DataGridMemoized = React.memo((props: DiscoverGridProps) => ( - -)); +export const DataGridMemoized = memo(DiscoverGrid); export function DiscoverGridEmbeddable(props: DiscoverGridEmbeddableProps) { - const services = getServices(); const [expandedDoc, setExpandedDoc] = useState(undefined); return ( - - - {props.totalHitCount !== 0 && ( - - - - )} - - + + {props.totalHitCount !== 0 && ( + + - - + )} + + + + ); } diff --git a/src/plugins/discover/public/embeddable/search_embeddable_factory.ts b/src/plugins/discover/public/embeddable/search_embeddable_factory.ts index 8fbedf3979663..be391282ea57d 100644 --- a/src/plugins/discover/public/embeddable/search_embeddable_factory.ts +++ b/src/plugins/discover/public/embeddable/search_embeddable_factory.ts @@ -8,7 +8,6 @@ import { i18n } from '@kbn/i18n'; import { UiActionsStart } from 'src/plugins/ui_actions/public'; -import { getServices } from '../kibana_services'; import { EmbeddableFactoryDefinition, Container, @@ -25,6 +24,7 @@ import { getSavedSearchUrl, throwErrorOnSavedSearchUrlConflict, } from '../services/saved_searches'; +import { DiscoverServices } from '../build_services'; interface StartServices { executeTriggerActions: UiActionsStart['executeTriggerActions']; @@ -43,7 +43,10 @@ export class SearchEmbeddableFactory getIconForSavedObject: () => 'discoverApp', }; - constructor(private getStartServices: () => Promise) {} + constructor( + private getStartServices: () => Promise, + private getDiscoverServices: () => Promise + ) {} public canCreateNew() { return false; @@ -64,7 +67,7 @@ export class SearchEmbeddableFactory input: Partial & { id: string; timeRange: TimeRange }, parent?: Container ): Promise => { - const services = getServices(); + const services = await this.getDiscoverServices(); const filterManager = services.filterManager; const url = getSavedSearchUrl(savedObjectId); const editUrl = services.addBasePath(`/app/discover${url}`); @@ -88,9 +91,9 @@ export class SearchEmbeddableFactory editUrl, editPath: url, filterManager, - editable: getServices().capabilities.discover.save as boolean, + editable: services.capabilities.discover.save as boolean, indexPatterns: indexPattern ? [indexPattern] : [], - services: getServices(), + services, }, input, executeTriggerActions, diff --git a/src/plugins/discover/public/embeddable/view_saved_search_action.test.ts b/src/plugins/discover/public/embeddable/view_saved_search_action.test.ts index c18999473f26d..7306e56e09fa8 100644 --- a/src/plugins/discover/public/embeddable/view_saved_search_action.test.ts +++ b/src/plugins/discover/public/embeddable/view_saved_search_action.test.ts @@ -11,14 +11,11 @@ import { ContactCardEmbeddable } from 'src/plugins/embeddable/public/lib/test_sa import { ViewSavedSearchAction } from './view_saved_search_action'; import { SavedSearchEmbeddable } from './saved_search_embeddable'; import { createStartContractMock } from '../__mocks__/start_contract'; -import { uiSettingsServiceMock } from '../../../../core/public/mocks'; import { savedSearchMock } from '../__mocks__/saved_search'; import { discoverServiceMock } from '../__mocks__/services'; import { DataView } from 'src/plugins/data/common'; import { createFilterManagerMock } from 'src/plugins/data/public/query/filter_manager/filter_manager.mock'; import { ViewMode } from 'src/plugins/embeddable/public'; -import { setServices } from '../kibana_services'; -import type { DiscoverServices } from '../build_services'; const applicationMock = createStartContractMock(); const savedSearch = savedSearchMock; @@ -48,11 +45,6 @@ const embeddableConfig = { }; describe('view saved search action', () => { - beforeEach(() => { - setServices({ - uiSettings: uiSettingsServiceMock.createStartContract(), - } as unknown as DiscoverServices); - }); it('is compatible when embeddable is of type saved search, in view mode && appropriate permissions are set', async () => { const action = new ViewSavedSearchAction(applicationMock); const embeddable = new SavedSearchEmbeddable( diff --git a/src/plugins/discover/public/kibana_services.ts b/src/plugins/discover/public/kibana_services.ts index ffdfd82058693..f055d2b67ade1 100644 --- a/src/plugins/discover/public/kibana_services.ts +++ b/src/plugins/discover/public/kibana_services.ts @@ -10,24 +10,12 @@ import { once } from 'lodash'; import { createHashHistory } from 'history'; import type { ScopedHistory, AppMountParameters } from 'kibana/public'; import type { UiActionsStart } from 'src/plugins/ui_actions/public'; -import { DiscoverServices, HistoryLocationState } from './build_services'; +import { HistoryLocationState } from './build_services'; import { createGetterSetter } from '../../kibana_utils/public'; import { DocViewsRegistry } from './services/doc_views/doc_views_registry'; -let services: DiscoverServices | null = null; let uiActions: UiActionsStart; -export function getServices(): DiscoverServices { - if (!services) { - throw new Error('Discover services are not yet available'); - } - return services; -} - -export function setServices(newServices: DiscoverServices) { - services = newServices; -} - export const setUiActions = (pluginUiActions: UiActionsStart) => (uiActions = pluginUiActions); export const getUiActions = () => uiActions; diff --git a/src/plugins/discover/public/plugin.tsx b/src/plugins/discover/public/plugin.tsx index e881253a7d6d2..43c03a59b5b25 100644 --- a/src/plugins/discover/public/plugin.tsx +++ b/src/plugins/discover/public/plugin.tsx @@ -37,13 +37,11 @@ import { DocViewsRegistry } from './services/doc_views/doc_views_registry'; import { setDocViewsRegistry, setUrlTracker, - setServices, setHeaderActionMenuMounter, setUiActions, setScopedHistory, getScopedHistory, syncHistoryLocations, - getServices, } from './kibana_services'; import { registerFeature } from './register_feature'; import { buildServices } from './build_services'; @@ -64,6 +62,7 @@ import type { SpacesPluginStart } from '../../../../x-pack/plugins/spaces/public import { FieldFormatsStart } from '../../field_formats/public'; import { injectTruncateStyles } from './utils/truncate_styles'; import { DOC_TABLE_LEGACY, TRUNCATE_MAX_HEIGHT } from '../common'; +import { useDiscoverServices } from './utils/use_discover_services'; declare module '../../share/public' { export interface UrlGeneratorStateMapping { @@ -211,10 +210,7 @@ export class DiscoverPlugin private urlGenerator?: DiscoverStart['urlGenerator']; private locator?: DiscoverAppLocator; - setup( - core: CoreSetup, - plugins: DiscoverSetupPlugins - ): DiscoverSetup { + setup(core: CoreSetup, plugins: DiscoverSetupPlugins) { const baseUrl = core.http.basePath.prepend('/app/discover'); if (plugins.share) { @@ -242,9 +238,12 @@ export class DiscoverPlugin }), order: 10, component: (props) => { - const Component = getServices().uiSettings.get(DOC_TABLE_LEGACY) + // eslint-disable-next-line react-hooks/rules-of-hooks + const services = useDiscoverServices(); + const DocView = services.uiSettings.get(DOC_TABLE_LEGACY) ? DocViewerLegacyTable : DocViewerTable; + return ( } > - + ); }, @@ -339,7 +338,6 @@ export class DiscoverPlugin defaultPath: '#/', category: DEFAULT_APP_CATEGORIES.kibana, mount: async (params: AppMountParameters) => { - const [, depsStart] = await core.getStartServices(); setScopedHistory(params.history); setHeaderActionMenuMounter(params.setHeaderActionMenu); syncHistoryLocations(); @@ -349,14 +347,18 @@ export class DiscoverPlugin const unlistenParentHistory = params.history.listen(() => { window.dispatchEvent(new HashChangeEvent('hashchange')); }); + + const [coreStart, discoverStartPlugins] = await core.getStartServices(); + const services = buildServices(coreStart, discoverStartPlugins, this.initializerContext); + // make sure the index pattern list is up to date - await depsStart.data.indexPatterns.clearCache(); + await discoverStartPlugins.data.indexPatterns.clearCache(); const { renderApp } = await import('./application'); // FIXME: Temporarily hide overflow-y in Discover app when Field Stats table is shown // due to EUI bug https://github.com/elastic/eui/pull/5152 params.element.classList.add('dscAppWrapper'); - const unmount = renderApp(params.element); + const unmount = renderApp(params.element, services); return () => { unlistenParentHistory(); unmount(); @@ -413,10 +415,7 @@ export class DiscoverPlugin uiActions.addTriggerAction('CONTEXT_MENU_TRIGGER', viewSavedSearchAction); setUiActions(plugins.uiActions); - const services = buildServices(core, plugins, this.initializerContext); - setServices(services); - - injectTruncateStyles(services.uiSettings.get(TRUNCATE_MAX_HEIGHT)); + injectTruncateStyles(core.uiSettings.get(TRUNCATE_MAX_HEIGHT)); return { urlGenerator: this.urlGenerator, @@ -439,7 +438,12 @@ export class DiscoverPlugin }; }; - const factory = new SearchEmbeddableFactory(getStartServices); + const getDiscoverServices = async () => { + const [coreStart, discoverStartPlugins] = await core.getStartServices(); + return buildServices(coreStart, discoverStartPlugins, this.initializerContext); + }; + + const factory = new SearchEmbeddableFactory(getStartServices, getDiscoverServices); plugins.embeddable.registerEmbeddableFactory(factory.type, factory); } } diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer/doc_viewer.test.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer/doc_viewer.test.tsx index bedf1047bc4ec..2d946db20dd03 100644 --- a/src/plugins/discover/public/services/doc_views/components/doc_viewer/doc_viewer.test.tsx +++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer/doc_viewer.test.tsx @@ -17,11 +17,6 @@ jest.mock('../../../../kibana_services', () => { // eslint-disable-next-line @typescript-eslint/no-explicit-any let registry: any[] = []; return { - getServices: () => ({ - uiSettings: { - get: jest.fn(), - }, - }), getDocViewsRegistry: () => ({ // eslint-disable-next-line @typescript-eslint/no-explicit-any addDocView(view: any) { @@ -37,6 +32,16 @@ jest.mock('../../../../kibana_services', () => { }; }); +jest.mock('../../../../utils/use_discover_services', () => { + return { + useDiscoverServices: { + uiSettings: { + get: jest.fn(), + }, + }, + }; +}); + beforeEach(() => { // eslint-disable-next-line @typescript-eslint/no-explicit-any (getDocViewsRegistry() as any).resetRegistry(); diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer/doc_viewer_tab.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer/doc_viewer_tab.tsx index f43e445737820..107db6f1a588e 100644 --- a/src/plugins/discover/public/services/doc_views/components/doc_viewer/doc_viewer_tab.tsx +++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer/doc_viewer_tab.tsx @@ -11,8 +11,6 @@ import { isEqual } from 'lodash'; import { DocViewRenderTab } from './doc_viewer_render_tab'; import { DocViewerError } from './doc_viewer_render_error'; import { DocViewRenderFn, DocViewRenderProps } from '../../doc_views_types'; -import { getServices } from '../../../../kibana_services'; -import { KibanaContextProvider } from '../../../../../../kibana_react/public'; interface Props { id: number; @@ -67,11 +65,7 @@ export class DocViewerTab extends React.Component { // doc view is provided by a react component if (Component) { - return ( - - - - ); + return ; } return ( diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_source/__snapshots__/source.test.tsx.snap b/src/plugins/discover/public/services/doc_views/components/doc_viewer_source/__snapshots__/source.test.tsx.snap index b78463a44e977..41b7ee37413d9 100644 --- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_source/__snapshots__/source.test.tsx.snap +++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_source/__snapshots__/source.test.tsx.snap @@ -10,108 +10,6 @@ exports[`Source Viewer component renders error state 1`] = ` "getComputedFields": [Function], } } - intl={ - Object { - "defaultFormats": Object {}, - "defaultLocale": "en", - "formatDate": [Function], - "formatHTMLMessage": [Function], - "formatMessage": [Function], - "formatNumber": [Function], - "formatPlural": [Function], - "formatRelative": [Function], - "formatTime": [Function], - "formats": Object { - "date": Object { - "full": Object { - "day": "numeric", - "month": "long", - "weekday": "long", - "year": "numeric", - }, - "long": Object { - "day": "numeric", - "month": "long", - "year": "numeric", - }, - "medium": Object { - "day": "numeric", - "month": "short", - "year": "numeric", - }, - "short": Object { - "day": "numeric", - "month": "numeric", - "year": "2-digit", - }, - }, - "number": Object { - "currency": Object { - "style": "currency", - }, - "percent": Object { - "style": "percent", - }, - }, - "relative": Object { - "days": Object { - "units": "day", - }, - "hours": Object { - "units": "hour", - }, - "minutes": Object { - "units": "minute", - }, - "months": Object { - "units": "month", - }, - "seconds": Object { - "units": "second", - }, - "years": Object { - "units": "year", - }, - }, - "time": Object { - "full": Object { - "hour": "numeric", - "minute": "numeric", - "second": "numeric", - "timeZoneName": "short", - }, - "long": Object { - "hour": "numeric", - "minute": "numeric", - "second": "numeric", - "timeZoneName": "short", - }, - "medium": Object { - "hour": "numeric", - "minute": "numeric", - "second": "numeric", - }, - "short": Object { - "hour": "numeric", - "minute": "numeric", - }, - }, - }, - "formatters": Object { - "getDateTimeFormat": [Function], - "getMessageFormat": [Function], - "getNumberFormat": [Function], - "getPluralFormat": [Function], - "getRelativeFormat": [Function], - }, - "locale": "en", - "messages": Object {}, - "now": [Function], - "onError": [Function], - "textComponent": Symbol(react.fragment), - "timeZone": null, - } - } width={123} >
({ - getServices: jest.fn(), -})); - -import { getServices } from '../../../../kibana_services'; +import { KibanaContextProvider } from '../../../../../../kibana_react/public'; const mockIndexPattern = { getComputedFields: () => [], @@ -28,8 +23,7 @@ const getMock = jest.fn(() => Promise.resolve(mockIndexPattern)); const mockIndexPatternService = { get: getMock, } as unknown as DataView; - -(getServices as jest.Mock).mockImplementation(() => ({ +const services = { uiSettings: { get: (key: string) => { if (key === 'discover:useNewFieldsApi') { @@ -40,21 +34,24 @@ const mockIndexPatternService = { data: { indexPatternService: mockIndexPatternService, }, -})); +}; + describe('Source Viewer component', () => { test('renders loading state', () => { jest.spyOn(hooks, 'useEsDocSearch').mockImplementation(() => [0, null, () => {}]); const comp = mountWithIntl( - + + + ); - expect(comp).toMatchSnapshot(); + expect(comp.children()).toMatchSnapshot(); const loadingIndicator = comp.find(EuiLoadingSpinner); expect(loadingIndicator).not.toBe(null); }); @@ -63,15 +60,17 @@ describe('Source Viewer component', () => { jest.spyOn(hooks, 'useEsDocSearch').mockImplementation(() => [3, null, () => {}]); const comp = mountWithIntl( - + + + ); - expect(comp).toMatchSnapshot(); + expect(comp.children()).toMatchSnapshot(); const errorPrompt = comp.find(EuiEmptyPrompt); expect(errorPrompt.length).toBe(1); const refreshButton = comp.find(EuiButton); @@ -102,15 +101,17 @@ describe('Source Viewer component', () => { return false; }); const comp = mountWithIntl( - + + + ); - expect(comp).toMatchSnapshot(); + expect(comp.children()).toMatchSnapshot(); const jsonCodeEditor = comp.find(JsonCodeEditorCommon); expect(jsonCodeEditor).not.toBe(null); }); diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_source/source.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_source/source.tsx index 6712d1491606f..9f1cbb7069712 100644 --- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_source/source.tsx +++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_source/source.tsx @@ -12,8 +12,8 @@ import { FormattedMessage } from '@kbn/i18n-react'; import { monaco } from '@kbn/monaco'; import { EuiButton, EuiEmptyPrompt, EuiLoadingSpinner, EuiSpacer, EuiText } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { JSONCodeEditorCommonMemoized } from '../../../../components/json_code_editor/json_code_editor_common'; -import { getServices } from '../../../../kibana_services'; import { SEARCH_FIELDS_FROM_SOURCE } from '../../../../../common'; import { useEsDocSearch } from '../../../../utils/use_es_doc_search'; import { DataView } from '../../../../../../data_views/common'; @@ -36,7 +36,8 @@ export const DocViewerSource = ({ }: SourceViewerProps) => { const [editor, setEditor] = useState(); const [jsonValue, setJsonValue] = useState(''); - const useNewFieldsApi = !getServices().uiSettings.get(SEARCH_FIELDS_FROM_SOURCE); + const { uiSettings } = useDiscoverServices(); + const useNewFieldsApi = !uiSettings.get(SEARCH_FIELDS_FROM_SOURCE); const [reqState, hit, requestData] = useEsDocSearch({ id, index, diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.test.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.test.tsx index 76977034da1b4..cb85315e7dd42 100644 --- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.test.tsx +++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.test.tsx @@ -12,15 +12,11 @@ import { findTestSubject } from '@elastic/eui/lib/test'; import { DocViewerLegacyTable } from './table'; import { DataView } from '../../../../../../../data/common'; import { DocViewRenderProps } from '../../../doc_views_types'; - -jest.mock('../../../../../kibana_services', () => ({ - getServices: jest.fn(), -})); - -import { getServices } from '../../../../../kibana_services'; import { ElasticSearchHit } from '../../../../../types'; +import { KibanaContextProvider } from '../../../../../../../kibana_react/public'; +import { DiscoverServices } from 'src/plugins/discover/public/build_services'; -(getServices as jest.Mock).mockImplementation(() => ({ +const services = { uiSettings: { get: (key: string) => { if (key === 'discover:showMultiFields') { @@ -32,7 +28,7 @@ import { ElasticSearchHit } from '../../../../../types'; getDefaultInstance: jest.fn(() => ({ convert: (value: unknown) => value })), getFormatterForField: jest.fn(() => ({ convert: (value: unknown) => value })), }, -})); +}; const indexPattern = { fields: { @@ -77,8 +73,12 @@ indexPattern.fields.getByName = (name: string) => { return indexPattern.fields.getAll().find((field) => field.name === name); }; -const mountComponent = (props: DocViewRenderProps) => { - return mountWithIntl(); +const mountComponent = (props: DocViewRenderProps, overrides?: Partial) => { + return mountWithIntl( + + {' '} + + ); }; describe('DocViewTable at Discover', () => { @@ -424,14 +424,16 @@ describe('DocViewTable at Discover Doc with Fields API', () => { }); it('does not render multifield rows if showMultiFields flag is not set', () => { - (getServices as jest.Mock).mockImplementationOnce(() => ({ + const overridedServices = { uiSettings: { get: (key: string) => { - return key === 'discover:showMultiFields' && false; + if (key === 'discover:showMultiFields') { + return false; + } }, }, - })); - const component = mountComponent(props); + } as unknown as DiscoverServices; + const component = mountComponent(props, overridedServices); const categoryKeywordRow = findTestSubject(component, 'tableDocViewRow-category.keyword'); expect(categoryKeywordRow.length).toBe(0); diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.tsx index 517093635897e..e78ed2ccadd06 100644 --- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.tsx +++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.tsx @@ -9,9 +9,9 @@ import '../table.scss'; import React, { useCallback, useMemo } from 'react'; import { EuiInMemoryTable } from '@elastic/eui'; +import { useDiscoverServices } from '../../../../../utils/use_discover_services'; import { flattenHit } from '../../../../../../../data/common'; import { SHOW_MULTIFIELDS } from '../../../../../../common'; -import { getServices } from '../../../../../kibana_services'; import { DocViewRenderProps, FieldRecordLegacy } from '../../../doc_views_types'; import { ACTIONS_COLUMN, MAIN_COLUMNS } from './table_columns'; import { getFieldsToShow } from '../../../../../utils/get_fields_to_show'; @@ -27,7 +27,8 @@ export const DocViewerLegacyTable = ({ onAddColumn, onRemoveColumn, }: DocViewRenderProps) => { - const showMultiFields = getServices().uiSettings.get(SHOW_MULTIFIELDS); + const { fieldFormats, uiSettings } = useDiscoverServices(); + const showMultiFields = useMemo(() => uiSettings.get(SHOW_MULTIFIELDS), [uiSettings]); const mapping = useCallback((name: string) => dataView.fields.getByName(name), [dataView.fields]); const tableColumns = useMemo(() => { @@ -89,7 +90,13 @@ export const DocViewerLegacyTable = ({ scripted: Boolean(fieldMapping?.scripted), }, value: { - formattedValue: formatFieldValue(flattened[field], hit, dataView, fieldMapping), + formattedValue: formatFieldValue( + flattened[field], + hit, + fieldFormats, + dataView, + fieldMapping + ), ignored, }, }; diff --git a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx index 65806bb03a0bd..521d7d6e75eb2 100644 --- a/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx +++ b/src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx @@ -27,12 +27,12 @@ import { import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { debounce } from 'lodash'; +import { useDiscoverServices } from '../../../../utils/use_discover_services'; import { Storage } from '../../../../../../kibana_utils/public'; import { usePager } from '../../../../utils/use_pager'; import { FieldName } from '../../../../components/field_name/field_name'; import { flattenHit } from '../../../../../../data/common'; import { SHOW_MULTIFIELDS } from '../../../../../common'; -import { getServices } from '../../../../kibana_services'; import { DocViewRenderProps, FieldRecordLegacy } from '../../doc_views_types'; import { getFieldsToShow } from '../../../../utils/get_fields_to_show'; import { getIgnoredReason } from '../../../../utils/get_ignored_reason'; @@ -108,7 +108,7 @@ export const DocViewerTable = ({ onAddColumn, onRemoveColumn, }: DocViewRenderProps) => { - const { storage, uiSettings } = getServices(); + const { storage, uiSettings, fieldFormats } = useDiscoverServices(); const showMultiFields = uiSettings.get(SHOW_MULTIFIELDS); const currentDataViewId = dataView.id!; const isSingleDocView = !filter; @@ -178,21 +178,28 @@ export const DocViewerTable = ({ onTogglePinned, }, value: { - formattedValue: formatFieldValue(flattened[field], hit, dataView, fieldMapping), + formattedValue: formatFieldValue( + flattened[field], + hit, + fieldFormats, + dataView, + fieldMapping + ), ignored, }, }; }, [ - columns, - filter, - flattened, - hit, - dataView, mapping, + dataView, + hit, onToggleColumn, - onTogglePinned, + filter, + columns, + flattened, pinnedFields, + onTogglePinned, + fieldFormats, ] ); diff --git a/src/plugins/discover/public/services/doc_views/doc_views_types.ts b/src/plugins/discover/public/services/doc_views/doc_views_types.ts index e213adcb89553..0287884c8b6f6 100644 --- a/src/plugins/discover/public/services/doc_views/doc_views_types.ts +++ b/src/plugins/discover/public/services/doc_views/doc_views_types.ts @@ -6,7 +6,6 @@ * Side Public License, v 1. */ -import { ComponentType } from 'react'; import { DataView, DataViewField } from '../../../../data/common'; import { ElasticSearchHit } from '../../types'; import { IgnoredReason } from '../../utils/get_ignored_reason'; @@ -34,7 +33,7 @@ export interface DocViewRenderProps { onAddColumn?: (columnName: string) => void; onRemoveColumn?: (columnName: string) => void; } -export type DocViewerComponent = ComponentType; +export type DocViewerComponent = React.FC; export type DocViewRenderFn = ( domeNode: HTMLDivElement, renderProps: DocViewRenderProps diff --git a/src/plugins/discover/public/utils/format_hit.test.ts b/src/plugins/discover/public/utils/format_hit.test.ts index 8d37b87e884c4..601d88cdedc96 100644 --- a/src/plugins/discover/public/utils/format_hit.test.ts +++ b/src/plugins/discover/public/utils/format_hit.test.ts @@ -10,11 +10,6 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { indexPatternMock as dataViewMock } from '../__mocks__/index_pattern'; import { formatHit } from './format_hit'; import { discoverServiceMock } from '../__mocks__/services'; -import { MAX_DOC_FIELDS_DISPLAYED } from '../../common'; - -jest.mock('../kibana_services', () => ({ - getServices: () => jest.requireActual('../__mocks__/services').discoverServiceMock, -})); describe('formatHit', () => { let hit: estypes.SearchHit; @@ -32,9 +27,6 @@ describe('formatHit', () => { (dataViewMock.getFormatterForField as jest.Mock).mockReturnValue({ convert: (value: unknown) => `formatted:${value}`, }); - (discoverServiceMock.uiSettings.get as jest.Mock).mockImplementation( - (key) => key === MAX_DOC_FIELDS_DISPLAYED && 220 - ); }); afterEach(() => { @@ -42,7 +34,13 @@ describe('formatHit', () => { }); it('formats a document as expected', () => { - const formatted = formatHit(hit, dataViewMock, ['message', 'extension', 'object.value']); + const formatted = formatHit( + hit, + dataViewMock, + ['message', 'extension', 'object.value'], + 220, + discoverServiceMock.fieldFormats + ); expect(formatted).toEqual([ ['extension', 'formatted:png'], ['message', 'formatted:foobar'], @@ -53,11 +51,13 @@ describe('formatHit', () => { }); it('orders highlighted fields first', () => { - const formatted = formatHit({ ...hit, highlight: { message: ['%%'] } }, dataViewMock, [ - 'message', - 'extension', - 'object.value', - ]); + const formatted = formatHit( + { ...hit, highlight: { message: ['%%'] } }, + dataViewMock, + ['message', 'extension', 'object.value'], + 220, + discoverServiceMock.fieldFormats + ); expect(formatted.map(([fieldName]) => fieldName)).toEqual([ 'message', 'extension', @@ -68,10 +68,13 @@ describe('formatHit', () => { }); it('only limits count of pairs based on advanced setting', () => { - (discoverServiceMock.uiSettings.get as jest.Mock).mockImplementation( - (key) => key === MAX_DOC_FIELDS_DISPLAYED && 2 + const formatted = formatHit( + hit, + dataViewMock, + ['message', 'extension', 'object.value'], + 2, + discoverServiceMock.fieldFormats ); - const formatted = formatHit(hit, dataViewMock, ['message', 'extension', 'object.value']); expect(formatted).toEqual([ ['extension', 'formatted:png'], ['message', 'formatted:foobar'], @@ -80,7 +83,13 @@ describe('formatHit', () => { }); it('should not include fields not mentioned in fieldsToShow', () => { - const formatted = formatHit(hit, dataViewMock, ['message', 'object.value']); + const formatted = formatHit( + hit, + dataViewMock, + ['message', 'object.value'], + 220, + discoverServiceMock.fieldFormats + ); expect(formatted).toEqual([ ['message', 'formatted:foobar'], ['object.value', 'formatted:42,13'], @@ -90,7 +99,13 @@ describe('formatHit', () => { }); it('should filter fields based on their real name not displayName', () => { - const formatted = formatHit(hit, dataViewMock, ['bytes']); + const formatted = formatHit( + hit, + dataViewMock, + ['bytes'], + 220, + discoverServiceMock.fieldFormats + ); expect(formatted).toEqual([ ['bytesDisplayName', 'formatted:123'], ['_index', 'formatted:logs'], diff --git a/src/plugins/discover/public/utils/format_hit.ts b/src/plugins/discover/public/utils/format_hit.ts index 4a06162714a2a..4c94fd294ba3a 100644 --- a/src/plugins/discover/public/utils/format_hit.ts +++ b/src/plugins/discover/public/utils/format_hit.ts @@ -8,9 +8,8 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { i18n } from '@kbn/i18n'; +import { FieldFormatsStart } from '../../../field_formats/public'; import { DataView, flattenHit } from '../../../data/common'; -import { MAX_DOC_FIELDS_DISPLAYED } from '../../common'; -import { getServices } from '../kibana_services'; import { formatFieldValue } from './format_value'; const formattedHitCache = new WeakMap(); @@ -28,7 +27,9 @@ type FormattedHit = Array; export function formatHit( hit: estypes.SearchHit, dataView: DataView, - fieldsToShow: string[] + fieldsToShow: string[], + maxEntries: number, + fieldFormats: FieldFormatsStart ): FormattedHit { const cached = formattedHitCache.get(hit); if (cached) { @@ -50,7 +51,13 @@ export function formatHit( const displayKey = dataView.fields.getByName(key)?.displayName; const pairs = highlights[key] ? highlightPairs : sourcePairs; // Format the raw value using the regular field formatters for that field - const formattedValue = formatFieldValue(val, hit, dataView, dataView.fields.getByName(key)); + const formattedValue = formatFieldValue( + val, + hit, + fieldFormats, + dataView, + dataView.fields.getByName(key) + ); // If the field was a mapped field, we validate it against the fieldsToShow list, if not // we always include it into the result. if (displayKey) { @@ -61,7 +68,6 @@ export function formatHit( pairs.push([key, formattedValue]); } }); - const maxEntries = getServices().uiSettings.get(MAX_DOC_FIELDS_DISPLAYED); const pairs = [...highlightPairs, ...sourcePairs]; const formatted = // If document has more formatted fields than configured via MAX_DOC_FIELDS_DISPLAYED we cut diff --git a/src/plugins/discover/public/utils/format_value.test.ts b/src/plugins/discover/public/utils/format_value.test.ts index 4684547b7cf3e..9fbf38c21b4b7 100644 --- a/src/plugins/discover/public/utils/format_value.test.ts +++ b/src/plugins/discover/public/utils/format_value.test.ts @@ -6,22 +6,18 @@ * Side Public License, v 1. */ +import { FieldFormatsStart } from '../../../field_formats/public'; import type { FieldFormat } from '../../../field_formats/common'; import { indexPatternMock } from '../__mocks__/index_pattern'; import { formatFieldValue } from './format_value'; -import { getServices } from '../kibana_services'; - -jest.mock('../kibana_services', () => { - const services = { - fieldFormats: { - getDefaultInstance: jest.fn( - () => ({ convert: (value: unknown) => value } as FieldFormat) - ), - }, - }; - return { getServices: () => services }; -}); +const services = { + fieldFormats: { + getDefaultInstance: jest.fn( + () => ({ convert: (value: unknown) => value } as FieldFormat) + ), + } as unknown as FieldFormatsStart, +}; const hit = { _id: '1', @@ -34,7 +30,6 @@ const hit = { describe('formatFieldValue', () => { afterEach(() => { (indexPatternMock.getFormatterForField as jest.Mock).mockReset(); - (getServices().fieldFormats.getDefaultInstance as jest.Mock).mockReset(); }); it('should call correct fieldFormatter for field', () => { @@ -42,28 +37,32 @@ describe('formatFieldValue', () => { const convertMock = jest.fn((value: unknown) => `formatted:${value}`); formatterForFieldMock.mockReturnValue({ convert: convertMock }); const field = indexPatternMock.fields.getByName('message'); - expect(formatFieldValue('foo', hit, indexPatternMock, field)).toBe('formatted:foo'); + expect(formatFieldValue('foo', hit, services.fieldFormats, indexPatternMock, field)).toBe( + 'formatted:foo' + ); expect(indexPatternMock.getFormatterForField).toHaveBeenCalledWith(field); expect(convertMock).toHaveBeenCalledWith('foo', 'html', { field, hit }); }); it('should call default string formatter if no field specified', () => { const convertMock = jest.fn((value: unknown) => `formatted:${value}`); - (getServices().fieldFormats.getDefaultInstance as jest.Mock).mockReturnValue({ + (services.fieldFormats.getDefaultInstance as jest.Mock).mockReturnValue({ convert: convertMock, }); - expect(formatFieldValue('foo', hit, indexPatternMock)).toBe('formatted:foo'); - expect(getServices().fieldFormats.getDefaultInstance).toHaveBeenCalledWith('string'); + expect(formatFieldValue('foo', hit, services.fieldFormats, indexPatternMock)).toBe( + 'formatted:foo' + ); + expect(services.fieldFormats.getDefaultInstance).toHaveBeenCalledWith('string'); expect(convertMock).toHaveBeenCalledWith('foo', 'html', { field: undefined, hit }); }); it('should call default string formatter if no indexPattern is specified', () => { const convertMock = jest.fn((value: unknown) => `formatted:${value}`); - (getServices().fieldFormats.getDefaultInstance as jest.Mock).mockReturnValue({ + (services.fieldFormats.getDefaultInstance as jest.Mock).mockReturnValue({ convert: convertMock, }); - expect(formatFieldValue('foo', hit)).toBe('formatted:foo'); - expect(getServices().fieldFormats.getDefaultInstance).toHaveBeenCalledWith('string'); + expect(formatFieldValue('foo', hit, services.fieldFormats)).toBe('formatted:foo'); + expect(services.fieldFormats.getDefaultInstance).toHaveBeenCalledWith('string'); expect(convertMock).toHaveBeenCalledWith('foo', 'html', { field: undefined, hit }); }); }); diff --git a/src/plugins/discover/public/utils/format_value.ts b/src/plugins/discover/public/utils/format_value.ts index 7a2a67b063191..432978f7fb41f 100644 --- a/src/plugins/discover/public/utils/format_value.ts +++ b/src/plugins/discover/public/utils/format_value.ts @@ -7,8 +7,8 @@ */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; +import { FieldFormatsStart } from '../../../field_formats/public'; import { DataView, DataViewField, KBN_FIELD_TYPES } from '../../../data/common'; -import { getServices } from '../kibana_services'; /** * Formats the value of a specific field using the appropriate field formatter if available @@ -23,14 +23,15 @@ import { getServices } from '../kibana_services'; export function formatFieldValue( value: unknown, hit: estypes.SearchHit, + fieldFormats: FieldFormatsStart, dataView?: DataView, field?: DataViewField ): string { if (!dataView || !field) { // If either no field is available or no data view, we'll use the default // string formatter to format that field. - return getServices() - .fieldFormats.getDefaultInstance(KBN_FIELD_TYPES.STRING) + return fieldFormats + .getDefaultInstance(KBN_FIELD_TYPES.STRING) .convert(value, 'html', { hit, field }); } diff --git a/src/plugins/discover/public/utils/use_discover_services.ts b/src/plugins/discover/public/utils/use_discover_services.ts new file mode 100644 index 0000000000000..d9a6a2d77e481 --- /dev/null +++ b/src/plugins/discover/public/utils/use_discover_services.ts @@ -0,0 +1,12 @@ +/* + * 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 { useKibana } from '../../../kibana_react/public'; +import { DiscoverServices } from '../build_services'; + +export const useDiscoverServices = () => useKibana().services; diff --git a/src/plugins/discover/public/utils/use_es_doc_search.test.tsx b/src/plugins/discover/public/utils/use_es_doc_search.test.tsx index 91115f70aebf2..629a2b4d10470 100644 --- a/src/plugins/discover/public/utils/use_es_doc_search.test.tsx +++ b/src/plugins/discover/public/utils/use_es_doc_search.test.tsx @@ -13,27 +13,27 @@ import { DataView } from 'src/plugins/data/common'; import { DocProps } from '../application/doc/components/doc'; import { ElasticRequestState } from '../application/doc/types'; import { SEARCH_FIELDS_FROM_SOURCE as mockSearchFieldsFromSource } from '../../common'; +import { KibanaContextProvider } from '../../../kibana_react/public'; +import React from 'react'; const mockSearchResult = new Observable(); -jest.mock('../kibana_services', () => ({ - getServices: () => ({ - data: { - search: { - search: jest.fn(() => { - return mockSearchResult; - }), - }, +const services = { + data: { + search: { + search: jest.fn(() => { + return mockSearchResult; + }), }, - uiSettings: { - get: (key: string) => { - if (key === mockSearchFieldsFromSource) { - return false; - } - }, + }, + uiSettings: { + get: (key: string) => { + if (key === mockSearchFieldsFromSource) { + return false; + } }, - }), -})); + }, +}; describe('Test of helper / hook', () => { test('buildSearchBody given useNewFieldsApi is false', () => { @@ -181,7 +181,12 @@ describe('Test of helper / hook', () => { indexPattern, } as unknown as DocProps; - const { result } = renderHook((p: DocProps) => useEsDocSearch(p), { initialProps: props }); + const { result } = renderHook((p: DocProps) => useEsDocSearch(p), { + initialProps: props, + wrapper: ({ children }) => ( + {children} + ), + }); expect(result.current.slice(0, 2)).toEqual([ElasticRequestState.Loading, null]); }); diff --git a/src/plugins/discover/public/utils/use_es_doc_search.ts b/src/plugins/discover/public/utils/use_es_doc_search.ts index 1c8fd2f77888e..ac94fccdd3e12 100644 --- a/src/plugins/discover/public/utils/use_es_doc_search.ts +++ b/src/plugins/discover/public/utils/use_es_doc_search.ts @@ -11,9 +11,9 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { DataView } from '../../../data/common'; import { DocProps } from '../application/doc/components/doc'; import { ElasticRequestState } from '../application/doc/types'; -import { getServices } from '../kibana_services'; import { SEARCH_FIELDS_FROM_SOURCE } from '../../common'; import { ElasticSearchHit } from '../types'; +import { useDiscoverServices } from './use_discover_services'; type RequestBody = Pick; @@ -69,7 +69,7 @@ export function useEsDocSearch({ }: DocProps): [ElasticRequestState, ElasticSearchHit | null, () => void] { const [status, setStatus] = useState(ElasticRequestState.Loading); const [hit, setHit] = useState(null); - const { data, uiSettings } = useMemo(() => getServices(), []); + const { data, uiSettings } = useDiscoverServices(); const useNewFieldsApi = useMemo(() => !uiSettings.get(SEARCH_FIELDS_FROM_SOURCE), [uiSettings]); const requestData = useCallback(async () => { diff --git a/src/plugins/discover/public/utils/use_navigation_props.test.tsx b/src/plugins/discover/public/utils/use_navigation_props.test.tsx index 29d4976f265c3..de1f1dbcc9b01 100644 --- a/src/plugins/discover/public/utils/use_navigation_props.test.tsx +++ b/src/plugins/discover/public/utils/use_navigation_props.test.tsx @@ -17,8 +17,7 @@ import { } from './use_navigation_props'; import { Router } from 'react-router-dom'; import { createMemoryHistory } from 'history'; -import { setServices } from '../kibana_services'; -import { DiscoverServices } from '../build_services'; +import { KibanaContextProvider } from '../../../kibana_react/public'; const filterManager = createFilterManagerMock(); const defaultProps = { @@ -45,16 +44,17 @@ const getContextRoute = () => { return `/context/${defaultProps.indexPatternId}/${defaultProps.rowId}`; }; -const render = () => { +const render = (withRouter = true, props?: Partial) => { const history = createMemoryHistory({ initialEntries: ['/' + getSearch()], }); - setServices({ history: () => history } as unknown as DiscoverServices); const wrapper = ({ children }: { children: ReactElement }) => ( - {children} + history }}> + {withRouter ? {children} : children} + ); return { - result: renderHook(() => useNavigationProps(defaultProps), { wrapper }).result, + result: renderHook(() => useNavigationProps({ ...defaultProps, ...props }), { wrapper }).result, history, }; }; @@ -81,12 +81,7 @@ describe('useNavigationProps', () => { }); test('should create valid links to the context and single doc pages from embeddable', () => { - const { result } = renderHook(() => - useNavigationProps({ - ...defaultProps, - addBasePath: (val: string) => `${basePathPrefix}${val}`, - }) - ); + const { result } = render(false, { addBasePath: (val: string) => `${basePathPrefix}${val}` }); expect(result.current.singleDocProps.href!).toEqual( `${basePathPrefix}/app/discover#${getSingeDocRoute()}?id=${defaultProps.rowId}` diff --git a/src/plugins/discover/public/utils/use_navigation_props.tsx b/src/plugins/discover/public/utils/use_navigation_props.tsx index 6f1dedf75e730..963499c4cad57 100644 --- a/src/plugins/discover/public/utils/use_navigation_props.tsx +++ b/src/plugins/discover/public/utils/use_navigation_props.tsx @@ -8,11 +8,12 @@ import { useMemo, useRef } from 'react'; import { useHistory, matchPath } from 'react-router-dom'; +import type { Location } from 'history'; import { stringify } from 'query-string'; import rison from 'rison-node'; import { esFilters, FilterManager } from '../../../data/public'; import { url } from '../../../kibana_utils/common'; -import { getServices } from '../kibana_services'; +import { useDiscoverServices } from './use_discover_services'; export type DiscoverNavigationProps = { onClick: () => void } | { href: string }; @@ -53,12 +54,13 @@ export const getContextHash = (columns: string[], filterManager: FilterManager) * Current history object should be used in callback, since url state might be changed * after expanded document opened. */ -const getCurrentBreadcrumbs = (isContextRoute: boolean, prevBreadcrumb?: string) => { - const { history: getHistory } = getServices(); - const currentHistory = getHistory(); - return isContextRoute - ? prevBreadcrumb - : '#' + currentHistory?.location.pathname + currentHistory?.location.search; + +const getCurrentBreadcrumbs = ( + isContextRoute: boolean, + currentLocation: Location, + prevBreadcrumb?: string +) => { + return isContextRoute ? prevBreadcrumb : '#' + currentLocation.pathname + currentLocation.search; }; export const useMainRouteBreadcrumb = () => { @@ -75,6 +77,8 @@ export const useNavigationProps = ({ addBasePath, }: UseNavigationProps) => { const history = useHistory(); + const currentLocation = useDiscoverServices().history().location; + const prevBreadcrumb = useRef(history?.location.state?.breadcrumb).current; const contextSearchHash = useMemo( () => getContextHash(columns, filterManager), @@ -95,7 +99,9 @@ export const useNavigationProps = ({ history.push({ pathname: `/doc/${indexPatternId}/${rowIndex}`, search: `?id=${encodeURIComponent(rowId)}`, - state: { breadcrumb: getCurrentBreadcrumbs(!!isContextRoute, prevBreadcrumb) }, + state: { + breadcrumb: getCurrentBreadcrumbs(!!isContextRoute, currentLocation, prevBreadcrumb), + }, }); }; @@ -105,7 +111,9 @@ export const useNavigationProps = ({ String(rowId) )}`, search: `?${contextSearchHash}`, - state: { breadcrumb: getCurrentBreadcrumbs(!!isContextRoute, prevBreadcrumb) }, + state: { + breadcrumb: getCurrentBreadcrumbs(!!isContextRoute, currentLocation, prevBreadcrumb), + }, }); return { diff --git a/src/plugins/discover/public/utils/with_query_params.test.tsx b/src/plugins/discover/public/utils/with_query_params.test.tsx index d897c3327a06f..3d416d6a3e8b5 100644 --- a/src/plugins/discover/public/utils/with_query_params.test.tsx +++ b/src/plugins/discover/public/utils/with_query_params.test.tsx @@ -11,13 +11,6 @@ import { Router } from 'react-router-dom'; import { createMemoryHistory } from 'history'; import { mountWithIntl } from '@kbn/test/jest'; import { withQueryParams } from './with_query_params'; -import { DiscoverServices } from '../build_services'; -import { DiscoverRouteProps } from '../application/types'; - -interface ComponentProps extends DiscoverRouteProps { - id: string; - query: string; -} const mountComponent = (children: ReactElement, query = '') => { const history = createMemoryHistory({ @@ -29,27 +22,16 @@ const mountComponent = (children: ReactElement, query = '') => { describe('withQueryParams', () => { it('should display error message, when query does not contain required parameters', () => { const Component = withQueryParams(() =>
, ['id', 'query']); - const component = mountComponent(); + const component = mountComponent(); expect(component.html()).toContain('Cannot load this page'); expect(component.html()).toContain('URL query string is missing id, query.'); }); it('should not display error message, when query contain required parameters', () => { - const Component = withQueryParams( - ({ id, query }: ComponentProps) => ( -
- {id} and {query} are presented -
- ), - ['id', 'query'] - ); - const component = mountComponent( - , - '?id=one&query=another' - ); + const Component = withQueryParams(() =>
, ['id', 'query']); + const component = mountComponent(, '?id=one&query=another'); - expect(component.html()).toContain('one and another are presented'); expect(component.html()).not.toContain('URL query string is missing id, query.'); }); }); diff --git a/src/plugins/discover/public/utils/with_query_params.tsx b/src/plugins/discover/public/utils/with_query_params.tsx index 66f0dd72c64de..159ba6740cf64 100644 --- a/src/plugins/discover/public/utils/with_query_params.tsx +++ b/src/plugins/discover/public/utils/with_query_params.tsx @@ -9,20 +9,12 @@ import React, { useMemo } from 'react'; import { i18n } from '@kbn/i18n'; import { useLocation } from 'react-router-dom'; -import { DiscoverRouteProps } from '../application/types'; import { DiscoverError } from '../components/common/error_alert'; -function useQuery() { - const { search } = useLocation(); - return useMemo(() => new URLSearchParams(search), [search]); -} - -export const withQueryParams =

( - Component: React.ComponentType

, - requiredParams: string[] -) => { - return (routeProps: DiscoverRouteProps) => { - const query = useQuery(); +export function withQueryParams(Component: React.ComponentType, requiredParams: string[]) { + return () => { + const { search } = useLocation(); + const query = useMemo(() => new URLSearchParams(search), [search]); const missingParamNames = useMemo( () => requiredParams.filter((currentParamName) => !query.get(currentParamName)), @@ -42,6 +34,6 @@ export const withQueryParams =

( const queryProps = Object.fromEntries( requiredParams.map((current) => [[current], query.get(current)]) ); - return ; + return ; }; -}; +} From 2c900c65ba61aac0aaed9131ccec88413d4d9860 Mon Sep 17 00:00:00 2001 From: Alexey Antonov Date: Fri, 28 Jan 2022 12:20:14 +0300 Subject: [PATCH 39/45] [TSVB] Formatting in the left axis is not respected when I have two separate axis (#123903) Closes: #123891 --- ...eck_if_series_have_same_formatters.test.ts | 14 ++++++++ .../check_if_series_have_same_formatters.ts | 32 ++++++++++--------- 2 files changed, 31 insertions(+), 15 deletions(-) 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 674973b1173f5..9044db065beb2 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 @@ -52,6 +52,20 @@ describe('checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap)', () => { expect(result).toBe(true); }); + it('should return true in case of separate y-axis and different field formatters', () => { + const seriesModel = [ + { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ type: 'avg', field: 'someField' }] }, + { + formatter: DATA_FORMATTERS.DEFAULT, + separate_axis: 1, + metrics: [{ id: 'avg', field: 'anotherField' }], + }, + ] as Series[]; + const result = checkIfSeriesHaveSameFormatters(seriesModel, fieldFormatMap); + + expect(result).toBeTruthy(); + }); + it('should return false for the different field formatters', () => { const seriesModel = [ { formatter: DATA_FORMATTERS.DEFAULT, metrics: [{ type: 'avg', field: 'someField' }] }, 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 c92b7e7aedd3e..996cabb9f7963 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 @@ -18,24 +18,26 @@ export const checkIfSeriesHaveSameFormatters = ( const uniqFormatters = new Set(); 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 (!seriesGroup.separate_axis) { + 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])); + 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, + }) + ); } - 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; From 9f6c78139e8c15fc685d71589e44481e89f06457 Mon Sep 17 00:00:00 2001 From: Jan Monschke Date: Fri, 28 Jan 2022 10:26:23 +0100 Subject: [PATCH 40/45] [SecuritySolution][Investigations] Add message about missing index in data view in analyzer (#122859) * chore: add message about missing index in data view * fix: typo Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../public/resolver/view/resolver_no_process_events.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/x-pack/plugins/security_solution/public/resolver/view/resolver_no_process_events.tsx b/x-pack/plugins/security_solution/public/resolver/view/resolver_no_process_events.tsx index 5a743896518c2..c172d351c7356 100644 --- a/x-pack/plugins/security_solution/public/resolver/view/resolver_no_process_events.tsx +++ b/x-pack/plugins/security_solution/public/resolver/view/resolver_no_process_events.tsx @@ -41,6 +41,14 @@ export const ResolverNoProcessEvents = () => ( })} + + {i18n.translate('xpack.securitySolution.resolver.noProcessEvents.dataView', { + defaultMessage: `In case you selected a different data view, + make sure your data view contains all of the indices that are stored in the source event at "{field}".`, + values: { field: 'kibana.alert.rule.parameters.index' }, + })} + + {i18n.translate('xpack.securitySolution.resolver.noProcessEvents.eventCategory', { defaultMessage: `You may also add the below to your timeline query to check for process events. From 5b8af6c1ea1593b89c21e242e4072a6a80045581 Mon Sep 17 00:00:00 2001 From: Shahzad Date: Fri, 28 Jan 2022 11:15:49 +0100 Subject: [PATCH 41/45] [Exploratory view] Allow ability add extra actions in lens embeddable (#123713) --- .../embedded_lens_example/public/app.tsx | 53 ++++++- .../exploratory_view_example/kibana.json | 7 +- .../exploratory_view_example/public/app.tsx | 1 + .../exploratory_view_example/public/mount.tsx | 17 +- .../embeddable/embeddable_component.tsx | 23 ++- .../configurations/lens_attributes.ts | 4 +- .../test_data/sample_attribute.ts | 2 +- .../test_data/sample_attribute_cwv.ts | 2 +- .../test_data/sample_attribute_kpi.ts | 2 +- .../exploratory_view/configurations/utils.ts | 19 ++- .../embeddable/embeddable.tsx | 56 ++++++- .../embeddable/use_actions.ts | 150 ++++++++++++++++++ .../header/add_to_case_action.tsx | 56 +++++-- .../exploratory_view/hooks/use_add_to_case.ts | 10 +- .../hooks/use_lens_attributes.ts | 2 +- .../exploratory_view/lens_embeddable.tsx | 36 ++++- x-pack/plugins/uptime/kibana.json | 1 + x-pack/plugins/uptime/public/apps/plugin.ts | 2 + .../plugins/uptime/public/apps/uptime_app.tsx | 1 + .../check_steps/step_field_trend.tsx | 1 + 20 files changed, 401 insertions(+), 44 deletions(-) create mode 100644 x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/use_actions.ts diff --git a/x-pack/examples/embedded_lens_example/public/app.tsx b/x-pack/examples/embedded_lens_example/public/app.tsx index 510d9469c7878..2e2e973e7cc6b 100644 --- a/x-pack/examples/embedded_lens_example/public/app.tsx +++ b/x-pack/examples/embedded_lens_example/public/app.tsx @@ -32,6 +32,7 @@ import type { } from '../../../plugins/lens/public'; import { ViewMode } from '../../../../src/plugins/embeddable/public'; +import { ActionExecutionContext } from '../../../../src/plugins/ui_actions/public'; // Generate a Lens state based on some app-specific input parameters. // `TypedLensByValueInput` can be used for type-safety - it uses the same interfaces as Lens-internal code. @@ -126,6 +127,9 @@ export const App = (props: { to: 'now', }); + const [enableExtraAction, setEnableExtraAction] = useState(false); + const [enableDefaultAction, setEnableDefaultAction] = useState(false); + const LensComponent = props.plugins.lens.EmbeddableComponent; const LensSaveModalComponent = props.plugins.lens.SaveModalComponent; @@ -153,7 +157,7 @@ export const App = (props: { configuration and navigate to a prefilled editor.

- + + + { + setEnableExtraAction((prevState) => !prevState); + }} + > + {enableExtraAction ? 'Disable extra action' : 'Enable extra action'} + + + + { + setEnableDefaultAction((prevState) => !prevState); + }} + > + {enableDefaultAction ? 'Disable default action' : 'Enable default action'} + + 'save', + async isCompatible( + context: ActionExecutionContext + ): Promise { + return true; + }, + execute: async (context: ActionExecutionContext) => { + alert('I am an extra action'); + return; + }, + getDisplayName: () => 'Extra action', + }, + ] + : undefined + } /> {isSaveModalVisible && ( diff --git a/x-pack/examples/exploratory_view_example/public/mount.tsx b/x-pack/examples/exploratory_view_example/public/mount.tsx index 58ec363223270..b589db9d531b7 100644 --- a/x-pack/examples/exploratory_view_example/public/mount.tsx +++ b/x-pack/examples/exploratory_view_example/public/mount.tsx @@ -7,9 +7,12 @@ import * as React from 'react'; import { render, unmountComponentAtNode } from 'react-dom'; -import { CoreSetup, AppMountParameters } from 'kibana/public'; +import { CoreSetup, AppMountParameters, APP_WRAPPER_CLASS } from '../../../../src/core/public'; import { StartDependencies } from './plugin'; - +import { + KibanaContextProvider, + RedirectAppLinks, +} from '../../../../src/plugins/kibana_react/public'; export const mount = (coreSetup: CoreSetup) => async ({ element }: AppMountParameters) => { @@ -26,9 +29,13 @@ export const mount = const i18nCore = core.i18n; const reactElement = ( - - - + + + + + + + ); render(reactElement, element); return () => unmountComponentAtNode(element); diff --git a/x-pack/plugins/lens/public/embeddable/embeddable_component.tsx b/x-pack/plugins/lens/public/embeddable/embeddable_component.tsx index e501138648b14..94473f2be3613 100644 --- a/x-pack/plugins/lens/public/embeddable/embeddable_component.tsx +++ b/x-pack/plugins/lens/public/embeddable/embeddable_component.tsx @@ -7,7 +7,7 @@ import React, { FC, useEffect } from 'react'; import type { CoreStart, ThemeServiceStart } from 'kibana/public'; -import type { UiActionsStart } from 'src/plugins/ui_actions/public'; +import type { Action, UiActionsStart } from 'src/plugins/ui_actions/public'; import type { Start as InspectorStartContract } from 'src/plugins/inspector/public'; import { EuiLoadingChart } from '@elastic/eui'; import { @@ -52,7 +52,8 @@ export type TypedLensByValueInput = Omit & { }; export type EmbeddableComponentProps = (TypedLensByValueInput | LensByReferenceInput) & { - withActions?: boolean; + withDefaultActions?: boolean; + extraActions?: Action[]; }; interface PluginsStartDependencies { @@ -67,7 +68,9 @@ export function getEmbeddableComponent(core: CoreStart, plugins: PluginsStartDep const factory = embeddableStart.getEmbeddableFactory('lens')!; const input = { ...props }; const [embeddable, loading, error] = useEmbeddableFactory({ factory, input }); - const hasActions = props.withActions === true; + const hasActions = + Boolean(props.withDefaultActions) || (props.extraActions && props.extraActions?.length > 0); + const theme = core.theme; if (loading) { @@ -83,6 +86,8 @@ export function getEmbeddableComponent(core: CoreStart, plugins: PluginsStartDep actionPredicate={() => hasActions} input={input} theme={theme} + extraActions={props.extraActions} + withDefaultActions={props.withDefaultActions} /> ); } @@ -98,6 +103,8 @@ interface EmbeddablePanelWrapperProps { actionPredicate: (id: string) => boolean; input: EmbeddableComponentProps; theme: ThemeServiceStart; + extraActions?: Action[]; + withDefaultActions?: boolean; } const EmbeddablePanelWrapper: FC = ({ @@ -107,6 +114,8 @@ const EmbeddablePanelWrapper: FC = ({ inspector, input, theme, + extraActions, + withDefaultActions, }) => { useEffect(() => { embeddable.updateInput(input); @@ -116,7 +125,13 @@ const EmbeddablePanelWrapper: FC = ({ } - getActions={uiActions.getTriggerCompatibleActions} + getActions={async (triggerId, context) => { + const actions = withDefaultActions + ? await uiActions.getTriggerCompatibleActions(triggerId, context) + : []; + + return [...(extraActions ?? []), ...actions]; + }} inspector={inspector} actionPredicate={actionPredicate} showShadow={false} diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts index f873b1eb5cbab..1058973a4432d 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts @@ -783,7 +783,7 @@ export class LensAttributes { }; } - getJSON(refresh?: number): TypedLensByValueInput['attributes'] { + getJSON(): TypedLensByValueInput['attributes'] { const uniqueIndexPatternsIds = Array.from( new Set([...this.layerConfigs.map(({ indexPattern }) => indexPattern.id)]) ); @@ -792,7 +792,7 @@ export class LensAttributes { return { title: 'Prefilled from exploratory view app', - description: String(refresh), + description: '', visualizationType: 'lnsXY', references: [ ...uniqueIndexPatternsIds.map((patternId) => ({ diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute.ts b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute.ts index 1a9c87fc826bd..ba4b4a3bce4d9 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute.ts +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute.ts @@ -5,7 +5,7 @@ * 2.0. */ export const sampleAttribute = { - description: 'undefined', + description: '', references: [ { id: 'apm-*', diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute_cwv.ts b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute_cwv.ts index 5f373de200897..f595e7a147812 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute_cwv.ts +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute_cwv.ts @@ -5,7 +5,7 @@ * 2.0. */ export const sampleAttributeCoreWebVital = { - description: 'undefined', + description: '', references: [ { id: 'apm-*', diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute_kpi.ts b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute_kpi.ts index 415b2eb0d4c7a..52ccdc2918e4c 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute_kpi.ts +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/test_data/sample_attribute_kpi.ts @@ -5,7 +5,7 @@ * 2.0. */ export const sampleAttributeKpi = { - description: 'undefined', + description: '', references: [ { id: 'apm-*', diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts index 32d428916501c..29f751258e02d 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts @@ -49,15 +49,30 @@ export function convertToShortUrl(series: SeriesUrl) { }; } +export function createExploratoryViewRoutePath({ + reportType, + allSeries, +}: { + reportType: ReportViewType; + allSeries: AllSeries; +}) { + const allShortSeries: AllShortSeries = allSeries.map((series) => convertToShortUrl(series)); + + return `/exploratory-view/#?reportType=${reportType}&sr=${rison.encode( + allShortSeries as unknown as RisonValue + )}`; +} + export function createExploratoryViewUrl( { reportType, allSeries }: { reportType: ReportViewType; allSeries: AllSeries }, - baseHref = '' + baseHref = '', + appId = 'observability' ) { const allShortSeries: AllShortSeries = allSeries.map((series) => convertToShortUrl(series)); return ( baseHref + - `/app/observability/exploratory-view/#?reportType=${reportType}&sr=${rison.encode( + `/app/${appId}/exploratory-view/#?reportType=${reportType}&sr=${rison.encode( allShortSeries as unknown as RisonValue )}` ); diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/embeddable.tsx b/x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/embeddable.tsx index 8aa76d0e6228a..92ef0834880d5 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/embeddable.tsx +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/embeddable.tsx @@ -12,11 +12,13 @@ import { AllSeries, useTheme } from '../../../..'; import { LayerConfig, LensAttributes } from '../configurations/lens_attributes'; import { AppDataType, ReportViewType } from '../types'; import { getLayerConfigs } from '../hooks/use_lens_attributes'; -import { LensPublicStart, XYState } from '../../../../../../lens/public'; +import { LensEmbeddableInput, LensPublicStart, XYState } from '../../../../../../lens/public'; import { OperationTypeComponent } from '../series_editor/columns/operation_type_select'; import { IndexPatternState } from '../hooks/use_app_index_pattern'; import { ReportConfigMap } from '../contexts/exploratory_view_config'; import { obsvReportConfigMap } from '../obsv_exploratory_view'; +import { ActionTypes, useActions } from './use_actions'; +import { AddToCaseAction } from '../header/add_to_case_action'; export interface ExploratoryEmbeddableProps { reportType: ReportViewType; @@ -28,6 +30,8 @@ export interface ExploratoryEmbeddableProps { legendIsVisible?: boolean; dataTypesIndexPatterns?: Partial>; reportConfigMap?: ReportConfigMap; + withActions?: boolean | ActionTypes[]; + appId?: 'security' | 'observability'; } export interface ExploratoryEmbeddableComponentProps extends ExploratoryEmbeddableProps { @@ -43,17 +47,31 @@ export default function Embeddable({ appendTitle, indexPatterns, lens, + appId, axisTitlesVisibility, legendIsVisible, + withActions = true, reportConfigMap = {}, showCalculationMethod = false, }: ExploratoryEmbeddableComponentProps) { const LensComponent = lens?.EmbeddableComponent; + const LensSaveModalComponent = lens?.SaveModalComponent; + + const [isSaveOpen, setIsSaveOpen] = useState(false); + const [isAddToCaseOpen, setAddToCaseOpen] = useState(false); const series = Object.entries(attributes)[0][1]; const [operationType, setOperationType] = useState(series?.operationType); const theme = useTheme(); + const actions = useActions({ + withActions, + attributes, + reportType, + appId, + setIsSaveOpen, + setAddToCaseOpen, + }); const layerConfigs: LayerConfig[] = getLayerConfigs( attributes, @@ -107,6 +125,24 @@ export default function Embeddable({ timeRange={series?.time} attributes={attributesJSON} onBrushEnd={({ range }) => {}} + withDefaultActions={Boolean(withActions)} + extraActions={actions} + /> + {isSaveOpen && attributesJSON && ( + setIsSaveOpen(false)} + // if we want to do anything after the viz is saved + // right now there is no action, so an empty function + onSave={() => {}} + /> + )} + ); @@ -118,5 +154,23 @@ const Wrapper = styled.div` > :nth-child(2) { height: calc(100% - 32px); } + .embPanel--editing { + border-style: initial !important; + :hover { + box-shadow: none; + } + } + .embPanel__title { + display: none; + } + .embPanel__optionsMenuPopover { + visibility: collapse; + } + + &&&:hover { + .embPanel__optionsMenuPopover { + visibility: visible; + } + } } `; diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/use_actions.ts b/x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/use_actions.ts new file mode 100644 index 0000000000000..5c5c22ddf7c53 --- /dev/null +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/use_actions.ts @@ -0,0 +1,150 @@ +/* + * 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 { useCallback, useEffect, useState } from 'react'; +import { i18n } from '@kbn/i18n'; +import { createExploratoryViewRoutePath, createExploratoryViewUrl } from '../configurations/utils'; +import { ReportViewType } from '../types'; +import { AllSeries } from '../hooks/use_series_storage'; +import { useKibana } from '../../../../../../../../src/plugins/kibana_react/public'; +import { + Action, + ActionExecutionContext, +} from '../../../../../../../../src/plugins/ui_actions/public'; + +export type ActionTypes = 'explore' | 'save' | 'addToCase'; + +export function useActions({ + withActions, + attributes, + reportType, + setIsSaveOpen, + setAddToCaseOpen, + appId = 'observability', +}: { + withActions?: boolean | ActionTypes[]; + reportType: ReportViewType; + attributes: AllSeries; + appId?: 'security' | 'observability'; + setIsSaveOpen: (val: boolean) => void; + setAddToCaseOpen: (val: boolean) => void; +}) { + const [defaultActions, setDefaultActions] = useState(['explore', 'save', 'addToCase']); + + useEffect(() => { + if (withActions === false) { + setDefaultActions([]); + } + if (Array.isArray(withActions)) { + setDefaultActions(withActions); + } + }, [withActions]); + + const { http, application } = useKibana().services; + + const href = createExploratoryViewUrl( + { reportType, allSeries: attributes }, + http?.basePath.get(), + appId + ); + + const routePath = createExploratoryViewRoutePath({ reportType, allSeries: attributes }); + + const exploreCallback = useCallback(() => { + application?.navigateToApp(appId, { path: routePath }); + }, [appId, application, routePath]); + + const saveCallback = useCallback(() => { + setIsSaveOpen(true); + }, [setIsSaveOpen]); + + const addToCaseCallback = useCallback(() => { + setAddToCaseOpen(true); + }, [setAddToCaseOpen]); + + return defaultActions.map((action) => { + if (action === 'save') { + return getSaveAction({ callback: saveCallback }); + } + if (action === 'addToCase') { + return getAddToCaseAction({ callback: addToCaseCallback }); + } + return getExploreAction({ href, callback: exploreCallback }); + }); +} + +const getExploreAction = ({ href, callback }: { href: string; callback: () => void }): Action => { + return { + id: 'expViewExplore', + getDisplayName(context: ActionExecutionContext): string { + return i18n.translate('xpack.observability.expView.explore', { + defaultMessage: 'Explore', + }); + }, + getIconType(context: ActionExecutionContext): string | undefined { + return 'visArea'; + }, + type: 'link', + async isCompatible(context: ActionExecutionContext): Promise { + return true; + }, + async getHref(context: ActionExecutionContext): Promise { + return href; + }, + async execute(context: ActionExecutionContext): Promise { + callback(); + return; + }, + order: 50, + }; +}; + +const getSaveAction = ({ callback }: { callback: () => void }): Action => { + return { + id: 'expViewSave', + getDisplayName(context: ActionExecutionContext): string { + return i18n.translate('xpack.observability.expView.save', { + defaultMessage: 'Save visualization', + }); + }, + getIconType(context: ActionExecutionContext): string | undefined { + return 'save'; + }, + type: 'actionButton', + async isCompatible(context: ActionExecutionContext): Promise { + return true; + }, + async execute(context: ActionExecutionContext): Promise { + callback(); + return; + }, + order: 49, + }; +}; + +const getAddToCaseAction = ({ callback }: { callback: () => void }): Action => { + return { + id: 'expViewAddToCase', + getDisplayName(context: ActionExecutionContext): string { + return i18n.translate('xpack.observability.expView.addToCase', { + defaultMessage: 'Add to case', + }); + }, + getIconType(context: ActionExecutionContext): string | undefined { + return 'link'; + }, + type: 'actionButton', + async isCompatible(context: ActionExecutionContext): Promise { + return true; + }, + async execute(context: ActionExecutionContext): Promise { + callback(); + return; + }, + order: 48, + }; +}; diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/header/add_to_case_action.tsx b/x-pack/plugins/observability/public/components/shared/exploratory_view/header/add_to_case_action.tsx index f1607bc49a384..50f44f2d89b9b 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/header/add_to_case_action.tsx +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/header/add_to_case_action.tsx @@ -7,7 +7,7 @@ import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import React, { useCallback } from 'react'; +import React, { useCallback, useEffect } from 'react'; import { toMountPoint, useKibana } from '../../../../../../../../src/plugins/kibana_react/public'; import { ObservabilityAppServices } from '../../../../application/types'; import { @@ -21,11 +21,20 @@ import { observabilityFeatureId, observabilityAppId } from '../../../../../commo import { parseRelativeDate } from '../components/date_range_picker'; export interface AddToCaseProps { + autoOpen?: boolean; + setAutoOpen?: (val: boolean) => void; timeRange: { from: string; to: string }; + appId?: 'security' | 'observability'; lensAttributes: TypedLensByValueInput['attributes'] | null; } -export function AddToCaseAction({ lensAttributes, timeRange }: AddToCaseProps) { +export function AddToCaseAction({ + lensAttributes, + timeRange, + autoOpen, + setAutoOpen, + appId, +}: AddToCaseProps) { const kServices = useKibana().services; const { @@ -58,6 +67,7 @@ export function AddToCaseAction({ lensAttributes, timeRange }: AddToCaseProps) { from: absoluteFromDate?.toISOString() ?? '', to: absoluteToDate?.toISOString() ?? '', }, + appId, }); const getAllCasesSelectorModalProps: GetAllCasesSelectorModalProps = { @@ -69,22 +79,36 @@ export function AddToCaseAction({ lensAttributes, timeRange }: AddToCaseProps) { }, }; + useEffect(() => { + if (autoOpen) { + setIsCasesOpen(true); + } + }, [autoOpen, setIsCasesOpen]); + + useEffect(() => { + if (!isCasesOpen) { + setAutoOpen?.(false); + } + }, [isCasesOpen, setAutoOpen]); + return ( <> - { - if (lensAttributes) { - setIsCasesOpen(true); - } - }} - > - {i18n.translate('xpack.observability.expView.heading.addToCase', { - defaultMessage: 'Add to case', - })} - + {typeof autoOpen === 'undefined' && ( + { + if (lensAttributes) { + setIsCasesOpen(true); + } + }} + > + {i18n.translate('xpack.observability.expView.heading.addToCase', { + defaultMessage: 'Add to case', + })} + + )} {isCasesOpen && lensAttributes && cases.getAllCasesSelectorModal(getAllCasesSelectorModalProps)} diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_add_to_case.ts b/x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_add_to_case.ts index 1f6620e632eff..2511fe44bfbc3 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_add_to_case.ts +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_add_to_case.ts @@ -41,7 +41,11 @@ export const useAddToCase = ({ lensAttributes, getToastText, timeRange, -}: AddToCaseProps & { getToastText: (thaCase: Case | SubCase) => MountPoint }) => { + appId, +}: AddToCaseProps & { + appId?: 'security' | 'observability'; + getToastText: (thaCase: Case | SubCase) => MountPoint; +}) => { const [isSaving, setIsSaving] = useState(false); const [isCasesOpen, setIsCasesOpen] = useState(false); @@ -87,13 +91,13 @@ export const useAddToCase = ({ } ); } else { - navigateToApp(observabilityFeatureId, { + navigateToApp(appId || observabilityFeatureId, { deepLinkId: CasesDeepLinkId.casesCreate, openInNewTab: true, }); } }, - [getToastText, http, lensAttributes, navigateToApp, timeRange, toasts] + [appId, getToastText, http, lensAttributes, navigateToApp, timeRange, toasts] ); return { diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_lens_attributes.ts b/x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_lens_attributes.ts index cc258af65973e..aa507ded8e20a 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_lens_attributes.ts +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_lens_attributes.ts @@ -118,7 +118,7 @@ export const useLensAttributes = (): TypedLensByValueInput['attributes'] | null const lensAttributes = new LensAttributes(layerConfigs); - return lensAttributes.getJSON(lastRefresh); + return lensAttributes.getJSON(); // we also want to check the state on allSeries changes // eslint-disable-next-line react-hooks/exhaustive-deps }, [indexPatterns, reportType, storage, theme, lastRefresh, allSeries]); diff --git a/x-pack/plugins/observability/public/components/shared/exploratory_view/lens_embeddable.tsx b/x-pack/plugins/observability/public/components/shared/exploratory_view/lens_embeddable.tsx index f7f63097e2926..d5cd5379daca0 100644 --- a/x-pack/plugins/observability/public/components/shared/exploratory_view/lens_embeddable.tsx +++ b/x-pack/plugins/observability/public/components/shared/exploratory_view/lens_embeddable.tsx @@ -6,9 +6,9 @@ */ import { i18n } from '@kbn/i18n'; -import React, { Dispatch, SetStateAction, useCallback } from 'react'; +import React, { Dispatch, SetStateAction, useCallback, useState } from 'react'; import styled from 'styled-components'; -import { TypedLensByValueInput } from '../../../../../lens/public'; +import { LensEmbeddableInput, TypedLensByValueInput } from '../../../../../lens/public'; import { useUiTracker } from '../../../hooks/use_track_metric'; import { useSeriesStorage } from './hooks/use_series_storage'; import { ObservabilityPublicPluginsStart } from '../../../plugin'; @@ -30,9 +30,12 @@ export function LensEmbeddable(props: Props) { } = useKibana(); const LensComponent = lens?.EmbeddableComponent; + const LensSaveModalComponent = lens?.SaveModalComponent; const { firstSeries, setSeries, reportType, lastRefresh } = useSeriesStorage(); + const [isSaveOpen, setIsSaveOpen] = useState(false); + const firstSeriesId = 0; const timeRange = useExpViewTimeRange(); @@ -90,6 +93,15 @@ export function LensEmbeddable(props: Props) { onLoad={onLensLoad} onBrushEnd={onBrushEnd} /> + {isSaveOpen && lensAttributes && ( + setIsSaveOpen(false)} + // if we want to do anything after the viz is saved + // right now there is no action, so an empty function + onSave={() => {}} + /> + )} ); } @@ -97,6 +109,26 @@ export function LensEmbeddable(props: Props) { const LensWrapper = styled.div` height: 100%; + .embPanel__optionsMenuPopover { + visibility: collapse; + } + + &&&:hover { + .embPanel__optionsMenuPopover { + visibility: visible; + } + } + + && .embPanel--editing { + border-style: initial !important; + :hover { + box-shadow: none; + } + } + .embPanel__title { + display: none; + } + &&& > div { height: 100%; } diff --git a/x-pack/plugins/uptime/kibana.json b/x-pack/plugins/uptime/kibana.json index 35be0b19d4521..461358c27fe3b 100644 --- a/x-pack/plugins/uptime/kibana.json +++ b/x-pack/plugins/uptime/kibana.json @@ -5,6 +5,7 @@ "optionalPlugins": ["cloud", "data", "fleet", "home", "ml"], "requiredPlugins": [ "alerting", + "cases", "embeddable", "encryptedSavedObjects", "features", diff --git a/x-pack/plugins/uptime/public/apps/plugin.ts b/x-pack/plugins/uptime/public/apps/plugin.ts index dd2287b3b1642..a5e2a85953d65 100644 --- a/x-pack/plugins/uptime/public/apps/plugin.ts +++ b/x-pack/plugins/uptime/public/apps/plugin.ts @@ -48,6 +48,7 @@ import { import { LazySyntheticsCustomAssetsExtension } from '../components/fleet_package/lazy_synthetics_custom_assets_extension'; import { Start as InspectorPluginStart } from '../../../../../src/plugins/inspector/public'; import { UptimeUiConfig } from '../../common/config'; +import { CasesUiStart } from '../../../cases/public'; export interface ClientPluginsSetup { home?: HomePublicPluginSetup; @@ -65,6 +66,7 @@ export interface ClientPluginsStart { observability: ObservabilityPublicStart; share: SharePluginStart; triggersActionsUi: TriggersAndActionsUIPublicPluginStart; + cases: CasesUiStart; } export interface UptimePluginServices extends Partial { diff --git a/x-pack/plugins/uptime/public/apps/uptime_app.tsx b/x-pack/plugins/uptime/public/apps/uptime_app.tsx index 703b9a3d6123b..5df0d1a00f905 100644 --- a/x-pack/plugins/uptime/public/apps/uptime_app.tsx +++ b/x-pack/plugins/uptime/public/apps/uptime_app.tsx @@ -120,6 +120,7 @@ const Application = (props: UptimeAppProps) => { inspector: startPlugins.inspector, triggersActionsUi: startPlugins.triggersActionsUi, observability: startPlugins.observability, + cases: startPlugins.cases, }} > diff --git a/x-pack/plugins/uptime/public/components/synthetics/check_steps/step_field_trend.tsx b/x-pack/plugins/uptime/public/components/synthetics/check_steps/step_field_trend.tsx index 8c270f4bc2199..01e0d8709905c 100644 --- a/x-pack/plugins/uptime/public/components/synthetics/check_steps/step_field_trend.tsx +++ b/x-pack/plugins/uptime/public/components/synthetics/check_steps/step_field_trend.tsx @@ -88,6 +88,7 @@ export function StepFieldTrend({ } : undefined } + withActions={false} /> ); From e45d59481840c384bb1dfe34bc8acc2e5b800deb Mon Sep 17 00:00:00 2001 From: mgiota Date: Fri, 28 Jan 2022 11:50:24 +0100 Subject: [PATCH 42/45] [RAC][Uptime] remove extra dot from the uptime alert connector message (#124000) --- x-pack/plugins/uptime/common/translations.ts | 2 +- .../public/lib/alert_types/monitor_status.test.ts | 2 +- .../uptime/public/state/api/alert_actions.test.ts | 8 ++++---- .../plugins/uptime/server/lib/alerts/status_check.ts | 12 ++++++------ .../plugins/uptime/server/lib/alerts/translations.ts | 4 ++-- .../apps/uptime/simple_down_alert.ts | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/x-pack/plugins/uptime/common/translations.ts b/x-pack/plugins/uptime/common/translations.ts index aa2574c9cbe90..2b95732badafb 100644 --- a/x-pack/plugins/uptime/common/translations.ts +++ b/x-pack/plugins/uptime/common/translations.ts @@ -21,7 +21,7 @@ export const VALUE_MUST_BE_AN_INTEGER = i18n.translate('xpack.uptime.settings.in export const MonitorStatusTranslations = { defaultActionMessage: i18n.translate('xpack.uptime.alerts.monitorStatus.defaultActionMessage', { defaultMessage: - 'Monitor {monitorName} with url {monitorUrl} from {observerLocation} {statusMessage}. The latest error message is {latestErrorMessage}', + 'Monitor {monitorName} with url {monitorUrl} from {observerLocation} {statusMessage} The latest error message is {latestErrorMessage}', values: { monitorName: '{{state.monitorName}}', monitorUrl: '{{{state.monitorUrl}}}', diff --git a/x-pack/plugins/uptime/public/lib/alert_types/monitor_status.test.ts b/x-pack/plugins/uptime/public/lib/alert_types/monitor_status.test.ts index af2fec78098a7..2f67219ac1ae5 100644 --- a/x-pack/plugins/uptime/public/lib/alert_types/monitor_status.test.ts +++ b/x-pack/plugins/uptime/public/lib/alert_types/monitor_status.test.ts @@ -202,7 +202,7 @@ describe('monitor status alert type', () => { }) ).toMatchInlineSnapshot(` Object { - "defaultActionMessage": "Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}}. The latest error message is {{{state.latestErrorMessage}}}", + "defaultActionMessage": "Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}} The latest error message is {{{state.latestErrorMessage}}}", "description": "Alert when a monitor is down or an availability threshold is breached.", "documentationUrl": [Function], "format": [Function], diff --git a/x-pack/plugins/uptime/public/state/api/alert_actions.test.ts b/x-pack/plugins/uptime/public/state/api/alert_actions.test.ts index 8ca934392fd43..16c49d7c3afcb 100644 --- a/x-pack/plugins/uptime/public/state/api/alert_actions.test.ts +++ b/x-pack/plugins/uptime/public/state/api/alert_actions.test.ts @@ -50,7 +50,7 @@ describe('Alert Actions factory', () => { eventAction: 'trigger', severity: 'error', summary: - 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}}. The latest error message is {{{state.latestErrorMessage}}}', + 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}} The latest error message is {{{state.latestErrorMessage}}}', }, id: 'f2a3b195-ed76-499a-805d-82d24d4eeba9', }, @@ -75,7 +75,7 @@ describe('Alert Actions factory', () => { eventAction: 'trigger', severity: 'error', summary: - 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}}. The latest error message is {{{state.latestErrorMessage}}}', + 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}} The latest error message is {{{state.latestErrorMessage}}}', }, }, ]); @@ -93,7 +93,7 @@ describe('Alert Actions factory', () => { eventAction: 'trigger', severity: 'error', summary: - 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}}. The latest error message is {{{state.latestErrorMessage}}}', + 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}} The latest error message is {{{state.latestErrorMessage}}}', }, id: 'f2a3b195-ed76-499a-805d-82d24d4eeba9', }, @@ -118,7 +118,7 @@ describe('Alert Actions factory', () => { eventAction: 'trigger', severity: 'error', summary: - 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}}. The latest error message is {{{state.latestErrorMessage}}}', + 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}} The latest error message is {{{state.latestErrorMessage}}}', }, }, ]); diff --git a/x-pack/plugins/uptime/server/lib/alerts/status_check.ts b/x-pack/plugins/uptime/server/lib/alerts/status_check.ts index f1f5dbe6cad6a..0056a90f22551 100644 --- a/x-pack/plugins/uptime/server/lib/alerts/status_check.ts +++ b/x-pack/plugins/uptime/server/lib/alerts/status_check.ts @@ -177,26 +177,26 @@ export const getStatusMessage = ( ) => { let statusMessage = ''; if (downMonParams?.info) { - statusMessage = `${statusCheckTranslations.downMonitorsLabel( + statusMessage = statusCheckTranslations.downMonitorsLabel( downMonParams.count!, downMonParams.interval!, downMonParams.numTimes - )}.`; + ); } let availabilityMessage = ''; if (availMonInfo) { - availabilityMessage = `${statusCheckTranslations.availabilityBreachLabel( + availabilityMessage = statusCheckTranslations.availabilityBreachLabel( (availMonInfo.availabilityRatio! * 100).toFixed(2), availability?.threshold!, getInterval(availability?.range!, availability?.rangeUnit!) - )}.`; + ); } if (availMonInfo && downMonParams?.info) { - return `${statusCheckTranslations.downMonitorsAndAvailabilityBreachLabel( + return statusCheckTranslations.downMonitorsAndAvailabilityBreachLabel( statusMessage, availabilityMessage - )}`; + ); } return statusMessage + availabilityMessage; }; diff --git a/x-pack/plugins/uptime/server/lib/alerts/translations.ts b/x-pack/plugins/uptime/server/lib/alerts/translations.ts index 1dcadb3db29cb..f80fb7e69e2d3 100644 --- a/x-pack/plugins/uptime/server/lib/alerts/translations.ts +++ b/x-pack/plugins/uptime/server/lib/alerts/translations.ts @@ -331,7 +331,7 @@ export const durationAnomalyTranslations = { export const statusCheckTranslations = { downMonitorsLabel: (count: number, interval: string, numTimes: number) => i18n.translate('xpack.uptime.alerts.monitorStatus.actionVariables.down', { - defaultMessage: `failed {count} times in the last {interval}. Alert when > {numTimes}`, + defaultMessage: `failed {count} times in the last {interval}. Alert when > {numTimes}.`, values: { count, interval, @@ -345,7 +345,7 @@ export const statusCheckTranslations = { ) => i18n.translate('xpack.uptime.alerts.monitorStatus.actionVariables.availabilityMessage', { defaultMessage: - '{interval} availability is {availabilityRatio}%. Alert when < {expectedAvailability}%', + '{interval} availability is {availabilityRatio}%. Alert when < {expectedAvailability}%.', values: { availabilityRatio, expectedAvailability, diff --git a/x-pack/test/functional_with_es_ssl/apps/uptime/simple_down_alert.ts b/x-pack/test/functional_with_es_ssl/apps/uptime/simple_down_alert.ts index af3cc52627970..597b5eb38379d 100644 --- a/x-pack/test/functional_with_es_ssl/apps/uptime/simple_down_alert.ts +++ b/x-pack/test/functional_with_es_ssl/apps/uptime/simple_down_alert.ts @@ -107,7 +107,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { group: 'xpack.uptime.alerts.actionGroups.monitorStatus', params: { message: - 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}}. The latest error message is {{{state.latestErrorMessage}}}', + 'Monitor {{state.monitorName}} with url {{{state.monitorUrl}}} from {{state.observerLocation}} {{{state.statusMessage}}} The latest error message is {{{state.latestErrorMessage}}}', }, id: 'my-slack1', }, From b8e9aa0ce0c150306b1c155d92a234226211c26e Mon Sep 17 00:00:00 2001 From: Giorgos Bamparopoulos Date: Fri, 28 Jan 2022 11:03:03 +0000 Subject: [PATCH 43/45] Update comparison series styles to match the main series (#123858) * Update comparison series styles to match the main series --- .../backend_error_rate_chart.tsx | 16 +++-- .../backend_latency_chart.tsx | 17 +++-- .../backend_throughput_chart.tsx | 17 +++-- .../error_group_list/index.tsx | 10 ++- .../service_inventory/service_list/index.tsx | 68 ++++++++++++------- .../service_list/service_list.test.tsx | 22 ++++-- .../app/service_map/Popover/stats_list.tsx | 33 +++++++-- .../get_columns.tsx | 10 ++- .../get_columns.tsx | 44 ++++++++++-- .../service_overview_throughput_chart.tsx | 18 +++-- .../failed_transaction_rate_chart/index.tsx | 14 ++-- .../charts/helper/get_timeseries_color.ts | 58 ++++++++++++++++ .../shared/charts/latency_chart/index.tsx | 5 +- .../shared/charts/spark_plot/index.tsx | 24 ++----- .../shared/dependencies_table/index.tsx | 25 ++++++- .../get_time_range_comparison.ts | 5 +- .../shared/transactions_table/get_columns.tsx | 28 +++++++- .../apm/public/hooks/use_comparison.ts | 5 +- .../use_transaction_latency_chart_fetcher.ts | 3 - .../selectors/latency_chart_selector.test.ts | 43 ++++++------ .../selectors/latency_chart_selectors.ts | 36 ++++++---- 21 files changed, 356 insertions(+), 145 deletions(-) create mode 100644 x-pack/plugins/apm/public/components/shared/charts/helper/get_timeseries_color.ts diff --git a/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_error_rate_chart.tsx b/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_error_rate_chart.tsx index caad9467bebeb..9fb53ab15d374 100644 --- a/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_error_rate_chart.tsx +++ b/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_error_rate_chart.tsx @@ -12,8 +12,11 @@ import { useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; import { Coordinate, TimeSeries } from '../../../../typings/timeseries'; import { TimeseriesChart } from '../../shared/charts/timeseries_chart'; -import { useTheme } from '../../../hooks/use_theme'; import { useApmParams } from '../../../hooks/use_apm_params'; +import { + ChartType, + getTimeSeriesColor, +} from '../../shared/charts/helper/get_timeseries_color'; function yLabelFormat(y?: number | null) { return asPercent(y || 0, 1); @@ -24,8 +27,6 @@ export function BackendFailedTransactionRateChart({ }: { height: number; }) { - const theme = useTheme(); - const { query: { backendName, kuery, environment, rangeFrom, rangeTo }, } = useApmParams('/backends/overview'); @@ -56,6 +57,9 @@ export function BackendFailedTransactionRateChart({ [backendName, start, end, offset, kuery, environment] ); + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.FAILED_TRANSACTION_RATE + ); const timeseries = useMemo(() => { const specs: Array> = []; @@ -63,7 +67,7 @@ export function BackendFailedTransactionRateChart({ specs.push({ data: data.currentTimeseries, type: 'linemark', - color: theme.eui.euiColorVis7, + color: currentPeriodColor, title: i18n.translate('xpack.apm.backendErrorRateChart.chartTitle', { defaultMessage: 'Failed transaction rate', }), @@ -74,7 +78,7 @@ export function BackendFailedTransactionRateChart({ specs.push({ data: data.comparisonTimeseries, type: 'area', - color: theme.eui.euiColorMediumShade, + color: previousPeriodColor, title: i18n.translate( 'xpack.apm.backendErrorRateChart.previousPeriodLabel', { defaultMessage: 'Previous period' } @@ -83,7 +87,7 @@ export function BackendFailedTransactionRateChart({ } return specs; - }, [data, theme.eui.euiColorVis7, theme.eui.euiColorMediumShade]); + }, [data, currentPeriodColor, previousPeriodColor]); return ( { const specs: Array> = []; @@ -59,7 +64,7 @@ export function BackendLatencyChart({ height }: { height: number }) { specs.push({ data: data.currentTimeseries, type: 'linemark', - color: theme.eui.euiColorVis1, + color: currentPeriodColor, title: i18n.translate('xpack.apm.backendLatencyChart.chartTitle', { defaultMessage: 'Latency', }), @@ -70,7 +75,7 @@ export function BackendLatencyChart({ height }: { height: number }) { specs.push({ data: data.comparisonTimeseries, type: 'area', - color: theme.eui.euiColorMediumShade, + color: previousPeriodColor, title: i18n.translate( 'xpack.apm.backendLatencyChart.previousPeriodLabel', { defaultMessage: 'Previous period' } @@ -79,7 +84,7 @@ export function BackendLatencyChart({ height }: { height: number }) { } return specs; - }, [data, theme.eui.euiColorVis1, theme.eui.euiColorMediumShade]); + }, [data, currentPeriodColor, previousPeriodColor]); const maxY = getMaxY(timeseries); const latencyFormatter = getDurationFormatter(maxY); diff --git a/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_throughput_chart.tsx b/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_throughput_chart.tsx index 2bae8ac54d1b1..c293561f780b1 100644 --- a/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_throughput_chart.tsx +++ b/x-pack/plugins/apm/public/components/app/backend_detail_overview/backend_throughput_chart.tsx @@ -12,12 +12,13 @@ import { useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; import { Coordinate, TimeSeries } from '../../../../typings/timeseries'; import { TimeseriesChart } from '../../shared/charts/timeseries_chart'; -import { useTheme } from '../../../hooks/use_theme'; import { useApmParams } from '../../../hooks/use_apm_params'; +import { + ChartType, + getTimeSeriesColor, +} from '../../shared/charts/helper/get_timeseries_color'; export function BackendThroughputChart({ height }: { height: number }) { - const theme = useTheme(); - const { query: { backendName, rangeFrom, rangeTo, kuery, environment }, } = useApmParams('/backends/overview'); @@ -48,6 +49,10 @@ export function BackendThroughputChart({ height }: { height: number }) { [backendName, start, end, offset, kuery, environment] ); + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.THROUGHPUT + ); + const timeseries = useMemo(() => { const specs: Array> = []; @@ -55,7 +60,7 @@ export function BackendThroughputChart({ height }: { height: number }) { specs.push({ data: data.currentTimeseries, type: 'linemark', - color: theme.eui.euiColorVis0, + color: currentPeriodColor, title: i18n.translate('xpack.apm.backendThroughputChart.chartTitle', { defaultMessage: 'Throughput', }), @@ -66,7 +71,7 @@ export function BackendThroughputChart({ height }: { height: number }) { specs.push({ data: data.comparisonTimeseries, type: 'area', - color: theme.eui.euiColorMediumShade, + color: previousPeriodColor, title: i18n.translate( 'xpack.apm.backendThroughputChart.previousPeriodLabel', { defaultMessage: 'Previous period' } @@ -75,7 +80,7 @@ export function BackendThroughputChart({ height }: { height: number }) { } return specs; - }, [data, theme.eui.euiColorVis0, theme.eui.euiColorMediumShade]); + }, [data, currentPeriodColor, previousPeriodColor]); return ( theme.eui.euiCodeFontFamily}; @@ -203,9 +207,12 @@ function ErrorGroupList({ detailedStatistics?.currentPeriod?.[groupId]?.timeseries; const previousPeriodTimeseries = detailedStatistics?.previousPeriod?.[groupId]?.timeseries; + const { currentPeriodColor, previousPeriodColor } = + getTimeSeriesColor(ChartType.FAILED_TRANSACTION_RATE); + return ( ); }, diff --git a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/index.tsx b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/index.tsx index 4617daac2ddcf..65c007061a824 100644 --- a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/index.tsx +++ b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/index.tsx @@ -42,6 +42,10 @@ import { ITableColumn, ManagedTable } from '../../../shared/managed_table'; import { ServiceLink } from '../../../shared/service_link'; import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip'; import { HealthBadge } from './HealthBadge'; +import { + ChartType, + getTimeSeriesColor, +} from '../../../shared/charts/helper/get_timeseries_color'; type ServiceListAPIResponse = APIReturnType<'GET /internal/apm/services'>; type Items = ServiceListAPIResponse['items']; @@ -77,6 +81,7 @@ export function getServiceColumns({ const { isSmall, isLarge, isXl } = breakpoints; const showWhenSmallOrGreaterThanLarge = isSmall || !isLarge; const showWhenSmallOrGreaterThanXL = isSmall || !isXl; + return [ ...(showHealthStatusColumn ? [ @@ -155,17 +160,23 @@ export function getServiceColumns({ }), sortable: true, dataType: 'number', - render: (_, { serviceName, latency }) => ( - - ), + render: (_, { serviceName, latency }) => { + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.LATENCY_AVG + ); + return ( + + ); + }, align: RIGHT_ALIGNMENT, }, { @@ -175,17 +186,24 @@ export function getServiceColumns({ }), sortable: true, dataType: 'number', - render: (_, { serviceName, throughput }) => ( - - ), + render: (_, { serviceName, throughput }) => { + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.THROUGHPUT + ); + + return ( + + ); + }, align: RIGHT_ALIGNMENT, }, { @@ -197,6 +215,9 @@ export function getServiceColumns({ dataType: 'number', render: (_, { serviceName, transactionErrorRate }) => { const valueLabel = asPercent(transactionErrorRate, 1); + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.FAILED_TRANSACTION_RATE + ); return ( ); }, diff --git a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/service_list.test.tsx b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/service_list.test.tsx index 9a3dbf8e2b9dc..4bcf0e475d85f 100644 --- a/x-pack/plugins/apm/public/components/app/service_inventory/service_list/service_list.test.tsx +++ b/x-pack/plugins/apm/public/components/app/service_inventory/service_list/service_list.test.tsx @@ -12,6 +12,7 @@ import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values import { Breakpoints } from '../../../../hooks/use_breakpoints'; import { getServiceColumns } from './'; import * as stories from './service_list.stories'; +import * as timeSeriesColor from '../../../shared/charts/helper/get_timeseries_color'; const { Example, EmptyState } = composeStories(stories); @@ -42,6 +43,15 @@ const service: any = { }; describe('ServiceList', () => { + beforeAll(() => { + jest.spyOn(timeSeriesColor, 'getTimeSeriesColor').mockImplementation(() => { + return { + currentPeriodColor: 'green', + previousPeriodColor: 'black', + }; + }); + }); + it('renders empty state', async () => { render(); @@ -82,7 +92,8 @@ describe('ServiceList', () => { expect(renderedColumns[3]).toMatchInlineSnapshot(`"request"`); expect(renderedColumns[4]).toMatchInlineSnapshot(` @@ -107,7 +118,8 @@ describe('ServiceList', () => { expect(renderedColumns.length).toEqual(5); expect(renderedColumns[2]).toMatchInlineSnapshot(` @@ -140,7 +152,8 @@ describe('ServiceList', () => { `); expect(renderedColumns[3]).toMatchInlineSnapshot(` @@ -175,7 +188,8 @@ describe('ServiceList', () => { expect(renderedColumns[3]).toMatchInlineSnapshot(`"request"`); expect(renderedColumns[4]).toMatchInlineSnapshot(` diff --git a/x-pack/plugins/apm/public/components/app/service_map/Popover/stats_list.tsx b/x-pack/plugins/apm/public/components/app/service_map/Popover/stats_list.tsx index 1b8e1f64859f4..ec82d2112f0e2 100644 --- a/x-pack/plugins/apm/public/components/app/service_map/Popover/stats_list.tsx +++ b/x-pack/plugins/apm/public/components/app/service_map/Popover/stats_list.tsx @@ -21,7 +21,11 @@ import { } from '../../../../../common/utils/formatters'; import { Coordinate } from '../../../../../typings/timeseries'; import { APIReturnType } from '../../../../services/rest/createCallApmApi'; -import { SparkPlot, Color } from '../../../shared/charts/spark_plot'; +import { SparkPlot } from '../../../shared/charts/spark_plot'; +import { + ChartType, + getTimeSeriesColor, +} from '../../../shared/charts/helper/get_timeseries_color'; type ServiceNodeReturn = APIReturnType<'GET /internal/apm/service-map/service/{serviceName}'>; @@ -58,7 +62,8 @@ interface Item { valueLabel: string | null; timeseries?: Coordinate[]; previousPeriodTimeseries?: Coordinate[]; - color: Color; + color: string; + comparisonSeriesColor: string; } export function StatsList({ data, isLoading }: StatsListProps) { @@ -87,7 +92,9 @@ export function StatsList({ data, isLoading }: StatsListProps) { timeseries: currentPeriod?.transactionStats?.latency?.timeseries, previousPeriodTimeseries: previousPeriod?.transactionStats?.latency?.timeseries, - color: 'euiColorVis1', + color: getTimeSeriesColor(ChartType.LATENCY_AVG).currentPeriodColor, + comparisonSeriesColor: getTimeSeriesColor(ChartType.LATENCY_AVG) + .previousPeriodColor, }, { title: i18n.translate( @@ -102,7 +109,9 @@ export function StatsList({ data, isLoading }: StatsListProps) { timeseries: currentPeriod?.transactionStats?.throughput?.timeseries, previousPeriodTimeseries: previousPeriod?.transactionStats?.throughput?.timeseries, - color: 'euiColorVis0', + color: getTimeSeriesColor(ChartType.THROUGHPUT).currentPeriodColor, + comparisonSeriesColor: getTimeSeriesColor(ChartType.THROUGHPUT) + .previousPeriodColor, }, { title: i18n.translate('xpack.apm.serviceMap.errorRatePopoverStat', { @@ -116,7 +125,11 @@ export function StatsList({ data, isLoading }: StatsListProps) { timeseries: currentPeriod?.failedTransactionsRate?.timeseries, previousPeriodTimeseries: previousPeriod?.failedTransactionsRate?.timeseries, - color: 'euiColorVis7', + color: getTimeSeriesColor(ChartType.FAILED_TRANSACTION_RATE) + .currentPeriodColor, + comparisonSeriesColor: getTimeSeriesColor( + ChartType.FAILED_TRANSACTION_RATE + ).previousPeriodColor, }, { title: i18n.translate('xpack.apm.serviceMap.avgCpuUsagePopoverStat', { @@ -125,7 +138,9 @@ export function StatsList({ data, isLoading }: StatsListProps) { valueLabel: asPercent(currentPeriod?.cpuUsage?.value, 1, ''), timeseries: currentPeriod?.cpuUsage?.timeseries, previousPeriodTimeseries: previousPeriod?.cpuUsage?.timeseries, - color: 'euiColorVis3', + color: getTimeSeriesColor(ChartType.CPU_USAGE).currentPeriodColor, + comparisonSeriesColor: getTimeSeriesColor(ChartType.CPU_USAGE) + .previousPeriodColor, }, { title: i18n.translate( @@ -137,7 +152,9 @@ export function StatsList({ data, isLoading }: StatsListProps) { valueLabel: asPercent(currentPeriod?.memoryUsage?.value, 1, ''), timeseries: currentPeriod?.memoryUsage?.timeseries, previousPeriodTimeseries: previousPeriod?.memoryUsage?.timeseries, - color: 'euiColorVis8', + color: getTimeSeriesColor(ChartType.MEMORY_USAGE).currentPeriodColor, + comparisonSeriesColor: getTimeSeriesColor(ChartType.MEMORY_USAGE) + .previousPeriodColor, }, ], [currentPeriod, previousPeriod] @@ -160,6 +177,7 @@ export function StatsList({ data, isLoading }: StatsListProps) { timeseries, color, previousPeriodTimeseries, + comparisonSeriesColor, }) => { if (!valueLabel) { return null; @@ -184,6 +202,7 @@ export function StatsList({ data, isLoading }: StatsListProps) { color={color} valueLabel={valueLabel} comparisonSeries={previousPeriodTimeseries} + comparisonSeriesColor={comparisonSeriesColor} /> ) : (
{valueLabel}
diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/get_columns.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/get_columns.tsx index fea48dee5d6c0..f379b17ee6b48 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/get_columns.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_errors_table/get_columns.tsx @@ -14,6 +14,10 @@ import { SparkPlot } from '../../../shared/charts/spark_plot'; import { ErrorDetailLink } from '../../../shared/links/apm/error_detail_link'; import { TimestampTooltip } from '../../../shared/timestamp_tooltip'; import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip'; +import { + ChartType, + getTimeSeriesColor, +} from '../../../shared/charts/helper/get_timeseries_color'; type ErrorGroupMainStatistics = APIReturnType<'GET /internal/apm/services/{serviceName}/errors/groups/main_statistics'>; @@ -84,10 +88,13 @@ export function getColumns({ const previousPeriodTimeseries = errorGroupDetailedStatistics?.previousPeriod?.[errorGroupId] ?.timeseries; + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.FAILED_TRANSACTION_RATE + ); return ( ); }, diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx index ae543adf2b852..1950c361fe2de 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_instances_table/get_columns.tsx @@ -31,6 +31,10 @@ import { ListMetric } from '../../../shared/list_metric'; import { getLatencyColumnLabel } from '../../../shared/transactions_table/get_latency_column_label'; import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip'; import { InstanceActionsMenu } from './instance_actions_menu'; +import { + ChartType, + getTimeSeriesColor, +} from '../../../shared/charts/helper/get_timeseries_color'; type ServiceInstanceMainStatistics = APIReturnType<'GET /internal/apm/services/{serviceName}/service_overview_instances/main_statistics'>; @@ -111,15 +115,21 @@ export function getColumns({ detailedStatsData?.currentPeriod?.[serviceNodeName]?.latency; const previousPeriodTimestamp = detailedStatsData?.previousPeriod?.[serviceNodeName]?.latency; + + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.LATENCY_AVG + ); + return ( ); }, @@ -137,16 +147,22 @@ export function getColumns({ detailedStatsData?.currentPeriod?.[serviceNodeName]?.throughput; const previousPeriodTimestamp = detailedStatsData?.previousPeriod?.[serviceNodeName]?.throughput; + + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.THROUGHPUT + ); + return ( ); }, @@ -164,16 +180,22 @@ export function getColumns({ detailedStatsData?.currentPeriod?.[serviceNodeName]?.errorRate; const previousPeriodTimestamp = detailedStatsData?.previousPeriod?.[serviceNodeName]?.errorRate; + + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.FAILED_TRANSACTION_RATE + ); + return ( ); }, @@ -191,16 +213,22 @@ export function getColumns({ detailedStatsData?.currentPeriod?.[serviceNodeName]?.cpuUsage; const previousPeriodTimestamp = detailedStatsData?.previousPeriod?.[serviceNodeName]?.cpuUsage; + + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.CPU_USAGE + ); + return ( ); }, @@ -218,16 +246,22 @@ export function getColumns({ detailedStatsData?.currentPeriod?.[serviceNodeName]?.memoryUsage; const previousPeriodTimestamp = detailedStatsData?.previousPeriod?.[serviceNodeName]?.memoryUsage; + + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.MEMORY_USAGE + ); + return ( ); }, diff --git a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_throughput_chart.tsx b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_throughput_chart.tsx index c3554a68f4f8e..dbbb925fe634b 100644 --- a/x-pack/plugins/apm/public/components/app/service_overview/service_overview_throughput_chart.tsx +++ b/x-pack/plugins/apm/public/components/app/service_overview/service_overview_throughput_chart.tsx @@ -22,13 +22,16 @@ import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_ import { useApmParams } from '../../../hooks/use_apm_params'; import { useFetcher } from '../../../hooks/use_fetcher'; import { usePreferredServiceAnomalyTimeseries } from '../../../hooks/use_preferred_service_anomaly_timeseries'; -import { useTheme } from '../../../hooks/use_theme'; import { useTimeRange } from '../../../hooks/use_time_range'; import { TimeseriesChart } from '../../shared/charts/timeseries_chart'; import { getComparisonChartTheme, getTimeRangeComparison, } from '../../shared/time_comparison/get_time_range_comparison'; +import { + ChartType, + getTimeSeriesColor, +} from '../../shared/charts/helper/get_timeseries_color'; const INITIAL_STATE = { currentPeriod: [], @@ -44,8 +47,6 @@ export function ServiceOverviewThroughputChart({ kuery: string; transactionName?: string; }) { - const theme = useTheme(); - const { urlParams: { comparisonEnabled, comparisonType }, } = useLegacyUrlParams(); @@ -63,7 +64,8 @@ export function ServiceOverviewThroughputChart({ const { start, end } = useTimeRange({ rangeFrom, rangeTo }); const { transactionType, serviceName } = useApmServiceContext(); - const comparisonChartTheme = getComparisonChartTheme(theme); + + const comparisonChartTheme = getComparisonChartTheme(); const { comparisonStart, comparisonEnd } = getTimeRangeComparison({ start, end, @@ -109,11 +111,15 @@ export function ServiceOverviewThroughputChart({ ] ); + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.THROUGHPUT + ); + const timeseries = [ { data: data.currentPeriod, type: 'linemark', - color: theme.eui.euiColorVis0, + color: currentPeriodColor, title: i18n.translate('xpack.apm.serviceOverview.throughtputChartTitle', { defaultMessage: 'Throughput', }), @@ -123,7 +129,7 @@ export function ServiceOverviewThroughputChart({ { data: data.previousPeriod, type: 'area', - color: theme.eui.euiColorMediumShade, + color: previousPeriodColor, title: i18n.translate( 'xpack.apm.serviceOverview.throughtputChart.previousPeriodLabel', { defaultMessage: 'Previous period' } diff --git a/x-pack/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx b/x-pack/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx index 7e3752565af2f..d17de1a4edd1b 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/failed_transaction_rate_chart/index.tsx @@ -13,7 +13,6 @@ import { AlertType } from '../../../../../common/alert_types'; import { APIReturnType } from '../../../../services/rest/createCallApmApi'; import { asPercent } from '../../../../../common/utils/formatters'; import { useFetcher } from '../../../../hooks/use_fetcher'; -import { useTheme } from '../../../../hooks/use_theme'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; import { TimeseriesChart } from '../timeseries_chart'; import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context'; @@ -26,6 +25,7 @@ import { useTimeRange } from '../../../../hooks/use_time_range'; import { useEnvironmentsContext } from '../../../../context/environments_context/use_environments_context'; import { ApmMlDetectorType } from '../../../../../common/anomaly_detection/apm_ml_detectors'; import { usePreferredServiceAnomalyTimeseries } from '../../../../hooks/use_preferred_service_anomaly_timeseries'; +import { ChartType, getTimeSeriesColor } from '../helper/get_timeseries_color'; function yLabelFormat(y?: number | null) { return asPercent(y || 0, 1); @@ -56,7 +56,6 @@ export function FailedTransactionRateChart({ showAnnotations = true, kuery, }: Props) { - const theme = useTheme(); const { urlParams: { transactionName, comparisonEnabled, comparisonType }, } = useLegacyUrlParams(); @@ -74,7 +73,8 @@ export function FailedTransactionRateChart({ ); const { serviceName, transactionType, alerts } = useApmServiceContext(); - const comparisonChartThem = getComparisonChartTheme(theme); + + const comparisonChartThem = getComparisonChartTheme(); const { comparisonStart, comparisonEnd } = getTimeRangeComparison({ start, end, @@ -120,11 +120,15 @@ export function FailedTransactionRateChart({ ] ); + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.FAILED_TRANSACTION_RATE + ); + const timeseries = [ { data: data.currentPeriod.timeseries, type: 'linemark', - color: theme.eui.euiColorVis7, + color: currentPeriodColor, title: i18n.translate('xpack.apm.errorRate.chart.errorRate', { defaultMessage: 'Failed transaction rate (avg.)', }), @@ -134,7 +138,7 @@ export function FailedTransactionRateChart({ { data: data.previousPeriod.timeseries, type: 'area', - color: theme.eui.euiColorMediumShade, + color: previousPeriodColor, title: i18n.translate( 'xpack.apm.errorRate.chart.errorRate.previousPeriodLabel', { defaultMessage: 'Previous period' } diff --git a/x-pack/plugins/apm/public/components/shared/charts/helper/get_timeseries_color.ts b/x-pack/plugins/apm/public/components/shared/charts/helper/get_timeseries_color.ts new file mode 100644 index 0000000000000..5098839330c95 --- /dev/null +++ b/x-pack/plugins/apm/public/components/shared/charts/helper/get_timeseries_color.ts @@ -0,0 +1,58 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { euiPaletteColorBlind } from '@elastic/eui'; + +export const enum ChartType { + LATENCY_AVG, + LATENCY_P95, + LATENCY_P99, + THROUGHPUT, + FAILED_TRANSACTION_RATE, + CPU_USAGE, + MEMORY_USAGE, +} + +const palette = euiPaletteColorBlind({ rotations: 2 }); + +const timeSeriesColorMap: Record< + ChartType, + { currentPeriodColor: string; previousPeriodColor: string } +> = { + [ChartType.LATENCY_AVG]: { + currentPeriodColor: palette[1], + previousPeriodColor: palette[11], + }, + [ChartType.LATENCY_P95]: { + currentPeriodColor: palette[5], + previousPeriodColor: palette[15], + }, + [ChartType.LATENCY_P99]: { + currentPeriodColor: palette[7], + previousPeriodColor: palette[17], + }, + [ChartType.THROUGHPUT]: { + currentPeriodColor: palette[0], + previousPeriodColor: palette[10], + }, + [ChartType.FAILED_TRANSACTION_RATE]: { + currentPeriodColor: palette[7], + previousPeriodColor: palette[17], + }, + [ChartType.CPU_USAGE]: { + currentPeriodColor: palette[3], + previousPeriodColor: palette[13], + }, + [ChartType.MEMORY_USAGE]: { + currentPeriodColor: palette[8], + previousPeriodColor: palette[18], + }, +}; + +export function getTimeSeriesColor(chartType: ChartType) { + return timeSeriesColorMap[chartType]; +} diff --git a/x-pack/plugins/apm/public/components/shared/charts/latency_chart/index.tsx b/x-pack/plugins/apm/public/components/shared/charts/latency_chart/index.tsx index d654cb9c0f5d3..6991a7aa7e200 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/latency_chart/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/latency_chart/index.tsx @@ -16,7 +16,6 @@ import { LatencyAggregationType } from '../../../../../common/latency_aggregatio import { getDurationFormatter } from '../../../../../common/utils/formatters'; import { useLicenseContext } from '../../../../context/license/use_license_context'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; -import { useTheme } from '../../../../hooks/use_theme'; import { useTransactionLatencyChartsFetcher } from '../../../../hooks/use_transaction_latency_chart_fetcher'; import { TimeseriesChart } from '../../../shared/charts/timeseries_chart'; import { @@ -47,8 +46,8 @@ function filterNil(value: T | null | undefined): value is T { export function LatencyChart({ height, kuery }: Props) { const history = useHistory(); - const theme = useTheme(); - const comparisonChartTheme = getComparisonChartTheme(theme); + + const comparisonChartTheme = getComparisonChartTheme(); const { urlParams } = useLegacyUrlParams(); const { latencyAggregationType, comparisonEnabled } = urlParams; const license = useLicenseContext(); 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 0843fafe0f92f..325eb3d12f899 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 @@ -22,18 +22,6 @@ import { useTheme } from '../../../../hooks/use_theme'; import { unit } from '../../../../utils/style'; import { getComparisonChartTheme } from '../../time_comparison/get_time_range_comparison'; -export type Color = - | 'euiColorVis0' - | 'euiColorVis1' - | 'euiColorVis2' - | 'euiColorVis3' - | 'euiColorVis4' - | 'euiColorVis5' - | 'euiColorVis6' - | 'euiColorVis7' - | 'euiColorVis8' - | 'euiColorVis9'; - function hasValidTimeseries( series?: Coordinate[] | null ): series is Coordinate[] { @@ -48,16 +36,18 @@ export function SparkPlot({ comparisonSeries = [], valueLabel, compact, + comparisonSeriesColor, }: { - color: Color; + color: string; series?: Coordinate[] | null; valueLabel: React.ReactNode; compact?: boolean; comparisonSeries?: Coordinate[]; + comparisonSeriesColor: string; }) { const theme = useTheme(); const defaultChartTheme = useChartTheme(); - const comparisonChartTheme = getComparisonChartTheme(theme); + const comparisonChartTheme = getComparisonChartTheme(); const hasComparisonSeries = !!comparisonSeries?.length; const sparkplotChartTheme: PartialTheme = { @@ -71,8 +61,6 @@ export function SparkPlot({ ...(hasComparisonSeries ? comparisonChartTheme : {}), }; - const colorValue = theme.eui[color]; - const chartSize = { height: theme.eui.euiSizeL, width: compact ? unit * 4 : unit * 5, @@ -106,7 +94,7 @@ export function SparkPlot({ xAccessor={'x'} yAccessors={['y']} data={series} - color={colorValue} + color={color} curve={CurveType.CURVE_MONOTONE_X} /> {hasComparisonSeries && ( @@ -117,7 +105,7 @@ export function SparkPlot({ xAccessor={'x'} yAccessors={['y']} data={comparisonSeries} - color={theme.eui.euiColorLightestShade} + color={comparisonSeriesColor} curve={CurveType.CURVE_MONOTONE_X} /> )} diff --git a/x-pack/plugins/apm/public/components/shared/dependencies_table/index.tsx b/x-pack/plugins/apm/public/components/shared/dependencies_table/index.tsx index 844957defe67d..34feb0802a5c6 100644 --- a/x-pack/plugins/apm/public/components/shared/dependencies_table/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/dependencies_table/index.tsx @@ -27,6 +27,10 @@ import { ListMetric } from '../list_metric'; import { ITableColumn, ManagedTable } from '../managed_table'; import { OverviewTableContainer } from '../overview_table_container'; import { TruncateWithTooltip } from '../truncate_with_tooltip'; +import { + ChartType, + getTimeSeriesColor, +} from '../charts/helper/get_timeseries_color'; export type DependenciesItem = Omit< ConnectionStatsItemWithComparisonData, @@ -82,14 +86,19 @@ export function DependenciesTable(props: Props) { }), align: RIGHT_ALIGNMENT, render: (_, { currentStats, previousStats }) => { + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.LATENCY_AVG + ); + return ( ); }, @@ -102,14 +111,19 @@ export function DependenciesTable(props: Props) { }), align: RIGHT_ALIGNMENT, render: (_, { currentStats, previousStats }) => { + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.THROUGHPUT + ); + return ( ); }, @@ -122,14 +136,19 @@ export function DependenciesTable(props: Props) { }), align: RIGHT_ALIGNMENT, render: (_, { currentStats, previousStats }) => { + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.FAILED_TRANSACTION_RATE + ); + return ( ); }, diff --git a/x-pack/plugins/apm/public/components/shared/time_comparison/get_time_range_comparison.ts b/x-pack/plugins/apm/public/components/shared/time_comparison/get_time_range_comparison.ts index 97c38040c5d96..92611d88aa0cc 100644 --- a/x-pack/plugins/apm/public/components/shared/time_comparison/get_time_range_comparison.ts +++ b/x-pack/plugins/apm/public/components/shared/time_comparison/get_time_range_comparison.ts @@ -7,23 +7,20 @@ import { PartialTheme } from '@elastic/charts'; import moment from 'moment'; -import { EuiTheme } from 'src/plugins/kibana_react/common'; import { TimeRangeComparisonType, TimeRangeComparisonEnum, } from '../../../../common/runtime_types/comparison_type_rt'; import { getDateDifference } from '../../../../common/utils/formatters'; -export function getComparisonChartTheme(theme: EuiTheme): PartialTheme { +export function getComparisonChartTheme(): PartialTheme { return { areaSeriesStyle: { area: { - fill: theme.eui.euiColorLightShade, visible: true, opacity: 0.5, }, line: { - stroke: theme.eui.euiColorMediumShade, strokeWidth: 1, visible: true, }, diff --git a/x-pack/plugins/apm/public/components/shared/transactions_table/get_columns.tsx b/x-pack/plugins/apm/public/components/shared/transactions_table/get_columns.tsx index 49d5e95344ea4..fcf98795b3709 100644 --- a/x-pack/plugins/apm/public/components/shared/transactions_table/get_columns.tsx +++ b/x-pack/plugins/apm/public/components/shared/transactions_table/get_columns.tsx @@ -23,6 +23,10 @@ import { ListMetric } from '../list_metric'; import { ITableColumn } from '../managed_table'; import { TruncateWithTooltip } from '../truncate_with_tooltip'; import { getLatencyColumnLabel } from './get_latency_column_label'; +import { + ChartType, + getTimeSeriesColor, +} from '../charts/helper/get_timeseries_color'; type TransactionGroupMainStatistics = APIReturnType<'GET /internal/apm/services/{serviceName}/transactions/groups/main_statistics'>; @@ -86,9 +90,14 @@ export function getColumns({ transactionGroupDetailedStatistics?.currentPeriod?.[name]?.latency; const previousTimeseries = transactionGroupDetailedStatistics?.previousPeriod?.[name]?.latency; + + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.LATENCY_AVG + ); + return ( ); }, @@ -114,9 +124,14 @@ export function getColumns({ const previousTimeseries = transactionGroupDetailedStatistics?.previousPeriod?.[name] ?.throughput; + + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.THROUGHPUT + ); + return ( ); }, @@ -141,9 +157,14 @@ export function getColumns({ transactionGroupDetailedStatistics?.currentPeriod?.[name]?.errorRate; const previousTimeseries = transactionGroupDetailedStatistics?.previousPeriod?.[name]?.errorRate; + + const { currentPeriodColor, previousPeriodColor } = getTimeSeriesColor( + ChartType.FAILED_TRANSACTION_RATE + ); + return ( ); }, diff --git a/x-pack/plugins/apm/public/hooks/use_comparison.ts b/x-pack/plugins/apm/public/hooks/use_comparison.ts index dbd37c25784cf..93d0e31969c50 100644 --- a/x-pack/plugins/apm/public/hooks/use_comparison.ts +++ b/x-pack/plugins/apm/public/hooks/use_comparison.ts @@ -11,13 +11,10 @@ import { } from '../components/shared/time_comparison/get_time_range_comparison'; import { useLegacyUrlParams } from '../context/url_params_context/use_url_params'; import { useApmParams } from './use_apm_params'; -import { useTheme } from './use_theme'; import { useTimeRange } from './use_time_range'; export function useComparison() { - const theme = useTheme(); - - const comparisonChartTheme = getComparisonChartTheme(theme); + const comparisonChartTheme = getComparisonChartTheme(); const { query } = useApmParams('/*'); if (!('rangeFrom' in query && 'rangeTo' in query)) { diff --git a/x-pack/plugins/apm/public/hooks/use_transaction_latency_chart_fetcher.ts b/x-pack/plugins/apm/public/hooks/use_transaction_latency_chart_fetcher.ts index 1ce5f0a4fa4e3..33bb9095665d8 100644 --- a/x-pack/plugins/apm/public/hooks/use_transaction_latency_chart_fetcher.ts +++ b/x-pack/plugins/apm/public/hooks/use_transaction_latency_chart_fetcher.ts @@ -10,7 +10,6 @@ import { useFetcher } from './use_fetcher'; import { useLegacyUrlParams } from '../context/url_params_context/use_url_params'; import { useApmServiceContext } from '../context/apm_service/use_apm_service_context'; import { getLatencyChartSelector } from '../selectors/latency_chart_selectors'; -import { useTheme } from './use_theme'; import { getTimeRangeComparison } from '../components/shared/time_comparison/get_time_range_comparison'; import { useTimeRange } from './use_time_range'; import { useApmParams } from './use_apm_params'; @@ -23,7 +22,6 @@ export function useTransactionLatencyChartsFetcher({ environment: string; }) { const { transactionType, serviceName } = useApmServiceContext(); - const theme = useTheme(); const { urlParams: { transactionName, @@ -94,7 +92,6 @@ export function useTransactionLatencyChartsFetcher({ () => getLatencyChartSelector({ latencyChart: data, - theme, latencyAggregationType, }), // It should only update when the data has changed diff --git a/x-pack/plugins/apm/public/selectors/latency_chart_selector.test.ts b/x-pack/plugins/apm/public/selectors/latency_chart_selector.test.ts index 8be5fc8957431..b37bb9a48d3ea 100644 --- a/x-pack/plugins/apm/public/selectors/latency_chart_selector.test.ts +++ b/x-pack/plugins/apm/public/selectors/latency_chart_selector.test.ts @@ -5,22 +5,12 @@ * 2.0. */ -import { EuiTheme } from '../../../../../src/plugins/kibana_react/common'; import { LatencyAggregationType } from '../../common/latency_aggregation_types'; import { getLatencyChartSelector, LatencyChartsResponse, } from './latency_chart_selectors'; - -const theme = { - eui: { - euiColorVis1: 'blue', - euiColorVis5: 'red', - euiColorVis7: 'black', - euiColorVis9: 'yellow', - euiColorMediumShade: 'green', - }, -} as EuiTheme; +import * as timeSeriesColor from '../components/shared/charts/helper/get_timeseries_color'; const latencyChartData = { currentPeriod: { @@ -34,9 +24,18 @@ const latencyChartData = { } as LatencyChartsResponse; describe('getLatencyChartSelector', () => { + beforeAll(() => { + jest.spyOn(timeSeriesColor, 'getTimeSeriesColor').mockImplementation(() => { + return { + currentPeriodColor: 'green', + previousPeriodColor: 'black', + }; + }); + }); + describe('without anomaly', () => { it('returns default values when data is undefined', () => { - const latencyChart = getLatencyChartSelector({ theme }); + const latencyChart = getLatencyChartSelector({}); expect(latencyChart).toEqual({ currentPeriod: undefined, previousPeriod: undefined, @@ -46,7 +45,6 @@ describe('getLatencyChartSelector', () => { it('returns average timeseries', () => { const latencyTimeseries = getLatencyChartSelector({ latencyChart: latencyChartData, - theme, latencyAggregationType: LatencyAggregationType.avg, }); expect(latencyTimeseries).toEqual({ @@ -55,11 +53,11 @@ describe('getLatencyChartSelector', () => { data: [{ x: 1, y: 10 }], legendValue: '1 μs', type: 'linemark', - color: 'blue', + color: 'green', }, previousPeriod: { - color: 'green', + color: 'black', data: [{ x: 1, y: 10 }], type: 'area', title: 'Previous period', @@ -70,7 +68,6 @@ describe('getLatencyChartSelector', () => { it('returns 95th percentile timeseries', () => { const latencyTimeseries = getLatencyChartSelector({ latencyChart: latencyChartData, - theme, latencyAggregationType: LatencyAggregationType.p95, }); expect(latencyTimeseries).toEqual({ @@ -79,12 +76,12 @@ describe('getLatencyChartSelector', () => { titleShort: '95th', data: [{ x: 1, y: 10 }], type: 'linemark', - color: 'red', + color: 'green', }, previousPeriod: { data: [{ x: 1, y: 10 }], type: 'area', - color: 'green', + color: 'black', title: 'Previous period', }, }); @@ -93,7 +90,6 @@ describe('getLatencyChartSelector', () => { it('returns 99th percentile timeseries', () => { const latencyTimeseries = getLatencyChartSelector({ latencyChart: latencyChartData, - theme, latencyAggregationType: LatencyAggregationType.p99, }); @@ -103,12 +99,12 @@ describe('getLatencyChartSelector', () => { titleShort: '99th', data: [{ x: 1, y: 10 }], type: 'linemark', - color: 'black', + color: 'green', }, previousPeriod: { data: [{ x: 1, y: 10 }], type: 'area', - color: 'green', + color: 'black', title: 'Previous period', }, }); @@ -119,7 +115,6 @@ describe('getLatencyChartSelector', () => { it('returns latency time series and anomaly timeseries', () => { const latencyTimeseries = getLatencyChartSelector({ latencyChart: latencyChartData, - theme, latencyAggregationType: LatencyAggregationType.p99, }); expect(latencyTimeseries).toEqual({ @@ -128,12 +123,12 @@ describe('getLatencyChartSelector', () => { titleShort: '99th', data: [{ x: 1, y: 10 }], type: 'linemark', - color: 'black', + color: 'green', }, previousPeriod: { data: [{ x: 1, y: 10 }], type: 'area', - color: 'green', + color: 'black', title: 'Previous period', }, }); diff --git a/x-pack/plugins/apm/public/selectors/latency_chart_selectors.ts b/x-pack/plugins/apm/public/selectors/latency_chart_selectors.ts index d656352c64f9f..4c58dd13f3dcf 100644 --- a/x-pack/plugins/apm/public/selectors/latency_chart_selectors.ts +++ b/x-pack/plugins/apm/public/selectors/latency_chart_selectors.ts @@ -6,10 +6,13 @@ */ import { i18n } from '@kbn/i18n'; -import { EuiTheme } from '../../../../../src/plugins/kibana_react/common'; import { asDuration } from '../../common/utils/formatters'; import { APMChartSpec, Coordinate } from '../../typings/timeseries'; import { APIReturnType } from '../services/rest/createCallApmApi'; +import { + ChartType, + getTimeSeriesColor, +} from '../components/shared/charts/helper/get_timeseries_color'; export type LatencyChartsResponse = APIReturnType<'GET /internal/apm/services/{serviceName}/transactions/charts/latency'>; @@ -21,11 +24,9 @@ export interface LatencyChartData { export function getLatencyChartSelector({ latencyChart, - theme, latencyAggregationType, }: { latencyChart?: LatencyChartsResponse; - theme: EuiTheme; latencyAggregationType?: string; }): Partial { if ( @@ -37,27 +38,35 @@ export function getLatencyChartSelector({ return { currentPeriod: getLatencyTimeseries({ latencyChart: latencyChart.currentPeriod, - theme, latencyAggregationType, }), previousPeriod: getPreviousPeriodTimeseries({ previousPeriod: latencyChart.previousPeriod, - theme, + latencyAggregationType, }), }; } function getPreviousPeriodTimeseries({ previousPeriod, - theme, + latencyAggregationType, }: { previousPeriod: LatencyChartsResponse['previousPeriod']; - theme: EuiTheme; + latencyAggregationType: string; }) { + let chartType = ChartType.LATENCY_AVG; + if (latencyAggregationType === 'p95') { + chartType = ChartType.LATENCY_P95; + } else if (latencyAggregationType === 'p99') { + chartType = ChartType.LATENCY_P99; + } + + const { previousPeriodColor } = getTimeSeriesColor(chartType); + return { data: previousPeriod.latencyTimeseries ?? [], type: 'area', - color: theme.eui.euiColorMediumShade, + color: previousPeriodColor, title: i18n.translate( 'xpack.apm.serviceOverview.latencyChartTitle.previousPeriodLabel', { defaultMessage: 'Previous period' } @@ -67,11 +76,9 @@ function getPreviousPeriodTimeseries({ function getLatencyTimeseries({ latencyChart, - theme, latencyAggregationType, }: { latencyChart: LatencyChartsResponse['currentPeriod']; - theme: EuiTheme; latencyAggregationType: string; }) { const { overallAvgDuration } = latencyChart; @@ -79,6 +86,7 @@ function getLatencyTimeseries({ switch (latencyAggregationType) { case 'avg': { + const { currentPeriodColor } = getTimeSeriesColor(ChartType.LATENCY_AVG); return { title: i18n.translate( 'xpack.apm.transactions.latency.chart.averageLabel', @@ -87,10 +95,11 @@ function getLatencyTimeseries({ data: latencyTimeseries, legendValue: asDuration(overallAvgDuration), type: 'linemark', - color: theme.eui.euiColorVis1, + color: currentPeriodColor, }; } case 'p95': { + const { currentPeriodColor } = getTimeSeriesColor(ChartType.LATENCY_P95); return { title: i18n.translate( 'xpack.apm.transactions.latency.chart.95thPercentileLabel', @@ -99,10 +108,11 @@ function getLatencyTimeseries({ titleShort: '95th', data: latencyTimeseries, type: 'linemark', - color: theme.eui.euiColorVis5, + color: currentPeriodColor, }; } case 'p99': { + const { currentPeriodColor } = getTimeSeriesColor(ChartType.LATENCY_P99); return { title: i18n.translate( 'xpack.apm.transactions.latency.chart.99thPercentileLabel', @@ -111,7 +121,7 @@ function getLatencyTimeseries({ titleShort: '99th', data: latencyTimeseries, type: 'linemark', - color: theme.eui.euiColorVis7, + color: currentPeriodColor, }; } } From 957b9dc3cdde1160be666ae66e303694634d1f4c Mon Sep 17 00:00:00 2001 From: Shahzad Date: Fri, 28 Jan 2022 12:15:28 +0100 Subject: [PATCH 44/45] [Uptime] Default alert connectors email settings (#123244) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../translations/translations/ja-JP.json | 1 - .../translations/translations/zh-CN.json | 1 - .../email/email_params.tsx | 81 ++++++----- .../triggers_actions_ui/public/types.ts | 3 + .../common/runtime_types/dynamic_settings.ts | 28 +++- .../journeys/alerts/default_email_settings.ts | 102 ++++++++++++++ .../uptime/e2e/journeys/alerts/index.ts | 1 + x-pack/plugins/uptime/e2e/journeys/utils.ts | 4 + .../plugins/uptime/e2e/page_objects/login.tsx | 4 +- .../uptime/e2e/page_objects/settings.tsx | 41 ++++++ .../plugins/uptime/e2e/page_objects/utils.tsx | 6 + x-pack/plugins/uptime/e2e/playwright_start.ts | 1 + .../monitor_list/columns/enable_alert.tsx | 1 + .../monitor_list_drawer/enabled_alerts.tsx | 5 +- .../settings/add_connector_flyout.tsx | 17 ++- .../settings/alert_defaults_form.tsx | 39 ++++-- .../components/settings/certificate_form.tsx | 8 +- .../components/settings/default_email.tsx | 98 ++++++++++++++ .../components/settings/settings_actions.tsx | 82 ++++++++++++ .../settings/settings_bottom_bar.tsx | 27 ++++ .../components/settings/translations.ts | 6 + .../public/components/settings/types.ts | 4 +- .../settings/use_settings_errors.ts | 126 ++++++++++++++++++ .../public/lib/alert_types/alert_messages.tsx | 37 +++-- .../uptime/public/lib/alert_types/common.ts | 4 + .../uptime/public/lib/helper/rtl_helpers.tsx | 3 + .../plugins/uptime/public/pages/settings.tsx | 126 +++++------------- x-pack/plugins/uptime/public/routes.tsx | 3 + .../uptime/public/state/alerts/alerts.ts | 2 +- .../uptime/public/state/api/alert_actions.ts | 37 ++++- .../plugins/uptime/public/state/api/alerts.ts | 4 + .../public/state/api/dynamic_settings.test.ts | 46 ------- .../server/rest_api/dynamic_settings.ts | 7 + .../server/rest_api/uptime_route_wrapper.ts | 5 +- 34 files changed, 746 insertions(+), 214 deletions(-) create mode 100644 x-pack/plugins/uptime/e2e/journeys/alerts/default_email_settings.ts create mode 100644 x-pack/plugins/uptime/e2e/page_objects/settings.tsx create mode 100644 x-pack/plugins/uptime/public/components/settings/default_email.tsx create mode 100644 x-pack/plugins/uptime/public/components/settings/settings_actions.tsx create mode 100644 x-pack/plugins/uptime/public/components/settings/settings_bottom_bar.tsx create mode 100644 x-pack/plugins/uptime/public/components/settings/use_settings_errors.ts delete mode 100644 x-pack/plugins/uptime/public/state/api/dynamic_settings.test.ts diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index 33d693d3598b2..0c835458580af 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -27232,7 +27232,6 @@ "xpack.uptime.alerts.monitorStatus.timerangeValueField.expression": "within", "xpack.uptime.alerts.monitorStatus.timerangeValueField.value": "最終{value}", "xpack.uptime.alerts.searchPlaceholder.kql": "KQL構文を使用してフィルタリング", - "xpack.uptime.alerts.settings.createConnector": "コネクターを作成", "xpack.uptime.alerts.timerangeUnitSelectable.daysOption.ariaLabel": "「日」の時間範囲選択項目", "xpack.uptime.alerts.timerangeUnitSelectable.hoursOption.ariaLabel": "「時間」の時間範囲選択項目", "xpack.uptime.alerts.timerangeUnitSelectable.minutesOption.ariaLabel": "「分」の時間範囲選択項目", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index 416a2187fac95..8b8be507a8821 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -27702,7 +27702,6 @@ "xpack.uptime.alerts.monitorStatus.timerangeValueField.expression": "之内", "xpack.uptime.alerts.monitorStatus.timerangeValueField.value": "上一 {value}", "xpack.uptime.alerts.searchPlaceholder.kql": "使用 kql 语法筛选", - "xpack.uptime.alerts.settings.createConnector": "创建连接器", "xpack.uptime.alerts.timerangeUnitSelectable.daysOption.ariaLabel": "“天”时间范围选择项", "xpack.uptime.alerts.timerangeUnitSelectable.hoursOption.ariaLabel": "“小时”时间范围选择项", "xpack.uptime.alerts.timerangeUnitSelectable.minutesOption.ariaLabel": "“分钟”时间范围选择项", diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/email/email_params.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/email/email_params.tsx index 1187a736496ed..0f894e011d3ea 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/email/email_params.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/email/email_params.tsx @@ -21,6 +21,9 @@ export const EmailParamsFields = ({ errors, messageVariables, defaultMessage, + isLoading, + isDisabled, + showEmailSubjectAndMessage = true, }: ActionParamsProps) => { const { to, cc, bcc, subject, message } = actionParams; const toOptions = to ? to.map((label: string) => ({ label })) : []; @@ -65,7 +68,7 @@ export const EmailParamsFields = ({ labelAppend={ <> - {!addCC ? ( + {!addCC && (!cc || cc?.length === 0) ? ( setAddCC(true)}> ) : null} - {!addBCC ? ( + {!addBCC && (!bcc || bcc?.length === 0) ? ( setAddBCC(true)}> - {addCC ? ( + {addCC || (cc && cc?.length > 0) ? ( ) : null} - {addBCC ? ( + {addBCC || (bcc && bcc?.length > 0) ? ( ) : null} - - + + + )} + {showEmailSubjectAndMessage && ( + - - + )} ); }; diff --git a/x-pack/plugins/triggers_actions_ui/public/types.ts b/x-pack/plugins/triggers_actions_ui/public/types.ts index f4ff0254ce0ce..c2f6abea68138 100644 --- a/x-pack/plugins/triggers_actions_ui/public/types.ts +++ b/x-pack/plugins/triggers_actions_ui/public/types.ts @@ -106,6 +106,9 @@ export interface ActionParamsProps { messageVariables?: ActionVariable[]; defaultMessage?: string; actionConnector?: ActionConnector; + isLoading?: boolean; + isDisabled?: boolean; + showEmailSubjectAndMessage?: boolean; } export interface Pagination { diff --git a/x-pack/plugins/uptime/common/runtime_types/dynamic_settings.ts b/x-pack/plugins/uptime/common/runtime_types/dynamic_settings.ts index d7d20361bea96..d3f1f1d2886e9 100644 --- a/x-pack/plugins/uptime/common/runtime_types/dynamic_settings.ts +++ b/x-pack/plugins/uptime/common/runtime_types/dynamic_settings.ts @@ -7,12 +7,27 @@ import * as t from 'io-ts'; -export const DynamicSettingsType = t.strict({ - heartbeatIndices: t.string, - certAgeThreshold: t.number, - certExpirationThreshold: t.number, - defaultConnectors: t.array(t.string), -}); +const DefaultEmailType = t.intersection([ + t.type({ + to: t.array(t.string), + }), + t.partial({ + cc: t.array(t.string), + bcc: t.array(t.string), + }), +]); + +export const DynamicSettingsType = t.intersection([ + t.strict({ + heartbeatIndices: t.string, + certAgeThreshold: t.number, + certExpirationThreshold: t.number, + defaultConnectors: t.array(t.string), + }), + t.partial({ + defaultEmail: DefaultEmailType, + }), +]); export const DynamicSettingsSaveType = t.intersection([ t.type({ @@ -24,4 +39,5 @@ export const DynamicSettingsSaveType = t.intersection([ ]); export type DynamicSettings = t.TypeOf; +export type DefaultEmail = t.TypeOf; export type DynamicSettingsSaveResponse = t.TypeOf; diff --git a/x-pack/plugins/uptime/e2e/journeys/alerts/default_email_settings.ts b/x-pack/plugins/uptime/e2e/journeys/alerts/default_email_settings.ts new file mode 100644 index 0000000000000..e518b9be48ac9 --- /dev/null +++ b/x-pack/plugins/uptime/e2e/journeys/alerts/default_email_settings.ts @@ -0,0 +1,102 @@ +/* + * 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. + */ + +/* + * 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 { journey, step, before } from '@elastic/synthetics'; +import { + assertNotText, + assertText, + byTestId, + loginToKibana, + waitForLoadingToFinish, +} from '../utils'; +import { settingsPageProvider } from '../../page_objects/settings'; + +journey('DefaultEmailSettings', async ({ page, params }) => { + const settings = settingsPageProvider({ page, kibanaUrl: params.kibanaUrl }); + + before(async () => { + await waitForLoadingToFinish({ page }); + }); + + const queryParams = new URLSearchParams({ + dateRangeStart: '2021-11-21T22:06:06.502Z', + dateRangeEnd: '2021-11-21T22:10:08.203Z', + }).toString(); + + const baseUrl = `${params.kibanaUrl}/app/uptime/settings`; + + step('Go to uptime', async () => { + await page.goto(`${baseUrl}?${queryParams}`, { + waitUntil: 'networkidle', + }); + await loginToKibana({ page }); + }); + + step('clear existing settings', async () => { + await settings.dismissSyntheticsCallout(); + await page.waitForSelector(byTestId('"default-connectors-input-loaded"')); + await page.waitForTimeout(10 * 1000); + const toEmailInput = await page.$(byTestId('toEmailAddressInput')); + + if (toEmailInput !== null) { + await page.click(`${byTestId('toEmailAddressInput')} >> ${byTestId('comboBoxClearButton')}`); + await page.click( + `${byTestId('"default-connectors-input-loaded"')} >> ${byTestId('comboBoxClearButton')}` + ); + await settings.saveSettings(); + } + }); + + step('Add email connector', async () => { + await page.click(byTestId('createConnectorButton')); + await page.click(byTestId('".email-card"')); + await page.fill(byTestId('nameInput'), 'Test connector'); + await page.fill(byTestId('emailFromInput'), 'test@gmail.com'); + + await page.selectOption(byTestId('emailServiceSelectInput'), 'other'); + await page.fill(byTestId('emailHostInput'), 'test'); + await page.fill(byTestId('emailPortInput'), '1025'); + await page.click('text=Require authentication for this server'); + await page.click(byTestId('saveNewActionButton')); + }); + + step('Select email connector', async () => { + await assertNotText({ page, text: 'Bcc' }); + await page.click(byTestId('default-connectors-input-loaded')); + await page.click(byTestId('"Test connector"')); + + await assertText({ page, text: 'Bcc' }); + + await settings.assertText({ text: 'To email is required for email connector' }); + + await settings.assertApplyDisabled(); + + await settings.fillToEmail('test@gmail.com'); + + await settings.assertApplyEnabled(); + }); + + step('Checks for invalid email', async () => { + await settings.fillToEmail('test@gmail'); + + await settings.assertText({ text: 'test@gmail is not a valid email.' }); + + await settings.assertApplyDisabled(); + await settings.removeInvalidEmail('test@gmail'); + }); + + step('Save settings', async () => { + await settings.saveSettings(); + }); +}); diff --git a/x-pack/plugins/uptime/e2e/journeys/alerts/index.ts b/x-pack/plugins/uptime/e2e/journeys/alerts/index.ts index d8746d715581d..b810603f63397 100644 --- a/x-pack/plugins/uptime/e2e/journeys/alerts/index.ts +++ b/x-pack/plugins/uptime/e2e/journeys/alerts/index.ts @@ -7,3 +7,4 @@ export * from './tls_alert_flyouts_in_alerting_app'; export * from './status_alert_flyouts_in_alerting_app'; +export * from './default_email_settings'; diff --git a/x-pack/plugins/uptime/e2e/journeys/utils.ts b/x-pack/plugins/uptime/e2e/journeys/utils.ts index a1bc7eea29ffe..8dbc2699a438f 100644 --- a/x-pack/plugins/uptime/e2e/journeys/utils.ts +++ b/x-pack/plugins/uptime/e2e/journeys/utils.ts @@ -40,3 +40,7 @@ export const assertText = async ({ page, text }: { page: Page; text: string }) = await page.waitForSelector(`text=${text}`); expect(await page.$(`text=${text}`)).toBeTruthy(); }; + +export const assertNotText = async ({ page, text }: { page: Page; text: string }) => { + expect(await page.$(`text=${text}`)).toBeFalsy(); +}; diff --git a/x-pack/plugins/uptime/e2e/page_objects/login.tsx b/x-pack/plugins/uptime/e2e/page_objects/login.tsx index 79d9af39f1c4f..fa2abc525ee82 100644 --- a/x-pack/plugins/uptime/e2e/page_objects/login.tsx +++ b/x-pack/plugins/uptime/e2e/page_objects/login.tsx @@ -8,12 +8,12 @@ import { Page } from '@elastic/synthetics'; export function loginPageProvider({ page, - isRemote, + isRemote = false, username = 'elastic', password = 'changeme', }: { page: Page; - isRemote: boolean; + isRemote?: boolean; username?: string; password?: string; }) { diff --git a/x-pack/plugins/uptime/e2e/page_objects/settings.tsx b/x-pack/plugins/uptime/e2e/page_objects/settings.tsx new file mode 100644 index 0000000000000..f4b67a846218d --- /dev/null +++ b/x-pack/plugins/uptime/e2e/page_objects/settings.tsx @@ -0,0 +1,41 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { expect, Page } from '@elastic/synthetics'; +import { loginPageProvider } from './login'; +import { utilsPageProvider } from './utils'; +import { byTestId } from '../journeys/utils'; + +export function settingsPageProvider({ page }: { page: Page; kibanaUrl: string }) { + return { + ...loginPageProvider({ page }), + ...utilsPageProvider({ page }), + + async fillToEmail(text: string) { + await page.fill( + '[data-test-subj=toEmailAddressInput] >> [data-test-subj=comboBoxSearchInput]', + text + ); + + await page.click(byTestId('uptimeSettingsPage')); + }, + async saveSettings() { + await page.click(byTestId('apply-settings-button')); + await this.waitForLoadingToFinish(); + await this.assertText({ text: 'Settings saved!' }); + }, + async assertApplyEnabled() { + expect(await page.isEnabled(byTestId('apply-settings-button'))).toBeTruthy(); + }, + async assertApplyDisabled() { + expect(await page.isEnabled(byTestId('apply-settings-button'))).toBeFalsy(); + }, + async removeInvalidEmail(invalidEmail: string) { + await page.click(`[title="Remove ${invalidEmail} from selection in this group"]`); + }, + }; +} diff --git a/x-pack/plugins/uptime/e2e/page_objects/utils.tsx b/x-pack/plugins/uptime/e2e/page_objects/utils.tsx index 08ed473d3c8af..072d4497e856d 100644 --- a/x-pack/plugins/uptime/e2e/page_objects/utils.tsx +++ b/x-pack/plugins/uptime/e2e/page_objects/utils.tsx @@ -19,6 +19,12 @@ export function utilsPageProvider({ page }: { page: Page }) { } }, + async dismissSyntheticsCallout() { + await page.click('[data-test-subj=uptimeDismissSyntheticsCallout]', { + timeout: 60 * 1000, + }); + }, + async assertText({ text }: { text: string }) { await page.waitForSelector(`text=${text}`); expect(await page.$(`text=${text}`)).toBeTruthy(); diff --git a/x-pack/plugins/uptime/e2e/playwright_start.ts b/x-pack/plugins/uptime/e2e/playwright_start.ts index 91af014e07ddf..6f6bcd73e3692 100644 --- a/x-pack/plugins/uptime/e2e/playwright_start.ts +++ b/x-pack/plugins/uptime/e2e/playwright_start.ts @@ -19,6 +19,7 @@ const listOfJourneys = [ 'StepsDuration', 'TlsFlyoutInAlertingApp', 'StatusFlyoutInAlertingApp', + 'DefaultEmailSettings', 'MonitorManagement-http', 'MonitorManagement-tcp', 'MonitorManagement-icmp', diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/enable_alert.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/enable_alert.tsx index 9db6c3b4b0acb..3bc23592c4e64 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/enable_alert.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/columns/enable_alert.tsx @@ -68,6 +68,7 @@ export const EnableMonitorAlert = ({ monitorId, selectedMonitor }: Props) => { defaultActions, monitorId, selectedMonitor, + defaultEmail: settings?.defaultEmail, }) ); setIsLoading(true); diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/enabled_alerts.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/enabled_alerts.tsx index ca36cae058bb0..9a00b1f2b7289 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/enabled_alerts.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/monitor_list_drawer/enabled_alerts.tsx @@ -19,6 +19,7 @@ import { i18n } from '@kbn/i18n'; import styled from 'styled-components'; import { UptimeSettingsContext } from '../../../../contexts'; import { Rule } from '../../../../../../triggers_actions_ui/public'; +import { getUrlForAlert } from '../../../../lib/alert_types/common'; interface Props { monitorAlerts: Rule[]; @@ -41,9 +42,9 @@ export const EnabledAlerts = ({ monitorAlerts, loading }: Props) => { (monitorAlerts ?? []).forEach((alert, ind) => { listItems.push({ - label: alert.name, - href: basePath + '/app/management/insightsAndAlerting/triggersActions/alert/' + alert.id, size: 's', + label: alert.name, + href: getUrlForAlert(alert.id, basePath), 'data-test-subj': 'uptimeMonitorListDrawerAlert' + ind, }); }); diff --git a/x-pack/plugins/uptime/public/components/settings/add_connector_flyout.tsx b/x-pack/plugins/uptime/public/components/settings/add_connector_flyout.tsx index 99f9310129786..d69bcfee7efae 100644 --- a/x-pack/plugins/uptime/public/components/settings/add_connector_flyout.tsx +++ b/x-pack/plugins/uptime/public/components/settings/add_connector_flyout.tsx @@ -19,6 +19,7 @@ import { ActionTypeId } from './types'; interface Props { focusInput: () => void; + isDisabled: boolean; } interface KibanaDeps { @@ -34,16 +35,20 @@ export const ALLOWED_ACTION_TYPES: ActionTypeId[] = [ '.servicenow', '.jira', '.webhook', + '.email', ]; -export const AddConnectorFlyout = ({ focusInput }: Props) => { +export const AddConnectorFlyout = ({ focusInput, isDisabled }: Props) => { const [addFlyoutVisible, setAddFlyoutVisibility] = useState(false); const { services: { + application, triggersActionsUi: { getAddConnectorFlyout }, }, } = useKibana(); + const canEdit: boolean = !!application?.capabilities.actions.save; + const dispatch = useDispatch(); const { data: actionTypes } = useFetcher(() => fetchActionTypes(), []); @@ -67,18 +72,18 @@ export const AddConnectorFlyout = ({ focusInput }: Props) => { return ( <> + {addFlyoutVisible ? ConnectorAddFlyout : null} setAddFlyoutVisibility(true)} + size="s" + isDisabled={isDisabled || !canEdit} > - {addFlyoutVisible ? ConnectorAddFlyout : null} ); }; diff --git a/x-pack/plugins/uptime/public/components/settings/alert_defaults_form.tsx b/x-pack/plugins/uptime/public/components/settings/alert_defaults_form.tsx index 1a0cfdda55d51..5545f555bd81a 100644 --- a/x-pack/plugins/uptime/public/components/settings/alert_defaults_form.tsx +++ b/x-pack/plugins/uptime/public/components/settings/alert_defaults_form.tsx @@ -27,6 +27,7 @@ import { useInitApp } from '../../hooks/use_init_app'; import { useKibana } from '../../../../../../src/plugins/kibana_react/public'; import { TriggersAndActionsUIPublicPluginStart } from '../../../../triggers_actions_ui/public/'; import { ActionTypeId } from './types'; +import { DefaultEmail } from './default_email'; type ConnectorOption = EuiComboBoxOptionOption; @@ -146,7 +147,7 @@ export const AlertDefaultsForm: React.FC = ({ /> } > - = ({ defaultMessage="Default connectors" /> } + labelAppend={ + { + if (inputRef.current) { + inputRef.current.focus(); + } + }, [])} + /> + } > = ({ data-test-subj={`default-connectors-input-${loading ? 'loading' : 'loaded'}`} renderOption={renderOption} /> - - - { - if (inputRef.current) { - inputRef.current.focus(); - } - }, [])} - /> - + + + ); }; + +const RowWrapper = styled(EuiFormRow)` + &&& > .euiFormRow__labelWrapper { + align-items: baseline; + } +`; diff --git a/x-pack/plugins/uptime/public/components/settings/certificate_form.tsx b/x-pack/plugins/uptime/public/components/settings/certificate_form.tsx index ba167290d308e..bfc45838a3f88 100644 --- a/x-pack/plugins/uptime/public/components/settings/certificate_form.tsx +++ b/x-pack/plugins/uptime/public/components/settings/certificate_form.tsx @@ -19,11 +19,15 @@ import { EuiFlexItem, } from '@elastic/eui'; import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../common/constants'; -import { DynamicSettings } from '../../../common/runtime_types'; +import { DefaultEmail, DynamicSettings } from '../../../common/runtime_types'; import { SettingsFormProps } from '../../pages/settings'; import { certificateFormTranslations } from './translations'; -export type OnFieldChangeType = (changedValues: Partial) => void; +export type PartialSettings = Partial> & { + defaultEmail?: Partial; +}; + +export type OnFieldChangeType = (changedValues: PartialSettings) => void; export const CertificateExpirationForm: React.FC = ({ loading, diff --git a/x-pack/plugins/uptime/public/components/settings/default_email.tsx b/x-pack/plugins/uptime/public/components/settings/default_email.tsx new file mode 100644 index 0000000000000..b965d986f5413 --- /dev/null +++ b/x-pack/plugins/uptime/public/components/settings/default_email.tsx @@ -0,0 +1,98 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import React from 'react'; +import { FormattedMessage } from '@kbn/i18n-react'; +import { useSelector } from 'react-redux'; +import { EuiDescribedFormGroup } from '@elastic/eui'; +import { OnFieldChangeType } from './certificate_form'; +import { connectorsSelector } from '../../state/alerts/alerts'; +import { DefaultEmail as DefaultEmailType } from '../../../common/runtime_types'; +import { useKibana } from '../../../../../../src/plugins/kibana_react/public'; +import { UptimePluginServices } from '../../apps/plugin'; +import { SettingsPageFieldErrors } from '../../pages/settings'; + +export function DefaultEmail({ + errors, + value, + isLoading, + isDisabled, + onChange, + connectors, +}: { + errors: SettingsPageFieldErrors['invalidEmail']; + value?: DefaultEmailType; + isLoading: boolean; + isDisabled: boolean; + onChange: OnFieldChangeType; + connectors?: string[]; +}) { + const { actionTypeRegistry } = useKibana().services.triggersActionsUi; + + const { data = [] } = useSelector(connectorsSelector); + + if ( + !data?.find( + (connector) => connectors?.includes(connector.id) && connector.actionTypeId === '.email' + ) + ) { + return null; + } + + const emailActionType = actionTypeRegistry.get('.email'); + const ActionParams = emailActionType.actionParamsFields; + + const onEmailChange = (key: string, val: string[]) => { + onChange({ + defaultEmail: { + ...value, + [key]: val, + }, + }); + }; + + return ( + + + + } + description={ + + } + > + onEmailChange(key, val as string[])} + showEmailSubjectAndMessage={false} + index={1} + isLoading={isLoading} + isDisabled={isDisabled} + /> + + ); +} + +export const validateEmail = (email: string) => { + return String(email) + .toLowerCase() + .match( + /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ + ); +}; diff --git a/x-pack/plugins/uptime/public/components/settings/settings_actions.tsx b/x-pack/plugins/uptime/public/components/settings/settings_actions.tsx new file mode 100644 index 0000000000000..ae57233388427 --- /dev/null +++ b/x-pack/plugins/uptime/public/components/settings/settings_actions.tsx @@ -0,0 +1,82 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import React from 'react'; +import { EuiFlexGroup, EuiFlexItem, EuiButton, EuiButtonEmpty, EuiText } from '@elastic/eui'; +import { FormattedMessage } from '@kbn/i18n-react'; +import { euiStyled } from '../../../../../../src/plugins/kibana_react/common'; +import { SettingsPageFieldErrors } from '../../pages/settings'; + +export interface SettingsActionsProps { + isFormDisabled: boolean; + isFormDirty: boolean; + isFormValid: boolean; + onApply: (event: React.FormEvent) => void; + onCancel: () => void; + errors: SettingsPageFieldErrors | null; +} + +export const SettingsActions = ({ + isFormDisabled, + isFormDirty, + isFormValid, + onApply, + onCancel, + errors, +}: SettingsActionsProps) => { + const { heartbeatIndices, invalidEmail, expirationThresholdError, ageThresholdError } = + errors ?? {}; + + const { to, cc, bcc } = invalidEmail ?? {}; + + return ( + + + + {heartbeatIndices || to || cc || bcc || expirationThresholdError || ageThresholdError} + + + + { + onCancel(); + }} + > + + + + + + + + + + ); +}; + +const WarningText = euiStyled(EuiText)` + box-shadow: -4px 0 ${(props) => props.theme.eui.euiColorWarning}; + padding-left: 8px; +`; diff --git a/x-pack/plugins/uptime/public/components/settings/settings_bottom_bar.tsx b/x-pack/plugins/uptime/public/components/settings/settings_bottom_bar.tsx new file mode 100644 index 0000000000000..b080c3ea89712 --- /dev/null +++ b/x-pack/plugins/uptime/public/components/settings/settings_bottom_bar.tsx @@ -0,0 +1,27 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import React from 'react'; +import { OutPortal, createPortalNode, InPortal } from 'react-reverse-portal'; +import { SettingsActions, SettingsActionsProps } from './settings_actions'; + +export const SettingsBottomBar = () => { + return ( +
+ +
+ ); +}; + +export const SettingsActionBarPortal = (props: SettingsActionsProps) => { + return ( + + + + ); +}; +export const SettingsBarPortalNode = createPortalNode(); diff --git a/x-pack/plugins/uptime/public/components/settings/translations.ts b/x-pack/plugins/uptime/public/components/settings/translations.ts index b283c3ae3215a..1a0692f1f45bf 100644 --- a/x-pack/plugins/uptime/public/components/settings/translations.ts +++ b/x-pack/plugins/uptime/public/components/settings/translations.ts @@ -31,4 +31,10 @@ export const alertFormI18n = { defaultMessage: 'Please select one or more connectors', } ), + emailPlaceHolder: i18n.translate( + 'xpack.uptime.sourceConfiguration.alertDefaultForm.emailConnectorPlaceHolder', + { + defaultMessage: 'To: Email for email connector', + } + ), }; diff --git a/x-pack/plugins/uptime/public/components/settings/types.ts b/x-pack/plugins/uptime/public/components/settings/types.ts index 1456973acb1d2..41c4ae41e38c0 100644 --- a/x-pack/plugins/uptime/public/components/settings/types.ts +++ b/x-pack/plugins/uptime/public/components/settings/types.ts @@ -14,6 +14,7 @@ import { SlackActionTypeId, TeamsActionTypeId, WebhookActionTypeId, + EmailActionTypeId, // eslint-disable-next-line @kbn/eslint/no-restricted-paths } from '../../../../actions/server/builtin_action_types'; @@ -25,4 +26,5 @@ export type ActionTypeId = | typeof TeamsActionTypeId | typeof ServiceNowActionTypeId | typeof JiraActionTypeId - | typeof WebhookActionTypeId; + | typeof WebhookActionTypeId + | typeof EmailActionTypeId; diff --git a/x-pack/plugins/uptime/public/components/settings/use_settings_errors.ts b/x-pack/plugins/uptime/public/components/settings/use_settings_errors.ts new file mode 100644 index 0000000000000..242a3d9a97799 --- /dev/null +++ b/x-pack/plugins/uptime/public/components/settings/use_settings_errors.ts @@ -0,0 +1,126 @@ +/* + * 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 { isEqual } from 'lodash'; +import { useSelector } from 'react-redux'; +import { i18n } from '@kbn/i18n'; +import { BLANK_STR, SPACE_STR } from '../../pages/translations'; +import { isValidCertVal, SettingsPageFieldErrors } from '../../pages/settings'; +import { validateEmail } from './default_email'; +import { selectDynamicSettings } from '../../state/selectors'; +import { PartialSettings } from './certificate_form'; +import { connectorsSelector } from '../../state/alerts/alerts'; + +const hasInvalidEmail = (defaultConnectors?: string[], value?: PartialSettings['defaultEmail']) => { + if (!defaultConnectors || defaultConnectors.length === 0) { + return; + } + if (!value || !value.to) { + return { to: REQUIRED_EMAIL }; + } + + const toError = value.to.length === 0 ? REQUIRED_EMAIL : getInvalidEmailError(value.to); + const ccError = getInvalidEmailError(value.cc); + const bccError = getInvalidEmailError(value.bcc); + + if (toError || ccError || bccError) { + return { + to: toError, + cc: ccError, + bcc: bccError, + }; + } +}; + +const isEmailChanged = ( + prev?: PartialSettings['defaultEmail'], + next?: PartialSettings['defaultEmail'] +) => { + if (!isEqual((prev?.to ?? []).sort(), (next?.to ?? []).sort())) { + return true; + } + if (!isEqual((prev?.cc ?? []).sort(), (next?.cc ?? []).sort())) { + return true; + } + if (!isEqual((prev?.bcc ?? []).sort(), (next?.bcc ?? []).sort())) { + return true; + } +}; + +const isDirtyForm = (formFields: PartialSettings | null, settings?: PartialSettings) => { + return ( + settings?.certAgeThreshold !== formFields?.certAgeThreshold || + settings?.certExpirationThreshold !== formFields?.certExpirationThreshold || + settings?.heartbeatIndices !== formFields?.heartbeatIndices || + isEmailChanged(settings?.defaultEmail, formFields?.defaultEmail) || + JSON.stringify(settings?.defaultConnectors) !== JSON.stringify(formFields?.defaultConnectors) + ); +}; + +export const useSettingsErrors = ( + formFields: PartialSettings | null +): { errors: SettingsPageFieldErrors | null; isFormDirty: boolean } => { + const dss = useSelector(selectDynamicSettings); + + const isFormDirty = isDirtyForm(formFields, dss.settings); + + const { data = [] } = useSelector(connectorsSelector); + + const hasEmailConnector = data?.find( + (connector) => + formFields?.defaultConnectors?.includes(connector.id) && connector.actionTypeId === '.email' + ); + + if (formFields) { + const { certAgeThreshold, certExpirationThreshold, heartbeatIndices } = formFields; + + const indErrorSpace = heartbeatIndices?.includes(' ') ? SPACE_STR : ''; + + const indError = indErrorSpace || (heartbeatIndices?.match(/^\S+$/) ? '' : BLANK_STR); + + const ageError = isValidCertVal(certAgeThreshold); + const expError = isValidCertVal(certExpirationThreshold); + + return { + isFormDirty, + errors: { + heartbeatIndices: indError, + expirationThresholdError: expError, + ageThresholdError: ageError, + invalidEmail: hasEmailConnector + ? hasInvalidEmail(formFields.defaultConnectors, formFields.defaultEmail) + : undefined, + }, + }; + } + + return { isFormDirty, errors: null }; +}; + +const REQUIRED_EMAIL = i18n.translate( + 'xpack.uptime.sourceConfiguration.alertDefaultForm.requiredEmail', + { + defaultMessage: 'To email is required for email connector', + } +); + +const getInvalidEmailError = (value?: string[]) => { + if (!value) { + return; + } + + const inValidEmail = value.find((val) => !validateEmail(val)); + + if (!inValidEmail) { + return; + } + + return i18n.translate('xpack.uptime.sourceConfiguration.alertDefaultForm.invalidEmail', { + defaultMessage: '{val} is not a valid email.', + values: { val: inValidEmail }, + }); +}; diff --git a/x-pack/plugins/uptime/public/lib/alert_types/alert_messages.tsx b/x-pack/plugins/uptime/public/lib/alert_types/alert_messages.tsx index 8e5a3076a154e..3d51051d28fe5 100644 --- a/x-pack/plugins/uptime/public/lib/alert_types/alert_messages.tsx +++ b/x-pack/plugins/uptime/public/lib/alert_types/alert_messages.tsx @@ -10,25 +10,44 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; import type { CoreTheme } from 'kibana/public'; -import { toMountPoint } from '../../../../../../src/plugins/kibana_react/public'; +import { EuiLink, EuiSpacer, EuiText } from '@elastic/eui'; +import { RedirectAppLinks, toMountPoint } from '../../../../../../src/plugins/kibana_react/public'; import { ActionConnector } from '../../state/alerts/alerts'; +import { Alert } from '../../../../alerting/common'; +import { kibanaService } from '../../state/kibana_service'; +import { getUrlForAlert } from './common'; export const simpleAlertEnabled = ( defaultActions: ActionConnector[], - theme$: Observable + theme$: Observable, + alert: Alert ) => { + const alertUrl = getUrlForAlert(alert.id, kibanaService.core.http.basePath.get()); + return { title: i18n.translate('xpack.uptime.overview.alerts.enabled.success', { defaultMessage: 'Rule successfully enabled ', }), text: toMountPoint( - {defaultActions.map(({ name }) => name).join(', ')}, - }} - />, + + + {defaultActions.map(({ name }) => name).join(', ')} + ), + }} + /> + + + + {i18n.translate('xpack.uptime.enableAlert.editAlert', { + defaultMessage: 'Edit alert', + })} + + , { theme$ } ), }; diff --git a/x-pack/plugins/uptime/public/lib/alert_types/common.ts b/x-pack/plugins/uptime/public/lib/alert_types/common.ts index 09b02150957d0..6a45f73357597 100644 --- a/x-pack/plugins/uptime/public/lib/alert_types/common.ts +++ b/x-pack/plugins/uptime/public/lib/alert_types/common.ts @@ -38,3 +38,7 @@ export const getMonitorRouteFromMonitorId = ({ : {}), }, }); + +export const getUrlForAlert = (id: string, basePath: string) => { + return basePath + '/app/management/insightsAndAlerting/triggersActions/alert/' + id; +}; diff --git a/x-pack/plugins/uptime/public/lib/helper/rtl_helpers.tsx b/x-pack/plugins/uptime/public/lib/helper/rtl_helpers.tsx index b0c8f61477d28..799c5350c6451 100644 --- a/x-pack/plugins/uptime/public/lib/helper/rtl_helpers.tsx +++ b/x-pack/plugins/uptime/public/lib/helper/rtl_helpers.tsx @@ -117,6 +117,9 @@ const mockCore: () => Partial = () => { save: true, show: true, }, + actions: { + save: true, + }, }, }, uiSettings: { diff --git a/x-pack/plugins/uptime/public/pages/settings.tsx b/x-pack/plugins/uptime/public/pages/settings.tsx index b9745b9a733b1..3e1c3c911efa1 100644 --- a/x-pack/plugins/uptime/public/pages/settings.tsx +++ b/x-pack/plugins/uptime/public/pages/settings.tsx @@ -5,17 +5,8 @@ * 2.0. */ -import React, { useEffect, useState } from 'react'; -import { - EuiButton, - EuiButtonEmpty, - EuiCallOut, - EuiFlexGroup, - EuiFlexItem, - EuiForm, - EuiSpacer, -} from '@elastic/eui'; -import { FormattedMessage } from '@kbn/i18n-react'; +import React, { useCallback, useEffect, useState } from 'react'; +import { EuiCallOut, EuiFlexGroup, EuiFlexItem, EuiForm, EuiSpacer } from '@elastic/eui'; import { useDispatch, useSelector } from 'react-redux'; import { selectDynamicSettings } from '../state/selectors'; import { getDynamicSettings, setDynamicSettings } from '../state/actions/dynamic_settings'; @@ -26,6 +17,7 @@ import { IndicesForm } from '../components/settings/indices_form'; import { CertificateExpirationForm, OnFieldChangeType, + PartialSettings, } from '../components/settings/certificate_form'; import * as Translations from './translations'; import { @@ -33,12 +25,18 @@ import { VALUE_MUST_BE_AN_INTEGER, } from '../../common/translations'; import { AlertDefaultsForm } from '../components/settings/alert_defaults_form'; -import { BLANK_STR, SPACE_STR } from './translations'; +import { SettingsActionBarPortal } from '../components/settings/settings_bottom_bar'; +import { useSettingsErrors } from '../components/settings/use_settings_errors'; -interface SettingsPageFieldErrors { +export interface SettingsPageFieldErrors { heartbeatIndices: string | ''; expirationThresholdError?: string; ageThresholdError?: string; + invalidEmail?: { + to?: string; + cc?: string; + bcc?: string; + }; } export interface SettingsFormProps { @@ -61,35 +59,6 @@ export const isValidCertVal = (val?: number): string | undefined => { } }; -const getFieldErrors = (formFields: DynamicSettings | null): SettingsPageFieldErrors | null => { - if (formFields) { - const { certAgeThreshold, certExpirationThreshold, heartbeatIndices } = formFields; - - const indErrorSpace = heartbeatIndices.includes(' ') ? SPACE_STR : ''; - - const indError = indErrorSpace || (heartbeatIndices.match(/^\S+$/) ? '' : BLANK_STR); - - const expError = isValidCertVal(certExpirationThreshold); - const ageError = isValidCertVal(certAgeThreshold); - - return { - heartbeatIndices: indError, - expirationThresholdError: expError, - ageThresholdError: ageError, - }; - } - return null; -}; - -const isDirtyForm = (formFields: DynamicSettings | null, settings?: DynamicSettings) => { - return ( - settings?.certAgeThreshold !== formFields?.certAgeThreshold || - settings?.certExpirationThreshold !== formFields?.certExpirationThreshold || - settings?.heartbeatIndices !== formFields?.heartbeatIndices || - JSON.stringify(settings?.defaultConnectors) !== JSON.stringify(formFields?.defaultConnectors) - ); -}; - export const SettingsPage: React.FC = () => { const dss = useSelector(selectDynamicSettings); @@ -101,7 +70,7 @@ export const SettingsPage: React.FC = () => { dispatch(getDynamicSettings()); }, [dispatch]); - const [formFields, setFormFields] = useState( + const [formFields, setFormFields] = useState( dss.settings ? { ...dss.settings } : null ); @@ -109,30 +78,31 @@ export const SettingsPage: React.FC = () => { setFormFields(Object.assign({}, { ...dss.settings })); } - const fieldErrors = getFieldErrors(formFields); + const { errors: fieldErrors, isFormDirty } = useSettingsErrors(formFields); const isFormValid = !(fieldErrors && Object.values(fieldErrors).find((v) => !!v)); - const onChangeFormField: OnFieldChangeType = (changedField) => { - if (formFields) { - setFormFields({ - ...formFields, - ...changedField, - }); - } - }; + const onChangeFormField: OnFieldChangeType = useCallback( + (changedField) => { + if (formFields) { + setFormFields({ + ...formFields, + ...changedField, + }); + } + }, + [formFields] + ); const onApply = (event: React.FormEvent) => { event.preventDefault(); if (formFields) { - dispatch(setDynamicSettings(formFields)); + dispatch(setDynamicSettings(formFields as DynamicSettings)); } }; const resetForm = () => setFormFields(dss.settings ? { ...dss.settings } : null); - const isFormDirty = isDirtyForm(formFields, dss.settings); - const canEdit: boolean = !!useKibana().services?.application?.capabilities.uptime.configureSettings || false; const isFormDisabled = dss.loading || !canEdit; @@ -158,13 +128,13 @@ export const SettingsPage: React.FC = () => { { - - - - - { - resetForm(); - }} - > - - - - - - - - - + ); }; diff --git a/x-pack/plugins/uptime/public/routes.tsx b/x-pack/plugins/uptime/public/routes.tsx index aa7bf22593abe..7c2295e8ab919 100644 --- a/x-pack/plugins/uptime/public/routes.tsx +++ b/x-pack/plugins/uptime/public/routes.tsx @@ -57,6 +57,7 @@ import { apiService } from './state/api/utils'; import { useInspectorContext } from '../../observability/public'; import { UptimeConfig } from '../common/config'; import { AddMonitorBtn } from './components/monitor_management/add_monitor_btn'; +import { SettingsBottomBar } from './components/settings/settings_bottom_bar'; interface PageRouterProps { config: UptimeConfig; @@ -114,6 +115,8 @@ const getRoutes = (config: UptimeConfig): RouteProps[] => { ), }, + bottomBar: , + bottomBarProps: { paddingSize: 'm' as const }, }, { title: i18n.translate('xpack.uptime.certificatesRoute.title', { diff --git a/x-pack/plugins/uptime/public/state/alerts/alerts.ts b/x-pack/plugins/uptime/public/state/alerts/alerts.ts index a86de3ac02b83..c33bb7bde01b8 100644 --- a/x-pack/plugins/uptime/public/state/alerts/alerts.ts +++ b/x-pack/plugins/uptime/public/state/alerts/alerts.ts @@ -151,7 +151,7 @@ export function* fetchAlertsEffect() { yield put(createAlertAction.success(response)); kibanaService.core.notifications.toasts.addSuccess( - simpleAlertEnabled(action.payload.defaultActions, kibanaService.theme) + simpleAlertEnabled(action.payload.defaultActions, kibanaService.theme, response) ); yield put(getMonitorAlertsAction.get()); } catch (err) { diff --git a/x-pack/plugins/uptime/public/state/api/alert_actions.ts b/x-pack/plugins/uptime/public/state/api/alert_actions.ts index af2dbec02ed89..0e29300f02a65 100644 --- a/x-pack/plugins/uptime/public/state/api/alert_actions.ts +++ b/x-pack/plugins/uptime/public/state/api/alert_actions.ts @@ -17,10 +17,12 @@ import { ServiceNowActionParams, JiraActionParams, WebhookActionParams, + EmailActionParams, // eslint-disable-next-line @kbn/eslint/no-restricted-paths } from '../../../../actions/server'; import { ActionTypeId } from '../../components/settings/types'; import { Ping } from '../../../common/runtime_types/ping'; +import { DefaultEmail } from '../../../common/runtime_types'; export const SLACK_ACTION_ID: ActionTypeId = '.slack'; export const PAGER_DUTY_ACTION_ID: ActionTypeId = '.pagerduty'; @@ -30,6 +32,7 @@ export const TEAMS_ACTION_ID: ActionTypeId = '.teams'; export const SERVICE_NOW_ACTION_ID: ActionTypeId = '.servicenow'; export const JIRA_ACTION_ID: ActionTypeId = '.jira'; export const WEBHOOK_ACTION_ID: ActionTypeId = '.webhook'; +export const EMAIL_ACTION_ID: ActionTypeId = '.email'; const { MONITOR_STATUS } = ACTION_GROUP_DEFINITIONS; @@ -45,7 +48,11 @@ const getRecoveryMessage = (selectedMonitor: Ping) => { }); }; -export function populateAlertActions({ defaultActions, selectedMonitor }: NewAlertParams) { +export function populateAlertActions({ + defaultActions, + selectedMonitor, + defaultEmail, +}: NewAlertParams) { const actions: RuleAction[] = []; defaultActions.forEach((aId) => { const action: RuleAction = { @@ -98,6 +105,11 @@ export function populateAlertActions({ defaultActions, selectedMonitor }: NewAle }; actions.push(recoveredAction); break; + case EMAIL_ACTION_ID: + if (defaultEmail) { + action.params = getEmailActionParams(defaultEmail, selectedMonitor); + } + break; default: action.params = { message: MonitorStatusTranslations.defaultActionMessage, @@ -214,3 +226,26 @@ function getJiraActionParams(): JiraActionParams { }, }; } + +function getEmailActionParams( + defaultEmail: DefaultEmail, + selectedMonitor: Ping +): EmailActionParams { + return { + to: defaultEmail.to, + subject: i18n.translate('xpack.uptime.monitor.simpleStatusAlert.email.subject', { + defaultMessage: 'Monitor {monitor} with url {url} is down', + values: { + monitor: selectedMonitor?.monitor?.name || selectedMonitor?.monitor?.id, + url: selectedMonitor?.url?.full, + }, + }), + message: MonitorStatusTranslations.defaultActionMessage, + cc: defaultEmail.cc ?? [], + bcc: defaultEmail.bcc ?? [], + kibanaFooterLink: { + path: '', + text: '', + }, + }; +} diff --git a/x-pack/plugins/uptime/public/state/api/alerts.ts b/x-pack/plugins/uptime/public/state/api/alerts.ts index e175f7ac61bd3..7ddfbb872fb95 100644 --- a/x-pack/plugins/uptime/public/state/api/alerts.ts +++ b/x-pack/plugins/uptime/public/state/api/alerts.ts @@ -17,6 +17,7 @@ import { AtomicStatusCheckParams } from '../../../common/runtime_types/alerts'; import { populateAlertActions, RuleAction } from './alert_actions'; import { Ping } from '../../../common/runtime_types/ping'; +import { DefaultEmail } from '../../../common/runtime_types'; const UPTIME_AUTO_ALERT = 'UPTIME_AUTO'; @@ -44,6 +45,7 @@ export const fetchConnectors = async (): Promise => { export interface NewAlertParams extends AlertTypeParams { selectedMonitor: Ping; defaultActions: ActionConnector[]; + defaultEmail?: DefaultEmail; } type NewMonitorStatusAlert = Omit< @@ -71,10 +73,12 @@ export const createAlert = async ({ defaultActions, monitorId, selectedMonitor, + defaultEmail, }: NewAlertParams): Promise => { const actions: RuleAction[] = populateAlertActions({ defaultActions, selectedMonitor, + defaultEmail, }); const data: NewMonitorStatusAlert = { diff --git a/x-pack/plugins/uptime/public/state/api/dynamic_settings.test.ts b/x-pack/plugins/uptime/public/state/api/dynamic_settings.test.ts deleted file mode 100644 index 46a10144edb08..0000000000000 --- a/x-pack/plugins/uptime/public/state/api/dynamic_settings.test.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 { omit } from 'lodash'; -import { apiService } from './utils'; -import { getDynamicSettings } from './dynamic_settings'; -import { HttpSetup } from 'src/core/public'; -import { DynamicSettings } from '../../../common/runtime_types/dynamic_settings'; - -describe('Dynamic Settings API', () => { - let fetchMock: jest.SpyInstance>; - const defaultResponse: DynamicSettings & { _inspect: never[] } = { - heartbeatIndices: 'heartbeat-8*', - certAgeThreshold: 1, - certExpirationThreshold: 1337, - defaultConnectors: [], - _inspect: [], - }; - - beforeEach(() => { - apiService.http = { - get: jest.fn(), - fetch: jest.fn(), - } as unknown as HttpSetup; - - apiService.addInspectorRequest = jest.fn(); - - fetchMock = jest.spyOn(apiService.http, 'fetch'); - }); - - afterEach(() => { - jest.clearAllMocks(); - }); - - it('omits the _inspect prop on the response as decoding', async () => { - fetchMock.mockReturnValue(new Promise((r) => r(defaultResponse))); - - const resp = await getDynamicSettings(); - - expect(resp).toEqual(omit(defaultResponse, ['_inspect'])); - }); -}); diff --git a/x-pack/plugins/uptime/server/rest_api/dynamic_settings.ts b/x-pack/plugins/uptime/server/rest_api/dynamic_settings.ts index 79fe6f67908a6..e9bcccd8d8464 100644 --- a/x-pack/plugins/uptime/server/rest_api/dynamic_settings.ts +++ b/x-pack/plugins/uptime/server/rest_api/dynamic_settings.ts @@ -55,6 +55,13 @@ export const createPostDynamicSettingsRoute: UMRestApiRouteFactory = (_libs: UMS certAgeThreshold: schema.number(), certExpirationThreshold: schema.number(), defaultConnectors: schema.arrayOf(schema.string()), + defaultEmail: schema.maybe( + schema.object({ + to: schema.arrayOf(schema.string()), + cc: schema.maybe(schema.arrayOf(schema.string())), + bcc: schema.maybe(schema.arrayOf(schema.string())), + }) + ), }), }, writeAccess: true, diff --git a/x-pack/plugins/uptime/server/rest_api/uptime_route_wrapper.ts b/x-pack/plugins/uptime/server/rest_api/uptime_route_wrapper.ts index 4e40ce934a32e..2b96ce369294a 100644 --- a/x-pack/plugins/uptime/server/rest_api/uptime_route_wrapper.ts +++ b/x-pack/plugins/uptime/server/rest_api/uptime_route_wrapper.ts @@ -13,6 +13,7 @@ import { createUptimeESClient, inspectableEsQueriesMap } from '../lib/lib'; import { KibanaResponse } from '../../../../../src/core/server/http/router'; import { enableInspectEsQueries } from '../../../observability/common'; import { syntheticsServiceApiKey } from '../lib/saved_objects/service_api_key'; +import { API_URLS } from '../../common/constants'; export const uptimeRouteWrapper: UMKibanaRouteWrapper = (uptimeRoute, server) => ({ ...uptimeRoute, @@ -62,7 +63,9 @@ export const uptimeRouteWrapper: UMKibanaRouteWrapper = (uptimeRoute, server) => return response.ok({ body: { ...res, - ...(isInspectorEnabled ? { _inspect: inspectableEsQueriesMap.get(request) } : {}), + ...(isInspectorEnabled && uptimeRoute.path !== API_URLS.DYNAMIC_SETTINGS + ? { _inspect: inspectableEsQueriesMap.get(request) } + : {}), }, }); }, From 0ee514b1fe044cdaca253f8f14988fc17635fed3 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Fri, 28 Jan 2022 12:18:40 +0100 Subject: [PATCH 45/45] [Reporting] Logging improvements while generating reports (#123802) * extract message from error objects * only warn for 400 and up status codes * Simplify for loop per dokmic's suggestion Co-authored-by: Michael Dokolin * formatting Co-authored-by: Michael Dokolin Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../server/browsers/chromium/driver.ts | 8 +-- .../browsers/chromium/driver_factory/index.ts | 62 ++++++++++++++++--- 2 files changed, 57 insertions(+), 13 deletions(-) diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts b/x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts index 245572efe9348..0e56c715d17cc 100644 --- a/x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts +++ b/x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts @@ -351,16 +351,14 @@ export class HeadlessChromiumDriver { this.interceptedCount = this.interceptedCount + (isData ? 0 : 1); }); - // Even though 3xx redirects go through our request - // handler, we should probably inspect responses just to - // avoid being bamboozled by some malicious request this.page.on('response', (interceptedResponse: puppeteer.HTTPResponse) => { const interceptedUrl = interceptedResponse.url(); const allowed = !interceptedUrl.startsWith('file://'); + const status = interceptedResponse.status(); - if (!interceptedResponse.ok()) { + if (status >= 400 && !interceptedResponse.ok()) { logger.warn( - `Chromium received a non-OK response (${interceptedResponse.status()}) for request ${interceptedUrl}` + `Chromium received a non-OK response (${status}) for request ${interceptedUrl}` ); } diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts b/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts index 16b09d92dc2c0..8bdd206310750 100644 --- a/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts +++ b/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts @@ -16,7 +16,16 @@ import puppeteer, { Browser, ConsoleMessage, HTTPRequest, Page } from 'puppeteer import { createInterface } from 'readline'; import * as Rx from 'rxjs'; import { InnerSubscriber } from 'rxjs/internal/InnerSubscriber'; -import { catchError, ignoreElements, map, mergeMap, reduce, takeUntil, tap } from 'rxjs/operators'; +import { + catchError, + ignoreElements, + map, + concatMap, + mergeMap, + reduce, + takeUntil, + tap, +} from 'rxjs/operators'; import type { Logger } from 'src/core/server'; import type { ScreenshotModePluginSetup } from 'src/plugins/screenshot_mode/server'; import { ConfigType } from '../../../config'; @@ -241,18 +250,55 @@ export class HeadlessChromiumDriverFactory { }); } + /** + * In certain cases the browser will emit an error object to console. To ensure + * we extract the message from the error object we need to go the browser's context + * and look at the error there. + * + * If we don't do this we we will get a string that says "JSHandle@error" from + * line.text(). + * + * See https://github.com/puppeteer/puppeteer/issues/3397. + */ + private async getErrorMessage(message: ConsoleMessage): Promise { + for (const arg of message.args()) { + const errorMessage = await arg + .executionContext() + .evaluate((_arg: unknown) => { + /* !! We are now in the browser context !! */ + if (_arg instanceof Error) { + return _arg.message; + } + return undefined; + /* !! End of browser context !! */ + }, arg); + if (errorMessage) { + return errorMessage; + } + } + } + getBrowserLogger(page: Page, logger: Logger): Rx.Observable { const consoleMessages$ = Rx.fromEvent(page, 'console').pipe( - map((line) => { - const formatLine = () => `{ text: "${line.text()?.trim()}", url: ${line.location()?.url} }`; - + concatMap(async (line) => { if (line.type() === 'error') { - logger.get('headless-browser-console').error(`Error in browser console: ${formatLine()}`); - } else { logger - .get(`headless-browser-console:${line.type()}`) - .debug(`Message in browser console: ${formatLine()}`); + .get('headless-browser-console') + .error( + `Error in browser console: { message: "${ + (await this.getErrorMessage(line)) ?? line.text() + }", url: "${line.location()?.url}" }` + ); + return; } + + logger + .get(`headless-browser-console:${line.type()}`) + .debug( + `Message in browser console: { text: "${line.text()?.trim()}", url: ${ + line.location()?.url + } }` + ); }) );