Skip to content

update metrics.yaml for ListMetricAssets and include Dashboard info #2728

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

Merged
Merged
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": "e4f653f",
"generated": "2025-07-25 14:07:32.279"
"spec_repo_commit": "b737cc4",
"generated": "2025-07-28 13:11:36.840"
}
11 changes: 11 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22867,6 +22867,17 @@ components:
maximum: 5
minimum: 0
type: number
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
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 @@ -25,19 +25,22 @@ class MetricDashboardAttributes(ModelNormal):
def openapi_types(_):
return {
"popularity": (float,),
"tags": ([str],),
"title": (str,),
"url": (str,),
}

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

def __init__(
self_,
popularity: Union[float, UnsetType] = unset,
tags: Union[List[str], UnsetType] = unset,
title: Union[str, UnsetType] = unset,
url: Union[str, UnsetType] = unset,
**kwargs,
Expand All @@ -48,6 +51,9 @@ def __init__(
:param popularity: Value from 0 to 5 that ranks popularity of the dashboard.
:type popularity: float, optional

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

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

Expand All @@ -56,6 +62,8 @@ def __init__(
"""
if popularity is not unset:
kwargs["popularity"] = popularity
if tags is not unset:
kwargs["tags"] = tags
if title is not unset:
kwargs["title"] = title
if url is not unset:
Expand Down
Loading