mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: State manager to use InstanceStore (#53852)
* move saving the state to state manager when scheduler stops * move saving state to ProcessEvalResults * add GetRuleKey to State * add LogContext to AlertRuleKey
This commit is contained in:
@@ -227,6 +227,10 @@ type AlertRuleKey struct {
|
||||
UID string `xorm:"uid"`
|
||||
}
|
||||
|
||||
func (k AlertRuleKey) LogContext() []interface{} {
|
||||
return []interface{}{"rule_uid", k.UID, "org_id", k.OrgID}
|
||||
}
|
||||
|
||||
type AlertRuleKeyWithVersion struct {
|
||||
Version int64
|
||||
AlertRuleKey `xorm:"extends"`
|
||||
|
||||
Reference in New Issue
Block a user