Skip to main content

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​

SettingMeaning
Event typesOne or more event types that start the workflow. At least one is required
SourcesOptional source kinds to include. Leave it on Any source to match every source
Minimum severitylow, 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 typeAssigned to items from
delivery.failedA workflow delivery that failed, or a notification that failed
policy.drift_detectedA tool or file that changed from its expected state
exception.renewal_dueAn exception that is due for renewal
incident.criticalA critical incident
security.eventA security event
triage_item.createdEvery 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:

GroupSource kinds
Security signalsreceipt (command finished), blocked_receipt (blocked action), policy_drift (configuration changed), inventory_diff (inventory changed)
Workflow and deliverydelivery_failure, notification_failure, provider_event
Reviews and exceptionsapproval, 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​

SymptomLikely cause
The test run stops at the triggerThe sample event's type or source kind is not in the trigger's lists
The workflow never matches live eventsThe event types do not include the type Guard assigns to that source kind. See the table above
Two workflows deliver the same eventTheir triggers overlap. Narrow the event types or sources, or disable one
The publish is refusedA step failed validation. See what the studio checks

NextDirect link to Next​