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
48 changes: 35 additions & 13 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10826,7 +10826,7 @@ components:
- MAX
AiGatewayNullableRoutingRuleTierOrdering:
description: >-
How a tier orders its targets. Omission preserves the saved same-position tier on update; null resets to configured. New tiers default to configured. The weighted_affinity ordering distributes first-choice assignments by relative target weights and accepts only model targets with an explicit provider, without repeated provider and model pairs in the same tier. The `classified` ordering is allowed only in the first tier and requires a classifier, destination rubrics, and one default destination. Its targets are model targets that each name one provider, not "*". Besides the default, it needs 1 to 9 destinations, each with a different rubric. Classified routing is in Preview: saving a classified tier returns 403 Forbidden unless the feature is enabled for the organization.
How a tier orders its targets. Omission preserves the saved same-position tier on update; null resets to configured. New tiers default to configured. The weighted_affinity ordering distributes first-choice assignments by relative target weights and accepts only model targets with an explicit provider, without repeated provider and model pairs in the same tier. The `classified` ordering is allowed only in the first tier and requires a classifier, destination rubrics, and one default destination.
enum:
- configured
- weighted_affinity
Expand Down Expand Up @@ -12050,8 +12050,7 @@ components:
example: gpt-6-luna
type: string
provider:
description: >-
Decision-model provider slug. It must name a provider of type `openai`, `baseten`, or `typesafe`, the provider types that serve a decision model. Omit together with model to preserve the saved selection.
description: Decision-model provider slug. Omit together with model to preserve the saved selection.
example: openai
type: string
type: object
Expand Down Expand Up @@ -12303,14 +12302,13 @@ components:
minimum: 1
type: integer
provider:
description: Provider slug. weighted_affinity and classified tiers require an explicit provider and do not allow "*".
description: Provider slug. weighted_affinity requires an explicit provider and does not allow "*".
example: prod-us
type: string
reasoning_level:
$ref: "#/components/schemas/AiGatewayRoutingReasoningLevel"
rubric:
description: >-
Destination rubric in a classified tier: when the decision model picks this destination. Up to 300 characters after leading and trailing spaces are trimmed, and different for each destination in the tier. Omission preserves a saved value; null clears it. Must be absent on the default destination.
description: Destination rubric in a classified tier. Omission preserves a saved value; null clears it. Must be absent on the default destination.
example: Short factual questions.
maxLength: 300
nullable: true
Expand Down Expand Up @@ -126623,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 @@ -249388,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 @@ -249421,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 @@ -249480,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 @@ -249519,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 @@ -249542,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 @@ -249580,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 @@ -249643,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 src/datadog_api_client/v2/api/security_monitoring_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6212,7 +6212,7 @@ def create_security_monitoring_critical_asset(
) -> SecurityMonitoringCriticalAssetResponse:
"""Create a critical asset.

Create a new critical asset.
Create a new dynamic severity rule (previously called critical assets).

:param body: The definition of the new critical asset.
:type body: SecurityMonitoringCriticalAssetCreateRequest
Expand Down Expand Up @@ -6630,7 +6630,7 @@ def delete_security_monitoring_critical_asset(
) -> None:
"""Delete a critical asset.

Delete a specific critical asset.
Delete a specific dynamic severity rule (previously called critical assets).

:param critical_asset_id: The ID of the critical asset.
:type critical_asset_id: str
Expand Down Expand Up @@ -6940,7 +6940,7 @@ def get_critical_assets_affecting_rule(
) -> SecurityMonitoringCriticalAssetsResponse:
"""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: The ID of the rule.
:type rule_id: str
Expand Down Expand Up @@ -7470,7 +7470,7 @@ def get_security_monitoring_critical_asset(
) -> SecurityMonitoringCriticalAssetResponse:
"""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: The ID of the critical asset.
:type critical_asset_id: str
Expand Down Expand Up @@ -8995,7 +8995,7 @@ def list_security_monitoring_critical_assets(
) -> SecurityMonitoringCriticalAssetsResponse:
"""Get all critical assets.

Get the list of all critical assets.
Get the list of all dynamic severity rules (previously called critical assets).

:rtype: SecurityMonitoringCriticalAssetsResponse
"""
Expand Down Expand Up @@ -10516,7 +10516,7 @@ def update_security_monitoring_critical_asset(
) -> SecurityMonitoringCriticalAssetResponse:
"""Update a critical asset.

Update a specific critical asset.
Update a specific dynamic severity rule (previously called critical assets).

:param critical_asset_id: The ID of the critical asset.
:type critical_asset_id: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class AiGatewayNullableRoutingRuleTierOrdering(ModelSimple):
"""
How a tier orders its targets. Omission preserves the saved same-position tier on update; null resets to configured. New tiers default to configured. The weighted_affinity ordering distributes first-choice assignments by relative target weights and accepts only model targets with an explicit provider, without repeated provider and model pairs in the same tier. The `classified` ordering is allowed only in the first tier and requires a classifier, destination rubrics, and one default destination. Its targets are model targets that each name one provider, not "*". Besides the default, it needs 1 to 9 destinations, each with a different rubric. Classified routing is in Preview: saving a classified tier returns 403 Forbidden unless the feature is enabled for the organization.
How a tier orders its targets. Omission preserves the saved same-position tier on update; null resets to configured. New tiers default to configured. The weighted_affinity ordering distributes first-choice assignments by relative target weights and accepts only model targets with an explicit provider, without repeated provider and model pairs in the same tier. The `classified` ordering is allowed only in the first tier and requires a classifier, destination rubrics, and one default destination.

:param value: Must be one of ["configured", "weighted_affinity", "classified"].
:type value: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
:param model: Decision model on the provider. Omit together with provider to preserve the saved selection.
:type model: str, optional

:param provider: Decision-model provider slug. It must name a provider of type ``openai`` , ``baseten`` , or ``typesafe`` , the provider types that serve a decision model. Omit together with model to preserve the saved selection.
:param provider: Decision-model provider slug. Omit together with model to preserve the saved selection.
:type provider: str, optional
"""
if confidence_threshold is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ def __init__(
:param model_id: Opaque model catalog ID for a concrete model target. New selections require provider View; saved selections can be retained without metadata.
:type model_id: int, optional

:param provider: Provider slug. weighted_affinity and classified tiers require an explicit provider and do not allow "*".
:param provider: Provider slug. weighted_affinity requires an explicit provider and does not allow "*".
:type provider: str, optional

:param reasoning_level: Optional reasoning effort preference for this model destination. Must be supported by the selected model and provider. For provider "*", every eligible provider must support the level. An explicit value overrides the request's reasoning setting, subject to model-group policy. Omitted or null preserves request and provider behavior; none is an explicit level, not the default. On update, omission preserves a saved target override; null explicitly clears it. Routing-rule references cannot set this field; each referenced model destination owns its override. If an override cannot be applied at runtime, the gateway keeps the destination and restores the caller's original reasoning settings, or preserves the provider default when omitted. It rechecks all applicable route and model-group policies against those settings before sending. Model-group max_reasoning_level enforces hard limits; the override is not an additional cap. Normal fallback applies if governance denies the resulting request or the destination cannot otherwise serve it. Metrics and span tags record the override outcome and incompatibility reason. When response headers have not already been committed, ``X-Ai-Gateway-Reasoning-Override`` reports applied or not_applied for the returned attempt, and ``X-Ai-Gateway-Reasoning-Override-Reason`` reports the reason when not applied.
:type reasoning_level: AiGatewayRoutingReasoningLevel, none_type, optional

:param rubric: Destination rubric in a classified tier: when the decision model picks this destination. Up to 300 characters after leading and trailing spaces are trimmed, and different for each destination in the tier. Omission preserves a saved value; null clears it. Must be absent on the default destination.
:param rubric: Destination rubric in a classified tier. Omission preserves a saved value; null clears it. Must be absent on the default destination.
:type rubric: str, none_type, optional

:param slug: Organization-unique routing rule slug. New references require route View. Omit to retain a saved target by its parent-local ID. Allowed only in configured tiers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
:param classifier: Decision model and settings for a classified tier. Omission preserves the saved classifier; null clears it. Newly selected models require provider View.
:type classifier: AiGatewayRoutingClassifierRequest, none_type, optional

:param ordering: How a tier orders its targets. Omission preserves the saved same-position tier on update; null resets to configured. New tiers default to configured. The weighted_affinity ordering distributes first-choice assignments by relative target weights and accepts only model targets with an explicit provider, without repeated provider and model pairs in the same tier. The ``classified`` ordering is allowed only in the first tier and requires a classifier, destination rubrics, and one default destination. Its targets are model targets that each name one provider, not "*". Besides the default, it needs 1 to 9 destinations, each with a different rubric. Classified routing is in Preview: saving a classified tier returns 403 Forbidden unless the feature is enabled for the organization.
:param ordering: How a tier orders its targets. Omission preserves the saved same-position tier on update; null resets to configured. New tiers default to configured. The weighted_affinity ordering distributes first-choice assignments by relative target weights and accepts only model targets with an explicit provider, without repeated provider and model pairs in the same tier. The ``classified`` ordering is allowed only in the first tier and requires a classifier, destination rubrics, and one default destination.
:type ordering: AiGatewayNullableRoutingRuleTierOrdering, none_type, optional

:param targets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(
:param rule_query: 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.
:type rule_query: str, optional

:param severity: 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).
:param severity: 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).
:type severity: SecurityMonitoringCriticalAssetSeverity, optional

:param tags: List of tags associated with the critical asset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(
:param rule_query: 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.
:type rule_query: str

:param severity: 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).
:param severity: 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).
:type severity: SecurityMonitoringCriticalAssetSeverity

:param tags: List of tags associated with the critical asset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class SecurityMonitoringCriticalAssetSeverity(ModelSimple):
"""
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).

:param value: Must be one of ["info", "low", "medium", "high", "critical", "increase", "decrease", "no-op"].
:type value: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(
:param rule_query: 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.
:type rule_query: str, optional

:param severity: 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).
:param severity: 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).
:type severity: SecurityMonitoringCriticalAssetSeverity, optional

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