Skip to content

Commit 7af15ff

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add quality_issues to monitor schema on monitor search API (#2442)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 8affa9c commit 7af15ff

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-05 15:55:01.177443",
8-
"spec_repo_commit": "fe5af5dc"
7+
"regenerated": "2025-03-05 21:00:37.604180",
8+
"spec_repo_commit": "6105a175"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-05 15:55:01.192031",
13-
"spec_repo_commit": "fe5af5dc"
12+
"regenerated": "2025-03-05 21:00:37.618875",
13+
"spec_repo_commit": "6105a175"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7551,6 +7551,9 @@ components:
75517551
75527552
name: Jane Doe
75537553
org_id: 1234
7554+
quality_issues:
7555+
- broken_at_handle
7556+
- noisy_monitor
75547557
scopes:
75557558
- '!availability-zone:us-east-1c'
75567559
- name:cassandra
@@ -7650,6 +7653,14 @@ components:
76507653
format: int64
76517654
readOnly: true
76527655
type: integer
7656+
quality_issues:
7657+
description: Quality issues detected with the monitor.
7658+
items:
7659+
description: A quality issue detected with the monitor.
7660+
readOnly: true
7661+
type: string
7662+
readOnly: true
7663+
type: array
76537664
query:
76547665
description: The monitor query.
76557666
example: avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100

src/datadog_api_client/v1/model/monitor_search_result.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def openapi_types(_):
3838
"name": (str,),
3939
"notifications": ([MonitorSearchResultNotification],),
4040
"org_id": (int,),
41+
"quality_issues": ([str],),
4142
"query": (str,),
4243
"scopes": ([str],),
4344
"status": (MonitorOverallStates,),
@@ -54,6 +55,7 @@ def openapi_types(_):
5455
"name": "name",
5556
"notifications": "notifications",
5657
"org_id": "org_id",
58+
"quality_issues": "quality_issues",
5759
"query": "query",
5860
"scopes": "scopes",
5961
"status": "status",
@@ -69,6 +71,7 @@ def openapi_types(_):
6971
"name",
7072
"notifications",
7173
"org_id",
74+
"quality_issues",
7275
"status",
7376
"tags",
7477
}
@@ -83,6 +86,7 @@ def __init__(
8386
name: Union[str, UnsetType] = unset,
8487
notifications: Union[List[MonitorSearchResultNotification], UnsetType] = unset,
8588
org_id: Union[int, UnsetType] = unset,
89+
quality_issues: Union[List[str], UnsetType] = unset,
8690
query: Union[str, UnsetType] = unset,
8791
scopes: Union[List[str], UnsetType] = unset,
8892
status: Union[MonitorOverallStates, UnsetType] = unset,
@@ -117,6 +121,9 @@ def __init__(
117121
:param org_id: The ID of the organization.
118122
:type org_id: int, optional
119123
124+
:param quality_issues: Quality issues detected with the monitor.
125+
:type quality_issues: [str], optional
126+
120127
:param query: The monitor query.
121128
:type query: str, optional
122129
@@ -151,6 +158,8 @@ def __init__(
151158
kwargs["notifications"] = notifications
152159
if org_id is not unset:
153160
kwargs["org_id"] = org_id
161+
if quality_issues is not unset:
162+
kwargs["quality_issues"] = quality_issues
154163
if query is not unset:
155164
kwargs["query"] = query
156165
if scopes is not unset:

0 commit comments

Comments
 (0)