Skip to content

Commit f55ba3c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a05b5d62 of spec repo
1 parent 9a57288 commit f55ba3c

File tree

6 files changed

+37
-9
lines changed

6 files changed

+37
-9
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:08.769740",
8-
"spec_repo_commit": "d8e7ee77"
7+
"regenerated": "2025-07-01 18:53:57.557236",
8+
"spec_repo_commit": "a05b5d62"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-30 17:05:08.786526",
13-
"spec_repo_commit": "d8e7ee77"
12+
"regenerated": "2025-07-01 18:53:57.575642",
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/datadogV2/model/model_metric_asset_attributes.rs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ use serde::{Deserialize, Deserializer, Serialize};
66
use serde_with::skip_serializing_none;
77
use std::fmt::{self, Formatter};
88

9-
/// Assets related to the object, including title and url.
9+
/// Assets related to the object, including title, url, and tags.
1010
#[non_exhaustive]
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct MetricAssetAttributes {
14+
/// List of tag keys used across all assets containing this metric.
15+
#[serde(rename = "tags")]
16+
pub tags: Option<Vec<String>>,
1417
/// Title of the asset.
1518
#[serde(rename = "title")]
1619
pub title: Option<String>,
@@ -27,13 +30,19 @@ pub struct MetricAssetAttributes {
2730
impl MetricAssetAttributes {
2831
pub fn new() -> MetricAssetAttributes {
2932
MetricAssetAttributes {
33+
tags: None,
3034
title: None,
3135
url: None,
3236
additional_properties: std::collections::BTreeMap::new(),
3337
_unparsed: false,
3438
}
3539
}
3640

41+
pub fn tags(mut self, value: Vec<String>) -> Self {
42+
self.tags = Some(value);
43+
self
44+
}
45+
3746
pub fn title(mut self, value: String) -> Self {
3847
self.title = Some(value);
3948
self
@@ -76,6 +85,7 @@ impl<'de> Deserialize<'de> for MetricAssetAttributes {
7685
where
7786
M: MapAccess<'a>,
7887
{
88+
let mut tags: Option<Vec<String>> = None;
7989
let mut title: Option<String> = None;
8090
let mut url: Option<String> = None;
8191
let mut additional_properties: std::collections::BTreeMap<
@@ -86,6 +96,12 @@ impl<'de> Deserialize<'de> for MetricAssetAttributes {
8696

8797
while let Some((k, v)) = map.next_entry::<String, serde_json::Value>()? {
8898
match k.as_str() {
99+
"tags" => {
100+
if v.is_null() {
101+
continue;
102+
}
103+
tags = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
104+
}
89105
"title" => {
90106
if v.is_null() {
91107
continue;
@@ -107,6 +123,7 @@ impl<'de> Deserialize<'de> for MetricAssetAttributes {
107123
}
108124

109125
let content = MetricAssetAttributes {
126+
tags,
110127
title,
111128
url,
112129
additional_properties,

src/datadogV2/model/model_metric_monitor_asset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct MetricMonitorAsset {
14-
/// Assets related to the object, including title and url.
14+
/// Assets related to the object, including title, url, and tags.
1515
#[serde(rename = "attributes")]
1616
pub attributes: Option<crate::datadogV2::model::MetricAssetAttributes>,
1717
/// The related monitor's ID.

src/datadogV2/model/model_metric_notebook_asset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct MetricNotebookAsset {
14-
/// Assets related to the object, including title and url.
14+
/// Assets related to the object, including title, url, and tags.
1515
#[serde(rename = "attributes")]
1616
pub attributes: Option<crate::datadogV2::model::MetricAssetAttributes>,
1717
/// The related notebook's ID.

src/datadogV2/model/model_metric_slo_asset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct MetricSLOAsset {
14-
/// Assets related to the object, including title and url.
14+
/// Assets related to the object, including title, url, and tags.
1515
#[serde(rename = "attributes")]
1616
pub attributes: Option<crate::datadogV2::model::MetricAssetAttributes>,
1717
/// The SLO ID.

0 commit comments

Comments
 (0)