Skip to content

Commit 2a7ad3e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Allow to make XPQ queries to the DORA data source (#775)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 7341b7e commit 2a7ad3e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "ef70ddf",
3-
"generated": "2025-07-17 17:32:09.764"
2+
"spec_repo_commit": "f2ae7eb",
3+
"generated": "2025-07-17 19:58:01.335"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15479,11 +15479,13 @@ components:
1547915479
enum:
1548015480
- logs
1548115481
- rum
15482+
- dora
1548215483
example: logs
1548315484
type: string
1548415485
x-enum-varnames:
1548515486
- LOGS
1548615487
- RUM
15488+
- DORA
1548715489
EventsGroupBy:
1548815490
description: A dimension on which to split a query's results.
1548915491
properties:

src/datadogV2/model/model_events_data_source.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
99
pub enum EventsDataSource {
1010
LOGS,
1111
RUM,
12+
DORA,
1213
UnparsedObject(crate::datadog::UnparsedObject),
1314
}
1415

@@ -17,6 +18,7 @@ impl ToString for EventsDataSource {
1718
match self {
1819
Self::LOGS => String::from("logs"),
1920
Self::RUM => String::from("rum"),
21+
Self::DORA => String::from("dora"),
2022
Self::UnparsedObject(v) => v.value.to_string(),
2123
}
2224
}
@@ -43,6 +45,7 @@ impl<'de> Deserialize<'de> for EventsDataSource {
4345
Ok(match s.as_str() {
4446
"logs" => Self::LOGS,
4547
"rum" => Self::RUM,
48+
"dora" => Self::DORA,
4649
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
4750
value: serde_json::Value::String(s.into()),
4851
}),

0 commit comments

Comments
 (0)