Skip to content

Add more Security Monitoring Data Source enum values #2119

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-04-01 23:26:27.251270",
"spec_repo_commit": "2000c9c8"
"regenerated": "2025-04-02 19:55:31.957447",
"spec_repo_commit": "1cc45c45"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-01 23:26:27.268018",
"spec_repo_commit": "2000c9c8"
"regenerated": "2025-04-02 19:55:31.973220",
"spec_repo_commit": "1cc45c45"
}
}
}
8 changes: 8 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27702,11 +27702,19 @@ components:
enum:
- logs
- audit
- app_sec_spans
- spans
- security_runtime
- network
example: logs
type: string
x-enum-varnames:
- LOGS
- AUDIT
- APP_SEC_SPANS
- SPANS
- SECURITY_RUNTIME
- NETWORK
SecurityMonitoringStandardRuleCreatePayload:
description: Create a new rule.
properties:
Expand Down
9 changes: 8 additions & 1 deletion packages/datadog-api-client-v2/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2387,7 +2387,14 @@ const enumsMap: { [key: string]: any[] } = {
SecurityMonitoringSignalState: ["open", "archived", "under_review"],
SecurityMonitoringSignalType: ["signal"],
SecurityMonitoringSignalsSort: ["timestamp", "-timestamp"],
SecurityMonitoringStandardDataSource: ["logs", "audit"],
SecurityMonitoringStandardDataSource: [
"logs",
"audit",
"app_sec_spans",
"spans",
"security_runtime",
"network",
],
SecurityMonitoringSuppressionType: ["suppressions"],
SensitiveDataScannerConfigurationType: [
"sensitive_data_scanner_configuration",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
export type SecurityMonitoringStandardDataSource =
| typeof LOGS
| typeof AUDIT
| typeof APP_SEC_SPANS
| typeof SPANS
| typeof SECURITY_RUNTIME
| typeof NETWORK
| UnparsedObject;
export const LOGS = "logs";
export const AUDIT = "audit";
export const APP_SEC_SPANS = "app_sec_spans";
export const SPANS = "spans";
export const SECURITY_RUNTIME = "security_runtime";
export const NETWORK = "network";