diff --git a/.generated-info b/.generated-info index 5e61f7884dbd..8a6747241a39 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "4727afe", - "generated": "2025-07-23 15:36:20.048" + "spec_repo_commit": "c09ac23", + "generated": "2025-07-24 19:57:54.130" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d6126b44306f..db8036425c49 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -22454,8 +22454,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 in the asset. + example: + - env + - service + - host + - datacenter + items: + description: Tag key used in assets. + type: string + type: array title: description: Title of the asset. type: string diff --git a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb index ffbe6492f667..dffb1ea0c95f 100644 --- a/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_asset_attributes.rb @@ -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 in the asset. + attr_accessor :tags + # Title of the asset. attr_accessor :title @@ -33,6 +36,7 @@ class MetricAssetAttributes # @!visibility private def self.attribute_map { + :'tags' => :'tags', :'title' => :'title', :'url' => :'url' } @@ -42,6 +46,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'tags' => :'Array', :'title' => :'String', :'url' => :'String' } @@ -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 @@ -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 @@ -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 diff --git a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb index 6967a85a3c11..062ad0ae7884 100644 --- a/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_monitor_asset.rb @@ -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. diff --git a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb index d39d1a800b91..8ec958a98ebe 100644 --- a/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_notebook_asset.rb @@ -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. diff --git a/lib/datadog_api_client/v2/models/metric_slo_asset.rb b/lib/datadog_api_client/v2/models/metric_slo_asset.rb index 7eeb73c74c7e..ce4339143474 100644 --- a/lib/datadog_api_client/v2/models/metric_slo_asset.rb +++ b/lib/datadog_api_client/v2/models/metric_slo_asset.rb @@ -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.