Skip to content

Commit 268fff2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add evaluation_window and keep_alive for Security monitoring rule (#2422)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 406dce1 commit 268fff2

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
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-02-21 18:16:35.117146",
8-
"spec_repo_commit": "5de91bd6"
7+
"regenerated": "2025-02-21 19:13:50.245363",
8+
"spec_repo_commit": "47fc5add"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-21 18:16:35.131972",
13-
"spec_repo_commit": "5de91bd6"
12+
"regenerated": "2025-02-21 19:13:50.259900",
13+
"spec_repo_commit": "47fc5add"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25121,6 +25121,10 @@ components:
2512125121
- 1800
2512225122
- 3600
2512325123
- 7200
25124+
- 10800
25125+
- 21600
25126+
- 43200
25127+
- 86400
2512425128
format: int32
2512525129
type: integer
2512625130
x-enum-varnames:
@@ -25132,6 +25136,10 @@ components:
2513225136
- THIRTY_MINUTES
2513325137
- ONE_HOUR
2513425138
- TWO_HOURS
25139+
- THREE_HOURS
25140+
- SIX_HOURS
25141+
- TWELVE_HOURS
25142+
- ONE_DAY
2513525143
SecurityMonitoringRuleHardcodedEvaluatorType:
2513625144
description: Hardcoded evaluator type.
2513725145
enum:
@@ -25168,6 +25176,8 @@ components:
2516825176
- 7200
2516925177
- 10800
2517025178
- 21600
25179+
- 43200
25180+
- 86400
2517125181
format: int32
2517225182
type: integer
2517325183
x-enum-varnames:
@@ -25181,6 +25191,8 @@ components:
2518125191
- TWO_HOURS
2518225192
- THREE_HOURS
2518325193
- SIX_HOURS
25194+
- TWELVE_HOURS
25195+
- ONE_DAY
2518425196
SecurityMonitoringRuleMaxSignalDuration:
2518525197
description: "A signal will \u201Cclose\u201D regardless of the query being
2518625198
matched once the time exceeds the maximum duration.\nThis time is calculated

src/datadog_api_client/v2/model/security_monitoring_rule_evaluation_window.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SecurityMonitoringRuleEvaluationWindow(ModelSimple):
1717
A time window is specified to match when at least one of the cases matches true. This is a sliding window
1818
and evaluates in real time. For third party detection method, this field is not used.
1919
20-
:param value: Must be one of [0, 60, 300, 600, 900, 1800, 3600, 7200].
20+
:param value: Must be one of [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400].
2121
:type value: int
2222
"""
2323

@@ -30,6 +30,10 @@ class SecurityMonitoringRuleEvaluationWindow(ModelSimple):
3030
1800,
3131
3600,
3232
7200,
33+
10800,
34+
21600,
35+
43200,
36+
86400,
3337
}
3438
ZERO_MINUTES: ClassVar["SecurityMonitoringRuleEvaluationWindow"]
3539
ONE_MINUTE: ClassVar["SecurityMonitoringRuleEvaluationWindow"]
@@ -39,6 +43,10 @@ class SecurityMonitoringRuleEvaluationWindow(ModelSimple):
3943
THIRTY_MINUTES: ClassVar["SecurityMonitoringRuleEvaluationWindow"]
4044
ONE_HOUR: ClassVar["SecurityMonitoringRuleEvaluationWindow"]
4145
TWO_HOURS: ClassVar["SecurityMonitoringRuleEvaluationWindow"]
46+
THREE_HOURS: ClassVar["SecurityMonitoringRuleEvaluationWindow"]
47+
SIX_HOURS: ClassVar["SecurityMonitoringRuleEvaluationWindow"]
48+
TWELVE_HOURS: ClassVar["SecurityMonitoringRuleEvaluationWindow"]
49+
ONE_DAY: ClassVar["SecurityMonitoringRuleEvaluationWindow"]
4250

4351
@cached_property
4452
def openapi_types(_):
@@ -55,3 +63,7 @@ def openapi_types(_):
5563
SecurityMonitoringRuleEvaluationWindow.THIRTY_MINUTES = SecurityMonitoringRuleEvaluationWindow(1800)
5664
SecurityMonitoringRuleEvaluationWindow.ONE_HOUR = SecurityMonitoringRuleEvaluationWindow(3600)
5765
SecurityMonitoringRuleEvaluationWindow.TWO_HOURS = SecurityMonitoringRuleEvaluationWindow(7200)
66+
SecurityMonitoringRuleEvaluationWindow.THREE_HOURS = SecurityMonitoringRuleEvaluationWindow(10800)
67+
SecurityMonitoringRuleEvaluationWindow.SIX_HOURS = SecurityMonitoringRuleEvaluationWindow(21600)
68+
SecurityMonitoringRuleEvaluationWindow.TWELVE_HOURS = SecurityMonitoringRuleEvaluationWindow(43200)
69+
SecurityMonitoringRuleEvaluationWindow.ONE_DAY = SecurityMonitoringRuleEvaluationWindow(86400)

src/datadog_api_client/v2/model/security_monitoring_rule_keep_alive.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SecurityMonitoringRuleKeepAlive(ModelSimple):
1717
Once a signal is generated, the signal will remain “open” if a case is matched at least once within
1818
this keep alive window. For third party detection method, this field is not used.
1919
20-
:param value: Must be one of [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600].
20+
:param value: Must be one of [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400].
2121
:type value: int
2222
"""
2323

@@ -32,6 +32,8 @@ class SecurityMonitoringRuleKeepAlive(ModelSimple):
3232
7200,
3333
10800,
3434
21600,
35+
43200,
36+
86400,
3537
}
3638
ZERO_MINUTES: ClassVar["SecurityMonitoringRuleKeepAlive"]
3739
ONE_MINUTE: ClassVar["SecurityMonitoringRuleKeepAlive"]
@@ -43,6 +45,8 @@ class SecurityMonitoringRuleKeepAlive(ModelSimple):
4345
TWO_HOURS: ClassVar["SecurityMonitoringRuleKeepAlive"]
4446
THREE_HOURS: ClassVar["SecurityMonitoringRuleKeepAlive"]
4547
SIX_HOURS: ClassVar["SecurityMonitoringRuleKeepAlive"]
48+
TWELVE_HOURS: ClassVar["SecurityMonitoringRuleKeepAlive"]
49+
ONE_DAY: ClassVar["SecurityMonitoringRuleKeepAlive"]
4650

4751
@cached_property
4852
def openapi_types(_):
@@ -61,3 +65,5 @@ def openapi_types(_):
6165
SecurityMonitoringRuleKeepAlive.TWO_HOURS = SecurityMonitoringRuleKeepAlive(7200)
6266
SecurityMonitoringRuleKeepAlive.THREE_HOURS = SecurityMonitoringRuleKeepAlive(10800)
6367
SecurityMonitoringRuleKeepAlive.SIX_HOURS = SecurityMonitoringRuleKeepAlive(21600)
68+
SecurityMonitoringRuleKeepAlive.TWELVE_HOURS = SecurityMonitoringRuleKeepAlive(43200)
69+
SecurityMonitoringRuleKeepAlive.ONE_DAY = SecurityMonitoringRuleKeepAlive(86400)

0 commit comments

Comments
 (0)