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 /> -