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
return0, errors.New("%T type cannot be appended to type %T", res, r)
1102
-
}
1103
-
1104
-
r.Alerts=append(r.Alerts, results.Alerts...)
1105
-
r.TotalCount+=uint64(len(results.Alerts))
1106
-
returnuint64(len(results.Alerts)), nil
1107
-
}
1108
-
1109
1022
// ListPlansResponse: Output returned when listing pricing plans.
1110
1023
typeListPlansResponsestruct {
1111
1024
// TotalCount: total count of available pricing plans.
@@ -1338,7 +1251,7 @@ type RegionalAPIListAlertsRequest struct {
1338
1251
1339
1252
// State: valid values to filter on are `disabled`, `enabled`, `pending` and `firing`. If omitted, no filtering is applied on alert states. Other filters may still apply.
1340
1253
// Default value: unknown_state
1341
-
State*AnyAlertState`json:"-"`
1254
+
State*AlertState`json:"-"`
1342
1255
}
1343
1256
1344
1257
// RegionalAPIListContactPointsRequest: List contact points.
@@ -1382,25 +1295,6 @@ type RegionalAPIListDataSourcesRequest struct {
1382
1295
Types []DataSourceType`json:"-"`
1383
1296
}
1384
1297
1385
-
// RegionalAPIListManagedAlertsRequest: Enable the sending of managed alerts.
1386
-
typeRegionalAPIListManagedAlertsRequeststruct {
1387
-
// Region: region to target. If none is passed will use default region from the config.
1388
-
Region scw.Region`json:"-"`
1389
-
1390
-
// Page: page number to return, from the paginated results.
1391
-
Page*int32`json:"-"`
1392
-
1393
-
// PageSize: number of data sources to return per page.
1394
-
PageSize*uint32`json:"-"`
1395
-
1396
-
// OrderBy: sort order for data sources in the response.
1397
-
// Default value: created_at_asc
1398
-
OrderByListManagedAlertsRequestOrderBy`json:"-"`
1399
-
1400
-
// ProjectID: project ID to filter for, only data sources from this Project will be returned.
1401
-
ProjectIDstring`json:"-"`
1402
-
}
1403
-
1404
1298
// RegionalAPIListTokensRequest: List tokens.
1405
1299
typeRegionalAPIListTokensRequeststruct {
1406
1300
// Region: region to target. If none is passed will use default region from the config.
@@ -2494,50 +2388,6 @@ func (s *RegionalAPI) DeleteContactPoint(req *RegionalAPIDeleteContactPointReque
2494
2388
returnnil
2495
2389
}
2496
2390
2497
-
// ListManagedAlerts: List all managed alerts for the specified Project.
0 commit comments