Skip to content

Commit 38838b5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Security Monitoring - Support anomaly threshold detection method (#2044)
* Regenerate client from commit fd57724c of spec repo * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 164d54a commit 38838b5

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
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": "2024-07-18 15:19:04.367028",
8-
"spec_repo_commit": "a2447c71"
7+
"regenerated": "2024-07-18 16:48:28.163419",
8+
"spec_repo_commit": "fd57724c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-18 15:19:04.391585",
13-
"spec_repo_commit": "a2447c71"
12+
"regenerated": "2024-07-18 16:48:28.188666",
13+
"spec_repo_commit": "fd57724c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17736,6 +17736,7 @@ components:
1773617736
- impossible_travel
1773717737
- hardcoded
1773817738
- third_party
17739+
- anomaly_threshold
1773917740
type: string
1774017741
x-enum-varnames:
1774117742
- THRESHOLD
@@ -17744,6 +17745,7 @@ components:
1774417745
- IMPOSSIBLE_TRAVEL
1774517746
- HARDCODED
1774617747
- THIRD_PARTY
17748+
- ANOMALY_THRESHOLD
1774717749
SecurityMonitoringRuleEvaluationWindow:
1774817750
description: 'A time window is specified to match when at least one of the cases
1774917751
matches true. This is a sliding window

src/datadog_api_client/v2/model/security_monitoring_rule_detection_method.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SecurityMonitoringRuleDetectionMethod(ModelSimple):
1616
"""
1717
The detection method.
1818
19-
:param value: Must be one of ["threshold", "new_value", "anomaly_detection", "impossible_travel", "hardcoded", "third_party"].
19+
:param value: Must be one of ["threshold", "new_value", "anomaly_detection", "impossible_travel", "hardcoded", "third_party", "anomaly_threshold"].
2020
:type value: str
2121
"""
2222

@@ -27,13 +27,15 @@ class SecurityMonitoringRuleDetectionMethod(ModelSimple):
2727
"impossible_travel",
2828
"hardcoded",
2929
"third_party",
30+
"anomaly_threshold",
3031
}
3132
THRESHOLD: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3233
NEW_VALUE: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3334
ANOMALY_DETECTION: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3435
IMPOSSIBLE_TRAVEL: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3536
HARDCODED: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3637
THIRD_PARTY: ClassVar["SecurityMonitoringRuleDetectionMethod"]
38+
ANOMALY_THRESHOLD: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3739

3840
@cached_property
3941
def openapi_types(_):
@@ -48,3 +50,4 @@ def openapi_types(_):
4850
SecurityMonitoringRuleDetectionMethod.IMPOSSIBLE_TRAVEL = SecurityMonitoringRuleDetectionMethod("impossible_travel")
4951
SecurityMonitoringRuleDetectionMethod.HARDCODED = SecurityMonitoringRuleDetectionMethod("hardcoded")
5052
SecurityMonitoringRuleDetectionMethod.THIRD_PARTY = SecurityMonitoringRuleDetectionMethod("third_party")
53+
SecurityMonitoringRuleDetectionMethod.ANOMALY_THRESHOLD = SecurityMonitoringRuleDetectionMethod("anomaly_threshold")

0 commit comments

Comments
 (0)