Skip to content

Commit 740d8a4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 77b8031 of spec repo
1 parent 528c7cb commit 740d8a4

File tree

6 files changed

+8
-65
lines changed

6 files changed

+8
-65
lines changed

.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.

services/security_monitoring/src/v2/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,6 @@ export { SecurityMonitoringRuleImpossibleTravelOptions } from "./models/Security
356356
export { SecurityMonitoringRuleKeepAlive } from "./models/SecurityMonitoringRuleKeepAlive";
357357
export { SecurityMonitoringRuleMaxSignalDuration } from "./models/SecurityMonitoringRuleMaxSignalDuration";
358358
export { SecurityMonitoringRuleNewValueOptions } from "./models/SecurityMonitoringRuleNewValueOptions";
359-
export { SecurityMonitoringRuleNewValueOptionsForgetAfter } from "./models/SecurityMonitoringRuleNewValueOptionsForgetAfter";
360-
export { SecurityMonitoringRuleNewValueOptionsLearningDuration } from "./models/SecurityMonitoringRuleNewValueOptionsLearningDuration";
361359
export { SecurityMonitoringRuleNewValueOptionsLearningMethod } from "./models/SecurityMonitoringRuleNewValueOptionsLearningMethod";
362360
export { SecurityMonitoringRuleNewValueOptionsLearningThreshold } from "./models/SecurityMonitoringRuleNewValueOptionsLearningThreshold";
363361
export { SecurityMonitoringRuleOptions } from "./models/SecurityMonitoringRuleOptions";

services/security_monitoring/src/v2/models/SecurityMonitoringRuleNewValueOptions.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3-
import { SecurityMonitoringRuleNewValueOptionsForgetAfter } from "./SecurityMonitoringRuleNewValueOptionsForgetAfter";
4-
import { SecurityMonitoringRuleNewValueOptionsLearningDuration } from "./SecurityMonitoringRuleNewValueOptionsLearningDuration";
53
import { SecurityMonitoringRuleNewValueOptionsLearningMethod } from "./SecurityMonitoringRuleNewValueOptionsLearningMethod";
64
import { SecurityMonitoringRuleNewValueOptionsLearningThreshold } from "./SecurityMonitoringRuleNewValueOptionsLearningThreshold";
75

@@ -12,7 +10,7 @@ export class SecurityMonitoringRuleNewValueOptions {
1210
/**
1311
* The duration in days after which a learned value is forgotten.
1412
*/
15-
"forgetAfter"?: SecurityMonitoringRuleNewValueOptionsForgetAfter;
13+
"forgetAfter"?: number;
1614
/**
1715
* 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.
1816
*/
@@ -21,7 +19,7 @@ export class SecurityMonitoringRuleNewValueOptions {
2119
* The duration in days during which values are learned, and after which signals will be generated for values that
2220
* weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
2321
*/
24-
"learningDuration"?: SecurityMonitoringRuleNewValueOptionsLearningDuration;
22+
"learningDuration"?: number;
2523
/**
2624
* The learning method used to determine when signals should be generated for values that weren't learned.
2725
*/
@@ -47,7 +45,7 @@ export class SecurityMonitoringRuleNewValueOptions {
4745
static readonly attributeTypeMap: AttributeTypeMap = {
4846
forgetAfter: {
4947
baseName: "forgetAfter",
50-
type: "SecurityMonitoringRuleNewValueOptionsForgetAfter",
48+
type: "number",
5149
format: "int32",
5250
},
5351
instantaneousBaseline: {
@@ -56,7 +54,7 @@ export class SecurityMonitoringRuleNewValueOptions {
5654
},
5755
learningDuration: {
5856
baseName: "learningDuration",
59-
type: "SecurityMonitoringRuleNewValueOptionsLearningDuration",
57+
type: "number",
6058
format: "int32",
6159
},
6260
learningMethod: {

services/security_monitoring/src/v2/models/SecurityMonitoringRuleNewValueOptionsForgetAfter.ts

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

services/security_monitoring/src/v2/models/SecurityMonitoringRuleNewValueOptionsLearningDuration.ts

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

services/security_monitoring/src/v2/models/TypingInfo.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,6 @@ export const TypingInfo: ModelTypingInfo = {
490490
SecurityMonitoringRuleMaxSignalDuration: [
491491
0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400,
492492
],
493-
SecurityMonitoringRuleNewValueOptionsForgetAfter: [1, 2, 7, 14, 21, 28],
494-
SecurityMonitoringRuleNewValueOptionsLearningDuration: [0, 1, 7],
495493
SecurityMonitoringRuleNewValueOptionsLearningMethod: [
496494
"duration",
497495
"threshold",

0 commit comments

Comments
 (0)