diff --git a/public/app/percona/integrated-alerting/components/TemplateForm/TemplateFiltersField.tsx b/public/app/percona/integrated-alerting/components/TemplateForm/TemplateFiltersField.tsx index 36667e9085c64..cb78332293d5b 100644 --- a/public/app/percona/integrated-alerting/components/TemplateForm/TemplateFiltersField.tsx +++ b/public/app/percona/integrated-alerting/components/TemplateForm/TemplateFiltersField.tsx @@ -18,9 +18,9 @@ const TemplateFiltersField: FC = () => { } = useFormContext(); const filterOptions: Array> = useMemo( () => - Object.entries(AlertRuleFilterType).map(([, value]) => ({ - label: value, - value: value, + Object.entries(AlertRuleFilterType).map(([label, value]) => ({ + label, + value, })), [] ); diff --git a/public/app/percona/shared/core/types.ts b/public/app/percona/shared/core/types.ts index e9f849c306982..bbcdd29928a85 100644 --- a/public/app/percona/shared/core/types.ts +++ b/public/app/percona/shared/core/types.ts @@ -105,8 +105,8 @@ export enum AlertRuleParamType { } export enum AlertRuleFilterType { - MATCH = 'MATCH', - MISMATCH = 'MISMATCH', + MATCH = 'FILTER_TYPE_MATCH', + MISMATCH = 'FILTER_TYPE_MISMATCH', } export type AlertRulesParsedParam = TemplateParam & { value: string | boolean | number };