@@ -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