Skip to content

Commit 29e8b0b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b737cc4 of spec repo
1 parent df98c3d commit 29e8b0b

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
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:12:09.627"
2+
"spec_repo_commit": "b737cc4",
3+
"generated": "2025-07-28 13:16:28.685"
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/datadogV2/model/model_metric_dashboard_attributes.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ pub struct MetricDashboardAttributes {
1414
/// Value from 0 to 5 that ranks popularity of the dashboard.
1515
#[serde(rename = "popularity")]
1616
pub popularity: Option<f64>,
17+
/// List of tag keys used in the asset.
18+
#[serde(rename = "tags")]
19+
pub tags: Option<Vec<String>>,
1720
/// Title of the asset.
1821
#[serde(rename = "title")]
1922
pub title: Option<String>,
@@ -31,6 +34,7 @@ impl MetricDashboardAttributes {
3134
pub fn new() -> MetricDashboardAttributes {
3235
MetricDashboardAttributes {
3336
popularity: None,
37+
tags: None,
3438
title: None,
3539
url: None,
3640
additional_properties: std::collections::BTreeMap::new(),
@@ -43,6 +47,11 @@ impl MetricDashboardAttributes {
4347
self
4448
}
4549

50+
pub fn tags(mut self, value: Vec<String>) -> Self {
51+
self.tags = Some(value);
52+
self
53+
}
54+
4655
pub fn title(mut self, value: String) -> Self {
4756
self.title = Some(value);
4857
self
@@ -86,6 +95,7 @@ impl<'de> Deserialize<'de> for MetricDashboardAttributes {
8695
M: MapAccess<'a>,
8796
{
8897
let mut popularity: Option<f64> = None;
98+
let mut tags: Option<Vec<String>> = None;
8999
let mut title: Option<String> = None;
90100
let mut url: Option<String> = None;
91101
let mut additional_properties: std::collections::BTreeMap<
@@ -102,6 +112,12 @@ impl<'de> Deserialize<'de> for MetricDashboardAttributes {
102112
}
103113
popularity = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
104114
}
115+
"tags" => {
116+
if v.is_null() {
117+
continue;
118+
}
119+
tags = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
120+
}
105121
"title" => {
106122
if v.is_null() {
107123
continue;
@@ -124,6 +140,7 @@ impl<'de> Deserialize<'de> for MetricDashboardAttributes {
124140

125141
let content = MetricDashboardAttributes {
126142
popularity,
143+
tags,
127144
title,
128145
url,
129146
additional_properties,

0 commit comments

Comments
 (0)