feat(alerting): add ALERT_RULE_CHANGE + ALERT_SILENCE_CHANGE audit categories

This commit is contained in:
hsiegeln
2026-04-19 18:34:08 +02:00
parent a80c376950
commit 5103dc91be
2 changed files with 14 additions and 1 deletions

View File

@@ -2,5 +2,6 @@ package com.cameleer.server.core.admin;
public enum AuditCategory {
INFRA, AUTH, USER_MGMT, CONFIG, RBAC, AGENT,
OUTBOUND_CONNECTION_CHANGE, OUTBOUND_HTTP_TRUST_CHANGE
OUTBOUND_CONNECTION_CHANGE, OUTBOUND_HTTP_TRUST_CHANGE,
ALERT_RULE_CHANGE, ALERT_SILENCE_CHANGE
}

View File

@@ -0,0 +1,12 @@
package com.cameleer.server.core.admin;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
class AuditCategoryTest {
@Test
void alertingCategoriesPresent() {
assertThat(AuditCategory.valueOf("ALERT_RULE_CHANGE")).isNotNull();
assertThat(AuditCategory.valueOf("ALERT_SILENCE_CHANGE")).isNotNull();
}
}