Skip to content

update metrics.yaml for ListMetricAssets #2511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "d93d991",
"generated": "2025-07-15 09:31:41.973"
"spec_repo_commit": "8ebfd3c",
"generated": "2025-07-16 15:30:28.112"
}
13 changes: 12 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22116,8 +22116,19 @@ components:
readOnly: true
type: object
MetricAssetAttributes:
description: Assets related to the object, including title and url.
description: Assets related to the object, including title, url, and tags.
properties:
tags:
description: List of tag keys used across all assets containing this metric.
example:
- env
- service
- host
- datacenter
items:
description: Tag key used in assets.
type: string
type: array
title:
description: Title of the asset.
type: string
Expand Down
16 changes: 14 additions & 2 deletions lib/datadog_api_client/v2/models/metric_asset_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
require 'time'

module DatadogAPIClient::V2
# Assets related to the object, including title and url.
# Assets related to the object, including title, url, and tags.
class MetricAssetAttributes
include BaseGenericModel

# List of tag keys used across all assets containing this metric.
attr_accessor :tags

# Title of the asset.
attr_accessor :title

Expand All @@ -33,6 +36,7 @@ class MetricAssetAttributes
# @!visibility private
def self.attribute_map
{
:'tags' => :'tags',
:'title' => :'title',
:'url' => :'url'
}
Expand All @@ -42,6 +46,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'tags' => :'Array<String>',
:'title' => :'String',
:'url' => :'String'
}
Expand All @@ -65,6 +70,12 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'tags')
if (value = attributes[:'tags']).is_a?(Array)
self.tags = value
end
end

if attributes.key?(:'title')
self.title = attributes[:'title']
end
Expand Down Expand Up @@ -100,6 +111,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
tags == o.tags &&
title == o.title &&
url == o.url &&
additional_properties == o.additional_properties
Expand All @@ -109,7 +121,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[title, url, additional_properties].hash
[tags, title, url, additional_properties].hash
end
end
end
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/models/metric_monitor_asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V2
class MetricMonitorAsset
include BaseGenericModel

# Assets related to the object, including title and url.
# Assets related to the object, including title, url, and tags.
attr_accessor :attributes

# The related monitor's ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V2
class MetricNotebookAsset
include BaseGenericModel

# Assets related to the object, including title and url.
# Assets related to the object, including title, url, and tags.
attr_accessor :attributes

# The related notebook's ID.
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/models/metric_slo_asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module DatadogAPIClient::V2
class MetricSLOAsset
include BaseGenericModel

# Assets related to the object, including title and url.
# Assets related to the object, including title, url, and tags.
attr_accessor :attributes

# The SLO ID.
Expand Down
Loading