mirror of
https://github.com/kopia/kopia.git
synced 2026-01-14 09:27:53 -05:00
* 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
21 lines
590 B
HTML
21 lines
590 B
HTML
Subject: Kopia has encountered an error during {{ .EventArgs.Operation }} on {{.Hostname}}
|
|
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
|
|
<p><b>Operation:</b> {{ .EventArgs.OperationDetails }}</p>
|
|
<p><b>Started:</b> {{ .EventArgs.StartTimestamp | formatTime }}</p>
|
|
<p><b>Finished:</b> {{ .EventArgs.EndTimestamp | formatTime }} ({{ .EventArgs.Duration }})</p>
|
|
|
|
<p><b>Message:</b> {{ .EventArgs.ErrorMessage }}</p>
|
|
|
|
<pre>{{ .EventArgs.ErrorDetails }}</pre>
|
|
|
|
<p>Generated at {{ .EventTime | formatTime }} by <a href="https://kopia.io">Kopia {{ .KopiaBuildVersion }}</a>.</p>
|
|
|
|
</body>
|
|
</html>
|