From 3d7f5d73a4a3a891b64d5c535f25c9fb2fbd544e Mon Sep 17 00:00:00 2001 From: Justin Ibarra Date: Wed, 5 May 2021 08:58:28 -0800 Subject: [PATCH] Allow ML rules to accept a single or array of job IDs (#1167) --- detection_rules/rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detection_rules/rule.py b/detection_rules/rule.py index 10d1b39f8..9bd3ae7d9 100644 --- a/detection_rules/rule.py +++ b/detection_rules/rule.py @@ -217,7 +217,7 @@ class MachineLearningRuleData(BaseRuleData): type: Literal["machine_learning"] anomaly_threshold: int - machine_learning_job_id: str + machine_learning_job_id: Union[str, List[str]] @dataclass(frozen=True)