Skip to content

Commit 734a953

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d430af8 of spec repo
1 parent 64eced6 commit 734a953

6 files changed

Lines changed: 8 additions & 65 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -64128,35 +64128,17 @@ components:
6412864128
type: object
6412964129
SecurityMonitoringRuleNewValueOptionsForgetAfter:
6413064130
description: The duration in days after which a learned value is forgotten.
64131-
enum:
64132-
- 1
64133-
- 2
64134-
- 7
64135-
- 14
64136-
- 21
64137-
- 28
6413864131
format: int32
64132+
maximum: 30
64133+
minimum: 1
6413964134
type: integer
64140-
x-enum-varnames:
64141-
- ONE_DAY
64142-
- TWO_DAYS
64143-
- ONE_WEEK
64144-
- TWO_WEEKS
64145-
- THREE_WEEKS
64146-
- FOUR_WEEKS
6414764135
SecurityMonitoringRuleNewValueOptionsLearningDuration:
6414864136
default: 0
6414964137
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."
64150-
enum:
64151-
- 0
64152-
- 1
64153-
- 7
6415464138
format: int32
64139+
maximum: 30
64140+
minimum: 0
6415564141
type: integer
64156-
x-enum-varnames:
64157-
- ZERO_DAYS
64158-
- ONE_DAY
64159-
- SEVEN_DAYS
6416064142
SecurityMonitoringRuleNewValueOptionsLearningMethod:
6416164143
default: duration
6416264144
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
@@ -394,8 +394,6 @@ export { SecurityMonitoringRuleImpossibleTravelOptions } from "./models/Security
394394
export { SecurityMonitoringRuleKeepAlive } from "./models/SecurityMonitoringRuleKeepAlive";
395395
export { SecurityMonitoringRuleMaxSignalDuration } from "./models/SecurityMonitoringRuleMaxSignalDuration";
396396
export { SecurityMonitoringRuleNewValueOptions } from "./models/SecurityMonitoringRuleNewValueOptions";
397-
export { SecurityMonitoringRuleNewValueOptionsForgetAfter } from "./models/SecurityMonitoringRuleNewValueOptionsForgetAfter";
398-
export { SecurityMonitoringRuleNewValueOptionsLearningDuration } from "./models/SecurityMonitoringRuleNewValueOptionsLearningDuration";
399397
export { SecurityMonitoringRuleNewValueOptionsLearningMethod } from "./models/SecurityMonitoringRuleNewValueOptionsLearningMethod";
400398
export { SecurityMonitoringRuleNewValueOptionsLearningThreshold } from "./models/SecurityMonitoringRuleNewValueOptionsLearningThreshold";
401399
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
@@ -540,8 +540,6 @@ export const TypingInfo: ModelTypingInfo = {
540540
SecurityMonitoringRuleMaxSignalDuration: [
541541
0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400,
542542
],
543-
SecurityMonitoringRuleNewValueOptionsForgetAfter: [1, 2, 7, 14, 21, 28],
544-
SecurityMonitoringRuleNewValueOptionsLearningDuration: [0, 1, 7],
545543
SecurityMonitoringRuleNewValueOptionsLearningMethod: [
546544
"duration",
547545
"threshold",

0 commit comments

Comments
 (0)