Skip to content

Commit fd3263e

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

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
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:07.219977",
8-
"spec_repo_commit": "fe5af5dc"
7+
"regenerated": "2025-03-05 21:00:32.784253",
8+
"spec_repo_commit": "6105a175"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-05 15:55:07.235503",
13-
"spec_repo_commit": "fe5af5dc"
12+
"regenerated": "2025-03-05 21:00:32.801487",
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

lib/datadog_api_client/v1/models/monitor_search_result.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ class MonitorSearchResult
4545
# The ID of the organization.
4646
attr_accessor :org_id
4747

48+
# Quality issues detected with the monitor.
49+
attr_accessor :quality_issues
50+
4851
# The monitor query.
4952
attr_accessor :query
5053

@@ -77,6 +80,7 @@ def self.attribute_map
7780
:'name' => :'name',
7881
:'notifications' => :'notifications',
7982
:'org_id' => :'org_id',
83+
:'quality_issues' => :'quality_issues',
8084
:'query' => :'query',
8185
:'scopes' => :'scopes',
8286
:'status' => :'status',
@@ -97,6 +101,7 @@ def self.openapi_types
97101
:'name' => :'String',
98102
:'notifications' => :'Array<MonitorSearchResultNotification>',
99103
:'org_id' => :'Integer',
104+
:'quality_issues' => :'Array<String>',
100105
:'query' => :'String',
101106
:'scopes' => :'Array<String>',
102107
:'status' => :'MonitorOverallStates',
@@ -167,6 +172,12 @@ def initialize(attributes = {})
167172
self.org_id = attributes[:'org_id']
168173
end
169174

175+
if attributes.key?(:'quality_issues')
176+
if (value = attributes[:'quality_issues']).is_a?(Array)
177+
self.quality_issues = value
178+
end
179+
end
180+
170181
if attributes.key?(:'query')
171182
self.query = attributes[:'query']
172183
end
@@ -226,6 +237,7 @@ def ==(o)
226237
name == o.name &&
227238
notifications == o.notifications &&
228239
org_id == o.org_id &&
240+
quality_issues == o.quality_issues &&
229241
query == o.query &&
230242
scopes == o.scopes &&
231243
status == o.status &&
@@ -238,7 +250,7 @@ def ==(o)
238250
# @return [Integer] Hash code
239251
# @!visibility private
240252
def hash
241-
[classification, creator, id, last_triggered_ts, metrics, name, notifications, org_id, query, scopes, status, tags, type, additional_properties].hash
253+
[classification, creator, id, last_triggered_ts, metrics, name, notifications, org_id, quality_issues, query, scopes, status, tags, type, additional_properties].hash
242254
end
243255
end
244256
end

0 commit comments

Comments
 (0)