Skip to content

Commit a18a6fb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a82883cf of spec repo
1 parent ef6c954 commit a18a6fb

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": "2024-07-16 10:52:41.488047",
8-
"spec_repo_commit": "06d5775d"
7+
"regenerated": "2024-07-16 16:25:34.448895",
8+
"spec_repo_commit": "a82883cf"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-16 10:52:41.505656",
13-
"spec_repo_commit": "06d5775d"
12+
"regenerated": "2024-07-16 16:25:34.466529",
13+
"spec_repo_commit": "a82883cf"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3087,10 +3087,12 @@ components:
30873087
description: Name of the query for use in formulas.
30883088
enum:
30893089
- metric
3090+
- time_slice
30903091
example: metric
30913092
type: string
30923093
x-enum-varnames:
30933094
- METRIC
3095+
- TIME_SLICE
30943096
FormulaType:
30953097
description: Set the sort type to formula.
30963098
enum:

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,13 +8,15 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
88
#[derive(Clone, Debug, Eq, PartialEq)]
99
pub enum FormulaAndFunctionSLOQueryType {
1010
METRIC,
11+
TIME_SLICE,
1112
UnparsedObject(crate::datadog::UnparsedObject),
1213
}
1314

1415
impl ToString for FormulaAndFunctionSLOQueryType {
1516
fn to_string(&self) -> String {
1617
match self {
1718
Self::METRIC => String::from("metric"),
19+
Self::TIME_SLICE => String::from("time_slice"),
1820
Self::UnparsedObject(v) => v.value.to_string(),
1921
}
2022
}
@@ -40,6 +42,7 @@ impl<'de> Deserialize<'de> for FormulaAndFunctionSLOQueryType {
4042
let s: String = String::deserialize(deserializer)?;
4143
Ok(match s.as_str() {
4244
"metric" => Self::METRIC,
45+
"time_slice" => Self::TIME_SLICE,
4346
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
4447
value: serde_json::Value::String(s.into()),
4548
}),

0 commit comments

Comments
 (0)