Skip to content

Commit 0b1fdc3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 642b7d0b of spec repo
1 parent 5a3b049 commit 0b1fdc3

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
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-04-07 18:49:34.690356",
8-
"spec_repo_commit": "d0287df0"
7+
"regenerated": "2025-04-08 14:37:43.058121",
8+
"spec_repo_commit": "642b7d0b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-07 18:49:34.706605",
13-
"spec_repo_commit": "d0287df0"
12+
"regenerated": "2025-04-08 14:37:43.074501",
13+
"spec_repo_commit": "642b7d0b"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3094,11 +3094,13 @@ components:
30943094
description: Name of the query for use in formulas.
30953095
enum:
30963096
- metric
3097+
- monitor
30973098
- time_slice
30983099
example: metric
30993100
type: string
31003101
x-enum-varnames:
31013102
- METRIC
3103+
- MONITOR
31023104
- TIME_SLICE
31033105
FormulaType:
31043106
description: Set the sort type to formula.

src/datadogV1/model/model_formula_and_function_slo_query_type.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
88
#[derive(Clone, Debug, Eq, PartialEq)]
99
pub enum FormulaAndFunctionSLOQueryType {
1010
METRIC,
11+
MONITOR,
1112
TIME_SLICE,
1213
UnparsedObject(crate::datadog::UnparsedObject),
1314
}
@@ -16,6 +17,7 @@ impl ToString for FormulaAndFunctionSLOQueryType {
1617
fn to_string(&self) -> String {
1718
match self {
1819
Self::METRIC => String::from("metric"),
20+
Self::MONITOR => String::from("monitor"),
1921
Self::TIME_SLICE => String::from("time_slice"),
2022
Self::UnparsedObject(v) => v.value.to_string(),
2123
}
@@ -42,6 +44,7 @@ impl<'de> Deserialize<'de> for FormulaAndFunctionSLOQueryType {
4244
let s: String = String::deserialize(deserializer)?;
4345
Ok(match s.as_str() {
4446
"metric" => Self::METRIC,
47+
"monitor" => Self::MONITOR,
4548
"time_slice" => Self::TIME_SLICE,
4649
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
4750
value: serde_json::Value::String(s.into()),

0 commit comments

Comments
 (0)