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
72 changes: 36 additions & 36 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11907,22 +11907,22 @@ components:
description: Configuration for the action to execute, dependent on the action type.
properties:
agent_type:
description: The type of AI agent to assign. Required when the action type is `assign_agent`.
description: The type of AI agent to assign. Required when the action type is `ASSIGN_AGENT`.
type: string
assigned_agent_id:
description: The identifier of the AI agent to assign to the case. Required when the action type is `assign_agent`.
description: The identifier of the AI agent to assign to the case. Required when the action type is `ASSIGN_AGENT`.
type: string
handle:
description: The handle of the Datadog workflow to execute. Required when the action type is `execute_workflow`.
description: The handle of the Datadog workflow to execute. Required when the action type is `EXECUTE_WORKFLOW`.
example: "workflow-handle-123"
type: string
type: object
AutomationRuleActionType:
description: The type of automated action to perform when the rule triggers. `execute_workflow` runs a Datadog workflow; `assign_agent` assigns an AI agent to the case.
description: The type of automated action to perform when the rule triggers. `EXECUTE_WORKFLOW` runs a Datadog workflow; `ASSIGN_AGENT` assigns an AI agent to the case.
enum:
- execute_workflow
- assign_agent
example: execute_workflow
- EXECUTE_WORKFLOW
- ASSIGN_AGENT
example: EXECUTE_WORKFLOW
type: string
x-enum-varnames:
- EXECUTE_WORKFLOW
Expand Down Expand Up @@ -12081,34 +12081,34 @@ components:
- type
type: object
AutomationRuleTriggerData:
description: Additional configuration for the trigger, dependent on the trigger type. For `status_transitioned` triggers, specify `from_status_name` and `to_status_name`. For `attribute_value_changed` triggers, specify `field` and `change_type`.
description: Additional configuration for the trigger, dependent on the trigger type. For `STATUS_TRANSITIONED` triggers, specify `from_status_name` and `to_status_name`. For `ATTRIBUTE_VALUE_CHANGED` triggers, specify `field` and `change_type`.
properties:
approval_type:
description: The approval outcome to match. Used with `case_review_approved` triggers.
description: The approval outcome to match. Used with `CASE_REVIEW_APPROVED` triggers.
type: string
change_type:
description: "The kind of attribute change to match. Allowed values: `VALUE_ADDED`, `VALUE_DELETED`, `ANY_CHANGES`. Used with `attribute_value_changed` triggers."
description: "The kind of attribute change to match. Allowed values: `VALUE_ADDED`, `VALUE_DELETED`, `ANY_CHANGES`. Used with `ATTRIBUTE_VALUE_CHANGED` triggers."
type: string
field:
description: The case attribute field name to monitor for changes. Used with `attribute_value_changed` triggers.
description: The case attribute field name to monitor for changes. Used with `ATTRIBUTE_VALUE_CHANGED` triggers.
type: string
from_status_name:
description: The originating status name. Used with `status_transitioned` triggers to match transitions from this status.
description: The originating status name. Used with `STATUS_TRANSITIONED` triggers to match transitions from this status.
type: string
to_status_name:
description: The destination status name. Used with `status_transitioned` triggers to match transitions to this status.
description: The destination status name. Used with `STATUS_TRANSITIONED` triggers to match transitions to this status.
type: string
type: object
AutomationRuleTriggerType:
description: The case event that activates the automation rule.
enum:
- case_created
- status_transitioned
- attribute_value_changed
- event_correlation_signal_correlated
- case_review_approved
- comment_added
example: case_created
- CASE_CREATED
- STATUS_TRANSITIONED
- ATTRIBUTE_VALUE_CHANGED
- EVENT_CORRELATION_SIGNAL_CORRELATED
- CASE_REVIEW_APPROVED
- COMMENT_ADDED
example: CASE_CREATED
type: string
x-enum-varnames:
- CASE_CREATED
Expand Down Expand Up @@ -125895,12 +125895,12 @@ paths:
action:
data:
handle: workflow-handle-123
type: execute_workflow
type: EXECUTE_WORKFLOW
created_at: "2024-01-01T00:00:00.000Z"
name: Auto-assign workflow
state: ENABLED
trigger:
type: case_created
type: CASE_CREATED
id: e6773723-fe58-49ff-9975-dff00f14e28d
type: rule
schema:
Expand Down Expand Up @@ -125946,11 +125946,11 @@ paths:
action:
data:
handle: workflow-handle-123
type: execute_workflow
type: EXECUTE_WORKFLOW
name: Auto-assign workflow
state: ENABLED
trigger:
type: case_created
type: CASE_CREATED
type: rule
schema:
$ref: "#/components/schemas/AutomationRuleCreateRequest"
Expand All @@ -125968,12 +125968,12 @@ paths:
action:
data:
handle: workflow-handle-123
type: execute_workflow
type: EXECUTE_WORKFLOW
created_at: "2024-01-01T00:00:00.000Z"
name: Auto-assign workflow
state: ENABLED
trigger:
type: case_created
type: CASE_CREATED
id: e6773723-fe58-49ff-9975-dff00f14e28d
type: rule
schema:
Expand Down Expand Up @@ -126051,12 +126051,12 @@ paths:
action:
data:
handle: workflow-handle-123
type: execute_workflow
type: EXECUTE_WORKFLOW
created_at: "2024-01-01T00:00:00.000Z"
name: Auto-assign workflow
state: ENABLED
trigger:
type: case_created
type: CASE_CREATED
id: e6773723-fe58-49ff-9975-dff00f14e28d
type: rule
schema:
Expand Down Expand Up @@ -126103,11 +126103,11 @@ paths:
action:
data:
handle: workflow-handle-123
type: execute_workflow
type: EXECUTE_WORKFLOW
name: Auto-assign workflow
state: ENABLED
trigger:
type: case_created
type: CASE_CREATED
type: rule
schema:
$ref: "#/components/schemas/AutomationRuleUpdateRequest"
Expand All @@ -126125,12 +126125,12 @@ paths:
action:
data:
handle: workflow-handle-123
type: execute_workflow
type: EXECUTE_WORKFLOW
created_at: "2024-01-01T00:00:00.000Z"
name: Auto-assign workflow
state: ENABLED
trigger:
type: case_created
type: CASE_CREATED
id: e6773723-fe58-49ff-9975-dff00f14e28d
type: rule
schema:
Expand Down Expand Up @@ -126179,12 +126179,12 @@ paths:
action:
data:
handle: workflow-handle-123
type: execute_workflow
type: EXECUTE_WORKFLOW
created_at: "2024-01-01T00:00:00.000Z"
name: Auto-assign workflow
state: DISABLED
trigger:
type: case_created
type: CASE_CREATED
id: e6773723-fe58-49ff-9975-dff00f14e28d
type: rule
schema:
Expand Down Expand Up @@ -126233,12 +126233,12 @@ paths:
action:
data:
handle: workflow-handle-123
type: execute_workflow
type: EXECUTE_WORKFLOW
created_at: "2024-01-01T00:00:00.000Z"
name: Auto-assign workflow
state: ENABLED
trigger:
type: case_created
type: CASE_CREATED
id: e6773723-fe58-49ff-9975-dff00f14e28d
type: rule
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self_, data: AutomationRuleActionData, type: AutomationRuleActionTy
:param data: Configuration for the action to execute, dependent on the action type.
:type data: AutomationRuleActionData

:param type: The type of automated action to perform when the rule triggers. ``execute_workflow`` runs a Datadog workflow; ``assign_agent`` assigns an AI agent to the case.
:param type: The type of automated action to perform when the rule triggers. ``EXECUTE_WORKFLOW`` runs a Datadog workflow; ``ASSIGN_AGENT`` assigns an AI agent to the case.
:type type: AutomationRuleActionType
"""
super().__init__(kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def __init__(
"""
Configuration for the action to execute, dependent on the action type.

:param agent_type: The type of AI agent to assign. Required when the action type is ``assign_agent``.
:param agent_type: The type of AI agent to assign. Required when the action type is ``ASSIGN_AGENT``.
:type agent_type: str, optional

:param assigned_agent_id: The identifier of the AI agent to assign to the case. Required when the action type is ``assign_agent``.
:param assigned_agent_id: The identifier of the AI agent to assign to the case. Required when the action type is ``ASSIGN_AGENT``.
:type assigned_agent_id: str, optional

:param handle: The handle of the Datadog workflow to execute. Required when the action type is ``execute_workflow``.
:param handle: The handle of the Datadog workflow to execute. Required when the action type is ``EXECUTE_WORKFLOW``.
:type handle: str, optional
"""
if agent_type is not unset:
Expand Down
12 changes: 6 additions & 6 deletions src/datadog_api_client/v2/model/automation_rule_action_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@

class AutomationRuleActionType(ModelSimple):
"""
The type of automated action to perform when the rule triggers. `execute_workflow` runs a Datadog workflow; `assign_agent` assigns an AI agent to the case.
The type of automated action to perform when the rule triggers. `EXECUTE_WORKFLOW` runs a Datadog workflow; `ASSIGN_AGENT` assigns an AI agent to the case.

:param value: Must be one of ["execute_workflow", "assign_agent"].
:param value: Must be one of ["EXECUTE_WORKFLOW", "ASSIGN_AGENT"].
:type value: str
"""

allowed_values = {
"execute_workflow",
"assign_agent",
"EXECUTE_WORKFLOW",
"ASSIGN_AGENT",
}
EXECUTE_WORKFLOW: ClassVar["AutomationRuleActionType"]
ASSIGN_AGENT: ClassVar["AutomationRuleActionType"]
Expand All @@ -34,5 +34,5 @@ def openapi_types(_):
}


AutomationRuleActionType.EXECUTE_WORKFLOW = AutomationRuleActionType("execute_workflow")
AutomationRuleActionType.ASSIGN_AGENT = AutomationRuleActionType("assign_agent")
AutomationRuleActionType.EXECUTE_WORKFLOW = AutomationRuleActionType("EXECUTE_WORKFLOW")
AutomationRuleActionType.ASSIGN_AGENT = AutomationRuleActionType("ASSIGN_AGENT")
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(
"""
Defines when the rule activates. Combines a trigger type (the case event to listen for) with optional trigger data (conditions that narrow when the trigger fires).

:param data: Additional configuration for the trigger, dependent on the trigger type. For ``status_transitioned`` triggers, specify ``from_status_name`` and ``to_status_name``. For ``attribute_value_changed`` triggers, specify ``field`` and ``change_type``.
:param data: Additional configuration for the trigger, dependent on the trigger type. For ``STATUS_TRANSITIONED`` triggers, specify ``from_status_name`` and ``to_status_name``. For ``ATTRIBUTE_VALUE_CHANGED`` triggers, specify ``field`` and ``change_type``.
:type data: AutomationRuleTriggerData, optional

:param type: The case event that activates the automation rule.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ def __init__(
**kwargs,
):
"""
Additional configuration for the trigger, dependent on the trigger type. For ``status_transitioned`` triggers, specify ``from_status_name`` and ``to_status_name``. For ``attribute_value_changed`` triggers, specify ``field`` and ``change_type``.
Additional configuration for the trigger, dependent on the trigger type. For ``STATUS_TRANSITIONED`` triggers, specify ``from_status_name`` and ``to_status_name``. For ``ATTRIBUTE_VALUE_CHANGED`` triggers, specify ``field`` and ``change_type``.

:param approval_type: The approval outcome to match. Used with ``case_review_approved`` triggers.
:param approval_type: The approval outcome to match. Used with ``CASE_REVIEW_APPROVED`` triggers.
:type approval_type: str, optional

:param change_type: The kind of attribute change to match. Allowed values: ``VALUE_ADDED`` , ``VALUE_DELETED`` , ``ANY_CHANGES``. Used with ``attribute_value_changed`` triggers.
:param change_type: The kind of attribute change to match. Allowed values: ``VALUE_ADDED`` , ``VALUE_DELETED`` , ``ANY_CHANGES``. Used with ``ATTRIBUTE_VALUE_CHANGED`` triggers.
:type change_type: str, optional

:param field: The case attribute field name to monitor for changes. Used with ``attribute_value_changed`` triggers.
:param field: The case attribute field name to monitor for changes. Used with ``ATTRIBUTE_VALUE_CHANGED`` triggers.
:type field: str, optional

:param from_status_name: The originating status name. Used with ``status_transitioned`` triggers to match transitions from this status.
:param from_status_name: The originating status name. Used with ``STATUS_TRANSITIONED`` triggers to match transitions from this status.
:type from_status_name: str, optional

:param to_status_name: The destination status name. Used with ``status_transitioned`` triggers to match transitions to this status.
:param to_status_name: The destination status name. Used with ``STATUS_TRANSITIONED`` triggers to match transitions to this status.
:type to_status_name: str, optional
"""
if approval_type is not unset:
Expand Down
26 changes: 13 additions & 13 deletions src/datadog_api_client/v2/model/automation_rule_trigger_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ class AutomationRuleTriggerType(ModelSimple):
"""
The case event that activates the automation rule.

:param value: Must be one of ["case_created", "status_transitioned", "attribute_value_changed", "event_correlation_signal_correlated", "case_review_approved", "comment_added"].
:param value: Must be one of ["CASE_CREATED", "STATUS_TRANSITIONED", "ATTRIBUTE_VALUE_CHANGED", "EVENT_CORRELATION_SIGNAL_CORRELATED", "CASE_REVIEW_APPROVED", "COMMENT_ADDED"].
:type value: str
"""

allowed_values = {
"case_created",
"status_transitioned",
"attribute_value_changed",
"event_correlation_signal_correlated",
"case_review_approved",
"comment_added",
"CASE_CREATED",
"STATUS_TRANSITIONED",
"ATTRIBUTE_VALUE_CHANGED",
"EVENT_CORRELATION_SIGNAL_CORRELATED",
"CASE_REVIEW_APPROVED",
"COMMENT_ADDED",
}
CASE_CREATED: ClassVar["AutomationRuleTriggerType"]
STATUS_TRANSITIONED: ClassVar["AutomationRuleTriggerType"]
Expand All @@ -42,11 +42,11 @@ def openapi_types(_):
}


AutomationRuleTriggerType.CASE_CREATED = AutomationRuleTriggerType("case_created")
AutomationRuleTriggerType.STATUS_TRANSITIONED = AutomationRuleTriggerType("status_transitioned")
AutomationRuleTriggerType.ATTRIBUTE_VALUE_CHANGED = AutomationRuleTriggerType("attribute_value_changed")
AutomationRuleTriggerType.CASE_CREATED = AutomationRuleTriggerType("CASE_CREATED")
AutomationRuleTriggerType.STATUS_TRANSITIONED = AutomationRuleTriggerType("STATUS_TRANSITIONED")
AutomationRuleTriggerType.ATTRIBUTE_VALUE_CHANGED = AutomationRuleTriggerType("ATTRIBUTE_VALUE_CHANGED")
AutomationRuleTriggerType.EVENT_CORRELATION_SIGNAL_CORRELATED = AutomationRuleTriggerType(
"event_correlation_signal_correlated"
"EVENT_CORRELATION_SIGNAL_CORRELATED"
)
AutomationRuleTriggerType.CASE_REVIEW_APPROVED = AutomationRuleTriggerType("case_review_approved")
AutomationRuleTriggerType.COMMENT_ADDED = AutomationRuleTriggerType("comment_added")
AutomationRuleTriggerType.CASE_REVIEW_APPROVED = AutomationRuleTriggerType("CASE_REVIEW_APPROVED")
AutomationRuleTriggerType.COMMENT_ADDED = AutomationRuleTriggerType("COMMENT_ADDED")
Loading
Loading