Advanced Alerting
When the channel synchronization process detects that an action should be taken, it will first send a Submitted event that can be triggered on.
When that action finishes, it will send one of these two triggerable events:
- Succeeded: The task finished without any errors.
- Failed: The task finished with errors. This usually means that the channel was not able to be deployed/started/etc. With this event, the "exception" variable containing the full error stacktrace will be available in the template context.
In addition to all of the regular template variables that are available in alert template contexts, this trigger also adds the following variables:
Variable | Description | |
---|---|---|
action | The channel or connector action being taken. Will be one of:
| |
event | The stage of the current task. Will be one of:
| |
startTime | A formatted date/time string displaying the time (ms precision) that the task was started. | |
serverId | The ID of the server this action was taken on. | |
serverName | The name of the server this action was taken on, if available. | |
channelId | The ID of the channel this action was taken on. | |
channelName | The name of the channel this action was taken on. | |
metaDataId | If this was a connector start/stop action, this will be the metadata ID of the connector. Otherwise, this will be null. | |
connectorName | If this was a connector start/stop action, this will be the name of the connector. Otherwise, this will be null. | |
message | A brief description of the task. Example:
| |
exception | If any errors occurred in the synchronization task, this will contain the full error stacktrace with more information. | |
attemptCount | The number of times this task has been attempted to be performed on this server. When a task succeeds, its attempt count will be reset back to 0. If you perform the Redeploy All Channels task, the attempt counts for all tasks will be reset on all servers. When you perform a Deploy/Start/Resume task and it's successful, it will reset the attempt counts for that specific task (for that specific channel) on the server where it was successful. |