From 1195234c0d9c355c02d47f0bf7a614c5fecc7991 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 5 Sep 2025 13:17:22 +0000 Subject: [PATCH] Regenerate client from commit 5b8fdc9 of spec repo --- .generator/schemas/v2/openapi.yaml | 41 +++++++++++ .../api/client/v2/api/MonitorsApi.java | 71 +++++++++++++++++++ 2 files changed, 112 insertions(+) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index bb7c9c3507f..2f4dce9e3c2 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -58413,6 +58413,47 @@ paths: description: Returns a list of all monitor notification rules. operationId: GetMonitorNotificationRules parameters: + - description: The page to start paginating from. If `page` is not specified, + the argument defaults to the first page. + in: query + name: page + required: false + schema: + format: int32 + maximum: 1000000 + minimum: 0 + type: integer + - description: The number of rules to return per page. If `per_page` is not + specified, the argument defaults to 100. + in: query + name: per_page + required: false + schema: + format: int32 + maximum: 1000 + minimum: 1 + type: integer + - description: 'String for sort order, composed of field and sort order separated + by a colon, for example `name:asc`. Supported sort directions: `asc`, `desc`. + Supported fields: `name`, `created_at`.' + in: query + name: sort + required: false + schema: + type: string + - description: 'JSON-encoded filter object. Supported keys: + + * `text`: Free-text query matched against rule name, tags, and recipients. + + * `tags`: Array of strings. Return rules that have any of these tags. + + * `recipients`: Array of strings. Return rules that have any of these recipients.' + example: '{"text":"error","tags":["env:prod","team:my-team"],"recipients":["slack-monitor-app","email@example.com"]}' + in: query + name: filters + required: false + schema: + type: string - description: 'Comma-separated list of resource paths for related resources to include in the response. Supported resource diff --git a/src/main/java/com/datadog/api/client/v2/api/MonitorsApi.java b/src/main/java/com/datadog/api/client/v2/api/MonitorsApi.java index 93bab176e3e..e42e54868c6 100644 --- a/src/main/java/com/datadog/api/client/v2/api/MonitorsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/MonitorsApi.java @@ -1252,8 +1252,63 @@ public ApiResponse getMonitorNotificationRuleWi /** Manage optional parameters to getMonitorNotificationRules. */ public static class GetMonitorNotificationRulesOptionalParameters { + private Integer page; + private Integer perPage; + private String sort; + private String filters; private String include; + /** + * Set page. + * + * @param page The page to start paginating from. If page is not specified, the + * argument defaults to the first page. (optional) + * @return GetMonitorNotificationRulesOptionalParameters + */ + public GetMonitorNotificationRulesOptionalParameters page(Integer page) { + this.page = page; + return this; + } + + /** + * Set perPage. + * + * @param perPage The number of rules to return per page. If per_page is not + * specified, the argument defaults to 100. (optional) + * @return GetMonitorNotificationRulesOptionalParameters + */ + public GetMonitorNotificationRulesOptionalParameters perPage(Integer perPage) { + this.perPage = perPage; + return this; + } + + /** + * Set sort. + * + * @param sort String for sort order, composed of field and sort order separated by a colon, for + * example name:asc. Supported sort directions: asc, desc + * . Supported fields: name, created_at. (optional) + * @return GetMonitorNotificationRulesOptionalParameters + */ + public GetMonitorNotificationRulesOptionalParameters sort(String sort) { + this.sort = sort; + return this; + } + + /** + * Set filters. + * + * @param filters JSON-encoded filter object. Supported keys: * text: Free-text + * query matched against rule name, tags, and recipients. * tags: Array of + * strings. Return rules that have any of these tags. * recipients: Array of + * strings. Return rules that have any of these recipients. (optional) + * @return GetMonitorNotificationRulesOptionalParameters + */ + public GetMonitorNotificationRulesOptionalParameters filters(String filters) { + this.filters = filters; + return this; + } + /** * Set include. * @@ -1346,6 +1401,10 @@ public CompletableFuture getMonitorNotifica public ApiResponse getMonitorNotificationRulesWithHttpInfo( GetMonitorNotificationRulesOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; + Integer page = parameters.page; + Integer perPage = parameters.perPage; + String sort = parameters.sort; + String filters = parameters.filters; String include = parameters.include; // create path and map variables String localVarPath = "/api/v2/monitor/notification_rule"; @@ -1353,6 +1412,10 @@ public ApiResponse getMonitorNotificationRu List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "per_page", perPage)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filters", filters)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include)); Invocation.Builder builder = @@ -1387,6 +1450,10 @@ public ApiResponse getMonitorNotificationRu getMonitorNotificationRulesWithHttpInfoAsync( GetMonitorNotificationRulesOptionalParameters parameters) { Object localVarPostBody = null; + Integer page = parameters.page; + Integer perPage = parameters.perPage; + String sort = parameters.sort; + String filters = parameters.filters; String include = parameters.include; // create path and map variables String localVarPath = "/api/v2/monitor/notification_rule"; @@ -1394,6 +1461,10 @@ public ApiResponse getMonitorNotificationRu List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "per_page", perPage)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filters", filters)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include)); Invocation.Builder builder;