diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 0168ec45e3..0eb131fbc4 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -34993,6 +34993,7 @@ components:
x-enum-varnames:
- CREATE_TEST_SUITE_FOR_JOURNEY_REQUEST
DemInferredJourneyCandidateAttributes:
+ additionalProperties: false
description: Attributes of an inferred journey candidate.
properties:
created_at:
@@ -35058,6 +35059,7 @@ components:
- attributes
type: object
DemInferredJourneyIgnoredAttributes:
+ additionalProperties: false
description: Attributes of an ignored inferred journey.
properties:
created_at:
@@ -35122,6 +35124,11 @@ components:
- type
- attributes
type: object
+ DemInferredJourneyItem:
+ description: A single inferred journey item, either a candidate or an ignored journey.
+ oneOf:
+ - $ref: "#/components/schemas/DemInferredJourneyCandidateData"
+ - $ref: "#/components/schemas/DemInferredJourneyIgnoredData"
DemInferredJourneyStatus:
default: candidate
description: The status of an inferred DEM journey.
@@ -35551,10 +35558,7 @@ components:
data:
description: List of inferred journey items matching the search criteria.
items:
- anyOf:
- - $ref: "#/components/schemas/DemInferredJourneyCandidateData"
- - $ref: "#/components/schemas/DemInferredJourneyIgnoredData"
- description: A single inferred journey item, either a candidate or an ignored journey.
+ $ref: "#/components/schemas/DemInferredJourneyItem"
type: array
required:
- data
@@ -36456,11 +36460,6 @@ components:
- DEPLOYMENT_GATES_EVALUATION_RESULT_RESPONSE
DeploymentGatesEvaluationRule:
description: A rule to evaluate as part of a deployment gate evaluation.
- discriminator:
- mapping:
- faulty_deployment_detection: "#/components/schemas/DeploymentGatesFDDRule"
- monitor: "#/components/schemas/DeploymentGatesMonitorRule"
- propertyName: type
oneOf:
- $ref: "#/components/schemas/DeploymentGatesMonitorRule"
- $ref: "#/components/schemas/DeploymentGatesFDDRule"
@@ -68154,9 +68153,6 @@ components:
type: string
type: object
LLMObsContentBlock:
- anyOf:
- - $ref: "#/components/schemas/LLMObsFrontendContentBlock"
- - $ref: "#/components/schemas/LLMObsLegacyContentBlock"
description: |-
A single content block rendered inside a `display_block` interaction.
`type` discriminates which other fields are meaningful:
@@ -68165,7 +68161,7 @@ components:
- `header`: `content` must be a string; `level`, when set, must be one of `sm`, `md`, `lg`, `xl`.
- `json`: `content` must be a well-formed JSON value (object, array, or scalar).
- `image`: `url` is required.
- - `widget`: `tileDef` is required (any well-formed JSON; the frontend owns the renderable schema).
+ - `univiz`: `tileDef` is required (any well-formed JSON; the frontend owns the renderable schema).
- `llmobs_trace`: `traceId` is required; `interactionType`, when set, must be `trace` or `experiment_trace`.
- `frontend`: `code` is required and must be a non-empty string; `label` is optional.
@@ -68181,7 +68177,7 @@ components:
description: |-
Block payload. A string for `markdown`, `header`, and `text`; an
arbitrary JSON value (object, array, or scalar) for `json`. Omitted
- for `image`, `widget`, `llmobs_trace`, and `frontend`.
+ for `image`, `univiz`, `llmobs_trace`, and `frontend`.
example: "## Triage Instructions"
height:
description: Optional rendered height. Must be positive when set.
@@ -68198,7 +68194,7 @@ components:
$ref: "#/components/schemas/LLMObsContentBlockHeaderLevel"
tileDef:
description: |-
- Tile definition for a `widget` block. Required for `widget`. The
+ Tile definition for a `univiz` block. Required for `univiz`. The
schema is owned by the frontend renderer.
example:
requests:
@@ -68221,8 +68217,6 @@ components:
description: URL of the image. Required for `image` blocks.
example: "https://example.com/image.png"
type: string
- required:
- - type
type: object
LLMObsContentBlockHeaderLevel:
description: Visual size for a `header` block.
@@ -68277,7 +68271,7 @@ components:
- text
- json
- image
- - widget
+ - univiz
- llmobs_trace
- frontend
example: markdown
@@ -68288,7 +68282,7 @@ components:
- TEXT
- JSON
- IMAGE
- - WIDGET
+ - UNIVIZ
- LLMOBS_TRACE
- FRONTEND
LLMObsContentBlocks:
@@ -71210,29 +71204,11 @@ components:
required:
- data
type: object
- LLMObsFrontendContentBlock:
- description: Validation requirements for a `frontend` display block.
- properties:
- code:
- $ref: "#/components/schemas/LLMObsFrontendContentBlockCode"
- type:
- $ref: "#/components/schemas/LLMObsFrontendContentBlockType"
- required:
- - code
- type: object
LLMObsFrontendContentBlockCode:
description: HTML code rendered by a `frontend` block. Required for `frontend` blocks.
example: '
Ready for review
'
minLength: 1
type: string
- LLMObsFrontendContentBlockType:
- description: Type discriminator for a `frontend` display block.
- enum:
- - frontend
- example: frontend
- type: string
- x-enum-varnames:
- - FRONTEND
LLMObsInferenceCode:
description: A generated code snippet for running an inference request programmatically.
properties:
@@ -71838,32 +71814,6 @@ components:
- CATEGORICAL
- BOOLEAN
- TEXT
- LLMObsLegacyContentBlock:
- description: Validation requirements for an existing non-frontend display block.
- properties:
- type:
- $ref: "#/components/schemas/LLMObsLegacyContentBlockType"
- type: object
- LLMObsLegacyContentBlockType:
- description: Type discriminator for an existing non-frontend display block.
- enum:
- - markdown
- - header
- - text
- - json
- - image
- - widget
- - llmobs_trace
- example: markdown
- type: string
- x-enum-varnames:
- - MARKDOWN
- - HEADER
- - TEXT
- - JSON
- - IMAGE
- - WIDGET
- - LLMOBS_TRACE
LLMObsMetricAssessment:
description: Assessment result for an Agent Observability experiment metric.
enum:
@@ -113157,16 +113107,6 @@ components:
description: |-
Type-specific details for a content pack state. The set of fields present depends
on the content pack's `type`. When Cloud SIEM is inactive for the requesting organization, `onboarding` is returned instead of the content pack's usual type, such as `logs` or `vulnerability`.`
- discriminator:
- mapping:
- appsec: "#/components/schemas/SecurityMonitoringContentPackAppSecDetails"
- audit: "#/components/schemas/SecurityMonitoringContentPackAuditDetails"
- entity: "#/components/schemas/SecurityMonitoringContentPackEntityDetails"
- logs: "#/components/schemas/SecurityMonitoringContentPackLogsDetails"
- onboarding: "#/components/schemas/SecurityMonitoringContentPackOnboardingDetails"
- threat_intel: "#/components/schemas/SecurityMonitoringContentPackThreatIntelDetails"
- vulnerability: "#/components/schemas/SecurityMonitoringContentPackVulnerabilityDetails"
- propertyName: type
oneOf:
- $ref: "#/components/schemas/SecurityMonitoringContentPackLogsDetails"
- $ref: "#/components/schemas/SecurityMonitoringContentPackThreatIntelDetails"
@@ -114383,14 +114323,6 @@ components:
type: object
SecurityMonitoringIntegrationConfigCreateAttributes:
description: The attributes of the entity context sync configuration to create.
- discriminator:
- mapping:
- CROWDSTRIKE: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes"
- ENTRA_ID: "#/components/schemas/SecurityMonitoringEntraIdIntegrationConfigCreateAttributes"
- GOOGLE_WORKSPACE: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes"
- OKTA: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigCreateAttributes"
- SENTINELONE: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationConfigCreateAttributes"
- propertyName: integration_type
oneOf:
- $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigCreateAttributes"
@@ -114542,14 +114474,6 @@ components:
- INITIALIZING
SecurityMonitoringIntegrationConfigUpdateAttributes:
description: Fields to update on the entity context sync configuration. All fields other than the integration type are optional.
- discriminator:
- mapping:
- CROWDSTRIKE: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes"
- ENTRA_ID: "#/components/schemas/SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes"
- GOOGLE_WORKSPACE: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes"
- OKTA: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigUpdateAttributes"
- SENTINELONE: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationConfigUpdateAttributes"
- propertyName: integration_type
oneOf:
- $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigUpdateAttributes"
@@ -114588,14 +114512,6 @@ components:
type: object
SecurityMonitoringIntegrationCredentialsValidateAttributes:
description: The credentials to validate against the external entity source.
- discriminator:
- mapping:
- CROWDSTRIKE: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationCredentialsValidateAttributes"
- ENTRA_ID: "#/components/schemas/SecurityMonitoringEntraIdIntegrationCredentialsValidateAttributes"
- GOOGLE_WORKSPACE: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationCredentialsValidateAttributes"
- OKTA: "#/components/schemas/SecurityMonitoringOktaIntegrationCredentialsValidateAttributes"
- SENTINELONE: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationCredentialsValidateAttributes"
- propertyName: integration_type
oneOf:
- $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationCredentialsValidateAttributes"
- $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationCredentialsValidateAttributes"
@@ -135167,9 +135083,6 @@ components:
- $ref: "#/components/schemas/SoftwareCatalogTriggerWrapper"
- $ref: "#/components/schemas/WorkflowTriggerWrapper"
TriggerAttributes:
- anyOf:
- - $ref: "#/components/schemas/MonitorAlertTrigger"
- - $ref: "#/components/schemas/GeneralInvestigationTrigger"
description: The trigger definition for starting an investigation.
example:
monitor_alert_trigger:
@@ -135177,14 +135090,9 @@ components:
event_ts: 1700000000000
monitor_id: 12345678
type: monitor_alert_trigger
- properties:
- general_investigation:
- $ref: "#/components/schemas/GeneralInvestigationAttributes"
- monitor_alert_trigger:
- $ref: "#/components/schemas/MonitorAlertTriggerAttributes"
- type:
- $ref: "#/components/schemas/TriggerType"
- type: object
+ oneOf:
+ - $ref: "#/components/schemas/MonitorAlertTrigger"
+ - $ref: "#/components/schemas/GeneralInvestigationTrigger"
TriggerInvestigationRequest:
description: Request to trigger a new investigation.
properties:
@@ -135285,16 +135193,6 @@ components:
x-enum-varnames:
- SECURITY_FINDINGS
- SECURITY_SIGNALS
- TriggerType:
- description: The type of trigger for the investigation.
- enum:
- - monitor_alert_trigger
- - general_investigation
- example: monitor_alert_trigger
- type: string
- x-enum-varnames:
- - MONITOR_ALERT_TRIGGER
- - GENERAL_INVESTIGATION
TriggerWorkflowAutomationAction:
description: "Triggers a Workflow Automation."
properties:
diff --git a/examples/v2/bits-ai/TriggerInvestigation.py b/examples/v2/bits-ai/TriggerInvestigation.py
index 1dc69360d8..1ce56bf498 100644
--- a/examples/v2/bits-ai/TriggerInvestigation.py
+++ b/examples/v2/bits-ai/TriggerInvestigation.py
@@ -5,26 +5,26 @@
from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.bits_ai_api import BitsAIApi
+from datadog_api_client.v2.model.monitor_alert_trigger import MonitorAlertTrigger
from datadog_api_client.v2.model.monitor_alert_trigger_attributes import MonitorAlertTriggerAttributes
-from datadog_api_client.v2.model.trigger_attributes import TriggerAttributes
+from datadog_api_client.v2.model.monitor_alert_trigger_type import MonitorAlertTriggerType
from datadog_api_client.v2.model.trigger_investigation_request import TriggerInvestigationRequest
from datadog_api_client.v2.model.trigger_investigation_request_data import TriggerInvestigationRequestData
from datadog_api_client.v2.model.trigger_investigation_request_data_attributes import (
TriggerInvestigationRequestDataAttributes,
)
from datadog_api_client.v2.model.trigger_investigation_request_type import TriggerInvestigationRequestType
-from datadog_api_client.v2.model.trigger_type import TriggerType
body = TriggerInvestigationRequest(
data=TriggerInvestigationRequestData(
attributes=TriggerInvestigationRequestDataAttributes(
- trigger=TriggerAttributes(
+ trigger=MonitorAlertTrigger(
monitor_alert_trigger=MonitorAlertTriggerAttributes(
event_id="1234567890123456789",
event_ts=1700000000000,
monitor_id=12345678,
),
- type=TriggerType.MONITOR_ALERT_TRIGGER,
+ type=MonitorAlertTriggerType.MONITOR_ALERT_TRIGGER,
),
),
type=TriggerInvestigationRequestType.TRIGGER_INVESTIGATION_REQUEST,
diff --git a/src/datadog_api_client/v2/model/dem_inferred_journey_candidate_attributes.py b/src/datadog_api_client/v2/model/dem_inferred_journey_candidate_attributes.py
new file mode 100644
index 0000000000..44045ad167
--- /dev/null
+++ b/src/datadog_api_client/v2/model/dem_inferred_journey_candidate_attributes.py
@@ -0,0 +1,120 @@
+# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+# This product includes software developed at Datadog (https://www.datadoghq.com/).
+# Copyright 2019-Present Datadog, Inc.
+from __future__ import annotations
+
+from typing import List, Union, TYPE_CHECKING
+
+from datadog_api_client.model_utils import (
+ ModelNormal,
+ cached_property,
+ datetime,
+ none_type,
+ unset,
+ UnsetType,
+)
+
+
+if TYPE_CHECKING:
+ from datadog_api_client.v2.model.dem_journey_rum import DemJourneyRum
+ from datadog_api_client.v2.model.dem_test_suite_nested import DemTestSuiteNested
+ from datadog_api_client.v2.model.dem_variant import DemVariant
+
+
+class DemInferredJourneyCandidateAttributes(ModelNormal):
+ @cached_property
+ def additional_properties_type(_):
+ return None
+
+ @cached_property
+ def openapi_types(_):
+ from datadog_api_client.v2.model.dem_journey_rum import DemJourneyRum
+ from datadog_api_client.v2.model.dem_test_suite_nested import DemTestSuiteNested
+ from datadog_api_client.v2.model.dem_variant import DemVariant
+
+ return {
+ "created_at": (datetime,),
+ "description": (str, none_type),
+ "journey_rum": (DemJourneyRum,),
+ "name": (str,),
+ "org_id": (int,),
+ "rank": (int, none_type),
+ "tags": ([str],),
+ "test_suite": (DemTestSuiteNested,),
+ "variants": ([DemVariant],),
+ }
+
+ attribute_map = {
+ "created_at": "created_at",
+ "description": "description",
+ "journey_rum": "journey_rum",
+ "name": "name",
+ "org_id": "org_id",
+ "rank": "rank",
+ "tags": "tags",
+ "test_suite": "test_suite",
+ "variants": "variants",
+ }
+ read_only_vars = {
+ "created_at",
+ "org_id",
+ "rank",
+ }
+
+ def __init__(
+ self_,
+ created_at: datetime,
+ journey_rum: DemJourneyRum,
+ name: str,
+ org_id: int,
+ tags: List[str],
+ variants: List[DemVariant],
+ description: Union[str, none_type, UnsetType] = unset,
+ rank: Union[int, none_type, UnsetType] = unset,
+ test_suite: Union[DemTestSuiteNested, UnsetType] = unset,
+ **kwargs,
+ ):
+ """
+ Attributes of an inferred journey candidate.
+
+ :param created_at: Timestamp when the inferred journey was first observed.
+ :type created_at: datetime
+
+ :param description: An optional description of the inferred journey.
+ :type description: str, none_type, optional
+
+ :param journey_rum: The RUM definition for a DEM journey.
+ :type journey_rum: DemJourneyRum
+
+ :param name: The name of the inferred journey.
+ :type name: str
+
+ :param org_id: The organization ID that owns this inferred journey.
+ :type org_id: int
+
+ :param rank: Ranking score of the inferred journey candidate.
+ :type rank: int, none_type, optional
+
+ :param tags: List of tags associated with a DEM resource.
+ :type tags: [str]
+
+ :param test_suite: A test suite associated with a DEM resource.
+ :type test_suite: DemTestSuiteNested, optional
+
+ :param variants: List of variants associated with a DEM journey.
+ :type variants: [DemVariant]
+ """
+ if description is not unset:
+ kwargs["description"] = description
+ if rank is not unset:
+ kwargs["rank"] = rank
+ if test_suite is not unset:
+ kwargs["test_suite"] = test_suite
+ super().__init__(kwargs)
+
+ self_.created_at = created_at
+ self_.journey_rum = journey_rum
+ self_.name = name
+ self_.org_id = org_id
+ self_.tags = tags
+ self_.variants = variants
diff --git a/src/datadog_api_client/v2/model/dem_inferred_journey_candidate_data.py b/src/datadog_api_client/v2/model/dem_inferred_journey_candidate_data.py
new file mode 100644
index 0000000000..597cda0a17
--- /dev/null
+++ b/src/datadog_api_client/v2/model/dem_inferred_journey_candidate_data.py
@@ -0,0 +1,58 @@
+# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+# This product includes software developed at Datadog (https://www.datadoghq.com/).
+# Copyright 2019-Present Datadog, Inc.
+from __future__ import annotations
+
+from typing import TYPE_CHECKING
+
+from datadog_api_client.model_utils import (
+ ModelNormal,
+ cached_property,
+)
+
+
+if TYPE_CHECKING:
+ from datadog_api_client.v2.model.dem_inferred_journey_candidate_attributes import (
+ DemInferredJourneyCandidateAttributes,
+ )
+ from datadog_api_client.v2.model.dem_journey_type import DemJourneyType
+
+
+class DemInferredJourneyCandidateData(ModelNormal):
+ @cached_property
+ def openapi_types(_):
+ from datadog_api_client.v2.model.dem_inferred_journey_candidate_attributes import (
+ DemInferredJourneyCandidateAttributes,
+ )
+ from datadog_api_client.v2.model.dem_journey_type import DemJourneyType
+
+ return {
+ "attributes": (DemInferredJourneyCandidateAttributes,),
+ "id": (str,),
+ "type": (DemJourneyType,),
+ }
+
+ attribute_map = {
+ "attributes": "attributes",
+ "id": "id",
+ "type": "type",
+ }
+
+ def __init__(self_, attributes: DemInferredJourneyCandidateAttributes, id: str, type: DemJourneyType, **kwargs):
+ """
+ Data object for an inferred journey candidate.
+
+ :param attributes: Attributes of an inferred journey candidate.
+ :type attributes: DemInferredJourneyCandidateAttributes
+
+ :param id: The unique identifier of the inferred journey.
+ :type id: str
+
+ :param type: The type identifier for DEM journeys.
+ :type type: DemJourneyType
+ """
+ super().__init__(kwargs)
+
+ self_.attributes = attributes
+ self_.id = id
+ self_.type = type
diff --git a/src/datadog_api_client/v2/model/dem_inferred_journey_ignored_attributes.py b/src/datadog_api_client/v2/model/dem_inferred_journey_ignored_attributes.py
new file mode 100644
index 0000000000..46c0f9793f
--- /dev/null
+++ b/src/datadog_api_client/v2/model/dem_inferred_journey_ignored_attributes.py
@@ -0,0 +1,119 @@
+# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+# This product includes software developed at Datadog (https://www.datadoghq.com/).
+# Copyright 2019-Present Datadog, Inc.
+from __future__ import annotations
+
+from typing import List, Union, TYPE_CHECKING
+
+from datadog_api_client.model_utils import (
+ ModelNormal,
+ cached_property,
+ datetime,
+ none_type,
+ unset,
+ UnsetType,
+)
+
+
+if TYPE_CHECKING:
+ from datadog_api_client.v2.model.dem_journey_rum import DemJourneyRum
+ from datadog_api_client.v2.model.dem_test_suite_nested import DemTestSuiteNested
+ from datadog_api_client.v2.model.dem_variant import DemVariant
+
+
+class DemInferredJourneyIgnoredAttributes(ModelNormal):
+ @cached_property
+ def additional_properties_type(_):
+ return None
+
+ @cached_property
+ def openapi_types(_):
+ from datadog_api_client.v2.model.dem_journey_rum import DemJourneyRum
+ from datadog_api_client.v2.model.dem_test_suite_nested import DemTestSuiteNested
+ from datadog_api_client.v2.model.dem_variant import DemVariant
+
+ return {
+ "created_at": (datetime,),
+ "description": (str, none_type),
+ "ignored_at": (datetime,),
+ "journey_rum": (DemJourneyRum,),
+ "name": (str,),
+ "org_id": (int,),
+ "tags": ([str],),
+ "test_suite": (DemTestSuiteNested,),
+ "variants": ([DemVariant],),
+ }
+
+ attribute_map = {
+ "created_at": "created_at",
+ "description": "description",
+ "ignored_at": "ignored_at",
+ "journey_rum": "journey_rum",
+ "name": "name",
+ "org_id": "org_id",
+ "tags": "tags",
+ "test_suite": "test_suite",
+ "variants": "variants",
+ }
+ read_only_vars = {
+ "created_at",
+ "ignored_at",
+ "org_id",
+ }
+
+ def __init__(
+ self_,
+ created_at: datetime,
+ ignored_at: datetime,
+ journey_rum: DemJourneyRum,
+ name: str,
+ org_id: int,
+ tags: List[str],
+ variants: List[DemVariant],
+ description: Union[str, none_type, UnsetType] = unset,
+ test_suite: Union[DemTestSuiteNested, UnsetType] = unset,
+ **kwargs,
+ ):
+ """
+ Attributes of an ignored inferred journey.
+
+ :param created_at: Timestamp when the inferred journey was first observed.
+ :type created_at: datetime
+
+ :param description: An optional description of the inferred journey.
+ :type description: str, none_type, optional
+
+ :param ignored_at: Timestamp when the inferred journey was ignored.
+ :type ignored_at: datetime
+
+ :param journey_rum: The RUM definition for a DEM journey.
+ :type journey_rum: DemJourneyRum
+
+ :param name: The name of the inferred journey.
+ :type name: str
+
+ :param org_id: The organization ID that owns this inferred journey.
+ :type org_id: int
+
+ :param tags: List of tags associated with a DEM resource.
+ :type tags: [str]
+
+ :param test_suite: A test suite associated with a DEM resource.
+ :type test_suite: DemTestSuiteNested, optional
+
+ :param variants: List of variants associated with a DEM journey.
+ :type variants: [DemVariant]
+ """
+ if description is not unset:
+ kwargs["description"] = description
+ if test_suite is not unset:
+ kwargs["test_suite"] = test_suite
+ super().__init__(kwargs)
+
+ self_.created_at = created_at
+ self_.ignored_at = ignored_at
+ self_.journey_rum = journey_rum
+ self_.name = name
+ self_.org_id = org_id
+ self_.tags = tags
+ self_.variants = variants
diff --git a/src/datadog_api_client/v2/model/dem_inferred_journey_ignored_data.py b/src/datadog_api_client/v2/model/dem_inferred_journey_ignored_data.py
new file mode 100644
index 0000000000..2ada3daf58
--- /dev/null
+++ b/src/datadog_api_client/v2/model/dem_inferred_journey_ignored_data.py
@@ -0,0 +1,56 @@
+# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+# This product includes software developed at Datadog (https://www.datadoghq.com/).
+# Copyright 2019-Present Datadog, Inc.
+from __future__ import annotations
+
+from typing import TYPE_CHECKING
+
+from datadog_api_client.model_utils import (
+ ModelNormal,
+ cached_property,
+)
+
+
+if TYPE_CHECKING:
+ from datadog_api_client.v2.model.dem_inferred_journey_ignored_attributes import DemInferredJourneyIgnoredAttributes
+ from datadog_api_client.v2.model.dem_journey_type import DemJourneyType
+
+
+class DemInferredJourneyIgnoredData(ModelNormal):
+ @cached_property
+ def openapi_types(_):
+ from datadog_api_client.v2.model.dem_inferred_journey_ignored_attributes import (
+ DemInferredJourneyIgnoredAttributes,
+ )
+ from datadog_api_client.v2.model.dem_journey_type import DemJourneyType
+
+ return {
+ "attributes": (DemInferredJourneyIgnoredAttributes,),
+ "id": (str,),
+ "type": (DemJourneyType,),
+ }
+
+ attribute_map = {
+ "attributes": "attributes",
+ "id": "id",
+ "type": "type",
+ }
+
+ def __init__(self_, attributes: DemInferredJourneyIgnoredAttributes, id: str, type: DemJourneyType, **kwargs):
+ """
+ Data object for an ignored inferred journey.
+
+ :param attributes: Attributes of an ignored inferred journey.
+ :type attributes: DemInferredJourneyIgnoredAttributes
+
+ :param id: The unique identifier of the ignored inferred journey.
+ :type id: str
+
+ :param type: The type identifier for DEM journeys.
+ :type type: DemJourneyType
+ """
+ super().__init__(kwargs)
+
+ self_.attributes = attributes
+ self_.id = id
+ self_.type = type
diff --git a/src/datadog_api_client/v2/model/dem_inferred_journey_item.py b/src/datadog_api_client/v2/model/dem_inferred_journey_item.py
new file mode 100644
index 0000000000..dae2814d75
--- /dev/null
+++ b/src/datadog_api_client/v2/model/dem_inferred_journey_item.py
@@ -0,0 +1,46 @@
+# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+# This product includes software developed at Datadog (https://www.datadoghq.com/).
+# Copyright 2019-Present Datadog, Inc.
+from __future__ import annotations
+
+
+from datadog_api_client.model_utils import (
+ ModelComposed,
+ cached_property,
+)
+
+
+class DemInferredJourneyItem(ModelComposed):
+ def __init__(self, **kwargs):
+ """
+ A single inferred journey item, either a candidate or an ignored journey.
+
+ :param attributes: Attributes of an inferred journey candidate.
+ :type attributes: DemInferredJourneyCandidateAttributes
+
+ :param id: The unique identifier of the inferred journey.
+ :type id: str
+
+ :param type: The type identifier for DEM journeys.
+ :type type: DemJourneyType
+ """
+ super().__init__(kwargs)
+
+ @cached_property
+ def _composed_schemas(_):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ from datadog_api_client.v2.model.dem_inferred_journey_candidate_data import DemInferredJourneyCandidateData
+ from datadog_api_client.v2.model.dem_inferred_journey_ignored_data import DemInferredJourneyIgnoredData
+
+ return {
+ "oneOf": [
+ DemInferredJourneyCandidateData,
+ DemInferredJourneyIgnoredData,
+ ],
+ }
diff --git a/src/datadog_api_client/v2/model/dem_search_inferred_journeys_response.py b/src/datadog_api_client/v2/model/dem_search_inferred_journeys_response.py
index 1c56e938ba..68b65624df 100644
--- a/src/datadog_api_client/v2/model/dem_search_inferred_journeys_response.py
+++ b/src/datadog_api_client/v2/model/dem_search_inferred_journeys_response.py
@@ -3,35 +3,43 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
-from typing import Any, List
+from typing import List, Union, TYPE_CHECKING
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
- date,
- datetime,
- none_type,
- UUID,
)
+if TYPE_CHECKING:
+ from datadog_api_client.v2.model.dem_inferred_journey_item import DemInferredJourneyItem
+ from datadog_api_client.v2.model.dem_inferred_journey_candidate_data import DemInferredJourneyCandidateData
+ from datadog_api_client.v2.model.dem_inferred_journey_ignored_data import DemInferredJourneyIgnoredData
+
+
class DemSearchInferredJourneysResponse(ModelNormal):
@cached_property
def openapi_types(_):
+ from datadog_api_client.v2.model.dem_inferred_journey_item import DemInferredJourneyItem
+
return {
- "data": ([bool, date, datetime, dict, float, int, list, str, UUID, none_type],),
+ "data": ([DemInferredJourneyItem],),
}
attribute_map = {
"data": "data",
}
- def __init__(self_, data: List[Any], **kwargs):
+ def __init__(
+ self_,
+ data: List[Union[DemInferredJourneyItem, DemInferredJourneyCandidateData, DemInferredJourneyIgnoredData]],
+ **kwargs,
+ ):
"""
Response body for searching inferred journeys. Contains either candidate or ignored items depending on the ``status`` query parameter.
:param data: List of inferred journey items matching the search criteria.
- :type data: [bool, date, datetime, dict, float, int, list, str, UUID, none_type]
+ :type data: [DemInferredJourneyItem]
"""
super().__init__(kwargs)
diff --git a/src/datadog_api_client/v2/model/dem_search_inferred_journeys_response_data_item.py b/src/datadog_api_client/v2/model/dem_search_inferred_journeys_response_data_item.py
deleted file mode 100644
index 37fcb1e304..0000000000
--- a/src/datadog_api_client/v2/model/dem_search_inferred_journeys_response_data_item.py
+++ /dev/null
@@ -1,17 +0,0 @@
-# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
-# This product includes software developed at Datadog (https://www.datadoghq.com/).
-# Copyright 2019-Present Datadog, Inc.
-from __future__ import annotations
-
-
-from datadog_api_client.model_utils import (
- ModelNormal,
-)
-
-
-class DemSearchInferredJourneysResponse_dataItem(ModelNormal):
- def __init__(self_, **kwargs):
- """
- A single inferred journey item, either a candidate or an ignored journey.
- """
- super().__init__(kwargs)
diff --git a/src/datadog_api_client/v2/model/general_investigation_trigger.py b/src/datadog_api_client/v2/model/general_investigation_trigger.py
new file mode 100644
index 0000000000..23cc29be5b
--- /dev/null
+++ b/src/datadog_api_client/v2/model/general_investigation_trigger.py
@@ -0,0 +1,67 @@
+# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+# This product includes software developed at Datadog (https://www.datadoghq.com/).
+# Copyright 2019-Present Datadog, Inc.
+from __future__ import annotations
+
+from typing import Union, TYPE_CHECKING
+
+from datadog_api_client.model_utils import (
+ ModelNormal,
+ cached_property,
+)
+
+
+if TYPE_CHECKING:
+ from datadog_api_client.v2.model.general_investigation_attributes import GeneralInvestigationAttributes
+ from datadog_api_client.v2.model.general_investigation_trigger_type import GeneralInvestigationTriggerType
+ from datadog_api_client.v2.model.general_investigation_attributes_without_time_bounds import (
+ GeneralInvestigationAttributesWithoutTimeBounds,
+ )
+ from datadog_api_client.v2.model.general_investigation_attributes_with_time_bounds import (
+ GeneralInvestigationAttributesWithTimeBounds,
+ )
+
+
+class GeneralInvestigationTrigger(ModelNormal):
+ @cached_property
+ def additional_properties_type(_):
+ return None
+
+ @cached_property
+ def openapi_types(_):
+ from datadog_api_client.v2.model.general_investigation_attributes import GeneralInvestigationAttributes
+ from datadog_api_client.v2.model.general_investigation_trigger_type import GeneralInvestigationTriggerType
+
+ return {
+ "general_investigation": (GeneralInvestigationAttributes,),
+ "type": (GeneralInvestigationTriggerType,),
+ }
+
+ attribute_map = {
+ "general_investigation": "general_investigation",
+ "type": "type",
+ }
+
+ def __init__(
+ self_,
+ general_investigation: Union[
+ GeneralInvestigationAttributes,
+ GeneralInvestigationAttributesWithoutTimeBounds,
+ GeneralInvestigationAttributesWithTimeBounds,
+ ],
+ type: GeneralInvestigationTriggerType,
+ **kwargs,
+ ):
+ """
+ A trigger created from a general investigation request.
+
+ :param general_investigation: Attributes for a general investigation, not tied to a specific monitor alert.
+ :type general_investigation: GeneralInvestigationAttributes
+
+ :param type: The type of general investigation trigger.
+ :type type: GeneralInvestigationTriggerType
+ """
+ super().__init__(kwargs)
+
+ self_.general_investigation = general_investigation
+ self_.type = type
diff --git a/src/datadog_api_client/v2/model/trigger_type.py b/src/datadog_api_client/v2/model/general_investigation_trigger_type.py
similarity index 57%
rename from src/datadog_api_client/v2/model/trigger_type.py
rename to src/datadog_api_client/v2/model/general_investigation_trigger_type.py
index b40117a0de..e0985c921c 100644
--- a/src/datadog_api_client/v2/model/trigger_type.py
+++ b/src/datadog_api_client/v2/model/general_investigation_trigger_type.py
@@ -12,20 +12,18 @@
from typing import ClassVar
-class TriggerType(ModelSimple):
+class GeneralInvestigationTriggerType(ModelSimple):
"""
- The type of trigger for the investigation.
+ The type of general investigation trigger.
- :param value: Must be one of ["monitor_alert_trigger", "general_investigation"].
+ :param value: If omitted defaults to "general_investigation". Must be one of ["general_investigation"].
:type value: str
"""
allowed_values = {
- "monitor_alert_trigger",
"general_investigation",
}
- MONITOR_ALERT_TRIGGER: ClassVar["TriggerType"]
- GENERAL_INVESTIGATION: ClassVar["TriggerType"]
+ GENERAL_INVESTIGATION: ClassVar["GeneralInvestigationTriggerType"]
@cached_property
def openapi_types(_):
@@ -34,5 +32,4 @@ def openapi_types(_):
}
-TriggerType.MONITOR_ALERT_TRIGGER = TriggerType("monitor_alert_trigger")
-TriggerType.GENERAL_INVESTIGATION = TriggerType("general_investigation")
+GeneralInvestigationTriggerType.GENERAL_INVESTIGATION = GeneralInvestigationTriggerType("general_investigation")
diff --git a/src/datadog_api_client/v2/model/llm_obs_content_block.py b/src/datadog_api_client/v2/model/llm_obs_content_block.py
index 0ebbc3a491..be4b74b30e 100644
--- a/src/datadog_api_client/v2/model/llm_obs_content_block.py
+++ b/src/datadog_api_client/v2/model/llm_obs_content_block.py
@@ -96,7 +96,6 @@ def openapi_types(_):
def __init__(
self_,
- type: LLMObsContentBlockType,
alt: Union[str, UnsetType] = unset,
code: Union[str, UnsetType] = unset,
content: Union[Any, UnsetType] = unset,
@@ -107,6 +106,7 @@ def __init__(
tile_def: Union[Any, UnsetType] = unset,
time_frame: Union[LLMObsContentBlockTimeFrame, UnsetType] = unset,
trace_id: Union[str, UnsetType] = unset,
+ type: Union[LLMObsContentBlockType, UnsetType] = unset,
url: Union[str, UnsetType] = unset,
**kwargs,
):
@@ -118,7 +118,7 @@ def __init__(
* ``header`` : ``content`` must be a string; ``level`` , when set, must be one of ``sm`` , ``md`` , ``lg`` , ``xl``.
* ``json`` : ``content`` must be a well-formed JSON value (object, array, or scalar).
* ``image`` : ``url`` is required.
- * ``widget`` : ``tileDef`` is required (any well-formed JSON; the frontend owns the renderable schema).
+ * ``univiz`` : ``tileDef`` is required (any well-formed JSON; the frontend owns the renderable schema).
* ``llmobs_trace`` : ``traceId`` is required; ``interactionType`` , when set, must be ``trace`` or ``experiment_trace``.
* ``frontend`` : ``code`` is required and must be a non-empty string; ``label`` is optional.
@@ -132,7 +132,7 @@ def __init__(
:param content: Block payload. A string for ``markdown`` , ``header`` , and ``text`` ; an
arbitrary JSON value (object, array, or scalar) for ``json``. Omitted
- for ``image`` , ``widget`` , ``llmobs_trace`` , and ``frontend``.
+ for ``image`` , ``univiz`` , ``llmobs_trace`` , and ``frontend``.
:type content: bool, date, datetime, dict, float, int, list, str, UUID, none_type, optional
:param height: Optional rendered height. Must be positive when set.
@@ -148,7 +148,7 @@ def __init__(
:param level: Visual size for a ``header`` block.
:type level: LLMObsContentBlockHeaderLevel, optional
- :param tile_def: Tile definition for a ``widget`` block. Required for ``widget``. The
+ :param tile_def: Tile definition for a ``univiz`` block. Required for ``univiz``. The
schema is owned by the frontend renderer.
:type tile_def: bool, date, datetime, dict, float, int, list, str, UUID, none_type, optional
@@ -160,7 +160,7 @@ def __init__(
:param type: Discriminator for a single ``display_block`` content block. Adding a
variant requires coordinated changes in the frontend renderer.
- :type type: LLMObsContentBlockType
+ :type type: LLMObsContentBlockType, optional
:param url: URL of the image. Required for ``image`` blocks.
:type url: str, optional
@@ -185,8 +185,8 @@ def __init__(
kwargs["time_frame"] = time_frame
if trace_id is not unset:
kwargs["trace_id"] = trace_id
+ if type is not unset:
+ kwargs["type"] = type
if url is not unset:
kwargs["url"] = url
super().__init__(kwargs)
-
- self_.type = type
diff --git a/src/datadog_api_client/v2/model/llm_obs_content_block_type.py b/src/datadog_api_client/v2/model/llm_obs_content_block_type.py
index c6ab62a0dd..76cdc1af4e 100644
--- a/src/datadog_api_client/v2/model/llm_obs_content_block_type.py
+++ b/src/datadog_api_client/v2/model/llm_obs_content_block_type.py
@@ -17,7 +17,7 @@ class LLMObsContentBlockType(ModelSimple):
Discriminator for a single `display_block` content block. Adding a
variant requires coordinated changes in the frontend renderer.
- :param value: Must be one of ["markdown", "header", "text", "json", "image", "widget", "llmobs_trace", "frontend"].
+ :param value: Must be one of ["markdown", "header", "text", "json", "image", "univiz", "llmobs_trace", "frontend"].
:type value: str
"""
@@ -27,7 +27,7 @@ class LLMObsContentBlockType(ModelSimple):
"text",
"json",
"image",
- "widget",
+ "univiz",
"llmobs_trace",
"frontend",
}
@@ -36,7 +36,7 @@ class LLMObsContentBlockType(ModelSimple):
TEXT: ClassVar["LLMObsContentBlockType"]
JSON: ClassVar["LLMObsContentBlockType"]
IMAGE: ClassVar["LLMObsContentBlockType"]
- WIDGET: ClassVar["LLMObsContentBlockType"]
+ UNIVIZ: ClassVar["LLMObsContentBlockType"]
LLMOBS_TRACE: ClassVar["LLMObsContentBlockType"]
FRONTEND: ClassVar["LLMObsContentBlockType"]
@@ -52,6 +52,6 @@ def openapi_types(_):
LLMObsContentBlockType.TEXT = LLMObsContentBlockType("text")
LLMObsContentBlockType.JSON = LLMObsContentBlockType("json")
LLMObsContentBlockType.IMAGE = LLMObsContentBlockType("image")
-LLMObsContentBlockType.WIDGET = LLMObsContentBlockType("widget")
+LLMObsContentBlockType.UNIVIZ = LLMObsContentBlockType("univiz")
LLMObsContentBlockType.LLMOBS_TRACE = LLMObsContentBlockType("llmobs_trace")
LLMObsContentBlockType.FRONTEND = LLMObsContentBlockType("frontend")
diff --git a/src/datadog_api_client/v2/model/monitor_alert_trigger.py b/src/datadog_api_client/v2/model/monitor_alert_trigger.py
new file mode 100644
index 0000000000..109de53564
--- /dev/null
+++ b/src/datadog_api_client/v2/model/monitor_alert_trigger.py
@@ -0,0 +1,52 @@
+# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+# This product includes software developed at Datadog (https://www.datadoghq.com/).
+# Copyright 2019-Present Datadog, Inc.
+from __future__ import annotations
+
+from typing import TYPE_CHECKING
+
+from datadog_api_client.model_utils import (
+ ModelNormal,
+ cached_property,
+)
+
+
+if TYPE_CHECKING:
+ from datadog_api_client.v2.model.monitor_alert_trigger_attributes import MonitorAlertTriggerAttributes
+ from datadog_api_client.v2.model.monitor_alert_trigger_type import MonitorAlertTriggerType
+
+
+class MonitorAlertTrigger(ModelNormal):
+ @cached_property
+ def additional_properties_type(_):
+ return None
+
+ @cached_property
+ def openapi_types(_):
+ from datadog_api_client.v2.model.monitor_alert_trigger_attributes import MonitorAlertTriggerAttributes
+ from datadog_api_client.v2.model.monitor_alert_trigger_type import MonitorAlertTriggerType
+
+ return {
+ "monitor_alert_trigger": (MonitorAlertTriggerAttributes,),
+ "type": (MonitorAlertTriggerType,),
+ }
+
+ attribute_map = {
+ "monitor_alert_trigger": "monitor_alert_trigger",
+ "type": "type",
+ }
+
+ def __init__(self_, monitor_alert_trigger: MonitorAlertTriggerAttributes, type: MonitorAlertTriggerType, **kwargs):
+ """
+ A trigger created from a monitor alert.
+
+ :param monitor_alert_trigger: Attributes for a monitor alert trigger.
+ :type monitor_alert_trigger: MonitorAlertTriggerAttributes
+
+ :param type: The type of monitor alert trigger.
+ :type type: MonitorAlertTriggerType
+ """
+ super().__init__(kwargs)
+
+ self_.monitor_alert_trigger = monitor_alert_trigger
+ self_.type = type
diff --git a/src/datadog_api_client/v2/model/monitor_alert_trigger_type.py b/src/datadog_api_client/v2/model/monitor_alert_trigger_type.py
new file mode 100644
index 0000000000..0068caa434
--- /dev/null
+++ b/src/datadog_api_client/v2/model/monitor_alert_trigger_type.py
@@ -0,0 +1,35 @@
+# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+# This product includes software developed at Datadog (https://www.datadoghq.com/).
+# Copyright 2019-Present Datadog, Inc.
+from __future__ import annotations
+
+
+from datadog_api_client.model_utils import (
+ ModelSimple,
+ cached_property,
+)
+
+from typing import ClassVar
+
+
+class MonitorAlertTriggerType(ModelSimple):
+ """
+ The type of monitor alert trigger.
+
+ :param value: If omitted defaults to "monitor_alert_trigger". Must be one of ["monitor_alert_trigger"].
+ :type value: str
+ """
+
+ allowed_values = {
+ "monitor_alert_trigger",
+ }
+ MONITOR_ALERT_TRIGGER: ClassVar["MonitorAlertTriggerType"]
+
+ @cached_property
+ def openapi_types(_):
+ return {
+ "value": (str,),
+ }
+
+
+MonitorAlertTriggerType.MONITOR_ALERT_TRIGGER = MonitorAlertTriggerType("monitor_alert_trigger")
diff --git a/src/datadog_api_client/v2/model/trigger_attributes.py b/src/datadog_api_client/v2/model/trigger_attributes.py
index 3ed87c1f75..ffc30eab4a 100644
--- a/src/datadog_api_client/v2/model/trigger_attributes.py
+++ b/src/datadog_api_client/v2/model/trigger_attributes.py
@@ -3,75 +3,44 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
-from typing import Union, TYPE_CHECKING
from datadog_api_client.model_utils import (
- ModelNormal,
+ ModelComposed,
cached_property,
- unset,
- UnsetType,
)
-if TYPE_CHECKING:
- from datadog_api_client.v2.model.general_investigation_attributes import GeneralInvestigationAttributes
- from datadog_api_client.v2.model.monitor_alert_trigger_attributes import MonitorAlertTriggerAttributes
- from datadog_api_client.v2.model.trigger_type import TriggerType
- from datadog_api_client.v2.model.general_investigation_attributes_without_time_bounds import (
- GeneralInvestigationAttributesWithoutTimeBounds,
- )
- from datadog_api_client.v2.model.general_investigation_attributes_with_time_bounds import (
- GeneralInvestigationAttributesWithTimeBounds,
- )
-
-
-class TriggerAttributes(ModelNormal):
- @cached_property
- def openapi_types(_):
- from datadog_api_client.v2.model.general_investigation_attributes import GeneralInvestigationAttributes
- from datadog_api_client.v2.model.monitor_alert_trigger_attributes import MonitorAlertTriggerAttributes
- from datadog_api_client.v2.model.trigger_type import TriggerType
-
- return {
- "general_investigation": (GeneralInvestigationAttributes,),
- "monitor_alert_trigger": (MonitorAlertTriggerAttributes,),
- "type": (TriggerType,),
- }
-
- attribute_map = {
- "general_investigation": "general_investigation",
- "monitor_alert_trigger": "monitor_alert_trigger",
- "type": "type",
- }
-
- def __init__(
- self_,
- general_investigation: Union[
- GeneralInvestigationAttributes,
- GeneralInvestigationAttributesWithoutTimeBounds,
- GeneralInvestigationAttributesWithTimeBounds,
- UnsetType,
- ] = unset,
- monitor_alert_trigger: Union[MonitorAlertTriggerAttributes, UnsetType] = unset,
- type: Union[TriggerType, UnsetType] = unset,
- **kwargs,
- ):
+class TriggerAttributes(ModelComposed):
+ def __init__(self, **kwargs):
"""
The trigger definition for starting an investigation.
- :param general_investigation: Attributes for a general investigation, not tied to a specific monitor alert.
- :type general_investigation: GeneralInvestigationAttributes, optional
-
:param monitor_alert_trigger: Attributes for a monitor alert trigger.
- :type monitor_alert_trigger: MonitorAlertTriggerAttributes, optional
+ :type monitor_alert_trigger: MonitorAlertTriggerAttributes
+
+ :param type: The type of monitor alert trigger.
+ :type type: MonitorAlertTriggerType
- :param type: The type of trigger for the investigation.
- :type type: TriggerType, optional
+ :param general_investigation: Attributes for a general investigation, not tied to a specific monitor alert.
+ :type general_investigation: GeneralInvestigationAttributes
"""
- if general_investigation is not unset:
- kwargs["general_investigation"] = general_investigation
- if monitor_alert_trigger is not unset:
- kwargs["monitor_alert_trigger"] = monitor_alert_trigger
- if type is not unset:
- kwargs["type"] = type
super().__init__(kwargs)
+
+ @cached_property
+ def _composed_schemas(_):
+ # we need this here to make our import statements work
+ # we must store _composed_schemas in here so the code is only run
+ # when we invoke this method. If we kept this at the class
+ # level we would get an error because the class level
+ # code would be run when this module is imported, and these composed
+ # classes don't exist yet because their module has not finished
+ # loading
+ from datadog_api_client.v2.model.monitor_alert_trigger import MonitorAlertTrigger
+ from datadog_api_client.v2.model.general_investigation_trigger import GeneralInvestigationTrigger
+
+ return {
+ "oneOf": [
+ MonitorAlertTrigger,
+ GeneralInvestigationTrigger,
+ ],
+ }
diff --git a/src/datadog_api_client/v2/model/trigger_investigation_request_data_attributes.py b/src/datadog_api_client/v2/model/trigger_investigation_request_data_attributes.py
index e0c5c0729c..5a03cf91b0 100644
--- a/src/datadog_api_client/v2/model/trigger_investigation_request_data_attributes.py
+++ b/src/datadog_api_client/v2/model/trigger_investigation_request_data_attributes.py
@@ -3,7 +3,7 @@
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
-from typing import TYPE_CHECKING
+from typing import Union, TYPE_CHECKING
from datadog_api_client.model_utils import (
ModelNormal,
@@ -13,6 +13,8 @@
if TYPE_CHECKING:
from datadog_api_client.v2.model.trigger_attributes import TriggerAttributes
+ from datadog_api_client.v2.model.monitor_alert_trigger import MonitorAlertTrigger
+ from datadog_api_client.v2.model.general_investigation_trigger import GeneralInvestigationTrigger
class TriggerInvestigationRequestDataAttributes(ModelNormal):
@@ -28,7 +30,7 @@ def openapi_types(_):
"trigger": "trigger",
}
- def __init__(self_, trigger: TriggerAttributes, **kwargs):
+ def __init__(self_, trigger: Union[TriggerAttributes, MonitorAlertTrigger, GeneralInvestigationTrigger], **kwargs):
"""
Attributes for the trigger investigation request.
diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py
index f0c1d2f69e..b198d0c89d 100644
--- a/src/datadog_api_client/v2/models/__init__.py
+++ b/src/datadog_api_client/v2/models/__init__.py
@@ -2685,6 +2685,11 @@
from datadog_api_client.v2.model.dem_create_journey_test_suite_data import DemCreateJourneyTestSuiteData
from datadog_api_client.v2.model.dem_create_journey_test_suite_request import DemCreateJourneyTestSuiteRequest
from datadog_api_client.v2.model.dem_create_journey_test_suite_request_type import DemCreateJourneyTestSuiteRequestType
+from datadog_api_client.v2.model.dem_inferred_journey_candidate_attributes import DemInferredJourneyCandidateAttributes
+from datadog_api_client.v2.model.dem_inferred_journey_candidate_data import DemInferredJourneyCandidateData
+from datadog_api_client.v2.model.dem_inferred_journey_ignored_attributes import DemInferredJourneyIgnoredAttributes
+from datadog_api_client.v2.model.dem_inferred_journey_ignored_data import DemInferredJourneyIgnoredData
+from datadog_api_client.v2.model.dem_inferred_journey_item import DemInferredJourneyItem
from datadog_api_client.v2.model.dem_inferred_journey_status import DemInferredJourneyStatus
from datadog_api_client.v2.model.dem_journey_create_attributes import DemJourneyCreateAttributes
from datadog_api_client.v2.model.dem_journey_create_data import DemJourneyCreateData
@@ -2708,9 +2713,6 @@
from datadog_api_client.v2.model.dem_rum_step import DemRumStep
from datadog_api_client.v2.model.dem_rum_step_type import DemRumStepType
from datadog_api_client.v2.model.dem_search_inferred_journeys_response import DemSearchInferredJourneysResponse
-from datadog_api_client.v2.model.dem_search_inferred_journeys_response_data_item import (
- DemSearchInferredJourneysResponse_dataItem,
-)
from datadog_api_client.v2.model.dem_test_suite_nested import DemTestSuiteNested
from datadog_api_client.v2.model.dem_user import DemUser
from datadog_api_client.v2.model.dem_variant import DemVariant
@@ -4239,6 +4241,8 @@
from datadog_api_client.v2.model.general_investigation_attributes_without_time_bounds import (
GeneralInvestigationAttributesWithoutTimeBounds,
)
+from datadog_api_client.v2.model.general_investigation_trigger import GeneralInvestigationTrigger
+from datadog_api_client.v2.model.general_investigation_trigger_type import GeneralInvestigationTriggerType
from datadog_api_client.v2.model.generate_cost_tag_description_response import GenerateCostTagDescriptionResponse
from datadog_api_client.v2.model.generated_cost_tag_description import GeneratedCostTagDescription
from datadog_api_client.v2.model.generated_cost_tag_description_attributes import GeneratedCostTagDescriptionAttributes
@@ -6519,7 +6523,9 @@
from datadog_api_client.v2.model.model_lab_run_type import ModelLabRunType
from datadog_api_client.v2.model.model_lab_runs_response import ModelLabRunsResponse
from datadog_api_client.v2.model.model_lab_tag import ModelLabTag
+from datadog_api_client.v2.model.monitor_alert_trigger import MonitorAlertTrigger
from datadog_api_client.v2.model.monitor_alert_trigger_attributes import MonitorAlertTriggerAttributes
+from datadog_api_client.v2.model.monitor_alert_trigger_type import MonitorAlertTriggerType
from datadog_api_client.v2.model.monitor_config_policy_attribute_create_request import (
MonitorConfigPolicyAttributeCreateRequest,
)
@@ -12253,7 +12259,6 @@
from datadog_api_client.v2.model.trigger_investigation_response_type import TriggerInvestigationResponseType
from datadog_api_client.v2.model.trigger_rate_limit import TriggerRateLimit
from datadog_api_client.v2.model.trigger_source import TriggerSource
-from datadog_api_client.v2.model.trigger_type import TriggerType
from datadog_api_client.v2.model.trigger_workflow_automation_action import TriggerWorkflowAutomationAction
from datadog_api_client.v2.model.trigger_workflow_automation_action_type import TriggerWorkflowAutomationActionType
from datadog_api_client.v2.model.twilio_alerts_logs_integration_dataflow_request import (
@@ -14824,6 +14829,11 @@
"DemCreateJourneyTestSuiteData",
"DemCreateJourneyTestSuiteRequest",
"DemCreateJourneyTestSuiteRequestType",
+ "DemInferredJourneyCandidateAttributes",
+ "DemInferredJourneyCandidateData",
+ "DemInferredJourneyIgnoredAttributes",
+ "DemInferredJourneyIgnoredData",
+ "DemInferredJourneyItem",
"DemInferredJourneyStatus",
"DemJourneyCreateAttributes",
"DemJourneyCreateData",
@@ -14847,7 +14857,6 @@
"DemRumStep",
"DemRumStepType",
"DemSearchInferredJourneysResponse",
- "DemSearchInferredJourneysResponse_dataItem",
"DemTestSuiteNested",
"DemUser",
"DemVariant",
@@ -15808,6 +15817,8 @@
"GeneralInvestigationAttributes",
"GeneralInvestigationAttributesWithTimeBounds",
"GeneralInvestigationAttributesWithoutTimeBounds",
+ "GeneralInvestigationTrigger",
+ "GeneralInvestigationTriggerType",
"GenerateCostTagDescriptionResponse",
"GeneratedCostTagDescription",
"GeneratedCostTagDescriptionAttributes",
@@ -17464,7 +17475,9 @@
"ModelLabRunType",
"ModelLabRunsResponse",
"ModelLabTag",
+ "MonitorAlertTrigger",
"MonitorAlertTriggerAttributes",
+ "MonitorAlertTriggerType",
"MonitorConfigPolicyAttributeCreateRequest",
"MonitorConfigPolicyAttributeEditRequest",
"MonitorConfigPolicyAttributeResponse",
@@ -20956,7 +20969,6 @@
"TriggerInvestigationResponseType",
"TriggerRateLimit",
"TriggerSource",
- "TriggerType",
"TriggerWorkflowAutomationAction",
"TriggerWorkflowAutomationActionType",
"TwilioAlertsLogsIntegrationDataflowRequest",