(cherry picked from commit bc4d929c67)
Co-authored-by: Jean-Philippe Quéméner <JohnnyQQQQ@users.noreply.github.com>
This commit is contained in:
co-authored by
Jean-Philippe Quéméner
parent
1c05c66f33
commit
f80a9388cf
@@ -122,7 +122,7 @@ func (rule *AlertRuleV1) mapToModel(orgID int64) (models.AlertRule, error) {
|
||||
if alertRule.Condition == "" {
|
||||
return models.AlertRule{}, fmt.Errorf("rule '%s' failed to parse: no condition set", alertRule.Title)
|
||||
}
|
||||
alertRule.Annotations = rule.Annotations.Value()
|
||||
alertRule.Annotations = rule.Annotations.Raw
|
||||
alertRule.Labels = rule.Labels.Value()
|
||||
for _, queryV1 := range rule.Data {
|
||||
query, err := queryV1.mapToModel()
|
||||
|
||||
Reference in New Issue
Block a user