Triggers
A trigger is the first step of a routing workflow. Every workflow has exactly one trigger, and the studio rejects a graph with none or with more than one. To react to different events in different ways, create separate workflows.
Trigger settingsDirect link to Trigger settings
| Setting | Meaning |
|---|---|
| Event types | One or more event types that start the workflow. At least one is required |
| Sources | Optional source kinds to include. Leave it on Any source to match every source |
| Minimum severity | low, medium, high, or critical. The studio defaults to high |
Event types and sources combine with AND. An event starts the workflow only when its type is in the list and, if you chose sources, its source kind is in that list.
Event typesDirect link to Event types
Guard Cloud assigns an event type to each item it routes, based on the item's source kind:
| Event type | Assigned to items from |
|---|---|
delivery.failed | A workflow delivery that failed, or a notification that failed |
policy.drift_detected | A tool or file that changed from its expected state |
exception.renewal_due | An exception that is due for renewal |
incident.critical | A critical incident |
security.event | A security event |
triage_item.created | Every other source kind. This is the default and the most common choice |
The routing templates also use finding.created and receipt.created in their trigger. A trigger accepts any non-empty event type string, so the studio does not reject an event type that nothing produces. Run a test and check Executions after you publish to confirm that a workflow matches.
Source kindsDirect link to Source kinds
The Sources picker offers these values:
| Group | Source kinds |
|---|---|
| Security signals | receipt (command finished), blocked_receipt (blocked action), policy_drift (configuration changed), inventory_diff (inventory changed) |
| Workflow and delivery | delivery_failure, notification_failure, provider_event |
| Reviews and exceptions | approval, exception, investigation, stale_device |
Minimum severityDirect link to Minimum severity
The severity field accepts low, medium, high, and critical. In a test run it sets the severity of the sample event the studio generates. To send different severities to different places, branch with a condition on severity. See Test runs and live delivery.
Test a triggerDirect link to Test a trigger
In Test, a sample event whose type is not in the trigger's event types, or whose source kind is not in its sources, stops at the trigger with the status skipped and a message naming what did not match. Use that to confirm a filter before you publish.
TroubleshootingDirect link to Troubleshooting
| Symptom | Likely cause |
|---|---|
| The test run stops at the trigger | The sample event's type or source kind is not in the trigger's lists |
| The workflow never matches live events | The event types do not include the type Guard assigns to that source kind. See the table above |
| Two workflows deliver the same event | Their triggers overlap. Narrow the event types or sources, or disable one |
| The publish is refused | A step failed validation. See what the studio checks |