diff --git a/.apigentools-info b/.apigentools-info index 953287a47..a46886dd7 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-07 18:49:34.690356", - "spec_repo_commit": "d0287df0" + "regenerated": "2025-04-08 14:37:43.058121", + "spec_repo_commit": "642b7d0b" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-07 18:49:34.706605", - "spec_repo_commit": "d0287df0" + "regenerated": "2025-04-08 14:37:43.074501", + "spec_repo_commit": "642b7d0b" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index a0c142ac7..c71e9b24e 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3094,11 +3094,13 @@ components: description: Name of the query for use in formulas. enum: - metric + - monitor - time_slice example: metric type: string x-enum-varnames: - METRIC + - MONITOR - TIME_SLICE FormulaType: description: Set the sort type to formula. diff --git a/src/datadogV1/model/model_formula_and_function_slo_query_type.rs b/src/datadogV1/model/model_formula_and_function_slo_query_type.rs index 55090cce7..0e5d8ef67 100644 --- a/src/datadogV1/model/model_formula_and_function_slo_query_type.rs +++ b/src/datadogV1/model/model_formula_and_function_slo_query_type.rs @@ -8,6 +8,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer}; #[derive(Clone, Debug, Eq, PartialEq)] pub enum FormulaAndFunctionSLOQueryType { METRIC, + MONITOR, TIME_SLICE, UnparsedObject(crate::datadog::UnparsedObject), } @@ -16,6 +17,7 @@ impl ToString for FormulaAndFunctionSLOQueryType { fn to_string(&self) -> String { match self { Self::METRIC => String::from("metric"), + Self::MONITOR => String::from("monitor"), Self::TIME_SLICE => String::from("time_slice"), Self::UnparsedObject(v) => v.value.to_string(), } @@ -42,6 +44,7 @@ impl<'de> Deserialize<'de> for FormulaAndFunctionSLOQueryType { let s: String = String::deserialize(deserializer)?; Ok(match s.as_str() { "metric" => Self::METRIC, + "monitor" => Self::MONITOR, "time_slice" => Self::TIME_SLICE, _ => Self::UnparsedObject(crate::datadog::UnparsedObject { value: serde_json::Value::String(s.into()),