diff --git a/x-pack/plugins/stack_alerts/public/alert_types/geo_threshold/query_builder/util_components/expression_with_popover.tsx b/x-pack/plugins/stack_alerts/public/alert_types/geo_threshold/query_builder/util_components/expression_with_popover.tsx
index 74dad07f2b229..a83667cfd92c6 100644
--- a/x-pack/plugins/stack_alerts/public/alert_types/geo_threshold/query_builder/util_components/expression_with_popover.tsx
+++ b/x-pack/plugins/stack_alerts/public/alert_types/geo_threshold/query_builder/util_components/expression_with_popover.tsx
@@ -61,7 +61,7 @@ export const ExpressionWithPopover: ({
iconType="cross"
color="danger"
aria-label={i18n.translate(
- 'xpack.triggersActionsUI.sections.alertAdd.geoThreshold.closePopoverLabel',
+ 'xpack.stackAlerts.geoThreshold.ui.expressionPopover.closePopoverLabel',
{
defaultMessage: 'Close',
}
diff --git a/x-pack/plugins/stack_alerts/public/alert_types/threshold/expression.tsx b/x-pack/plugins/stack_alerts/public/alert_types/threshold/expression.tsx
index e240ad9cb6f37..92cb8c9055bde 100644
--- a/x-pack/plugins/stack_alerts/public/alert_types/threshold/expression.tsx
+++ b/x-pack/plugins/stack_alerts/public/alert_types/threshold/expression.tsx
@@ -105,7 +105,7 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent
}
@@ -166,7 +166,7 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent
}
@@ -232,7 +232,7 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent
}
@@ -283,7 +283,7 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent
@@ -295,12 +295,9 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent 0 ? renderIndices(index) : firstFieldOption.text}
isActive={indexPopoverOpen}
onClick={() => {
@@ -320,12 +317,9 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent
- {i18n.translate(
- 'xpack.triggersActionsUI.sections.alertAdd.threshold.indexButtonLabel',
- {
- defaultMessage: 'index',
- }
- )}
+ {i18n.translate('xpack.stackAlerts.threshold.ui.alertParams.indexButtonLabel', {
+ defaultMessage: 'index',
+ })}
@@ -426,7 +420,7 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent
diff --git a/x-pack/plugins/stack_alerts/public/alert_types/threshold/index.ts b/x-pack/plugins/stack_alerts/public/alert_types/threshold/index.ts
index da36167cd78c0..b7923a3013613 100644
--- a/x-pack/plugins/stack_alerts/public/alert_types/threshold/index.ts
+++ b/x-pack/plugins/stack_alerts/public/alert_types/threshold/index.ts
@@ -12,10 +12,10 @@ import { AlertTypeModel, AlertsContextValue } from '../../../../triggers_actions
export function getAlertType(): AlertTypeModel {
return {
id: '.index-threshold',
- name: i18n.translate('xpack.triggersActionsUI.indexThresholdAlert.nameText', {
+ name: i18n.translate('xpack.stackAlerts.threshold.ui.alertType.nameText', {
defaultMessage: 'Index threshold',
}),
- description: i18n.translate('xpack.triggersActionsUI.indexThresholdAlert.descriptionText', {
+ description: i18n.translate('xpack.stackAlerts.threshold.ui.alertType.descriptionText', {
defaultMessage: 'Alert when an aggregated query meets the threshold.',
}),
iconClass: 'alert',
@@ -25,7 +25,7 @@ export function getAlertType(): AlertTypeModel import('./expression')),
validate: validateExpression,
defaultActionMessage: i18n.translate(
- 'xpack.triggersActionsUI.components.builtinAlertTypes.threshold.alertDefaultActionMessage',
+ 'xpack.stackAlerts.threshold.ui.alertType.defaultActionMessage',
{
defaultMessage: `alert \\{\\{alertName\\}\\} group \\{\\{context.group\\}\\} value \\{\\{context.value\\}\\} exceeded threshold \\{\\{context.function\\}\\} over \\{\\{params.timeWindowSize\\}\\}\\{\\{params.timeWindowUnit\\}\\} on \\{\\{context.date\\}\\}`,
}
diff --git a/x-pack/plugins/stack_alerts/public/alert_types/threshold/validation.ts b/x-pack/plugins/stack_alerts/public/alert_types/threshold/validation.ts
index 888ed54d2aeaa..4bbf80906377b 100644
--- a/x-pack/plugins/stack_alerts/public/alert_types/threshold/validation.ts
+++ b/x-pack/plugins/stack_alerts/public/alert_types/threshold/validation.ts
@@ -39,21 +39,21 @@ export const validateExpression = (alertParams: IndexThresholdAlertParams): Vali
validationResult.errors = errors;
if (!index || index.length === 0) {
errors.index.push(
- i18n.translate('xpack.triggersActionsUI.sections.addAlert.error.requiredIndexText', {
+ i18n.translate('xpack.stackAlerts.threshold.ui.validation.error.requiredIndexText', {
defaultMessage: 'Index is required.',
})
);
}
if (!timeField) {
errors.timeField.push(
- i18n.translate('xpack.triggersActionsUI.sections.addAlert.error.requiredTimeFieldText', {
+ i18n.translate('xpack.stackAlerts.threshold.ui.validation.error.requiredTimeFieldText', {
defaultMessage: 'Time field is required.',
})
);
}
if (aggType && builtInAggregationTypes[aggType].fieldRequired && !aggField) {
errors.aggField.push(
- i18n.translate('xpack.triggersActionsUI.sections.addAlert.error.requiredAggFieldText', {
+ i18n.translate('xpack.stackAlerts.threshold.ui.validation.error.requiredAggFieldText', {
defaultMessage: 'Aggregation field is required.',
})
);
@@ -65,7 +65,7 @@ export const validateExpression = (alertParams: IndexThresholdAlertParams): Vali
!termSize
) {
errors.termSize.push(
- i18n.translate('xpack.triggersActionsUI.sections.addAlert.error.requiredTermSizedText', {
+ i18n.translate('xpack.stackAlerts.threshold.ui.validation.error.requiredTermSizedText', {
defaultMessage: 'Term size is required.',
})
);
@@ -77,21 +77,21 @@ export const validateExpression = (alertParams: IndexThresholdAlertParams): Vali
!termField
) {
errors.termField.push(
- i18n.translate('xpack.triggersActionsUI.sections.addAlert.error.requiredtTermFieldText', {
+ i18n.translate('xpack.stackAlerts.threshold.ui.validation.error.requiredTermFieldText', {
defaultMessage: 'Term field is required.',
})
);
}
if (!timeWindowSize) {
errors.timeWindowSize.push(
- i18n.translate('xpack.triggersActionsUI.sections.addAlert.error.requiredTimeWindowSizeText', {
+ i18n.translate('xpack.stackAlerts.threshold.ui.validation.error.requiredTimeWindowSizeText', {
defaultMessage: 'Time window size is required.',
})
);
}
if (!threshold || threshold.length === 0 || threshold[0] === undefined) {
errors.threshold0.push(
- i18n.translate('xpack.triggersActionsUI.sections.addAlert.error.requiredThreshold0Text', {
+ i18n.translate('xpack.stackAlerts.threshold.ui.validation.error.requiredThreshold0Text', {
defaultMessage: 'Threshold0 is required.',
})
);
@@ -104,14 +104,14 @@ export const validateExpression = (alertParams: IndexThresholdAlertParams): Vali
(threshold && threshold.length < builtInComparators[thresholdComparator!].requiredValues))
) {
errors.threshold1.push(
- i18n.translate('xpack.triggersActionsUI.sections.addAlert.error.requiredThreshold1Text', {
+ i18n.translate('xpack.stackAlerts.threshold.ui.validation.error.requiredThreshold1Text', {
defaultMessage: 'Threshold1 is required.',
})
);
}
if (threshold && threshold.length === 2 && threshold[0] > threshold[1]) {
errors.threshold1.push(
- i18n.translate('xpack.triggersActionsUI.sections.addAlert.error.greaterThenThreshold0Text', {
+ i18n.translate('xpack.stackAlerts.threshold.ui.validation.error.greaterThenThreshold0Text', {
defaultMessage: 'Threshold1 should be > Threshold0.',
})
);
diff --git a/x-pack/plugins/stack_alerts/public/alert_types/threshold/visualization.tsx b/x-pack/plugins/stack_alerts/public/alert_types/threshold/visualization.tsx
index 4bdd7409cc33b..6145aa3671a7f 100644
--- a/x-pack/plugins/stack_alerts/public/alert_types/threshold/visualization.tsx
+++ b/x-pack/plugins/stack_alerts/public/alert_types/threshold/visualization.tsx
@@ -156,7 +156,7 @@ export const ThresholdVisualization: React.FunctionComponent = ({
if (toastNotifications) {
toastNotifications.addDanger({
title: i18n.translate(
- 'xpack.triggersActionsUI.sections.alertAdd.unableToLoadVisualizationMessage',
+ 'xpack.stackAlerts.threshold.ui.visualization.unableToLoadVisualizationMessage',
{ defaultMessage: 'Unable to load visualization' }
),
});
@@ -205,7 +205,7 @@ export const ThresholdVisualization: React.FunctionComponent = ({
body={
@@ -221,7 +221,7 @@ export const ThresholdVisualization: React.FunctionComponent = ({
@@ -311,14 +311,14 @@ export const ThresholdVisualization: React.FunctionComponent = ({
size="s"
title={
}
color="warning"
>
diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json
index 9613d8be8d4ed..06459bff92bc0 100644
--- a/x-pack/plugins/translations/translations/ja-JP.json
+++ b/x-pack/plugins/translations/translations/ja-JP.json
@@ -20183,15 +20183,15 @@
"xpack.triggersActionsUI.sections.addAction.webhookAction.error.requiredHeaderValueText": "値が必要です。",
"xpack.triggersActionsUI.sections.addAction.webhookAction.error.requiredMethodText": "メソッドが必要です",
"xpack.triggersActionsUI.sections.addAction.webhookAction.error.requiredPasswordText": "パスワードが必要です。",
- "xpack.triggersActionsUI.sections.addAlert.error.greaterThenThreshold0Text": "しきい値 1 はしきい値 0 よりも大きい値にしてください。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredAggFieldText": "集約フィールドが必要です。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredIndexText": "インデックスが必要です。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredTermSizedText": "用語サイズが必要です。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredThreshold0Text": "しきい値 0 が必要です。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredThreshold1Text": "しきい値 1 が必要です。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredTimeFieldText": "時間フィールドが必要です。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredTimeWindowSizeText": "時間ウィンドウサイズが必要です。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredtTermFieldText": "用語フィールドが必要です。",
+ "xpack.stackAlerts.threshold.ui.validation.error.greaterThenThreshold0Text": "しきい値 1 はしきい値 0 よりも大きい値にしてください。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredAggFieldText": "集約フィールドが必要です。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredIndexText": "インデックスが必要です。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredTermSizedText": "用語サイズが必要です。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredThreshold0Text": "しきい値 0 が必要です。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredThreshold1Text": "しきい値 1 が必要です。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredTimeFieldText": "時間フィールドが必要です。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredTimeWindowSizeText": "時間ウィンドウサイズが必要です。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredTermFieldText": "用語フィールドが必要です。",
"xpack.triggersActionsUI.sections.addConnectorForm.flyoutTitle": "{actionTypeName} コネクタ",
"xpack.triggersActionsUI.sections.addConnectorForm.selectConnectorFlyoutTitle": "コネクターを選択",
"xpack.triggersActionsUI.sections.addConnectorForm.updateErrorNotificationText": "コネクターを作成できません。",
@@ -20200,27 +20200,27 @@
"xpack.triggersActionsUI.sections.addModalConnectorForm.flyoutTitle": "{actionTypeName} コネクター",
"xpack.triggersActionsUI.sections.addModalConnectorForm.saveButtonLabel": "保存",
"xpack.triggersActionsUI.sections.addModalConnectorForm.updateSuccessNotificationText": "「{connectorName}」を作成しました",
- "xpack.triggersActionsUI.sections.alertAdd.conditionPrompt": "条件を定義してください",
- "xpack.triggersActionsUI.sections.alertAdd.errorLoadingAlertVisualizationTitle": "アラートビジュアライゼーションを読み込めません",
+ "xpack.stackAlerts.threshold.ui.conditionPrompt": "条件を定義してください",
+ "xpack.stackAlerts.threshold.ui.visualization.errorLoadingAlertVisualizationTitle": "アラートビジュアライゼーションを読み込めません",
"xpack.triggersActionsUI.sections.alertAdd.flyoutTitle": "アラートの作成",
- "xpack.triggersActionsUI.sections.alertAdd.geoThreshold.closePopoverLabel": "閉じる",
- "xpack.triggersActionsUI.sections.alertAdd.loadingAlertVisualizationDescription": "アラートビジュアライゼーションを読み込み中...",
+ "xpack.stackAlerts.geoThreshold.ui.expressionPopover.closePopoverLabel": "閉じる",
+ "xpack.stackAlerts.threshold.ui.visualization.loadingAlertVisualizationDescription": "アラートビジュアライゼーションを読み込み中...",
"xpack.triggersActionsUI.sections.alertAdd.operationName": "作成",
- "xpack.triggersActionsUI.sections.alertAdd.previewAlertVisualizationDescription": "プレビューを生成するための式を完成します。",
+ "xpack.stackAlerts.threshold.ui.previewAlertVisualizationDescription": "プレビューを生成するための式を完成します。",
"xpack.triggersActionsUI.sections.alertAdd.saveErrorNotificationText": "アラートを作成できません。",
"xpack.triggersActionsUI.sections.alertAdd.saveSuccessNotificationText": "「{alertName}」 を保存しました",
- "xpack.triggersActionsUI.sections.alertAdd.selectIndex": "インデックスを選択してください",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.closeIndexPopoverLabel": "閉じる",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.fixErrorInExpressionBelowValidationMessage": "下の表現のエラーを修正してください。",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.howToBroadenSearchQueryDescription": "* で検索クエリの範囲を広げます。",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.indexButtonLabel": "インデックス",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.indexLabel": "インデックス",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.indicesToQueryLabel": "クエリを実行するインデックス",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.timeFieldLabel": "時間フィールド",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.timeFieldOptionLabel": "フィールドを選択",
- "xpack.triggersActionsUI.sections.alertAdd.thresholdPreviewChart.dataDoesNotExistTextMessage": "時間範囲とフィルターが正しいことを確認してください。",
- "xpack.triggersActionsUI.sections.alertAdd.thresholdPreviewChart.noDataTitle": "このクエリに一致するデータはありません",
- "xpack.triggersActionsUI.sections.alertAdd.unableToLoadVisualizationMessage": "ビジュアライゼーションを読み込めません",
+ "xpack.stackAlerts.threshold.ui.selectIndex": "インデックスを選択してください",
+ "xpack.stackAlerts.threshold.ui.alertParams.closeIndexPopoverLabel": "閉じる",
+ "xpack.stackAlerts.threshold.ui.alertParams.fixErrorInExpressionBelowValidationMessage": "下の表現のエラーを修正してください。",
+ "xpack.stackAlerts.threshold.ui.alertParams.howToBroadenSearchQueryDescription": "* で検索クエリの範囲を広げます。",
+ "xpack.stackAlerts.threshold.ui.alertParams.indexButtonLabel": "インデックス",
+ "xpack.stackAlerts.threshold.ui.alertParams.indexLabel": "インデックス",
+ "xpack.stackAlerts.threshold.ui.alertParams.indicesToQueryLabel": "クエリを実行するインデックス",
+ "xpack.stackAlerts.threshold.ui.alertParams.timeFieldLabel": "時間フィールド",
+ "xpack.triggersActionsUI.sections.alertAdd.indexControls.timeFieldOptionLabel": "フィールドを選択",
+ "xpack.stackAlerts.threshold.ui.visualization.thresholdPreviewChart.dataDoesNotExistTextMessage": "時間範囲とフィルターが正しいことを確認してください。",
+ "xpack.stackAlerts.threshold.ui.visualization.thresholdPreviewChart.noDataTitle": "このクエリに一致するデータはありません",
+ "xpack.stackAlerts.threshold.ui.visualization.unableToLoadVisualizationMessage": "ビジュアライゼーションを読み込めません",
"xpack.triggersActionsUI.sections.alertDetails.alertInstances.disabledAlert": "このアラートは無効になっていて再表示できません。[↑ を無効にする]を切り替えてアクティブにします。",
"xpack.triggersActionsUI.sections.alertDetails.alertInstancesList.columns.duration": "期間",
"xpack.triggersActionsUI.sections.alertDetails.alertInstancesList.columns.instance": "インスタンス",
diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json
index 02635dababea9..33a17f291d290 100644
--- a/x-pack/plugins/translations/translations/zh-CN.json
+++ b/x-pack/plugins/translations/translations/zh-CN.json
@@ -20203,15 +20203,15 @@
"xpack.triggersActionsUI.sections.addAction.webhookAction.error.requiredHeaderValueText": "“值”必填。",
"xpack.triggersActionsUI.sections.addAction.webhookAction.error.requiredMethodText": "“方法”必填",
"xpack.triggersActionsUI.sections.addAction.webhookAction.error.requiredPasswordText": "“密码”必填。",
- "xpack.triggersActionsUI.sections.addAlert.error.greaterThenThreshold0Text": "阈值 1 应 > 阈值 0。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredAggFieldText": "聚合字段必填。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredIndexText": "“索引”必填。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredTermSizedText": "“词大小”必填。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredThreshold0Text": "阈值 0 必填。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredThreshold1Text": "阈值 1 必填。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredTimeFieldText": "时间字段必填。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredTimeWindowSizeText": "“时间窗大小”必填。",
- "xpack.triggersActionsUI.sections.addAlert.error.requiredtTermFieldText": "词字段必填。",
+ "xpack.stackAlerts.threshold.ui.validation.error.greaterThenThreshold0Text": "阈值 1 应 > 阈值 0。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredAggFieldText": "聚合字段必填。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredIndexText": "“索引”必填。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredTermSizedText": "“词大小”必填。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredThreshold0Text": "阈值 0 必填。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredThreshold1Text": "阈值 1 必填。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredTimeFieldText": "时间字段必填。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredTimeWindowSizeText": "“时间窗大小”必填。",
+ "xpack.stackAlerts.threshold.ui.validation.error.requiredTermFieldText": "词字段必填。",
"xpack.triggersActionsUI.sections.addConnectorForm.flyoutTitle": "{actionTypeName} 连接器",
"xpack.triggersActionsUI.sections.addConnectorForm.selectConnectorFlyoutTitle": "选择连接器",
"xpack.triggersActionsUI.sections.addConnectorForm.updateErrorNotificationText": "无法创建连接器。",
@@ -20220,27 +20220,27 @@
"xpack.triggersActionsUI.sections.addModalConnectorForm.flyoutTitle": "{actionTypeName} 连接器",
"xpack.triggersActionsUI.sections.addModalConnectorForm.saveButtonLabel": "保存",
"xpack.triggersActionsUI.sections.addModalConnectorForm.updateSuccessNotificationText": "已创建“{connectorName}”",
- "xpack.triggersActionsUI.sections.alertAdd.conditionPrompt": "定义条件",
- "xpack.triggersActionsUI.sections.alertAdd.errorLoadingAlertVisualizationTitle": "无法加载告警可视化",
+ "xpack.stackAlerts.threshold.ui.conditionPrompt": "定义条件",
+ "xpack.stackAlerts.threshold.ui.visualization.errorLoadingAlertVisualizationTitle": "无法加载告警可视化",
"xpack.triggersActionsUI.sections.alertAdd.flyoutTitle": "创建告警",
- "xpack.triggersActionsUI.sections.alertAdd.geoThreshold.closePopoverLabel": "关闭",
- "xpack.triggersActionsUI.sections.alertAdd.loadingAlertVisualizationDescription": "正在加载告警可视化……",
+ "xpack.stackAlerts.geoThreshold.ui.expressionPopover.closePopoverLabel": "关闭",
+ "xpack.stackAlerts.threshold.ui.visualization.loadingAlertVisualizationDescription": "正在加载告警可视化……",
"xpack.triggersActionsUI.sections.alertAdd.operationName": "创建",
- "xpack.triggersActionsUI.sections.alertAdd.previewAlertVisualizationDescription": "完成表达式以生成预览。",
+ "xpack.stackAlerts.threshold.ui.previewAlertVisualizationDescription": "完成表达式以生成预览。",
"xpack.triggersActionsUI.sections.alertAdd.saveErrorNotificationText": "无法创建告警。",
"xpack.triggersActionsUI.sections.alertAdd.saveSuccessNotificationText": "已保存“{alertName}”",
- "xpack.triggersActionsUI.sections.alertAdd.selectIndex": "选择索引",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.closeIndexPopoverLabel": "关闭",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.fixErrorInExpressionBelowValidationMessage": "表达式包含错误。",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.howToBroadenSearchQueryDescription": "使用 * 可扩大您的查询范围。",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.indexButtonLabel": "索引",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.indexLabel": "索引",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.indicesToQueryLabel": "要查询的索引",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.timeFieldLabel": "时间字段",
- "xpack.triggersActionsUI.sections.alertAdd.threshold.timeFieldOptionLabel": "选择字段",
- "xpack.triggersActionsUI.sections.alertAdd.thresholdPreviewChart.dataDoesNotExistTextMessage": "确认您的时间范围和筛选正确。",
- "xpack.triggersActionsUI.sections.alertAdd.thresholdPreviewChart.noDataTitle": "没有数据匹配此查询",
- "xpack.triggersActionsUI.sections.alertAdd.unableToLoadVisualizationMessage": "无法加载可视化",
+ "xpack.stackAlerts.threshold.ui.selectIndex": "选择索引",
+ "xpack.stackAlerts.threshold.ui.alertParams.closeIndexPopoverLabel": "关闭",
+ "xpack.stackAlerts.threshold.ui.alertParams.fixErrorInExpressionBelowValidationMessage": "表达式包含错误。",
+ "xpack.stackAlerts.threshold.ui.alertParams.howToBroadenSearchQueryDescription": "使用 * 可扩大您的查询范围。",
+ "xpack.stackAlerts.threshold.ui.alertParams.indexButtonLabel": "索引",
+ "xpack.stackAlerts.threshold.ui.alertParams.indexLabel": "索引",
+ "xpack.stackAlerts.threshold.ui.alertParams.indicesToQueryLabel": "要查询的索引",
+ "xpack.stackAlerts.threshold.ui.alertParams.timeFieldLabel": "时间字段",
+ "xpack.triggersActionsUI.sections.alertAdd.indexControls.timeFieldOptionLabel": "选择字段",
+ "xpack.stackAlerts.threshold.ui.visualization.thresholdPreviewChart.dataDoesNotExistTextMessage": "确认您的时间范围和筛选正确。",
+ "xpack.stackAlerts.threshold.ui.visualization.thresholdPreviewChart.noDataTitle": "没有数据匹配此查询",
+ "xpack.stackAlerts.threshold.ui.visualization.unableToLoadVisualizationMessage": "无法加载可视化",
"xpack.triggersActionsUI.sections.alertDetails.alertInstances.disabledAlert": "此告警已禁用,无法显示。切换禁用 ↑ 以激活。",
"xpack.triggersActionsUI.sections.alertDetails.alertInstancesList.columns.duration": "持续时间",
"xpack.triggersActionsUI.sections.alertDetails.alertInstancesList.columns.instance": "实例",
diff --git a/x-pack/plugins/triggers_actions_ui/README.md b/x-pack/plugins/triggers_actions_ui/README.md
index 32e157255c0cc..ef81065608ad4 100644
--- a/x-pack/plugins/triggers_actions_ui/README.md
+++ b/x-pack/plugins/triggers_actions_ui/README.md
@@ -220,7 +220,7 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent
....
diff --git a/x-pack/plugins/triggers_actions_ui/public/common/index_controls/index.ts b/x-pack/plugins/triggers_actions_ui/public/common/index_controls/index.ts
index 54b69705637d4..8d10e531930cc 100644
--- a/x-pack/plugins/triggers_actions_ui/public/common/index_controls/index.ts
+++ b/x-pack/plugins/triggers_actions_ui/public/common/index_controls/index.ts
@@ -89,8 +89,11 @@ export const getFields = async (http: HttpSetup, indexes: string[]) => {
};
export const firstFieldOption = {
- text: i18n.translate('xpack.triggersActionsUI.sections.alertAdd.threshold.timeFieldOptionLabel', {
- defaultMessage: 'Select a field',
- }),
+ text: i18n.translate(
+ 'xpack.triggersActionsUI.sections.alertAdd.indexControls.timeFieldOptionLabel',
+ {
+ defaultMessage: 'Select a field',
+ }
+ ),
value: '',
};