- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#SCHEMA_REPRESENTATION)
- [WorkflowTriggerType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#WorkflowTriggerType)
- [ConditionLogicalOperator](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ConditionLogicalOperator)
- [ReactionConditionGroup](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ReactionConditionGroup)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ReactionConditionGroup.SCHEMA_REPRESENTATION)
- [WorkflowTriggerExecutionMode](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#WorkflowTriggerExecutionMode)

ApiWorkflowTriggerDataModel represents a workflow trigger.

| JSON representation |
|---|
| ``` { "id": string, "identifier": string, "type": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#WorkflowTriggerType`), "logicalOperator": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ConditionLogicalOperator`), "conditions": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/LegacyPlaybookApiTriggerCondition`) } ], "reactionLogicalOperator": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ConditionLogicalOperator`), "reactionConditions": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ReactionConditionGroup`) } ], "executionMode": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#WorkflowTriggerExecutionMode`), "maxReactionDepth": integer } ``` |

| Fields ||
|---|---|
| `id` | `string (https://developers.google.com/discovery/v1/type-format format)` Required. Id is the unique identifier of the trigger. |
| `identifier` | `string` Required. Identifier is the unique identifier of the trigger. |
| `type` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#WorkflowTriggerType`)`` Required. Type is the type of the trigger. |
| `logicalOperator` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ConditionLogicalOperator`)`` Required. LogicalOperator is the logical operator for the conditions. |
| `conditions[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/LegacyPlaybookApiTriggerCondition`)`` Optional. Conditions is a list of conditions for the trigger. |
| `reactionLogicalOperator` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ConditionLogicalOperator`)`` Optional. ReactionLogicalOperator is the logical operator for the reaction conditions. |
| `reactionConditions[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ReactionConditionGroup`)`` Optional. ReactionConditions is a list of reaction conditions for the trigger. |
| `executionMode` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#WorkflowTriggerExecutionMode`)`` Optional. Mode is the mode of the trigger. |
| `maxReactionDepth` | `integer` Optional. MaxReactionDepth is the maximum reaction depth of the trigger. |

## WorkflowTriggerType

WorkflowTriggerType represents the trigger type of a workflow.

| Enums ||
|---|---|
| `WORKFLOW_TRIGGER_TYPE_UNSPECIFIED` | The trigger type is unspecified. |
| `VENDOR_NAME` | The trigger type is vendor name. |
| `TAG_NAME` | The trigger type is tag name. |
| `RULE_NAME` | The trigger type is rule name. |
| `PRODUCT_NAME` | The trigger type is product name. |
| `NETWORK_NAME` | The trigger type is network name. |
| `ENTITY_DETAILS` | The trigger type is entity details. |
| `RELATION_DETAILS` | The trigger type is relation details. |
| `TRACKING_LIST` | The trigger type is tracking list. |
| `ALL` | The trigger type is all. |
| `ALERT_TRIGGER_VALUE` | The trigger type is alert trigger value. |
| `CASE_DATA` | The trigger type is case data. |
| `GET_INPUTS` | The trigger type is get inputs. |
| `CASE_ASSIGNEE_CHANGED` | The trigger type is case assignee changed. |
| `ENTITY_ADDED` | The trigger type is entity added. |
| `ALERT_PRIORITY_CHANGED` | The trigger type is alert priority changed. |
| `ALERT_CUSTOM_FIELD_CHANGED` | The trigger type is alert custom field changed. |
| `CASE_CUSTOM_FIELD_CHANGED` | The trigger type is case custom field changed. |
| `CASE_STAGE_CHANGED` | The trigger type is case stage changed. |
| `CASE_PRIORITY_CHANGED` | The trigger type is case priority changed. |
| `CASE_TAG_ADDED` | The trigger type is case tag added. |
| `CASE_COMMENT_ADDED` | The trigger type is case comment added. |

## ConditionLogicalOperator

ConditionLogicalOperator represents the logical operator of a condition.

| Enums ||
|---|---|
| `CONDITION_LOGICAL_OPERATOR_UNSPECIFIED` | The logical operator is unspecified. |
| `AND` | The logical operator is and. |
| `OR` | The logical operator is or. |

## ReactionConditionGroup

Represents a condition group for a trigger reaction.

| JSON representation |
|---|
| ``` { "logicalOperator": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ConditionLogicalOperator`), "conditions": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/LegacyPlaybookApiTriggerCondition`) } ] } ``` |

| Fields ||
|---|---|
| `logicalOperator` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ApiWorkflowTriggerDataModel#ConditionLogicalOperator`)`` Required. LogicalOperator is the logical operator for the reaction conditions. |
| `conditions[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/LegacyPlaybookApiTriggerCondition`)`` Optional. Conditions is a list of conditions for the reaction. |

## WorkflowTriggerExecutionMode

Determines the behavior when a trigger fires while a previous workflow execution is still running.

| Enums ||
|---|---|
| `WORKFLOW_TRIGGER_EXECUTION_MODE_UNSPECIFIED` | The trigger mode is unspecified. |
| `RESTART` | Stop the currently running workflow and start a new one. |
| `QUEUED` | Wait for the currently running workflow to complete before starting a new one. |