Skip to content

Commit ffa4c40

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
update metrics.yaml for ListMetricAssets and include Dashboard info (#2728)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent f9ea2ab commit ffa4c40

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
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": "e4f653f",
3-
"generated": "2025-07-25 14:07:32.279"
2+
"spec_repo_commit": "b737cc4",
3+
"generated": "2025-07-28 13:11:36.840"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22867,6 +22867,17 @@ components:
2286722867
maximum: 5
2286822868
minimum: 0
2286922869
type: number
22870+
tags:
22871+
description: List of tag keys used in the asset.
22872+
example:
22873+
- env
22874+
- service
22875+
- host
22876+
- datacenter
22877+
items:
22878+
description: Tag key used in assets.
22879+
type: string
22880+
type: array
2287022881
title:
2287122882
description: Title of the asset.
2287222883
type: string

src/datadog_api_client/v2/model/metric_dashboard_attributes.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import List, Union
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -25,19 +25,22 @@ class MetricDashboardAttributes(ModelNormal):
2525
def openapi_types(_):
2626
return {
2727
"popularity": (float,),
28+
"tags": ([str],),
2829
"title": (str,),
2930
"url": (str,),
3031
}
3132

3233
attribute_map = {
3334
"popularity": "popularity",
35+
"tags": "tags",
3436
"title": "title",
3537
"url": "url",
3638
}
3739

3840
def __init__(
3941
self_,
4042
popularity: Union[float, UnsetType] = unset,
43+
tags: Union[List[str], UnsetType] = unset,
4144
title: Union[str, UnsetType] = unset,
4245
url: Union[str, UnsetType] = unset,
4346
**kwargs,
@@ -48,6 +51,9 @@ def __init__(
4851
:param popularity: Value from 0 to 5 that ranks popularity of the dashboard.
4952
:type popularity: float, optional
5053
54+
:param tags: List of tag keys used in the asset.
55+
:type tags: [str], optional
56+
5157
:param title: Title of the asset.
5258
:type title: str, optional
5359
@@ -56,6 +62,8 @@ def __init__(
5662
"""
5763
if popularity is not unset:
5864
kwargs["popularity"] = popularity
65+
if tags is not unset:
66+
kwargs["tags"] = tags
5967
if title is not unset:
6068
kwargs["title"] = title
6169
if url is not unset:

0 commit comments

Comments
 (0)