Skip to content

add rum slo bugfix #589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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()),