Skip to content

Commit

Permalink
Security Monitoring - Support anomaly threshold detection method (#2044)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jul 18, 2024
1 parent 164d54a commit 38838b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-18 15:19:04.367028",
"spec_repo_commit": "a2447c71"
"regenerated": "2024-07-18 16:48:28.163419",
"spec_repo_commit": "fd57724c"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-18 15:19:04.391585",
"spec_repo_commit": "a2447c71"
"regenerated": "2024-07-18 16:48:28.188666",
"spec_repo_commit": "fd57724c"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17736,6 +17736,7 @@ components:
- impossible_travel
- hardcoded
- third_party
- anomaly_threshold
type: string
x-enum-varnames:
- THRESHOLD
Expand All @@ -17744,6 +17745,7 @@ components:
- IMPOSSIBLE_TRAVEL
- HARDCODED
- THIRD_PARTY
- ANOMALY_THRESHOLD
SecurityMonitoringRuleEvaluationWindow:
description: 'A time window is specified to match when at least one of the cases
matches true. This is a sliding window
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SecurityMonitoringRuleDetectionMethod(ModelSimple):
"""
The detection method.
:param value: Must be one of ["threshold", "new_value", "anomaly_detection", "impossible_travel", "hardcoded", "third_party"].
:param value: Must be one of ["threshold", "new_value", "anomaly_detection", "impossible_travel", "hardcoded", "third_party", "anomaly_threshold"].
:type value: str
"""

Expand All @@ -27,13 +27,15 @@ class SecurityMonitoringRuleDetectionMethod(ModelSimple):
"impossible_travel",
"hardcoded",
"third_party",
"anomaly_threshold",
}
THRESHOLD: ClassVar["SecurityMonitoringRuleDetectionMethod"]
NEW_VALUE: ClassVar["SecurityMonitoringRuleDetectionMethod"]
ANOMALY_DETECTION: ClassVar["SecurityMonitoringRuleDetectionMethod"]
IMPOSSIBLE_TRAVEL: ClassVar["SecurityMonitoringRuleDetectionMethod"]
HARDCODED: ClassVar["SecurityMonitoringRuleDetectionMethod"]
THIRD_PARTY: ClassVar["SecurityMonitoringRuleDetectionMethod"]
ANOMALY_THRESHOLD: ClassVar["SecurityMonitoringRuleDetectionMethod"]

@cached_property
def openapi_types(_):
Expand All @@ -48,3 +50,4 @@ def openapi_types(_):
SecurityMonitoringRuleDetectionMethod.IMPOSSIBLE_TRAVEL = SecurityMonitoringRuleDetectionMethod("impossible_travel")
SecurityMonitoringRuleDetectionMethod.HARDCODED = SecurityMonitoringRuleDetectionMethod("hardcoded")
SecurityMonitoringRuleDetectionMethod.THIRD_PARTY = SecurityMonitoringRuleDetectionMethod("third_party")
SecurityMonitoringRuleDetectionMethod.ANOMALY_THRESHOLD = SecurityMonitoringRuleDetectionMethod("anomaly_threshold")

0 comments on commit 38838b5

Please sign in to comment.