Skip to content

Commit cf2afa4

Browse files
Fix match phrase and not match phrase comparators (#71850)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 4fd8c79 commit cf2afa4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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
@@ -50,6 +50,8 @@ const criteriaSchema = schema.object({
5050
schema.literal(Comparator.NOT_EQ),
5151
schema.literal(Comparator.MATCH),
5252
schema.literal(Comparator.NOT_MATCH),
53+
schema.literal(Comparator.MATCH_PHRASE),
54+
schema.literal(Comparator.NOT_MATCH_PHRASE),
5355
]),
5456
value: schema.oneOf([schema.number(), schema.string()]),
5557
});

0 commit comments

Comments
 (0)