diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 0f86b610623..c129375f915 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -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
@@ -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
@@ -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:
@@ -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"
@@ -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:
@@ -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:
@@ -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"
@@ -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:
@@ -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:
@@ -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:
diff --git a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleAction.java b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleAction.java
index 63e303fceef..b19c38b76a3 100644
--- a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleAction.java
+++ b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleAction.java
@@ -78,8 +78,8 @@ public AutomationRuleAction type(AutomationRuleActionType 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.
+ * 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.
*
* @return type
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleActionData.java b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleActionData.java
index 64b494ec498..6f39edf17fa 100644
--- a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleActionData.java
+++ b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleActionData.java
@@ -41,7 +41,7 @@ public AutomationRuleActionData agentType(String agentType) {
}
/**
- * The type of AI agent to assign. Required when the action type is assign_agent.
+ * The type of AI agent to assign. Required when the action type is ASSIGN_AGENT.
*
* @return agentType
*/
@@ -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
- * assign_agent.
+ * ASSIGN_AGENT.
*
* @return assignedAgentId
*/
@@ -85,7 +85,7 @@ public AutomationRuleActionData handle(String handle) {
/**
* The handle of the Datadog workflow to execute. Required when the action type is
- * execute_workflow.
+ * EXECUTE_WORKFLOW.
*
* @return handle
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleActionType.java b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleActionType.java
index 2796864a658..4b749b7090f 100644
--- a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleActionType.java
+++ b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleActionType.java
@@ -19,19 +19,19 @@
import java.util.Set;
/**
- * 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.
*/
@JsonSerialize(using = AutomationRuleActionType.AutomationRuleActionTypeSerializer.class)
public class AutomationRuleActionType extends ModelEnum {
private static final Set allowedValues =
- new HashSet(Arrays.asList("execute_workflow", "assign_agent"));
+ new HashSet(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);
diff --git a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTrigger.java b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTrigger.java
index cb4a6479f5e..3cb47141ba1 100644
--- a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTrigger.java
+++ b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTrigger.java
@@ -52,8 +52,8 @@ public AutomationRuleTrigger data(AutomationRuleTriggerData 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
+ * STATUS_TRANSITIONED triggers, specify from_status_name and
+ * to_status_name. For ATTRIBUTE_VALUE_CHANGED triggers, specify field
* and change_type.
*
* @return data
diff --git a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTriggerData.java b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTriggerData.java
index beb725f2d37..5195c67d9e4 100644
--- a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTriggerData.java
+++ b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTriggerData.java
@@ -18,8 +18,8 @@
/**
* 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
+ * STATUS_TRANSITIONED triggers, specify from_status_name and
+ * to_status_name. For ATTRIBUTE_VALUE_CHANGED triggers, specify field
* and change_type.
*/
@JsonPropertyOrder({
@@ -54,7 +54,7 @@ public AutomationRuleTriggerData approvalType(String approvalType) {
}
/**
- * The approval outcome to match. Used with case_review_approved triggers.
+ * The approval outcome to match. Used with CASE_REVIEW_APPROVED triggers.
*
* @return approvalType
*/
@@ -76,7 +76,7 @@ public AutomationRuleTriggerData changeType(String changeType) {
/**
* The kind of attribute change to match. Allowed values: VALUE_ADDED,
- * VALUE_DELETED, ANY_CHANGES. Used with attribute_value_changed
+ * VALUE_DELETED, ANY_CHANGES. Used with ATTRIBUTE_VALUE_CHANGED
* triggers.
*
* @return changeType
@@ -98,7 +98,7 @@ public AutomationRuleTriggerData field(String field) {
}
/**
- * The case attribute field name to monitor for changes. Used with attribute_value_changed
+ * The case attribute field name to monitor for changes. Used with ATTRIBUTE_VALUE_CHANGED
* triggers.
*
* @return field
@@ -120,7 +120,7 @@ public AutomationRuleTriggerData fromStatusName(String fromStatusName) {
}
/**
- * The originating status name. Used with status_transitioned triggers to match
+ * The originating status name. Used with STATUS_TRANSITIONED triggers to match
* transitions from this status.
*
* @return fromStatusName
@@ -142,7 +142,7 @@ public AutomationRuleTriggerData toStatusName(String toStatusName) {
}
/**
- * The destination status name. Used with status_transitioned triggers to match
+ * The destination status name. Used with STATUS_TRANSITIONED triggers to match
* transitions to this status.
*
* @return toStatusName
diff --git a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTriggerType.java b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTriggerType.java
index 3192f726760..b5a504a3839 100644
--- a/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTriggerType.java
+++ b/src/main/java/com/datadog/api/client/v2/model/AutomationRuleTriggerType.java
@@ -25,25 +25,25 @@ public class AutomationRuleTriggerType extends ModelEnum {
private static final Set allowedValues =
new HashSet(
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);
diff --git a/src/test/resources/com/datadog/api/client/v2/api/case_management.feature b/src/test/resources/com/datadog/api/client/v2/api/case_management.feature
index 8e2e9f6f6ad..f34e59ada60 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/case_management.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/case_management.feature
@@ -360,7 +360,7 @@ Feature: Case Management
Scenario: Create an automation rule returns "Bad Request" response
Given new "CreateCaseAutomationRule" request
And request contains "project_id" parameter from "REPLACE.ME"
- And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}}
+ And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "EXECUTE_WORKFLOW"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "CASE_CREATED"}}, "type": "rule"}}
When the request is sent
Then the response status is 400 Bad Request
@@ -368,7 +368,7 @@ Feature: Case Management
Scenario: Create an automation rule returns "Created" response
Given new "CreateCaseAutomationRule" request
And request contains "project_id" parameter from "REPLACE.ME"
- And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}}
+ And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "EXECUTE_WORKFLOW"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "CASE_CREATED"}}, "type": "rule"}}
When the request is sent
Then the response status is 201 Created
@@ -376,7 +376,7 @@ Feature: Case Management
Scenario: Create an automation rule returns "Not Found" response
Given new "CreateCaseAutomationRule" request
And request contains "project_id" parameter from "REPLACE.ME"
- And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}}
+ And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "EXECUTE_WORKFLOW"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "CASE_CREATED"}}, "type": "rule"}}
When the request is sent
Then the response status is 404 Not Found
@@ -1233,7 +1233,7 @@ Feature: Case Management
Given new "UpdateCaseAutomationRule" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "rule_id" parameter from "REPLACE.ME"
- And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}}
+ And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "EXECUTE_WORKFLOW"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "CASE_CREATED"}}, "type": "rule"}}
When the request is sent
Then the response status is 400 Bad Request
@@ -1242,7 +1242,7 @@ Feature: Case Management
Given new "UpdateCaseAutomationRule" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "rule_id" parameter from "REPLACE.ME"
- And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}}
+ And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "EXECUTE_WORKFLOW"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "CASE_CREATED"}}, "type": "rule"}}
When the request is sent
Then the response status is 404 Not Found
@@ -1251,7 +1251,7 @@ Feature: Case Management
Given new "UpdateCaseAutomationRule" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "rule_id" parameter from "REPLACE.ME"
- And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "execute_workflow"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "case_created"}}, "type": "rule"}}
+ And body with value {"data": {"attributes": {"action": {"data": {"handle": "workflow-handle-123"}, "type": "EXECUTE_WORKFLOW"}, "name": "Auto-assign workflow", "state": "ENABLED", "trigger": {"data": {}, "type": "CASE_CREATED"}}, "type": "rule"}}
When the request is sent
Then the response status is 200 OK