Skip to content

Commit 83204bf

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
update metrics.yaml for ListMetricAssets and include Dashboard info (#2564)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ad254c9 commit 83204bf

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "e4f653f",
3-
"generated": "2025-07-25 14:07:18.059"
2+
"spec_repo_commit": "b737cc4",
3+
"generated": "2025-07-28 13:11:24.660"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22867,6 +22867,17 @@ components:
2286722867
maximum: 5
2286822868
minimum: 0
2286922869
type: number
22870+
tags:
22871+
description: List of tag keys used in the asset.
22872+
example:
22873+
- env
22874+
- service
22875+
- host
22876+
- datacenter
22877+
items:
22878+
description: Tag key used in assets.
22879+
type: string
22880+
type: array
2287022881
title:
2287122882
description: Title of the asset.
2287222883
type: string

lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class MetricDashboardAttributes
2424
# Value from 0 to 5 that ranks popularity of the dashboard.
2525
attr_reader :popularity
2626

27+
# List of tag keys used in the asset.
28+
attr_accessor :tags
29+
2730
# Title of the asset.
2831
attr_accessor :title
2932

@@ -37,6 +40,7 @@ class MetricDashboardAttributes
3740
def self.attribute_map
3841
{
3942
:'popularity' => :'popularity',
43+
:'tags' => :'tags',
4044
:'title' => :'title',
4145
:'url' => :'url'
4246
}
@@ -47,6 +51,7 @@ def self.attribute_map
4751
def self.openapi_types
4852
{
4953
:'popularity' => :'Float',
54+
:'tags' => :'Array<String>',
5055
:'title' => :'String',
5156
:'url' => :'String'
5257
}
@@ -74,6 +79,12 @@ def initialize(attributes = {})
7479
self.popularity = attributes[:'popularity']
7580
end
7681

82+
if attributes.key?(:'tags')
83+
if (value = attributes[:'tags']).is_a?(Array)
84+
self.tags = value
85+
end
86+
end
87+
7788
if attributes.key?(:'title')
7889
self.title = attributes[:'title']
7990
end
@@ -132,6 +143,7 @@ def ==(o)
132143
return true if self.equal?(o)
133144
self.class == o.class &&
134145
popularity == o.popularity &&
146+
tags == o.tags &&
135147
title == o.title &&
136148
url == o.url &&
137149
additional_properties == o.additional_properties
@@ -141,7 +153,7 @@ def ==(o)
141153
# @return [Integer] Hash code
142154
# @!visibility private
143155
def hash
144-
[popularity, title, url, additional_properties].hash
156+
[popularity, tags, title, url, additional_properties].hash
145157
end
146158
end
147159
end

0 commit comments

Comments
 (0)