Allow ML rules to accept a single or array of job IDs (#1167)

This commit is contained in:
Justin Ibarra
2021-05-05 08:58:28 -08:00
committed by brokensound77
parent 7040538a9a
commit 3d7f5d73a4
+1 -1
View File
@@ -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)