Fix window/interval validation and make aggs optional in parse_results

This commit is contained in:
2023-01-15 20:27:19 +00:00
parent eb2486afba
commit 2dd9efcc6f
4 changed files with 7 additions and 4 deletions

View File

@@ -243,7 +243,7 @@ class NotificationRuleData(object):
"Window cannot be specified with on-demand interval", "window"
)
if interval is not None and window is None:
if interval != 0 and window is None:
raise RuleParseError(
"Window must be specified with non-on-demand interval", "window"
)