Skip to content

Commit 576da1b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 52e5730 of spec repo (#118)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ae4826e commit 576da1b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
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.4.1.dev6",
7-
"regenerated": "2021-05-06 13:35:35.462079",
8-
"spec_repo_commit": "b2e3154"
7+
"regenerated": "2021-05-07 12:39:57.714478",
8+
"spec_repo_commit": "52e5730"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-05-06 13:35:41.227668",
13-
"spec_repo_commit": "b2e3154"
12+
"regenerated": "2021-05-07 12:40:03.752061",
13+
"spec_repo_commit": "52e5730"
1414
}
1515
}
1616
}

packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ import { ObjectSerializer } from './ObjectSerializer';
1515
* The detection method.
1616
*/
1717

18-
export type SecurityMonitoringRuleDetectionMethod = typeof THRESHOLD | typeof NEW_VALUE ;
18+
export type SecurityMonitoringRuleDetectionMethod = typeof THRESHOLD | typeof NEW_VALUE | typeof ANOMALY_DETECTION ;
1919
export const THRESHOLD = 'threshold';
2020
export const NEW_VALUE = 'new_value';
21+
export const ANOMALY_DETECTION = 'anomaly_detection';
2122

2223

packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class SecurityMonitoringRuleOptions {
6363
static deserialize(data: {[key: string]: any}): SecurityMonitoringRuleOptions {
6464
let res = new SecurityMonitoringRuleOptions();
6565

66-
if (['threshold', 'new_value', undefined].includes(data.detectionMethod)) {
66+
if (['threshold', 'new_value', 'anomaly_detection', undefined].includes(data.detectionMethod)) {
6767
res.detectionMethod = data.detectionMethod;
6868
} else {
6969
throw TypeError(`invalid enum value ${ data.detectionMethod } for detectionMethod`);
@@ -101,7 +101,7 @@ export class SecurityMonitoringRuleOptions {
101101
throw new TypeError(`${key} attribute not in schema`);
102102
}
103103
}
104-
if (['threshold', 'new_value', undefined].includes(data.detectionMethod)) {
104+
if (['threshold', 'new_value', 'anomaly_detection', undefined].includes(data.detectionMethod)) {
105105
res.detectionMethod = data.detectionMethod;
106106
} else {
107107
throw TypeError(`invalid enum value ${ data.detectionMethod } for detectionMethod`);

0 commit comments

Comments
 (0)