Skip to content

Commit 7cc4c3b

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

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
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:05.900228",
8-
"spec_repo_commit": "a6954c1c"
7+
"regenerated": "2025-05-27 10:37:47.296878",
8+
"spec_repo_commit": "c75940cb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-26 12:46:05.916628",
13-
"spec_repo_commit": "a6954c1c"
12+
"regenerated": "2025-05-27 10:37:47.323956",
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/datadog_api_client/v2/model/historical_job_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(
7575
:param aggregation: The aggregation type.
7676
:type aggregation: SecurityMonitoringRuleQueryAggregation, optional
7777
78-
:param data_source: Source of events, either logs or audit trail.
78+
:param data_source: Source of events, either logs, audit trail, or Datadog events.
7979
:type data_source: SecurityMonitoringStandardDataSource, optional
8080
8181
:param distinct_fields: Field for which the cardinality is measured. Sent as an array.

src/datadog_api_client/v2/model/security_monitoring_rule_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, **kwargs):
1818
:param aggregation: The aggregation type.
1919
:type aggregation: SecurityMonitoringRuleQueryAggregation, optional
2020
21-
:param data_source: Source of events, either logs or audit trail.
21+
:param data_source: Source of events, either logs, audit trail, or Datadog events.
2222
:type data_source: SecurityMonitoringStandardDataSource, optional
2323
2424
:param distinct_fields: Field for which the cardinality is measured. Sent as an array.

src/datadog_api_client/v2/model/security_monitoring_standard_data_source.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
class SecurityMonitoringStandardDataSource(ModelSimple):
1616
"""
17-
Source of events, either logs or audit trail.
17+
Source of events, either logs, audit trail, or Datadog events.
1818
19-
:param value: If omitted defaults to "logs". Must be one of ["logs", "audit", "app_sec_spans", "spans", "security_runtime", "network"].
19+
:param value: If omitted defaults to "logs". Must be one of ["logs", "audit", "app_sec_spans", "spans", "security_runtime", "network", "events"].
2020
:type value: str
2121
"""
2222

@@ -27,13 +27,15 @@ class SecurityMonitoringStandardDataSource(ModelSimple):
2727
"spans",
2828
"security_runtime",
2929
"network",
30+
"events",
3031
}
3132
LOGS: ClassVar["SecurityMonitoringStandardDataSource"]
3233
AUDIT: ClassVar["SecurityMonitoringStandardDataSource"]
3334
APP_SEC_SPANS: ClassVar["SecurityMonitoringStandardDataSource"]
3435
SPANS: ClassVar["SecurityMonitoringStandardDataSource"]
3536
SECURITY_RUNTIME: ClassVar["SecurityMonitoringStandardDataSource"]
3637
NETWORK: ClassVar["SecurityMonitoringStandardDataSource"]
38+
EVENTS: ClassVar["SecurityMonitoringStandardDataSource"]
3739

3840
@cached_property
3941
def openapi_types(_):
@@ -48,3 +50,4 @@ def openapi_types(_):
4850
SecurityMonitoringStandardDataSource.SPANS = SecurityMonitoringStandardDataSource("spans")
4951
SecurityMonitoringStandardDataSource.SECURITY_RUNTIME = SecurityMonitoringStandardDataSource("security_runtime")
5052
SecurityMonitoringStandardDataSource.NETWORK = SecurityMonitoringStandardDataSource("network")
53+
SecurityMonitoringStandardDataSource.EVENTS = SecurityMonitoringStandardDataSource("events")

src/datadog_api_client/v2/model/security_monitoring_standard_rule_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(
7878
:param aggregation: The aggregation type.
7979
:type aggregation: SecurityMonitoringRuleQueryAggregation, optional
8080
81-
:param data_source: Source of events, either logs or audit trail.
81+
:param data_source: Source of events, either logs, audit trail, or Datadog events.
8282
:type data_source: SecurityMonitoringStandardDataSource, optional
8383
8484
:param distinct_fields: Field for which the cardinality is measured. Sent as an array.

0 commit comments

Comments
 (0)