Skip to content

Commit c8a3f1a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 842df52 of spec repo
1 parent 5a389cf commit c8a3f1a

File tree

2 files changed

+128
-0
lines changed

2 files changed

+128
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58153,6 +58153,64 @@ paths:
5815358153
description: Returns a list of all monitor notification rules.
5815458154
operationId: GetMonitorNotificationRules
5815558155
parameters:
58156+
- description: The page to start paginating from. If `page` is not specified,
58157+
the argument defaults to the first page.
58158+
in: query
58159+
name: page
58160+
required: false
58161+
schema:
58162+
format: int32
58163+
maximum: 1000000
58164+
minimum: 0
58165+
type: integer
58166+
- description: The number of rules to return per page. If `per_page` is not
58167+
specified, the argument defaults to 100.
58168+
in: query
58169+
name: per_page
58170+
required: false
58171+
schema:
58172+
format: int32
58173+
maximum: 1000
58174+
minimum: 1
58175+
type: integer
58176+
- description: 'String for sort order, composed of field and sort order separated
58177+
by a colon, for example `name:asc`. Supported sort directions: `asc`, `desc`.
58178+
Supported fields: `name`, `created_at`.'
58179+
in: query
58180+
name: sort
58181+
required: false
58182+
schema:
58183+
type: string
58184+
- description: 'Filter all rules by the given filter criteria. Defaults to no
58185+
filtering.
58186+
58187+
Supported fields: `text`, `tags`, `recipients`.'
58188+
in: query
58189+
name: filters
58190+
required: false
58191+
schema:
58192+
properties:
58193+
recipients:
58194+
description: List of recipients to filter Notification Rules by.
58195+
example:
58196+
- slack-monitor-app
58197+
- email@example.com
58198+
items:
58199+
type: string
58200+
type: array
58201+
tags:
58202+
description: List of tags to filter Notification Rules by.
58203+
example:
58204+
- env:prod
58205+
- service:api
58206+
- team:my-team
58207+
items:
58208+
type: string
58209+
type: array
58210+
text:
58211+
description: Text to filter Notification Rules by.
58212+
type: string
58213+
type: object
5815658214
- description: 'Comma-separated list of resource paths for related resources
5815758215
to include in the response. Supported resource
5815858216

src/main/java/com/datadog/api/client/v2/api/MonitorsApi.java

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,8 +1252,62 @@ public ApiResponse<MonitorNotificationRuleResponse> getMonitorNotificationRuleWi
12521252

12531253
/** Manage optional parameters to getMonitorNotificationRules. */
12541254
public static class GetMonitorNotificationRulesOptionalParameters {
1255+
private Integer page;
1256+
private Integer perPage;
1257+
private String sort;
1258+
private Object filters;
12551259
private String include;
12561260

1261+
/**
1262+
* Set page.
1263+
*
1264+
* @param page The page to start paginating from. If <code>page</code> is not specified, the
1265+
* argument defaults to the first page. (optional)
1266+
* @return GetMonitorNotificationRulesOptionalParameters
1267+
*/
1268+
public GetMonitorNotificationRulesOptionalParameters page(Integer page) {
1269+
this.page = page;
1270+
return this;
1271+
}
1272+
1273+
/**
1274+
* Set perPage.
1275+
*
1276+
* @param perPage The number of rules to return per page. If <code>per_page</code> is not
1277+
* specified, the argument defaults to 100. (optional)
1278+
* @return GetMonitorNotificationRulesOptionalParameters
1279+
*/
1280+
public GetMonitorNotificationRulesOptionalParameters perPage(Integer perPage) {
1281+
this.perPage = perPage;
1282+
return this;
1283+
}
1284+
1285+
/**
1286+
* Set sort.
1287+
*
1288+
* @param sort String for sort order, composed of field and sort order separated by a colon, for
1289+
* example <code>name:asc</code>. Supported sort directions: <code>asc</code>, <code>desc
1290+
* </code>. Supported fields: <code>name</code>, <code>created_at</code>. (optional)
1291+
* @return GetMonitorNotificationRulesOptionalParameters
1292+
*/
1293+
public GetMonitorNotificationRulesOptionalParameters sort(String sort) {
1294+
this.sort = sort;
1295+
return this;
1296+
}
1297+
1298+
/**
1299+
* Set filters.
1300+
*
1301+
* @param filters Filter all rules by the given filter criteria. Defaults to no filtering.
1302+
* Supported fields: <code>text</code>, <code>tags</code>, <code>recipients</code>.
1303+
* (optional)
1304+
* @return GetMonitorNotificationRulesOptionalParameters
1305+
*/
1306+
public GetMonitorNotificationRulesOptionalParameters filters(Object filters) {
1307+
this.filters = filters;
1308+
return this;
1309+
}
1310+
12571311
/**
12581312
* Set include.
12591313
*
@@ -1346,13 +1400,21 @@ public CompletableFuture<MonitorNotificationRuleListResponse> getMonitorNotifica
13461400
public ApiResponse<MonitorNotificationRuleListResponse> getMonitorNotificationRulesWithHttpInfo(
13471401
GetMonitorNotificationRulesOptionalParameters parameters) throws ApiException {
13481402
Object localVarPostBody = null;
1403+
Integer page = parameters.page;
1404+
Integer perPage = parameters.perPage;
1405+
String sort = parameters.sort;
1406+
Object filters = parameters.filters;
13491407
String include = parameters.include;
13501408
// create path and map variables
13511409
String localVarPath = "/api/v2/monitor/notification_rule";
13521410

13531411
List<Pair> localVarQueryParams = new ArrayList<Pair>();
13541412
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
13551413

1414+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page));
1415+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "per_page", perPage));
1416+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
1417+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filters", filters));
13561418
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
13571419

13581420
Invocation.Builder builder =
@@ -1387,13 +1449,21 @@ public ApiResponse<MonitorNotificationRuleListResponse> getMonitorNotificationRu
13871449
getMonitorNotificationRulesWithHttpInfoAsync(
13881450
GetMonitorNotificationRulesOptionalParameters parameters) {
13891451
Object localVarPostBody = null;
1452+
Integer page = parameters.page;
1453+
Integer perPage = parameters.perPage;
1454+
String sort = parameters.sort;
1455+
Object filters = parameters.filters;
13901456
String include = parameters.include;
13911457
// create path and map variables
13921458
String localVarPath = "/api/v2/monitor/notification_rule";
13931459

13941460
List<Pair> localVarQueryParams = new ArrayList<Pair>();
13951461
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
13961462

1463+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page));
1464+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "per_page", perPage));
1465+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
1466+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filters", filters));
13971467
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
13981468

13991469
Invocation.Builder builder;

0 commit comments

Comments
 (0)