Skip to content

Commit 11182c8

Browse files
Fix match phrase and not match phrase comparators (#71850)
Co-authored-by: Elastic Machine <[email protected]>
1 parent 6c3b900 commit 11182c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x-pack/plugins/infra/server/lib/alerting/log_threshold/register_log_threshold_alert_type.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ const criteriaSchema = schema.object({
5656
schema.literal(Comparator.NOT_EQ),
5757
schema.literal(Comparator.MATCH),
5858
schema.literal(Comparator.NOT_MATCH),
59+
schema.literal(Comparator.MATCH_PHRASE),
60+
schema.literal(Comparator.NOT_MATCH_PHRASE),
5961
]),
6062
value: schema.oneOf([schema.number(), schema.string()]),
6163
});

0 commit comments

Comments
 (0)