Skip to content

Commit d2fd6ce

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8ebfd3c of spec repo
1 parent 68aa745 commit d2fd6ce

File tree

6 files changed

+33
-9
lines changed

6 files changed

+33
-9
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": "d93d991",
3-
"generated": "2025-07-15 09:31:55.997"
2+
"spec_repo_commit": "8ebfd3c",
3+
"generated": "2025-07-16 15:30:46.111"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22116,8 +22116,19 @@ components:
2211622116
readOnly: true
2211722117
type: object
2211822118
MetricAssetAttributes:
22119-
description: Assets related to the object, including title and url.
22119+
description: Assets related to the object, including title, url, and tags.
2212022120
properties:
22121+
tags:
22122+
description: List of tag keys used across all assets containing this metric.
22123+
example:
22124+
- env
22125+
- service
22126+
- host
22127+
- datacenter
22128+
items:
22129+
description: Tag key used in assets.
22130+
type: string
22131+
type: array
2212122132
title:
2212222133
description: Title of the asset.
2212322134
type: string

src/datadog_api_client/v2/model/metric_asset_attributes.py

Lines changed: 16 additions & 3 deletions
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,
@@ -17,25 +17,38 @@ class MetricAssetAttributes(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"tags": ([str],),
2021
"title": (str,),
2122
"url": (str,),
2223
}
2324

2425
attribute_map = {
26+
"tags": "tags",
2527
"title": "title",
2628
"url": "url",
2729
}
2830

29-
def __init__(self_, title: Union[str, UnsetType] = unset, url: Union[str, UnsetType] = unset, **kwargs):
31+
def __init__(
32+
self_,
33+
tags: Union[List[str], UnsetType] = unset,
34+
title: Union[str, UnsetType] = unset,
35+
url: Union[str, UnsetType] = unset,
36+
**kwargs,
37+
):
3038
"""
31-
Assets related to the object, including title and url.
39+
Assets related to the object, including title, url, and tags.
40+
41+
:param tags: List of tag keys used across all assets containing this metric.
42+
:type tags: [str], optional
3243
3344
:param title: Title of the asset.
3445
:type title: str, optional
3546
3647
:param url: URL path of the asset.
3748
:type url: str, optional
3849
"""
50+
if tags is not unset:
51+
kwargs["tags"] = tags
3952
if title is not unset:
4053
kwargs["title"] = title
4154
if url is not unset:

src/datadog_api_client/v2/model/metric_monitor_asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
"""
4343
A monitor object with title.
4444
45-
:param attributes: Assets related to the object, including title and url.
45+
:param attributes: Assets related to the object, including title, url, and tags.
4646
:type attributes: MetricAssetAttributes, optional
4747
4848
:param id: The related monitor's ID.

src/datadog_api_client/v2/model/metric_notebook_asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
"""
4343
A notebook object with title.
4444
45-
:param attributes: Assets related to the object, including title and url.
45+
:param attributes: Assets related to the object, including title, url, and tags.
4646
:type attributes: MetricAssetAttributes, optional
4747
4848
:param id: The related notebook's ID.

src/datadog_api_client/v2/model/metric_slo_asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
"""
4343
A SLO object with title.
4444
45-
:param attributes: Assets related to the object, including title and url.
45+
:param attributes: Assets related to the object, including title, url, and tags.
4646
:type attributes: MetricAssetAttributes, optional
4747
4848
:param id: The SLO ID.

0 commit comments

Comments
 (0)