Skip to content

update metrics.yaml for ListMetricAssets #2669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "214381f",
"generated": "2025-07-17 15:36:55.076"
"spec_repo_commit": "7f27ad2",
"generated": "2025-07-17 18:25:57.370"
}
13 changes: 12 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22346,8 +22346,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 in the asset.
example:
- env
- service
- host
- datacenter
items:
description: Tag key used in assets.
type: string
type: array
title:
description: Title of the asset.
type: string
Expand Down
19 changes: 16 additions & 3 deletions src/datadog_api_client/v2/model/metric_asset_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations

from typing import Union
from typing import List, Union

from datadog_api_client.model_utils import (
ModelNormal,
Expand All @@ -17,25 +17,38 @@ class MetricAssetAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"tags": ([str],),
"title": (str,),
"url": (str,),
}

attribute_map = {
"tags": "tags",
"title": "title",
"url": "url",
}

def __init__(self_, title: Union[str, UnsetType] = unset, url: Union[str, UnsetType] = unset, **kwargs):
def __init__(
self_,
tags: Union[List[str], UnsetType] = unset,
title: Union[str, UnsetType] = unset,
url: Union[str, UnsetType] = unset,
**kwargs,
):
"""
Assets related to the object, including title and url.
Assets related to the object, including title, url, and tags.

:param tags: List of tag keys used in the asset.
:type tags: [str], optional

:param title: Title of the asset.
:type title: str, optional

:param url: URL path of the asset.
:type url: str, optional
"""
if tags is not unset:
kwargs["tags"] = tags
if title is not unset:
kwargs["title"] = title
if url is not unset:
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/metric_monitor_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(
"""
A monitor object with title.

:param attributes: Assets related to the object, including title and url.
:param attributes: Assets related to the object, including title, url, and tags.
:type attributes: MetricAssetAttributes, optional

:param id: The related monitor's ID.
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/metric_notebook_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(
"""
A notebook object with title.

:param attributes: Assets related to the object, including title and url.
:param attributes: Assets related to the object, including title, url, and tags.
:type attributes: MetricAssetAttributes, optional

:param id: The related notebook's ID.
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/model/metric_slo_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(
"""
A SLO object with title.

:param attributes: Assets related to the object, including title and url.
:param attributes: Assets related to the object, including title, url, and tags.
:type attributes: MetricAssetAttributes, optional

:param id: The SLO ID.
Expand Down
Loading