Skip to content

Commit 48e3a06

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cf00c21 of spec repo
1 parent 507a9c9 commit 48e3a06

File tree

6 files changed

+31
-8
lines changed

6 files changed

+31
-8
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": "bb240c6",
3-
"generated": "2025-07-14 18:16:06.328"
2+
"spec_repo_commit": "cf00c21",
3+
"generated": "2025-07-15 14:14:56.773"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22116,8 +22116,19 @@ components:
2211622116
readOnly: true
2211722117
type: object
2211822118
MetricAssetAttributes:
22119-
description: Assets related to the object, including title and url.
22119+
description: Assets related to the object, including title, url, and tags.
2212022120
properties:
22121+
tags:
22122+
description: List of tag keys used across all assets containing this metric.
22123+
example:
22124+
- env
22125+
- service
22126+
- host
22127+
- datacenter
22128+
items:
22129+
description: Tag key used in assets.
22130+
type: string
22131+
type: array
2212122132
title:
2212222133
description: Title of the asset.
2212322134
type: string

lib/datadog_api_client/v2/models/metric_asset_attributes.rb

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# Assets related to the object, including title and url.
20+
# Assets related to the object, including title, url, and tags.
2121
class MetricAssetAttributes
2222
include BaseGenericModel
2323

24+
# List of tag keys used across all assets containing this metric.
25+
attr_accessor :tags
26+
2427
# Title of the asset.
2528
attr_accessor :title
2629

@@ -33,6 +36,7 @@ class MetricAssetAttributes
3336
# @!visibility private
3437
def self.attribute_map
3538
{
39+
:'tags' => :'tags',
3640
:'title' => :'title',
3741
:'url' => :'url'
3842
}
@@ -42,6 +46,7 @@ def self.attribute_map
4246
# @!visibility private
4347
def self.openapi_types
4448
{
49+
:'tags' => :'Array<String>',
4550
:'title' => :'String',
4651
:'url' => :'String'
4752
}
@@ -65,6 +70,12 @@ def initialize(attributes = {})
6570
end
6671
}
6772

73+
if attributes.key?(:'tags')
74+
if (value = attributes[:'tags']).is_a?(Array)
75+
self.tags = value
76+
end
77+
end
78+
6879
if attributes.key?(:'title')
6980
self.title = attributes[:'title']
7081
end
@@ -100,6 +111,7 @@ def to_hash
100111
def ==(o)
101112
return true if self.equal?(o)
102113
self.class == o.class &&
114+
tags == o.tags &&
103115
title == o.title &&
104116
url == o.url &&
105117
additional_properties == o.additional_properties
@@ -109,7 +121,7 @@ def ==(o)
109121
# @return [Integer] Hash code
110122
# @!visibility private
111123
def hash
112-
[title, url, additional_properties].hash
124+
[tags, title, url, additional_properties].hash
113125
end
114126
end
115127
end

lib/datadog_api_client/v2/models/metric_monitor_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class MetricMonitorAsset
2222
include BaseGenericModel
2323

24-
# Assets related to the object, including title and url.
24+
# Assets related to the object, including title, url, and tags.
2525
attr_accessor :attributes
2626

2727
# The related monitor's ID.

lib/datadog_api_client/v2/models/metric_notebook_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class MetricNotebookAsset
2222
include BaseGenericModel
2323

24-
# Assets related to the object, including title and url.
24+
# Assets related to the object, including title, url, and tags.
2525
attr_accessor :attributes
2626

2727
# The related notebook's ID.

lib/datadog_api_client/v2/models/metric_slo_asset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
2121
class MetricSLOAsset
2222
include BaseGenericModel
2323

24-
# Assets related to the object, including title and url.
24+
# Assets related to the object, including title, url, and tags.
2525
attr_accessor :attributes
2626

2727
# The SLO ID.

0 commit comments

Comments
 (0)