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 @@ -78,8 +78,8 @@ public AutomationRuleAction type(AutomationRuleActionType type) {
}

/**
* The type of automated action to perform when the rule triggers. <code>execute_workflow</code>
* runs a Datadog workflow; <code>assign_agent</code> assigns an AI agent to the case.
* The type of automated action to perform when the rule triggers. <code>EXECUTE_WORKFLOW</code>
* runs a Datadog workflow; <code>ASSIGN_AGENT</code> assigns an AI agent to the case.
*
* @return type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public AutomationRuleActionData agentType(String agentType) {
}

/**
* The type of AI agent to assign. Required when the action type is <code>assign_agent</code>.
* The type of AI agent to assign. Required when the action type is <code>ASSIGN_AGENT</code>.
*
* @return agentType
*/
Expand All @@ -63,7 +63,7 @@ public AutomationRuleActionData assignedAgentId(String assignedAgentId) {

/**
* The identifier of the AI agent to assign to the case. Required when the action type is <code>
* assign_agent</code>.
* ASSIGN_AGENT</code>.
*
* @return assignedAgentId
*/
Expand All @@ -85,7 +85,7 @@ public AutomationRuleActionData handle(String handle) {

/**
* The handle of the Datadog workflow to execute. Required when the action type is <code>
* execute_workflow</code>.
* EXECUTE_WORKFLOW</code>.
*
* @return handle
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
import java.util.Set;

/**
* The type of automated action to perform when the rule triggers. <code>execute_workflow</code>
* runs a Datadog workflow; <code>assign_agent</code> assigns an AI agent to the case.
* The type of automated action to perform when the rule triggers. <code>EXECUTE_WORKFLOW</code>
* runs a Datadog workflow; <code>ASSIGN_AGENT</code> assigns an AI agent to the case.
*/
@JsonSerialize(using = AutomationRuleActionType.AutomationRuleActionTypeSerializer.class)
public class AutomationRuleActionType extends ModelEnum<String> {

private static final Set<String> allowedValues =
new HashSet<String>(Arrays.asList("execute_workflow", "assign_agent"));
new HashSet<String>(Arrays.asList("EXECUTE_WORKFLOW", "ASSIGN_AGENT"));

public static final AutomationRuleActionType EXECUTE_WORKFLOW =
new AutomationRuleActionType("execute_workflow");
new AutomationRuleActionType("EXECUTE_WORKFLOW");
public static final AutomationRuleActionType ASSIGN_AGENT =
new AutomationRuleActionType("assign_agent");
new AutomationRuleActionType("ASSIGN_AGENT");

AutomationRuleActionType(String value) {
super(value, allowedValues);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public AutomationRuleTrigger data(AutomationRuleTriggerData data) {

/**
* Additional configuration for the trigger, dependent on the trigger type. For <code>
* status_transitioned</code> triggers, specify <code>from_status_name</code> and <code>
* to_status_name</code>. For <code>attribute_value_changed</code> triggers, specify <code>field
* STATUS_TRANSITIONED</code> triggers, specify <code>from_status_name</code> and <code>
* to_status_name</code>. For <code>ATTRIBUTE_VALUE_CHANGED</code> triggers, specify <code>field
* </code> and <code>change_type</code>.
*
* @return data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

/**
* Additional configuration for the trigger, dependent on the trigger type. For <code>
* status_transitioned</code> triggers, specify <code>from_status_name</code> and <code>
* to_status_name</code>. For <code>attribute_value_changed</code> triggers, specify <code>field
* STATUS_TRANSITIONED</code> triggers, specify <code>from_status_name</code> and <code>
* to_status_name</code>. For <code>ATTRIBUTE_VALUE_CHANGED</code> triggers, specify <code>field
* </code> and <code>change_type</code>.
*/
@JsonPropertyOrder({
Expand Down Expand Up @@ -54,7 +54,7 @@ public AutomationRuleTriggerData approvalType(String approvalType) {
}

/**
* The approval outcome to match. Used with <code>case_review_approved</code> triggers.
* The approval outcome to match. Used with <code>CASE_REVIEW_APPROVED</code> triggers.
*
* @return approvalType
*/
Expand All @@ -76,7 +76,7 @@ public AutomationRuleTriggerData changeType(String changeType) {

/**
* The kind of attribute change to match. Allowed values: <code>VALUE_ADDED</code>, <code>
* VALUE_DELETED</code>, <code>ANY_CHANGES</code>. Used with <code>attribute_value_changed</code>
* VALUE_DELETED</code>, <code>ANY_CHANGES</code>. Used with <code>ATTRIBUTE_VALUE_CHANGED</code>
* triggers.
*
* @return changeType
Expand All @@ -98,7 +98,7 @@ public AutomationRuleTriggerData field(String field) {
}

/**
* The case attribute field name to monitor for changes. Used with <code>attribute_value_changed
* The case attribute field name to monitor for changes. Used with <code>ATTRIBUTE_VALUE_CHANGED
* </code> triggers.
*
* @return field
Expand All @@ -120,7 +120,7 @@ public AutomationRuleTriggerData fromStatusName(String fromStatusName) {
}

/**
* The originating status name. Used with <code>status_transitioned</code> triggers to match
* The originating status name. Used with <code>STATUS_TRANSITIONED</code> triggers to match
* transitions from this status.
*
* @return fromStatusName
Expand All @@ -142,7 +142,7 @@ public AutomationRuleTriggerData toStatusName(String toStatusName) {
}

/**
* The destination status name. Used with <code>status_transitioned</code> triggers to match
* The destination status name. Used with <code>STATUS_TRANSITIONED</code> triggers to match
* transitions to this status.
*
* @return toStatusName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ public class AutomationRuleTriggerType extends ModelEnum<String> {
private static final Set<String> allowedValues =
new HashSet<String>(
Arrays.asList(
"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"));

public static final AutomationRuleTriggerType CASE_CREATED =
new AutomationRuleTriggerType("case_created");
new AutomationRuleTriggerType("CASE_CREATED");
public static final AutomationRuleTriggerType STATUS_TRANSITIONED =
new AutomationRuleTriggerType("status_transitioned");
new AutomationRuleTriggerType("STATUS_TRANSITIONED");
public static final AutomationRuleTriggerType ATTRIBUTE_VALUE_CHANGED =
new AutomationRuleTriggerType("attribute_value_changed");
new AutomationRuleTriggerType("ATTRIBUTE_VALUE_CHANGED");
public static final AutomationRuleTriggerType EVENT_CORRELATION_SIGNAL_CORRELATED =
new AutomationRuleTriggerType("event_correlation_signal_correlated");
new AutomationRuleTriggerType("EVENT_CORRELATION_SIGNAL_CORRELATED");
public static final AutomationRuleTriggerType CASE_REVIEW_APPROVED =
new AutomationRuleTriggerType("case_review_approved");
new AutomationRuleTriggerType("CASE_REVIEW_APPROVED");
public static final AutomationRuleTriggerType COMMENT_ADDED =
new AutomationRuleTriggerType("comment_added");
new AutomationRuleTriggerType("COMMENT_ADDED");

AutomationRuleTriggerType(String value) {
super(value, allowedValues);
Expand Down
Loading
Loading