Skip to content

Commit 946c73a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add new missing enum values for aggregation and detectionMethod (#1325)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 6fb2bba commit 946c73a

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-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.4",
7-
"regenerated": "2023-02-02 14:04:23.509944",
8-
"spec_repo_commit": "2cc8984b"
7+
"regenerated": "2023-02-06 14:54:28.484540",
8+
"spec_repo_commit": "467a9b17"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-02 14:04:23.521846",
13-
"spec_repo_commit": "2cc8984b"
12+
"regenerated": "2023-02-06 14:54:28.498204",
13+
"spec_repo_commit": "467a9b17"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9733,13 +9733,15 @@ components:
97339733
- anomaly_detection
97349734
- impossible_travel
97359735
- hardcoded
9736+
- third_party
97369737
type: string
97379738
x-enum-varnames:
97389739
- THRESHOLD
97399740
- NEW_VALUE
97409741
- ANOMALY_DETECTION
97419742
- IMPOSSIBLE_TRAVEL
97429743
- HARDCODED
9744+
- THIRD_PARTY
97439745
SecurityMonitoringRuleEvaluationWindow:
97449746
description: 'A time window is specified to match when at least one of the cases
97459747
matches true. This is a sliding window
@@ -9953,6 +9955,7 @@ components:
99539955
- new_value
99549956
- geo_data
99559957
- event_count
9958+
- none
99569959
type: string
99579960
x-enum-varnames:
99589961
- COUNT
@@ -9962,6 +9965,7 @@ components:
99629965
- NEW_VALUE
99639966
- GEO_DATA
99649967
- EVENT_COUNT
9968+
- NONE
99659969
SecurityMonitoringRuleResponse:
99669970
description: Create a new rule.
99679971
oneOf:

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"].
19+
:param value: Must be one of ["threshold", "new_value", "anomaly_detection", "impossible_travel", "hardcoded", "third_party"].
2020
:type value: str
2121
"""
2222

@@ -26,12 +26,14 @@ class SecurityMonitoringRuleDetectionMethod(ModelSimple):
2626
"anomaly_detection",
2727
"impossible_travel",
2828
"hardcoded",
29+
"third_party",
2930
}
3031
THRESHOLD: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3132
NEW_VALUE: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3233
ANOMALY_DETECTION: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3334
IMPOSSIBLE_TRAVEL: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3435
HARDCODED: ClassVar["SecurityMonitoringRuleDetectionMethod"]
36+
THIRD_PARTY: ClassVar["SecurityMonitoringRuleDetectionMethod"]
3537

3638
@cached_property
3739
def openapi_types(_):
@@ -45,3 +47,4 @@ def openapi_types(_):
4547
SecurityMonitoringRuleDetectionMethod.ANOMALY_DETECTION = SecurityMonitoringRuleDetectionMethod("anomaly_detection")
4648
SecurityMonitoringRuleDetectionMethod.IMPOSSIBLE_TRAVEL = SecurityMonitoringRuleDetectionMethod("impossible_travel")
4749
SecurityMonitoringRuleDetectionMethod.HARDCODED = SecurityMonitoringRuleDetectionMethod("hardcoded")
50+
SecurityMonitoringRuleDetectionMethod.THIRD_PARTY = SecurityMonitoringRuleDetectionMethod("third_party")

src/datadog_api_client/v2/model/security_monitoring_rule_query_aggregation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SecurityMonitoringRuleQueryAggregation(ModelSimple):
1616
"""
1717
The aggregation type.
1818
19-
:param value: Must be one of ["count", "cardinality", "sum", "max", "new_value", "geo_data", "event_count"].
19+
:param value: Must be one of ["count", "cardinality", "sum", "max", "new_value", "geo_data", "event_count", "none"].
2020
:type value: str
2121
"""
2222

@@ -28,6 +28,7 @@ class SecurityMonitoringRuleQueryAggregation(ModelSimple):
2828
"new_value",
2929
"geo_data",
3030
"event_count",
31+
"none",
3132
}
3233
COUNT: ClassVar["SecurityMonitoringRuleQueryAggregation"]
3334
CARDINALITY: ClassVar["SecurityMonitoringRuleQueryAggregation"]
@@ -36,6 +37,7 @@ class SecurityMonitoringRuleQueryAggregation(ModelSimple):
3637
NEW_VALUE: ClassVar["SecurityMonitoringRuleQueryAggregation"]
3738
GEO_DATA: ClassVar["SecurityMonitoringRuleQueryAggregation"]
3839
EVENT_COUNT: ClassVar["SecurityMonitoringRuleQueryAggregation"]
40+
NONE: ClassVar["SecurityMonitoringRuleQueryAggregation"]
3941

4042
@cached_property
4143
def openapi_types(_):
@@ -51,3 +53,4 @@ def openapi_types(_):
5153
SecurityMonitoringRuleQueryAggregation.NEW_VALUE = SecurityMonitoringRuleQueryAggregation("new_value")
5254
SecurityMonitoringRuleQueryAggregation.GEO_DATA = SecurityMonitoringRuleQueryAggregation("geo_data")
5355
SecurityMonitoringRuleQueryAggregation.EVENT_COUNT = SecurityMonitoringRuleQueryAggregation("event_count")
56+
SecurityMonitoringRuleQueryAggregation.NONE = SecurityMonitoringRuleQueryAggregation("none")

0 commit comments

Comments
 (0)