Skip to content

Commit a282cac

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a05b5d62 of spec repo
1 parent b575b7c commit a282cac

File tree

6 files changed

+35
-11
lines changed

6 files changed

+35
-11
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-30 17:05:09.046861",
8-
"spec_repo_commit": "d8e7ee77"
7+
"regenerated": "2025-07-01 18:53:59.241170",
8+
"spec_repo_commit": "a05b5d62"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-30 17:05:09.202568",
13-
"spec_repo_commit": "d8e7ee77"
12+
"regenerated": "2025-07-01 18:53:59.256169",
13+
"spec_repo_commit": "a05b5d62"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21719,8 +21719,19 @@ components:
2171921719
readOnly: true
2172021720
type: object
2172121721
MetricAssetAttributes:
21722-
description: Assets related to the object, including title and url.
21722+
description: Assets related to the object, including title, url, and tags.
2172321723
properties:
21724+
tags:
21725+
description: List of tag keys used across all assets containing this metric.
21726+
example:
21727+
- env
21728+
- service
21729+
- host
21730+
- datacenter
21731+
items:
21732+
description: Tag key used in assets.
21733+
type: string
21734+
type: array
2172421735
title:
2172521736
description: Title of the asset.
2172621737
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)