Skip to content

Commit ccec07d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Add more Security Monitoring Data Source enum values (#575)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2781a9f commit ccec07d

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

.apigentools-info

+4-4
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": "2025-04-01 23:26:32.104055",
8-
"spec_repo_commit": "2000c9c8"
7+
"regenerated": "2025-04-02 19:55:35.907729",
8+
"spec_repo_commit": "1cc45c45"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-01 23:26:32.120002",
13-
"spec_repo_commit": "2000c9c8"
12+
"regenerated": "2025-04-02 19:55:35.923557",
13+
"spec_repo_commit": "1cc45c45"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -27702,11 +27702,19 @@ components:
2770227702
enum:
2770327703
- logs
2770427704
- audit
27705+
- app_sec_spans
27706+
- spans
27707+
- security_runtime
27708+
- network
2770527709
example: logs
2770627710
type: string
2770727711
x-enum-varnames:
2770827712
- LOGS
2770927713
- AUDIT
27714+
- APP_SEC_SPANS
27715+
- SPANS
27716+
- SECURITY_RUNTIME
27717+
- NETWORK
2771027718
SecurityMonitoringStandardRuleCreatePayload:
2771127719
description: Create a new rule.
2771227720
properties:

src/datadogV2/model/model_security_monitoring_standard_data_source.rs

+12
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
99
pub enum SecurityMonitoringStandardDataSource {
1010
LOGS,
1111
AUDIT,
12+
APP_SEC_SPANS,
13+
SPANS,
14+
SECURITY_RUNTIME,
15+
NETWORK,
1216
UnparsedObject(crate::datadog::UnparsedObject),
1317
}
1418

@@ -17,6 +21,10 @@ impl ToString for SecurityMonitoringStandardDataSource {
1721
match self {
1822
Self::LOGS => String::from("logs"),
1923
Self::AUDIT => String::from("audit"),
24+
Self::APP_SEC_SPANS => String::from("app_sec_spans"),
25+
Self::SPANS => String::from("spans"),
26+
Self::SECURITY_RUNTIME => String::from("security_runtime"),
27+
Self::NETWORK => String::from("network"),
2028
Self::UnparsedObject(v) => v.value.to_string(),
2129
}
2230
}
@@ -43,6 +51,10 @@ impl<'de> Deserialize<'de> for SecurityMonitoringStandardDataSource {
4351
Ok(match s.as_str() {
4452
"logs" => Self::LOGS,
4553
"audit" => Self::AUDIT,
54+
"app_sec_spans" => Self::APP_SEC_SPANS,
55+
"spans" => Self::SPANS,
56+
"security_runtime" => Self::SECURITY_RUNTIME,
57+
"network" => Self::NETWORK,
4658
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
4759
value: serde_json::Value::String(s.into()),
4860
}),

0 commit comments

Comments
 (0)