Skip to content

Commit 4511809

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add support for Datadog Events as a data source for rules (#670)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 12a9dbe commit 4511809

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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-05-26 12:46:02.005102",
8-
"spec_repo_commit": "a6954c1c"
7+
"regenerated": "2025-05-27 10:37:41.623695",
8+
"spec_repo_commit": "c75940cb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-26 12:46:02.021792",
13-
"spec_repo_commit": "a6954c1c"
12+
"regenerated": "2025-05-27 10:37:41.639599",
13+
"spec_repo_commit": "c75940cb"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33669,14 +33669,15 @@ components:
3366933669
- TIMESTAMP_DESCENDING
3367033670
SecurityMonitoringStandardDataSource:
3367133671
default: logs
33672-
description: Source of events, either logs or audit trail.
33672+
description: Source of events, either logs, audit trail, or Datadog events.
3367333673
enum:
3367433674
- logs
3367533675
- audit
3367633676
- app_sec_spans
3367733677
- spans
3367833678
- security_runtime
3367933679
- network
33680+
- events
3368033681
example: logs
3368133682
type: string
3368233683
x-enum-varnames:
@@ -33686,6 +33687,7 @@ components:
3368633687
- SPANS
3368733688
- SECURITY_RUNTIME
3368833689
- NETWORK
33690+
- EVENTS
3368933691
SecurityMonitoringStandardRuleCreatePayload:
3369033692
description: Create a new rule.
3369133693
properties:

src/datadogV2/model/model_historical_job_query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct HistoricalJobQuery {
1414
/// The aggregation type.
1515
#[serde(rename = "aggregation")]
1616
pub aggregation: Option<crate::datadogV2::model::SecurityMonitoringRuleQueryAggregation>,
17-
/// Source of events, either logs or audit trail.
17+
/// Source of events, either logs, audit trail, or Datadog events.
1818
#[serde(rename = "dataSource")]
1919
pub data_source: Option<crate::datadogV2::model::SecurityMonitoringStandardDataSource>,
2020
/// Field for which the cardinality is measured. Sent as an array.

src/datadogV2/model/model_security_monitoring_standard_data_source.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub enum SecurityMonitoringStandardDataSource {
1313
SPANS,
1414
SECURITY_RUNTIME,
1515
NETWORK,
16+
EVENTS,
1617
UnparsedObject(crate::datadog::UnparsedObject),
1718
}
1819

@@ -25,6 +26,7 @@ impl ToString for SecurityMonitoringStandardDataSource {
2526
Self::SPANS => String::from("spans"),
2627
Self::SECURITY_RUNTIME => String::from("security_runtime"),
2728
Self::NETWORK => String::from("network"),
29+
Self::EVENTS => String::from("events"),
2830
Self::UnparsedObject(v) => v.value.to_string(),
2931
}
3032
}
@@ -55,6 +57,7 @@ impl<'de> Deserialize<'de> for SecurityMonitoringStandardDataSource {
5557
"spans" => Self::SPANS,
5658
"security_runtime" => Self::SECURITY_RUNTIME,
5759
"network" => Self::NETWORK,
60+
"events" => Self::EVENTS,
5861
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
5962
value: serde_json::Value::String(s.into()),
6063
}),

src/datadogV2/model/model_security_monitoring_standard_rule_query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct SecurityMonitoringStandardRuleQuery {
1414
/// The aggregation type.
1515
#[serde(rename = "aggregation")]
1616
pub aggregation: Option<crate::datadogV2::model::SecurityMonitoringRuleQueryAggregation>,
17-
/// Source of events, either logs or audit trail.
17+
/// Source of events, either logs, audit trail, or Datadog events.
1818
#[serde(rename = "dataSource")]
1919
pub data_source: Option<crate::datadogV2::model::SecurityMonitoringStandardDataSource>,
2020
/// Field for which the cardinality is measured. Sent as an array.

0 commit comments

Comments
 (0)