Skip to content

Commit 287db05

Browse files
apollo_dashboard,apollo_deployments: add top-level intervalSec to Alerts; use it in alert builder
Move the evaluation interval from a per-alert field to a top-level field on the Alerts struct. The interval is group-scoped in Grafana, so a single value for all alerts is the correct model. Also restructure alert_builder.py to upload/dump per rule-group instead of per individual alert, using the top-level intervalSec as the group interval. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 798e13b commit 287db05

21 files changed

Lines changed: 787 additions & 780 deletions

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/apollo_dashboard/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ apollo_transaction_converter.workspace = true
4242
blockifier.workspace = true
4343
indexmap = { workspace = true, features = ["serde"] }
4444
serde = { workspace = true, features = ["derive"] }
45+
strum = { workspace = true, features = ["derive"] }
4546
serde_json = { workspace = true, features = ["arbitrary_precision"] }
4647
serde_with.workspace = true
4748

0 commit comments

Comments
 (0)