You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Duration: duration for which the alert must be active before firing. The format of this duration follows the prometheus duration format.
580
627
Durationstring`json:"duration"`
581
628
582
-
// Enabled: indicates if the alert is enabled or disabled. Only preconfigured alerts can be disabled.
583
-
Enabledbool`json:"enabled"`
629
+
// RuleStatus: indicates if the alert is enabled, enabling, disabled or disabling. Preconfigured alerts can have any of these values, whereas custom alerts can only have the status "enabled".
630
+
// Default value: unknown_status
631
+
RuleStatusAlertStatus`json:"rule_status"`
584
632
585
633
// State: current state of the alert. Possible states are `inactive`, `pending`, and `firing`.
586
634
// Default value: unknown_state
@@ -1343,8 +1391,9 @@ type RegionalAPIListAlertsRequest struct {
1343
1391
// ProjectID: project ID to filter for, only alerts from this Project will be returned.
1344
1392
ProjectIDstring`json:"-"`
1345
1393
1346
-
// IsEnabled: true returns only enabled alerts. False returns only disabled alerts. If omitted, no alert filtering is applied. Other filters may still apply.
1347
-
IsEnabled*bool`json:"-"`
1394
+
// RuleStatus: returns only alerts with the given activation status. If omitted, no alert filtering is applied. Other filters may still apply.
1395
+
// Default value: unknown_status
1396
+
RuleStatus*AlertStatus`json:"-"`
1348
1397
1349
1398
// IsPreconfigured: true returns only preconfigured alerts. False returns only custom alerts. If omitted, no filtering is applied on alert types. Other filters may still apply.
0 commit comments