Skip to content

Commit f3ae579

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
update metrics.yaml for ListMetricAssets (#2511)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 582abbe commit f3ae579

File tree

6 files changed

+26
-7
lines changed

6 files changed

+26
-7
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": "4727afe",
3-
"generated": "2025-07-23 15:36:46.681"
2+
"spec_repo_commit": "c09ac23",
3+
"generated": "2025-07-24 19:57:51.523"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22454,8 +22454,19 @@ components:
2245422454
readOnly: true
2245522455
type: object
2245622456
MetricAssetAttributes:
22457-
description: Assets related to the object, including title and url.
22457+
description: Assets related to the object, including title, url, and tags.
2245822458
properties:
22459+
tags:
22460+
description: List of tag keys used in the asset.
22461+
example:
22462+
- env
22463+
- service
22464+
- host
22465+
- datacenter
22466+
items:
22467+
description: Tag key used in assets.
22468+
type: string
22469+
type: array
2245922470
title:
2246022471
description: Title of the asset.
2246122472
type: string

services/metrics/src/v2/models/MetricAssetAttributes.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

33
/**
4-
* Assets related to the object, including title and url.
4+
* Assets related to the object, including title, url, and tags.
55
*/
66
export class MetricAssetAttributes {
7+
/**
8+
* List of tag keys used in the asset.
9+
*/
10+
"tags"?: Array<string>;
711
/**
812
* Title of the asset.
913
*/
@@ -27,6 +31,10 @@ export class MetricAssetAttributes {
2731
* @ignore
2832
*/
2933
static readonly attributeTypeMap: AttributeTypeMap = {
34+
tags: {
35+
baseName: "tags",
36+
type: "Array<string>",
37+
},
3038
title: {
3139
baseName: "title",
3240
type: "string",

services/metrics/src/v2/models/MetricMonitorAsset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { MetricMonitorType } from "./MetricMonitorType";
88
*/
99
export class MetricMonitorAsset {
1010
/**
11-
* Assets related to the object, including title and url.
11+
* Assets related to the object, including title, url, and tags.
1212
*/
1313
"attributes"?: MetricAssetAttributes;
1414
/**

services/metrics/src/v2/models/MetricNotebookAsset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { MetricNotebookType } from "./MetricNotebookType";
88
*/
99
export class MetricNotebookAsset {
1010
/**
11-
* Assets related to the object, including title and url.
11+
* Assets related to the object, including title, url, and tags.
1212
*/
1313
"attributes"?: MetricAssetAttributes;
1414
/**

services/metrics/src/v2/models/MetricSLOAsset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { MetricSLOType } from "./MetricSLOType";
88
*/
99
export class MetricSLOAsset {
1010
/**
11-
* Assets related to the object, including title and url.
11+
* Assets related to the object, including title, url, and tags.
1212
*/
1313
"attributes"?: MetricAssetAttributes;
1414
/**

0 commit comments

Comments
 (0)