Files
kopia/notification/notifytemplate/test-notification.html
Jarek Kowalski afb85cbb34 feat(cli): send error notifications and snapshot reports (#4233)
* feat(cli): send error notifications and snapshot reports

Notifications will be sent to all configured notification profiles
according to their severity levels.

The following events will trigger notifications:

- Snapshot is created (CLI only, severity >= report)
- Server Maintenance error occurs (CLI, server and UI, severity >= error)
- Any other CLI error occurs (CLI only, severity >= error).

A flag `--no-error-notifications` can be used to disable error notifications.

* added template tests

* improved time formatting in templates

* plumb through notifytemplate.Options

* more testing for formatting options

* fixed default date format to RFC1123
2024-11-11 17:53:50 -08:00

9 lines
362 B
HTML

Subject: Test notification from Kopia at {{ .EventTime | formatTime }}
<p>This is a test notification from Kopia.</p>
<li>Kopia Version: <b>{{ .KopiaBuildVersion }}</b></li>
<li>Build Info: <b>{{ .KopiaBuildInfo }}</b></li>
<li>Github Repo: <b>{{ .KopiaRepo }}</b></li>
If you received this, your notification configuration on {{ .Hostname }} is correct.