+
+
+
+
+
+ (
+
+ )}
+ />
+
(
+ render={({field: {value, onChange}}) => (
{
groupedAttributes: selectedRule.grouping_criteria,
requireApprove: selectedRule.require_approve,
resolveOn: selectedRule.resolve_on,
+ createOn: selectedRule.create_on,
query: queryInGroup,
incidents: selectedRule.incidents,
};
diff --git a/keep-ui/utils/hooks/useRules.ts b/keep-ui/utils/hooks/useRules.ts
index 957036614..e78f3ed54 100644
--- a/keep-ui/utils/hooks/useRules.ts
+++ b/keep-ui/utils/hooks/useRules.ts
@@ -18,6 +18,7 @@ export type Rule = {
update_time: string | null;
require_approve: boolean;
resolve_on: "all" | "first" | "last" | "never";
+ create_on: "any" | "all";
distribution: { [group: string]: { [timestamp: string]: number } };
incidents: number;
};
diff --git a/tests/test_rules_engine.py b/tests/test_rules_engine.py
index 235b07ce9..7401550ce 100644
--- a/tests/test_rules_engine.py
+++ b/tests/test_rules_engine.py
@@ -7,7 +7,6 @@
import pytest
-from boom import fingerprint
from keep.api.core.db import create_rule as create_rule_db
from keep.api.core.db import get_incident_alerts_by_incident_id, get_last_incidents, set_last_alert
from keep.api.core.db import get_rules as get_rules_db