diff --git a/apps/web/src/schema/alert-manager/event-rule/type.ts b/apps/web/src/schema/alert-manager/event-rule/type.ts index 6df94344a5..a39287c677 100644 --- a/apps/web/src/schema/alert-manager/event-rule/type.ts +++ b/apps/web/src/schema/alert-manager/event-rule/type.ts @@ -6,7 +6,7 @@ export type EventRuleUrgencyType = typeof EVENT_RULE_URGENCY[keyof typeof EVENT_ export type EventRuleScopeType = typeof EVENT_RULE_SCOPE[keyof typeof EVENT_RULE_SCOPE]; export type EventRuleConditionsKeyType = 'title' | 'description' | 'rule' | 'severity' | 'account' | 'additional_info' | 'labels' | 'period'; -export type EventRuleConditionsOperatorType = 'eq' | 'contain' | 'not' | 'not_contain' | 'size_gte'; +export type EventRuleConditionsOperatorType = 'eq' | 'contain' | 'not' | 'not_contain' | 'size_gte' | 'size_lte'; export type EventRuleConditionsType = { key: EventRuleConditionsKeyType|string; diff --git a/apps/web/src/services/alert-manager/components/ServiceDetailTabsSettingsEventRuleConditionForm.vue b/apps/web/src/services/alert-manager/components/ServiceDetailTabsSettingsEventRuleConditionForm.vue index 96a7715f6b..dcc8de4fd1 100644 --- a/apps/web/src/services/alert-manager/components/ServiceDetailTabsSettingsEventRuleConditionForm.vue +++ b/apps/web/src/services/alert-manager/components/ServiceDetailTabsSettingsEventRuleConditionForm.vue @@ -74,6 +74,7 @@ const getDropdownMenu = (key: string): EventRuleConditionOperatorsType[] => { equals: i18n.t('ALERT_MANAGER.EVENT_RULE.EQUALS'), notEquals: i18n.t('ALERT_MANAGER.EVENT_RULE.DOES_NOT_EQUAL'), atLeast: i18n.t('ALERT_MANAGER.EVENT_RULE.AT_LEAST'), + lessThan: i18n.t('ALERT_MANAGER.EVENT_RULE.LESS_THAN_EQUAL'), }; const defaultMenu: EventRuleConditionOperatorsType[] = [ @@ -87,6 +88,7 @@ const getDropdownMenu = (key: string): EventRuleConditionOperatorsType[] => { return [ ...defaultMenu, { name: 'size_gte', label: _labels.atLeast }, + { name: 'size_lte', label: _labels.lessThan }, ]; } @@ -176,11 +178,13 @@ const handleClickDelete = (idx) => { use-fixed-menu-style is-fixed-width /> -
diff --git a/packages/language-pack/console-translation-2.8.babel b/packages/language-pack/console-translation-2.8.babel index 752da8ab30..0fb8fa28d4 100644 --- a/packages/language-pack/console-translation-2.8.babel +++ b/packages/language-pack/console-translation-2.8.babel @@ -3287,6 +3287,27 @@ + + LESS_THAN_EQUAL + false + + + + + + en-US + false + + + ja-JP + false + + + ko-KR + false + + + LOW false diff --git a/packages/language-pack/en.json b/packages/language-pack/en.json index 973f2bf837..9bf43d6776 100644 --- a/packages/language-pack/en.json +++ b/packages/language-pack/en.json @@ -160,6 +160,7 @@ "LABEL_SCOPE": "Selected Event Rule Scope", "LABEL_SEVERITY": "Severity", "LABEL_TITLE": "Title", + "LESS_THAN_EQUAL": "less than or equals", "LOW": "Low", "MATCH_ASSET": "Match Asset", "MAX": "Max", diff --git a/packages/language-pack/ja.json b/packages/language-pack/ja.json index df3157663c..a0993be7b1 100644 --- a/packages/language-pack/ja.json +++ b/packages/language-pack/ja.json @@ -160,6 +160,7 @@ "LABEL_SCOPE": "選択されたイベントルールのスコープ", "LABEL_SEVERITY": "緊急度", "LABEL_TITLE": "タイトル", + "LESS_THAN_EQUAL": "", "LOW": "低い", "MATCH_ASSET": "アセットをマッピングする", "MAX": "最大", diff --git a/packages/language-pack/ko.json b/packages/language-pack/ko.json index 8522cf2d12..87637e3237 100644 --- a/packages/language-pack/ko.json +++ b/packages/language-pack/ko.json @@ -160,6 +160,7 @@ "LABEL_SCOPE": "선택된 이벤트 규칙 범위", "LABEL_SEVERITY": "심각도", "LABEL_TITLE": "제목", + "LESS_THAN_EQUAL": "", "LOW": "낮음", "MATCH_ASSET": "자산 매핑", "MAX": "최대",