diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c9fb359c525b..a72f469bfc81 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -21830,8 +21830,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 diff --git a/services/metrics/src/v2/models/MetricAssetAttributes.ts b/services/metrics/src/v2/models/MetricAssetAttributes.ts index b19146b9db32..9a20d5baf906 100644 --- a/services/metrics/src/v2/models/MetricAssetAttributes.ts +++ b/services/metrics/src/v2/models/MetricAssetAttributes.ts @@ -1,9 +1,13 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; /** - * Assets related to the object, including title and url. + * Assets related to the object, including title, url, and tags. */ export class MetricAssetAttributes { + /** + * List of tag keys used across all assets containing this metric. + */ + "tags"?: Array; /** * Title of the asset. */ @@ -27,6 +31,10 @@ export class MetricAssetAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + tags: { + baseName: "tags", + type: "Array", + }, title: { baseName: "title", type: "string", diff --git a/services/metrics/src/v2/models/MetricMonitorAsset.ts b/services/metrics/src/v2/models/MetricMonitorAsset.ts index 620bcbf53a58..e2306659ee60 100644 --- a/services/metrics/src/v2/models/MetricMonitorAsset.ts +++ b/services/metrics/src/v2/models/MetricMonitorAsset.ts @@ -8,7 +8,7 @@ import { MetricMonitorType } from "./MetricMonitorType"; */ export class MetricMonitorAsset { /** - * Assets related to the object, including title and url. + * Assets related to the object, including title, url, and tags. */ "attributes"?: MetricAssetAttributes; /** diff --git a/services/metrics/src/v2/models/MetricNotebookAsset.ts b/services/metrics/src/v2/models/MetricNotebookAsset.ts index db7658dd6246..a53190093791 100644 --- a/services/metrics/src/v2/models/MetricNotebookAsset.ts +++ b/services/metrics/src/v2/models/MetricNotebookAsset.ts @@ -8,7 +8,7 @@ import { MetricNotebookType } from "./MetricNotebookType"; */ export class MetricNotebookAsset { /** - * Assets related to the object, including title and url. + * Assets related to the object, including title, url, and tags. */ "attributes"?: MetricAssetAttributes; /** diff --git a/services/metrics/src/v2/models/MetricSLOAsset.ts b/services/metrics/src/v2/models/MetricSLOAsset.ts index 712db2539783..b701eda4cd05 100644 --- a/services/metrics/src/v2/models/MetricSLOAsset.ts +++ b/services/metrics/src/v2/models/MetricSLOAsset.ts @@ -8,7 +8,7 @@ import { MetricSLOType } from "./MetricSLOType"; */ export class MetricSLOAsset { /** - * Assets related to the object, including title and url. + * Assets related to the object, including title, url, and tags. */ "attributes"?: MetricAssetAttributes; /**