Skip to content

Commit 80af0d9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b296b4b of spec repo
1 parent 53f1de0 commit 80af0d9

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

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)