Skip to content
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

Add more Security Monitoring Data Source enum values #575

Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-01 23:26:32.104055",
"spec_repo_commit": "2000c9c8"
"regenerated": "2025-04-02 19:55:35.907729",
"spec_repo_commit": "1cc45c45"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-01 23:26:32.120002",
"spec_repo_commit": "2000c9c8"
"regenerated": "2025-04-02 19:55:35.923557",
"spec_repo_commit": "1cc45c45"
}
}
}
8 changes: 8 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27702,11 +27702,19 @@ components:
enum:
- logs
- audit
- app_sec_spans
- spans
- security_runtime
- network
example: logs
type: string
x-enum-varnames:
- LOGS
- AUDIT
- APP_SEC_SPANS
- SPANS
- SECURITY_RUNTIME
- NETWORK
SecurityMonitoringStandardRuleCreatePayload:
description: Create a new rule.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
pub enum SecurityMonitoringStandardDataSource {
LOGS,
AUDIT,
APP_SEC_SPANS,
SPANS,
SECURITY_RUNTIME,
NETWORK,
UnparsedObject(crate::datadog::UnparsedObject),
}

Expand All @@ -17,6 +21,10 @@ impl ToString for SecurityMonitoringStandardDataSource {
match self {
Self::LOGS => String::from("logs"),
Self::AUDIT => String::from("audit"),
Self::APP_SEC_SPANS => String::from("app_sec_spans"),
Self::SPANS => String::from("spans"),
Self::SECURITY_RUNTIME => String::from("security_runtime"),
Self::NETWORK => String::from("network"),
Self::UnparsedObject(v) => v.value.to_string(),
}
}
Expand All @@ -43,6 +51,10 @@ impl<'de> Deserialize<'de> for SecurityMonitoringStandardDataSource {
Ok(match s.as_str() {
"logs" => Self::LOGS,
"audit" => Self::AUDIT,
"app_sec_spans" => Self::APP_SEC_SPANS,
"spans" => Self::SPANS,
"security_runtime" => Self::SECURITY_RUNTIME,
"network" => Self::NETWORK,
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
value: serde_json::Value::String(s.into()),
}),
Expand Down
Loading