Skip to content
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
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86566,6 +86566,10 @@ components:
type: integer
creator:
$ref: "#/components/schemas/SecurityMonitoringUser"
description:
description: A description of the critical asset.
example: Production database servers handling PII
type: string
enabled:
description: Whether the critical asset is enabled.
example: true
Expand Down Expand Up @@ -86610,6 +86614,10 @@ components:
SecurityMonitoringCriticalAssetCreateAttributes:
description: Object containing the attributes of the critical asset to be created.
properties:
description:
description: A description of the critical asset.
example: Production database servers handling PII
type: string
enabled:
default: true
description: Whether the critical asset is enabled. Defaults to `true` if not specified.
Expand Down Expand Up @@ -86702,6 +86710,10 @@ components:
SecurityMonitoringCriticalAssetUpdateAttributes:
description: The critical asset properties to be updated.
properties:
description:
description: A description of the critical asset.
example: Production database servers handling PII
type: string
enabled:
description: Whether the critical asset is enabled.
example: true
Expand Down
4 changes: 2 additions & 2 deletions features/v2/security_monitoring.feature
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ Feature: Security Monitoring
@generated @skip @team:DataDog/k9-cloud-siem
Scenario: Create a critical asset returns "Conflict" response
Given new "CreateSecurityMonitoringCriticalAsset" request
And body with value {"data": {"attributes": {"enabled": true, "query": "security:monitoring", "rule_query": "type:(log_detection OR signal_correlation OR workload_security OR application_security) source:cloudtrail", "severity": "increase", "tags": ["team:database", "source:cloudtrail"]}, "type": "critical_assets"}}
And body with value {"data": {"attributes": {"description": "Production database servers handling PII", "enabled": true, "query": "security:monitoring", "rule_query": "type:(log_detection OR signal_correlation OR workload_security OR application_security) source:cloudtrail", "severity": "increase", "tags": ["team:database", "source:cloudtrail"]}, "type": "critical_assets"}}
When the request is sent
Then the response status is 409 Conflict

Expand Down Expand Up @@ -3089,7 +3089,7 @@ Feature: Security Monitoring
Scenario: Update a critical asset returns "Concurrent Modification" response
Given new "UpdateSecurityMonitoringCriticalAsset" request
And request contains "critical_asset_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"enabled": true, "query": "security:monitoring", "rule_query": "type:log_detection source:cloudtrail", "severity": "increase", "tags": ["technique:T1110-brute-force", "source:cloudtrail"], "version": 1}, "type": "critical_assets"}}
And body with value {"data": {"attributes": {"description": "Production database servers handling PII", "enabled": true, "query": "security:monitoring", "rule_query": "type:log_detection source:cloudtrail", "severity": "increase", "tags": ["technique:T1110-brute-force", "source:cloudtrail"], "version": 1}, "type": "critical_assets"}}
When the request is sent
Then the response status is 409 Concurrent Modification

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export class SecurityMonitoringCriticalAssetAttributes {
* A user.
*/
"creator"?: SecurityMonitoringUser;
/**
* A description of the critical asset.
*/
"description"?: string;
/**
* Whether the critical asset is enabled.
*/
Expand Down Expand Up @@ -91,6 +95,10 @@ export class SecurityMonitoringCriticalAssetAttributes {
baseName: "creator",
type: "SecurityMonitoringUser",
},
description: {
baseName: "description",
type: "string",
},
enabled: {
baseName: "enabled",
type: "boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
* Object containing the attributes of the critical asset to be created.
*/
export class SecurityMonitoringCriticalAssetCreateAttributes {
/**
* A description of the critical asset.
*/
"description"?: string;
/**
* Whether the critical asset is enabled. Defaults to `true` if not specified.
*/
Expand Down Expand Up @@ -48,6 +52,10 @@ export class SecurityMonitoringCriticalAssetCreateAttributes {
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
description: {
baseName: "description",
type: "string",
},
enabled: {
baseName: "enabled",
type: "boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
* The critical asset properties to be updated.
*/
export class SecurityMonitoringCriticalAssetUpdateAttributes {
/**
* A description of the critical asset.
*/
"description"?: string;
/**
* Whether the critical asset is enabled.
*/
Expand Down Expand Up @@ -52,6 +56,10 @@ export class SecurityMonitoringCriticalAssetUpdateAttributes {
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
description: {
baseName: "description",
type: "string",
},
enabled: {
baseName: "enabled",
type: "boolean",
Expand Down
Loading