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
38 changes: 31 additions & 7 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126621,7 +126621,7 @@ components:
$ref: "#/components/schemas/SecurityMonitoringCriticalAsset"
type: object
SecurityMonitoringCriticalAssetSeverity:
description: Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
description: Severity associated with this dynamic severity rule (previously called critical assets). Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
enum:
- info
- low
Expand Down Expand Up @@ -249386,7 +249386,7 @@ paths:
- security_monitoring_cws_agent_rules_read
/api/v2/security_monitoring/configuration/critical_assets:
get:
description: Get the list of all critical assets.
description: Get the list of all dynamic severity rules (previously called critical assets).
operationId: ListSecurityMonitoringCriticalAssets
responses:
"200":
Expand Down Expand Up @@ -249419,8 +249419,12 @@ paths:
summary: Get all critical assets
tags:
- Security Monitoring
x-permission:
operator: OR
permissions:
- security_monitoring_critical_assets_read
post:
description: Create a new critical asset.
description: Create a new dynamic severity rule (previously called critical assets).
operationId: CreateSecurityMonitoringCriticalAsset
requestBody:
content:
Expand Down Expand Up @@ -249478,9 +249482,13 @@ paths:
tags:
- Security Monitoring
x-codegen-request-body-name: body
x-permission:
operator: OR
permissions:
- security_monitoring_critical_assets_write
/api/v2/security_monitoring/configuration/critical_assets/rules/{rule_id}:
get:
description: Get the list of critical assets that affect a specific existing rule by the rule's ID.
description: Get the list of dynamic severity rules (previously called critical assets) that affect a specific existing rule by the rule's ID.
operationId: GetCriticalAssetsAffectingRule
parameters:
- $ref: "#/components/parameters/SecurityMonitoringRuleID"
Expand Down Expand Up @@ -249517,9 +249525,13 @@ paths:
summary: Get critical assets affecting a specific rule
tags:
- Security Monitoring
x-permission:
operator: OR
permissions:
- security_monitoring_critical_assets_read
/api/v2/security_monitoring/configuration/critical_assets/{critical_asset_id}:
delete:
description: Delete a specific critical asset.
description: Delete a specific dynamic severity rule (previously called critical assets).
operationId: DeleteSecurityMonitoringCriticalAsset
parameters:
- $ref: "#/components/parameters/SecurityMonitoringCriticalAssetID"
Expand All @@ -249540,8 +249552,12 @@ paths:
summary: Delete a critical asset
tags:
- Security Monitoring
x-permission:
operator: OR
permissions:
- security_monitoring_critical_assets_write
get:
description: Get the details of a specific critical asset.
description: Get the details of a specific dynamic severity rule (previously called critical assets).
operationId: GetSecurityMonitoringCriticalAsset
parameters:
- $ref: "#/components/parameters/SecurityMonitoringCriticalAssetID"
Expand Down Expand Up @@ -249578,8 +249594,12 @@ paths:
summary: Get a critical asset
tags:
- Security Monitoring
x-permission:
operator: OR
permissions:
- security_monitoring_critical_assets_read
patch:
description: Update a specific critical asset.
description: Update a specific dynamic severity rule (previously called critical assets).
operationId: UpdateSecurityMonitoringCriticalAsset
parameters:
- $ref: "#/components/parameters/SecurityMonitoringCriticalAssetID"
Expand Down Expand Up @@ -249641,6 +249661,10 @@ paths:
summary: Update a critical asset
tags:
- Security Monitoring
x-permission:
operator: OR
permissions:
- security_monitoring_critical_assets_write
/api/v2/security_monitoring/configuration/integration_config:
get:
description: |-
Expand Down
12 changes: 6 additions & 6 deletions lib/datadog_api_client/v2/api/security_monitoring_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,7 @@ def create_security_monitoring_critical_asset(body, opts = {})

# Create a critical asset.
#
# Create a new critical asset.
# Create a new dynamic severity rule (previously called critical assets).
#
# @param body [SecurityMonitoringCriticalAssetCreateRequest] The definition of the new critical asset.
# @param opts [Hash] the optional parameters
Expand Down Expand Up @@ -4209,7 +4209,7 @@ def delete_security_monitoring_critical_asset(critical_asset_id, opts = {})

# Delete a critical asset.
#
# Delete a specific critical asset.
# Delete a specific dynamic severity rule (previously called critical assets).
#
# @param critical_asset_id [String] The ID of the critical asset.
# @param opts [Hash] the optional parameters
Expand Down Expand Up @@ -5327,7 +5327,7 @@ def get_critical_assets_affecting_rule(rule_id, opts = {})

# Get critical assets affecting a specific rule.
#
# Get the list of critical assets that affect a specific existing rule by the rule's ID.
# Get the list of dynamic severity rules (previously called critical assets) that affect a specific existing rule by the rule's ID.
#
# @param rule_id [String] The ID of the rule.
# @param opts [Hash] the optional parameters
Expand Down Expand Up @@ -6869,7 +6869,7 @@ def get_security_monitoring_critical_asset(critical_asset_id, opts = {})

# Get a critical asset.
#
# Get the details of a specific critical asset.
# Get the details of a specific dynamic severity rule (previously called critical assets).
#
# @param critical_asset_id [String] The ID of the critical asset.
# @param opts [Hash] the optional parameters
Expand Down Expand Up @@ -10308,7 +10308,7 @@ def list_security_monitoring_critical_assets(opts = {})

# Get all critical assets.
#
# Get the list of all critical assets.
# Get the list of all dynamic severity rules (previously called critical assets).
#
# @param opts [Hash] the optional parameters
# @return [Array<(SecurityMonitoringCriticalAssetsResponse, Integer, Hash)>] SecurityMonitoringCriticalAssetsResponse data, response status code and response headers
Expand Down Expand Up @@ -13687,7 +13687,7 @@ def update_security_monitoring_critical_asset(critical_asset_id, body, opts = {}

# Update a critical asset.
#
# Update a specific critical asset.
# Update a specific dynamic severity rule (previously called critical assets).
#
# @param critical_asset_id [String] The ID of the critical asset.
# @param body [SecurityMonitoringCriticalAssetUpdateRequest] New definition of the critical asset. Supports partial updates.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SecurityMonitoringCriticalAssetAttributes
# The rule query of the critical asset, with the same syntax as the search bar for detection rules. This determines which rules this critical asset will apply to.
attr_accessor :rule_query

# Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
# Severity associated with this dynamic severity rule (previously called critical assets). Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
attr_accessor :severity

# List of tags associated with the critical asset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SecurityMonitoringCriticalAssetCreateAttributes
# The rule query of the critical asset, with the same syntax as the search bar for detection rules. This determines which rules this critical asset will apply to.
attr_reader :rule_query

# Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
# Severity associated with this dynamic severity rule (previously called critical assets). Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
attr_reader :severity

# List of tags associated with the critical asset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V2
# Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
# Severity associated with this dynamic severity rule (previously called critical assets). Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
class SecurityMonitoringCriticalAssetSeverity
include BaseEnumModel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SecurityMonitoringCriticalAssetUpdateAttributes
# The rule query of the critical asset, with the same syntax as the search bar for detection rules. This determines which rules this critical asset will apply to.
attr_accessor :rule_query

# Severity associated with this critical asset. Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
# Severity associated with this dynamic severity rule (previously called critical assets). Either an explicit severity can be set, or the severity can be increased or decreased, or the severity can be left unchanged (no-op).
attr_accessor :severity

# List of tags associated with the critical asset.
Expand Down
Loading