Alerting: indicate whether an alertrule is provisioned (#48458)

This commit is contained in:
Jean-Philippe Quéméner
2022-04-28 21:27:34 +02:00
committed by GitHub
parent 7048bf9f0d
commit 9e21e4d1c1
7 changed files with 79 additions and 9 deletions
+2
View File
@@ -67,6 +67,7 @@ type API struct {
QuotaService *quota.QuotaService
Schedule schedule.ScheduleService
TransactionManager provisioning.TransactionManager
ProvenanceStore provisioning.ProvisioningStore
RuleStore store.RuleStore
InstanceStore store.InstanceStore
AlertingStore AlertingStore
@@ -109,6 +110,7 @@ func (api *API) RegisterAPIEndpoints(m *metrics.API) {
QuotaService: api.QuotaService,
scheduleService: api.Schedule,
store: api.RuleStore,
provenanceStore: api.ProvenanceStore,
xactManager: api.TransactionManager,
log: logger,
cfg: &api.Cfg.UnifiedAlerting,