Skip to content

Commit 26e01ad

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 509b7fa of spec repo
1 parent 6a881df commit 26e01ad

File tree

2 files changed

+110
-0
lines changed

2 files changed

+110
-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/datadog_api_client/v2/api/monitors_api.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,34 @@ def __init__(self, api_client=None):
230230
"version": "v2",
231231
},
232232
params_map={
233+
"page": {
234+
"validation": {
235+
"inclusive_maximum": 1000000,
236+
"inclusive_minimum": 0,
237+
},
238+
"openapi_types": (int,),
239+
"attribute": "page",
240+
"location": "query",
241+
},
242+
"per_page": {
243+
"validation": {
244+
"inclusive_maximum": 1000,
245+
"inclusive_minimum": 1,
246+
},
247+
"openapi_types": (int,),
248+
"attribute": "per_page",
249+
"location": "query",
250+
},
251+
"sort": {
252+
"openapi_types": (str,),
253+
"attribute": "sort",
254+
"location": "query",
255+
},
256+
"filters": {
257+
"openapi_types": (dict,),
258+
"attribute": "filters",
259+
"location": "query",
260+
},
233261
"include": {
234262
"openapi_types": (str,),
235263
"attribute": "include",
@@ -572,18 +600,43 @@ def get_monitor_notification_rule(
572600
def get_monitor_notification_rules(
573601
self,
574602
*,
603+
page: Union[int, UnsetType] = unset,
604+
per_page: Union[int, UnsetType] = unset,
605+
sort: Union[str, UnsetType] = unset,
606+
filters: Union[dict, UnsetType] = unset,
575607
include: Union[str, UnsetType] = unset,
576608
) -> MonitorNotificationRuleListResponse:
577609
"""Get all monitor notification rules.
578610
579611
Returns a list of all monitor notification rules.
580612
613+
:param page: The page to start paginating from. If ``page`` is not specified, the argument defaults to the first page.
614+
:type page: int, optional
615+
:param per_page: The number of rules to return per page. If ``per_page`` is not specified, the argument defaults to 100.
616+
:type per_page: int, optional
617+
: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``.
618+
:type sort: str, optional
619+
:param filters: Filter all rules by the given filter criteria. Defaults to no filtering.
620+
Supported fields: ``text`` , ``tags`` , ``recipients``.
621+
:type filters: dict, optional
581622
:param include: Comma-separated list of resource paths for related resources to include in the response. Supported resource
582623
path is ``created_by``.
583624
:type include: str, optional
584625
:rtype: MonitorNotificationRuleListResponse
585626
"""
586627
kwargs: Dict[str, Any] = {}
628+
if page is not unset:
629+
kwargs["page"] = page
630+
631+
if per_page is not unset:
632+
kwargs["per_page"] = per_page
633+
634+
if sort is not unset:
635+
kwargs["sort"] = sort
636+
637+
if filters is not unset:
638+
kwargs["filters"] = filters
639+
587640
if include is not unset:
588641
kwargs["include"] = include
589642

0 commit comments

Comments
 (0)