Skip to content

Commit 57cac17

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 77b8031 of spec repo
1 parent 5292de4 commit 57cac17

6 files changed

Lines changed: 8 additions & 79 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -62071,35 +62071,17 @@ components:
6207162071
type: object
6207262072
SecurityMonitoringRuleNewValueOptionsForgetAfter:
6207362073
description: The duration in days after which a learned value is forgotten.
62074-
enum:
62075-
- 1
62076-
- 2
62077-
- 7
62078-
- 14
62079-
- 21
62080-
- 28
6208162074
format: int32
62075+
maximum: 30
62076+
minimum: 1
6208262077
type: integer
62083-
x-enum-varnames:
62084-
- ONE_DAY
62085-
- TWO_DAYS
62086-
- ONE_WEEK
62087-
- TWO_WEEKS
62088-
- THREE_WEEKS
62089-
- FOUR_WEEKS
6209062078
SecurityMonitoringRuleNewValueOptionsLearningDuration:
6209162079
default: 0
6209262080
description: "The duration in days during which values are learned, and after which signals will be generated for values that\nweren't learned. If set to 0, a signal will be generated for all new values after the first value is learned."
62093-
enum:
62094-
- 0
62095-
- 1
62096-
- 7
6209762081
format: int32
62082+
maximum: 30
62083+
minimum: 0
6209862084
type: integer
62099-
x-enum-varnames:
62100-
- ZERO_DAYS
62101-
- ONE_DAY
62102-
- SEVEN_DAYS
6210362085
SecurityMonitoringRuleNewValueOptionsLearningMethod:
6210462086
default: duration
6210562087
description: The learning method used to determine when signals should be generated for values that weren't learned.

packages/datadog-api-client-v2/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5297,8 +5297,6 @@ export { SecurityMonitoringRuleImpossibleTravelOptions } from "./models/Security
52975297
export { SecurityMonitoringRuleKeepAlive } from "./models/SecurityMonitoringRuleKeepAlive";
52985298
export { SecurityMonitoringRuleMaxSignalDuration } from "./models/SecurityMonitoringRuleMaxSignalDuration";
52995299
export { SecurityMonitoringRuleNewValueOptions } from "./models/SecurityMonitoringRuleNewValueOptions";
5300-
export { SecurityMonitoringRuleNewValueOptionsForgetAfter } from "./models/SecurityMonitoringRuleNewValueOptionsForgetAfter";
5301-
export { SecurityMonitoringRuleNewValueOptionsLearningDuration } from "./models/SecurityMonitoringRuleNewValueOptionsLearningDuration";
53025300
export { SecurityMonitoringRuleNewValueOptionsLearningMethod } from "./models/SecurityMonitoringRuleNewValueOptionsLearningMethod";
53035301
export { SecurityMonitoringRuleNewValueOptionsLearningThreshold } from "./models/SecurityMonitoringRuleNewValueOptionsLearningThreshold";
53045302
export { SecurityMonitoringRuleOptions } from "./models/SecurityMonitoringRuleOptions";

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5513,8 +5513,6 @@ const enumsMap: { [key: string]: any[] } = {
55135513
SecurityMonitoringRuleMaxSignalDuration: [
55145514
0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400,
55155515
],
5516-
SecurityMonitoringRuleNewValueOptionsForgetAfter: [1, 2, 7, 14, 21, 28],
5517-
SecurityMonitoringRuleNewValueOptionsLearningDuration: [0, 1, 7],
55185516
SecurityMonitoringRuleNewValueOptionsLearningMethod: [
55195517
"duration",
55205518
"threshold",

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6-
import { SecurityMonitoringRuleNewValueOptionsForgetAfter } from "./SecurityMonitoringRuleNewValueOptionsForgetAfter";
7-
import { SecurityMonitoringRuleNewValueOptionsLearningDuration } from "./SecurityMonitoringRuleNewValueOptionsLearningDuration";
86
import { SecurityMonitoringRuleNewValueOptionsLearningMethod } from "./SecurityMonitoringRuleNewValueOptionsLearningMethod";
97
import { SecurityMonitoringRuleNewValueOptionsLearningThreshold } from "./SecurityMonitoringRuleNewValueOptionsLearningThreshold";
108

@@ -17,7 +15,7 @@ export class SecurityMonitoringRuleNewValueOptions {
1715
/**
1816
* The duration in days after which a learned value is forgotten.
1917
*/
20-
"forgetAfter"?: SecurityMonitoringRuleNewValueOptionsForgetAfter;
18+
"forgetAfter"?: number;
2119
/**
2220
* When set to true, Datadog uses previous values that fall within the defined learning window to construct the baseline, enabling the system to establish an accurate baseline more rapidly rather than relying solely on gradual learning over time.
2321
*/
@@ -26,7 +24,7 @@ export class SecurityMonitoringRuleNewValueOptions {
2624
* The duration in days during which values are learned, and after which signals will be generated for values that
2725
* weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
2826
*/
29-
"learningDuration"?: SecurityMonitoringRuleNewValueOptionsLearningDuration;
27+
"learningDuration"?: number;
3028
/**
3129
* The learning method used to determine when signals should be generated for values that weren't learned.
3230
*/
@@ -54,15 +52,15 @@ export class SecurityMonitoringRuleNewValueOptions {
5452
static readonly attributeTypeMap: AttributeTypeMap = {
5553
forgetAfter: {
5654
baseName: "forgetAfter",
57-
type: "SecurityMonitoringRuleNewValueOptionsForgetAfter",
55+
type: "number",
5856
},
5957
instantaneousBaseline: {
6058
baseName: "instantaneousBaseline",
6159
type: "boolean",
6260
},
6361
learningDuration: {
6462
baseName: "learningDuration",
65-
type: "SecurityMonitoringRuleNewValueOptionsLearningDuration",
63+
type: "number",
6664
},
6765
learningMethod: {
6866
baseName: "learningMethod",

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

Lines changed: 0 additions & 26 deletions
This file was deleted.

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

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)