Skip to content

Commit 862a874

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b296b4b of spec repo
1 parent 84f17de commit 862a874

File tree

6 files changed

+8
-79
lines changed

6 files changed

+8
-79
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -61604,35 +61604,17 @@ components:
6160461604
type: object
6160561605
SecurityMonitoringRuleNewValueOptionsForgetAfter:
6160661606
description: The duration in days after which a learned value is forgotten.
61607-
enum:
61608-
- 1
61609-
- 2
61610-
- 7
61611-
- 14
61612-
- 21
61613-
- 28
6161461607
format: int32
61608+
maximum: 30
61609+
minimum: 1
6161561610
type: integer
61616-
x-enum-varnames:
61617-
- ONE_DAY
61618-
- TWO_DAYS
61619-
- ONE_WEEK
61620-
- TWO_WEEKS
61621-
- THREE_WEEKS
61622-
- FOUR_WEEKS
6162361611
SecurityMonitoringRuleNewValueOptionsLearningDuration:
6162461612
default: 0
6162561613
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."
61626-
enum:
61627-
- 0
61628-
- 1
61629-
- 7
6163061614
format: int32
61615+
maximum: 30
61616+
minimum: 0
6163161617
type: integer
61632-
x-enum-varnames:
61633-
- ZERO_DAYS
61634-
- ONE_DAY
61635-
- SEVEN_DAYS
6163661618
SecurityMonitoringRuleNewValueOptionsLearningMethod:
6163761619
default: duration
6163861620
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
@@ -5276,8 +5276,6 @@ export { SecurityMonitoringRuleImpossibleTravelOptions } from "./models/Security
52765276
export { SecurityMonitoringRuleKeepAlive } from "./models/SecurityMonitoringRuleKeepAlive";
52775277
export { SecurityMonitoringRuleMaxSignalDuration } from "./models/SecurityMonitoringRuleMaxSignalDuration";
52785278
export { SecurityMonitoringRuleNewValueOptions } from "./models/SecurityMonitoringRuleNewValueOptions";
5279-
export { SecurityMonitoringRuleNewValueOptionsForgetAfter } from "./models/SecurityMonitoringRuleNewValueOptionsForgetAfter";
5280-
export { SecurityMonitoringRuleNewValueOptionsLearningDuration } from "./models/SecurityMonitoringRuleNewValueOptionsLearningDuration";
52815279
export { SecurityMonitoringRuleNewValueOptionsLearningMethod } from "./models/SecurityMonitoringRuleNewValueOptionsLearningMethod";
52825280
export { SecurityMonitoringRuleNewValueOptionsLearningThreshold } from "./models/SecurityMonitoringRuleNewValueOptionsLearningThreshold";
52835281
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
@@ -5486,8 +5486,6 @@ const enumsMap: { [key: string]: any[] } = {
54865486
SecurityMonitoringRuleMaxSignalDuration: [
54875487
0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400,
54885488
],
5489-
SecurityMonitoringRuleNewValueOptionsForgetAfter: [1, 2, 7, 14, 21, 28],
5490-
SecurityMonitoringRuleNewValueOptionsLearningDuration: [0, 1, 7],
54915489
SecurityMonitoringRuleNewValueOptionsLearningMethod: [
54925490
"duration",
54935491
"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)