Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2884,6 +2884,7 @@ components:
- ci_pipelines
- incident_analytics
- product_analytics
- on_call_events
example: logs
type: string
x-enum-varnames:
Expand All @@ -2899,6 +2900,7 @@ components:
- CI_PIPELINES
- INCIDENT_ANALYTICS
- PRODUCT_ANALYTICS
- ON_CALL_EVENTS
FormulaAndFunctionMetricAggregation:
description: The aggregation methods available for metrics queries.
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub enum FormulaAndFunctionEventsDataSource {
CI_PIPELINES,
INCIDENT_ANALYTICS,
PRODUCT_ANALYTICS,
ON_CALL_EVENTS,
UnparsedObject(crate::datadog::UnparsedObject),
}

Expand All @@ -37,6 +38,7 @@ impl ToString for FormulaAndFunctionEventsDataSource {
Self::CI_PIPELINES => String::from("ci_pipelines"),
Self::INCIDENT_ANALYTICS => String::from("incident_analytics"),
Self::PRODUCT_ANALYTICS => String::from("product_analytics"),
Self::ON_CALL_EVENTS => String::from("on_call_events"),
Self::UnparsedObject(v) => v.value.to_string(),
}
}
Expand Down Expand Up @@ -73,6 +75,7 @@ impl<'de> Deserialize<'de> for FormulaAndFunctionEventsDataSource {
"ci_pipelines" => Self::CI_PIPELINES,
"incident_analytics" => Self::INCIDENT_ANALYTICS,
"product_analytics" => Self::PRODUCT_ANALYTICS,
"on_call_events" => Self::ON_CALL_EVENTS,
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
value: serde_json::Value::String(s.into()),
}),
Expand Down