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
Copy file name to clipboardExpand all lines: api/cockpit/v1/cockpit_sdk.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -573,6 +573,9 @@ type Alert struct {
573
573
574
574
// PreconfiguredData: contains additional data for preconfigured alerts, such as the rule ID, display name, and description. Only present if the alert is preconfigured.
// DataSourceID: ID of the data source containing the alert rule.
578
+
DataSourceIDstring`json:"data_source_id"`
576
579
}
577
580
578
581
// ContactPoint: Contact point.
@@ -1304,6 +1307,9 @@ type RegionalAPIListAlertsRequest struct {
1304
1307
// State: valid values to filter on are `inactive`, `pending` and `firing`. If omitted, no filtering is applied on alert states. Other filters may still apply.
1305
1308
// Default value: unknown_state
1306
1309
State*AlertState`json:"-"`
1310
+
1311
+
// DataSourceID: if omitted, only alerts from the default scaleway data source will be listed.
1312
+
DataSourceID*string`json:"-"`
1307
1313
}
1308
1314
1309
1315
// RegionalAPIListContactPointsRequest: List contact points.
0 commit comments