diff --git a/.apigentools-info b/.apigentools-info index 444c0bb0c..7b49ab5cf 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-14 15:03:43.490025", - "spec_repo_commit": "a739b49f" + "regenerated": "2025-02-18 09:41:18.659390", + "spec_repo_commit": "f9205865" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-14 15:03:43.505675", - "spec_repo_commit": "a739b49f" + "regenerated": "2025-02-18 09:41:18.674532", + "spec_repo_commit": "f9205865" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 79e471c06..5eeb5f592 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -6688,6 +6688,11 @@ components: Monitor: description: Object describing a monitor. properties: + classification: + description: The classification of the monitor. + example: log + readOnly: true + type: string created: description: Timestamp of the monitor creation. format: date-time diff --git a/LICENSE-3rdparty.csv b/LICENSE-3rdparty.csv index 37edcdfa8..9cbd26152 100644 --- a/LICENSE-3rdparty.csv +++ b/LICENSE-3rdparty.csv @@ -21,7 +21,7 @@ darling,https://github.com/TedDriggs/darling,MIT,Ted Driggs displaydoc,https://github.com/yaahc/displaydoc,MIT OR Apache-2.0,Jane Lusby encoding_rs,https://github.com/hsivonen/encoding_rs,(Apache-2.0 OR MIT) AND BSD-3-Clause,Henri Sivonen -equivalent,https://github.com/cuviper/equivalent,Apache-2.0 OR MIT,The equivalent Authors +equivalent,https://github.com/indexmap-rs/equivalent,Apache-2.0 OR MIT,The equivalent Authors errno,https://github.com/lambda-fairy/rust-errno,MIT OR Apache-2.0,Chris Wong fastrand,https://github.com/smol-rs/fastrand,Apache-2.0 OR MIT,Stjepan Glavina flate2,https://github.com/rust-lang/flate2-rs,MIT OR Apache-2.0,"Alex Crichton , Josh Triplett " diff --git a/src/datadogV1/model/model_monitor.rs b/src/datadogV1/model/model_monitor.rs index 89231f6a1..47818927d 100644 --- a/src/datadogV1/model/model_monitor.rs +++ b/src/datadogV1/model/model_monitor.rs @@ -11,6 +11,9 @@ use std::fmt::{self, Formatter}; #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)] pub struct Monitor { + /// The classification of the monitor. + #[serde(rename = "classification")] + pub classification: Option, /// Timestamp of the monitor creation. #[serde(rename = "created")] pub created: Option>, @@ -84,6 +87,7 @@ pub struct Monitor { impl Monitor { pub fn new(query: String, type_: crate::datadogV1::model::MonitorType) -> Monitor { Monitor { + classification: None, created: None, creator: None, deleted: None, @@ -106,6 +110,11 @@ impl Monitor { } } + pub fn classification(mut self, value: String) -> Self { + self.classification = Some(value); + self + } + pub fn created(mut self, value: chrono::DateTime) -> Self { self.created = Some(value); self @@ -210,6 +219,7 @@ impl<'de> Deserialize<'de> for Monitor { where M: MapAccess<'a>, { + let mut classification: Option = None; let mut created: Option> = None; let mut creator: Option = None; let mut deleted: Option>> = None; @@ -236,6 +246,13 @@ impl<'de> Deserialize<'de> for Monitor { while let Some((k, v)) = map.next_entry::()? { match k.as_str() { + "classification" => { + if v.is_null() { + continue; + } + classification = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "created" => { if v.is_null() { continue; @@ -355,6 +372,7 @@ impl<'de> Deserialize<'de> for Monitor { let type_ = type_.ok_or_else(|| M::Error::missing_field("type_"))?; let content = Monitor { + classification, created, creator, deleted,