Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62071,35 +62071,17 @@ components:
type: object
SecurityMonitoringRuleNewValueOptionsForgetAfter:
description: The duration in days after which a learned value is forgotten.
enum:
- 1
- 2
- 7
- 14
- 21
- 28
format: int32
maximum: 30
minimum: 1
type: integer
x-enum-varnames:
- ONE_DAY
- TWO_DAYS
- ONE_WEEK
- TWO_WEEKS
- THREE_WEEKS
- FOUR_WEEKS
SecurityMonitoringRuleNewValueOptionsLearningDuration:
default: 0
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."
enum:
- 0
- 1
- 7
format: int32
maximum: 30
minimum: 0
type: integer
x-enum-varnames:
- ZERO_DAYS
- ONE_DAY
- SEVEN_DAYS
SecurityMonitoringRuleNewValueOptionsLearningMethod:
default: duration
description: The learning method used to determine when signals should be generated for values that weren't learned.
Expand Down
2 changes: 0 additions & 2 deletions packages/datadog-api-client-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5297,8 +5297,6 @@ export { SecurityMonitoringRuleImpossibleTravelOptions } from "./models/Security
export { SecurityMonitoringRuleKeepAlive } from "./models/SecurityMonitoringRuleKeepAlive";
export { SecurityMonitoringRuleMaxSignalDuration } from "./models/SecurityMonitoringRuleMaxSignalDuration";
export { SecurityMonitoringRuleNewValueOptions } from "./models/SecurityMonitoringRuleNewValueOptions";
export { SecurityMonitoringRuleNewValueOptionsForgetAfter } from "./models/SecurityMonitoringRuleNewValueOptionsForgetAfter";
export { SecurityMonitoringRuleNewValueOptionsLearningDuration } from "./models/SecurityMonitoringRuleNewValueOptionsLearningDuration";
export { SecurityMonitoringRuleNewValueOptionsLearningMethod } from "./models/SecurityMonitoringRuleNewValueOptionsLearningMethod";
export { SecurityMonitoringRuleNewValueOptionsLearningThreshold } from "./models/SecurityMonitoringRuleNewValueOptionsLearningThreshold";
export { SecurityMonitoringRuleOptions } from "./models/SecurityMonitoringRuleOptions";
Expand Down
2 changes: 0 additions & 2 deletions packages/datadog-api-client-v2/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5513,8 +5513,6 @@ const enumsMap: { [key: string]: any[] } = {
SecurityMonitoringRuleMaxSignalDuration: [
0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400,
],
SecurityMonitoringRuleNewValueOptionsForgetAfter: [1, 2, 7, 14, 21, 28],
SecurityMonitoringRuleNewValueOptionsLearningDuration: [0, 1, 7],
SecurityMonitoringRuleNewValueOptionsLearningMethod: [
"duration",
"threshold",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { SecurityMonitoringRuleNewValueOptionsForgetAfter } from "./SecurityMonitoringRuleNewValueOptionsForgetAfter";
import { SecurityMonitoringRuleNewValueOptionsLearningDuration } from "./SecurityMonitoringRuleNewValueOptionsLearningDuration";
import { SecurityMonitoringRuleNewValueOptionsLearningMethod } from "./SecurityMonitoringRuleNewValueOptionsLearningMethod";
import { SecurityMonitoringRuleNewValueOptionsLearningThreshold } from "./SecurityMonitoringRuleNewValueOptionsLearningThreshold";

Expand All @@ -17,7 +15,7 @@ export class SecurityMonitoringRuleNewValueOptions {
/**
* The duration in days after which a learned value is forgotten.
*/
"forgetAfter"?: SecurityMonitoringRuleNewValueOptionsForgetAfter;
"forgetAfter"?: number;
/**
* 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.
*/
Expand All @@ -26,7 +24,7 @@ export class SecurityMonitoringRuleNewValueOptions {
* The duration in days during which values are learned, and after which signals will be generated for values that
* weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
*/
"learningDuration"?: SecurityMonitoringRuleNewValueOptionsLearningDuration;
"learningDuration"?: number;
/**
* The learning method used to determine when signals should be generated for values that weren't learned.
*/
Expand Down Expand Up @@ -54,15 +52,15 @@ export class SecurityMonitoringRuleNewValueOptions {
static readonly attributeTypeMap: AttributeTypeMap = {
forgetAfter: {
baseName: "forgetAfter",
type: "SecurityMonitoringRuleNewValueOptionsForgetAfter",
type: "number",
},
instantaneousBaseline: {
baseName: "instantaneousBaseline",
type: "boolean",
},
learningDuration: {
baseName: "learningDuration",
type: "SecurityMonitoringRuleNewValueOptionsLearningDuration",
type: "number",
},
learningMethod: {
baseName: "learningMethod",
Expand Down

This file was deleted.

This file was deleted.

Loading