In order to customize title and body of notifications you'll have to write a [go template](https://pkg.go.dev/text/template) and mount it inside the `/etc/dockervolumebackup/notifications.d/` directory.
Configuration, data about the backup run and helper functions will be passed to this template, this page documents them fully.
## Data
Here is a list of all data passed to the template:
*`Config`: this object holds the configuration that has been passed to the script. The field names are the name of the recognized environment variables converted in PascalCase. (e.g. `BACKUP_STOP_CONTAINER_LABEL` becomes `BackupStopContainerLabel`)
*`Error`: the error that made the backup fail. Only available in the `title_failure` and `body_failure` templates
*`Stats`: objects that holds stats regarding script execution. In case of an unsuccessful run, some information may not be available.
*`StartTime`: time when the script started execution
*`EndTime`: time when the backup has completed successfully (after pruning)
*`TookTime`: amount of time it took for the backup to run. (equal to `EndTime - StartTime`)