Alerting: Add provenance to Prometheus API (#106596)
This commit adds provenance information to the Prometheus API in the ngalert service to enable compatibility with the new alert list page.
This commit is contained in:
@@ -185,6 +185,7 @@ type Rule struct {
|
||||
EvaluationTime float64 `json:"evaluationTime"`
|
||||
IsPaused bool `json:"isPaused"`
|
||||
NotificationSettings *AlertRuleNotificationSettings `json:"notificationSettings,omitempty"`
|
||||
Provenance Provenance `json:"provenance,omitempty"`
|
||||
}
|
||||
|
||||
// Alert has info for an alert.
|
||||
|
||||
Reference in New Issue
Block a user