Skip to content

Commit 88b890d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 509b7fa of spec repo
1 parent 3e06752 commit 88b890d

File tree

2 files changed

+127
-0
lines changed

2 files changed

+127
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58094,6 +58094,63 @@ paths:
5809458094
description: Returns a list of all monitor notification rules.
5809558095
operationId: GetMonitorNotificationRules
5809658096
parameters:
58097+
- description: The page to start paginating from. If `page` is not specified,
58098+
the argument defaults to the first page.
58099+
in: query
58100+
name: page
58101+
required: false
58102+
schema:
58103+
format: int32
58104+
maximum: 1000000
58105+
minimum: 0
58106+
type: integer
58107+
- description: The number of rules to return per page. If `per_page` is not
58108+
specified, the argument defaults to 100.
58109+
in: query
58110+
name: per_page
58111+
required: false
58112+
schema:
58113+
format: int32
58114+
maximum: 1000
58115+
minimum: 1
58116+
type: integer
58117+
- description: 'String for sort order, composed of field and sort order separated
58118+
by a colon, for example `name:asc`. Supported sort directions: `asc`, `desc`.
58119+
Supported fields: `name`, `created_at`.'
58120+
in: query
58121+
name: sort
58122+
required: false
58123+
schema:
58124+
type: string
58125+
- description: 'Filter all rules by the given filter criteria. Defaults to no
58126+
filtering.
58127+
58128+
Supported fields: `text`, `tags`, `recipients`.'
58129+
in: query
58130+
name: filters
58131+
required: false
58132+
schema:
58133+
properties:
58134+
recipients:
58135+
description: List of recipients to filter Notification Rules by.
58136+
example:
58137+
- slack-monitor-app
58138+
- email@example.com
58139+
items:
58140+
type: string
58141+
type: array
58142+
tags:
58143+
description: List of tags to filter Notification Rules by.
58144+
example:
58145+
- env:prod
58146+
- service:api
58147+
items:
58148+
type: string
58149+
type: array
58150+
text:
58151+
description: Text to filter Notification Rules by.
58152+
type: string
58153+
type: object
5809758154
- description: 'Comma-separated list of resource paths for related resources
5809858155
to include in the response. Supported resource
5809958156

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)