Alerting: Add SaveAlertInstancesForRule instance store method (#94505)
Alerting: Add SaveAlertInstancesForRule method to the InstanceStore interface
This commit is contained in:
@@ -587,6 +587,14 @@ func GenerateRuleKey(orgID int64) AlertRuleKey {
|
||||
}
|
||||
}
|
||||
|
||||
// GenerateRuleKeyWithGroup generates a random alert rule key with group
|
||||
func GenerateRuleKeyWithGroup(orgID int64) AlertRuleKeyWithGroup {
|
||||
return AlertRuleKeyWithGroup{
|
||||
AlertRuleKey: GenerateRuleKey(orgID),
|
||||
RuleGroup: util.GenerateShortUID(),
|
||||
}
|
||||
}
|
||||
|
||||
// GenerateGroupKey generates a random group key
|
||||
func GenerateGroupKey(orgID int64) AlertRuleGroupKey {
|
||||
return AlertRuleGroupKey{
|
||||
|
||||
Reference in New Issue
Block a user