Skip to content

Add evaluation_window and keep_alive for Security monitoring rule #2065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-21 18:16:32.473757",
"spec_repo_commit": "5de91bd6"
"regenerated": "2025-02-21 19:13:51.765368",
"spec_repo_commit": "47fc5add"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-21 18:16:32.489570",
"spec_repo_commit": "5de91bd6"
"regenerated": "2025-02-21 19:13:51.780899",
"spec_repo_commit": "47fc5add"
}
}
}
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25121,6 +25121,10 @@ components:
- 1800
- 3600
- 7200
- 10800
- 21600
- 43200
- 86400
format: int32
type: integer
x-enum-varnames:
Expand All @@ -25132,6 +25136,10 @@ components:
- THIRTY_MINUTES
- ONE_HOUR
- TWO_HOURS
- THREE_HOURS
- SIX_HOURS
- TWELVE_HOURS
- ONE_DAY
SecurityMonitoringRuleHardcodedEvaluatorType:
description: Hardcoded evaluator type.
enum:
Expand Down Expand Up @@ -25168,6 +25176,8 @@ components:
- 7200
- 10800
- 21600
- 43200
- 86400
format: int32
type: integer
x-enum-varnames:
Expand All @@ -25181,6 +25191,8 @@ components:
- TWO_HOURS
- THREE_HOURS
- SIX_HOURS
- TWELVE_HOURS
- ONE_DAY
SecurityMonitoringRuleMaxSignalDuration:
description: "A signal will \u201Cclose\u201D regardless of the query being
matched once the time exceeds the maximum duration.\nThis time is calculated
Expand Down
4 changes: 2 additions & 2 deletions packages/datadog-api-client-v2/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2188,11 +2188,11 @@ const enumsMap: { [key: string]: any[] } = {
"anomaly_threshold",
],
SecurityMonitoringRuleEvaluationWindow: [
0, 60, 300, 600, 900, 1800, 3600, 7200,
0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400,
],
SecurityMonitoringRuleHardcodedEvaluatorType: ["log4shell"],
SecurityMonitoringRuleKeepAlive: [
0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600,
0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400,
],
SecurityMonitoringRuleMaxSignalDuration: [
0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export type SecurityMonitoringRuleEvaluationWindow =
| typeof THIRTY_MINUTES
| typeof ONE_HOUR
| typeof TWO_HOURS
| typeof THREE_HOURS
| typeof SIX_HOURS
| typeof TWELVE_HOURS
| typeof ONE_DAY
| UnparsedObject;
export const ZERO_MINUTES = 0;
export const ONE_MINUTE = 60;
Expand All @@ -29,3 +33,7 @@ export const FIFTEEN_MINUTES = 900;
export const THIRTY_MINUTES = 1800;
export const ONE_HOUR = 3600;
export const TWO_HOURS = 7200;
export const THREE_HOURS = 10800;
export const SIX_HOURS = 21600;
export const TWELVE_HOURS = 43200;
export const ONE_DAY = 86400;
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export type SecurityMonitoringRuleKeepAlive =
| typeof TWO_HOURS
| typeof THREE_HOURS
| typeof SIX_HOURS
| typeof TWELVE_HOURS
| typeof ONE_DAY
| UnparsedObject;
export const ZERO_MINUTES = 0;
export const ONE_MINUTE = 60;
Expand All @@ -33,3 +35,5 @@ export const ONE_HOUR = 3600;
export const TWO_HOURS = 7200;
export const THREE_HOURS = 10800;
export const SIX_HOURS = 21600;
export const TWELVE_HOURS = 43200;
export const ONE_DAY = 86400;