Skip to content

Alert Template Fields for Failed/Aborted Reload Tasks

List of template fields available in Butler's reload failed/aborted alert messages.

Template fields

Butler uses the Handlebars library for templating work.

Handlebars offers a lot of useful features (nested template fields, evaluation context, template comments) and it's recommended that you browse through at least the language features section of their getting started guide to get a feeling for what's possible.

WARNING

Only some alert destinations support template files, namely

  • Email
  • Teams
  • Slack

Please see the Concepts and Getting started sections for more information about which alert types support templates.

If a template field is used for an alert type where that field is not supported, the field will simply be blank. No errors will occur, but it can still be tricky to debug if you're not aware of this.

The following template fields are available in alert messages.

Note that some fields are sometimes (often, even) empty, for example the script log for stopped messages.
This is simply how Sense works - the template fields just forward the information retrieved from the Sense APIs.

Failed
reload
Stopped
reload
Successful
reload
Field nameDescription
hostNameServer on which a reload or other event took place.
userReload failures: User ID for use doing the reload. Typically sa_scheduler.
Reload stopped: User ID of user stopping the reload.
taskIdID of reload task.
taskNameName of reload task.
appIdID of Sense app.
appNameName of app.
appDescriptionDescription of app.
appFileSizeSize of app file (on disk).
appLastSuccessfulReloadDate of last successful reload.
appLastModifiedDateDate/time of last modification of app.
appLastModifiedByUserNameUser who last modified the app.
appPublishTimeDate/time when app was published.
appPublishedIs the app published? (true/false)
appStreamNameName of stream where app is published.
appCustomPropertiesCustom properties that are present on the app.
appTagsTags that are present on the app.
appUrlURL to the app.
taskCustomPropertiesCustom properties that are present on the reload task.
taskTagsTags that are present on the reload task.
taskIsPartialReloadDoes the reload task perform a partial reload? (true/false)
taskMaxRetriesMaximum number of retries for the reload task.
taskModifiedByUsernameUser who last modified the reload task.
taskModifiedDateDate when the reload task was last modified.
taskSessionTimeoutSession timeout for the reload task, i.e how long the reload task will run before it is canceled.
taskNextExecutionNext scheduled execution of the reload task.
appOwnerNameName of app owner (if this is available in the metadata provided by the Sense server)
appOwnerUserDirectoryApp owner user's user directory (if this is available in the metadata provided by the Sense server)
appOwnerUserIdApp owner user's user id (if this is available in the metadata provided by the Sense server)
appOwnerEmailApp owner email (if this is available in the metadata provided by the Sense server)
logTimeStampTimestamp as recorded in the Sense logs
logLevelLog level of the Sense log file entry causing the alert
logMessageLog message from the Sense log files
executingNodeNameName of the server where the reload took place
executionDuration.hoursexecutionDuration is a JSON object.
Duration of reload (hours part)
executionDuration.minutesDuration of reload (minutes part)
executionDuration.secondsDuration of reload (seconds part)
executionStartTime.startTimeUTCJSON object.
UTC timestamp for reload start
executionStartTime.startTimeLocal1Reload start timestamp, format 1
executionStartTime.startTimeLocal2Reload start timestamp, format 2
executionStartTime.startTimeLocal3Reload start timestamp, format 3
executionStartTime.startTimeLocal4Reload start timestamp, format 4
executionStartTime.startTimeLocal5Reload start timestamp, format 5
executionStopTime.stopTimeUTCJSON object.
UTC timestamp for reload end
executionStopTime.stopTimeLocal1Reload end timestamp, format 1
executionStopTime.stopTimeLocal2Reload end timestamp, format 2
executionStopTime.stopTimeLocal3Reload end timestamp, format 3
executionStopTime.stopTimeLocal4Reload end timestamp, format 4
executionStopTime.stopTimeLocal5Reload end timestamp, format 5
executionStatusNumFinal reload task status code
executionStatusTextFinal reload task status message
executionDetails[].timestampUTCexecutionDetails is an array of status updates for the reload task, similar to the one found in the QMC's task view.
UTC timestamp of the task status
executionDetails[].timestampLocal1Task status timestamp, format 1
executionDetails[].timestampLocal2Task status timestamp, format 2
executionDetails[].timestampLocal3Task status timestamp, format 3
executionDetails[].timestampLocal4Task status timestamp, format 4
executionDetails[].timestampLocal5Task status timestamp, format 5
executionDetails[].detailsTypeTask status timestamp, format 1
executionDetails[].messageTask status message
scriptLogSizeSize of the reload's script log (characters)
scriptLogSizeRowsSize of the reload's script log (rows)
scriptLogSizeCharactersSize of the reload's script log (characters)
scriptLogHeadCountNumber of lines extracted from the start of the script log
scriptLogTailCountThe first y lines from the reload's script log
scriptLogHeadThe first x lines from the reload's script log
scriptLogTailNumber of lines extracted from the end of the script log
qliksSenseQMCLinks to QMC, as defined in main config file
qliksSenseHubLinks to Hub, as defined in main config file
genericUrlsLinks to other systems, as defined in main config file

Released under the MIT License.