Add: backup completion notification

This commit is contained in:
Nicholas Wallace 2024-07-14 19:59:50 +00:00
parent 2aabca906e
commit b1adafedd2
4 changed files with 40 additions and 3 deletions

View file

@ -27,6 +27,23 @@ module.exports.notificationData = {
episodeDescription: 'Some description of the podcast episode.'
}
},
{
name: 'onBackupCompleted',
requiresLibrary: false,
description: 'Triggered when a backup is completed',
variables: ['completionTime', 'backupPath', 'backupSize', 'backupCount', 'removedOldest'],
defaults: {
title: 'Backup Completed',
body: 'Backup has been completed successfully.\n\nPath: {{backupPath}}\nSize: {{backupSize}}\nCount: {{backupCount}}\nRemoved Oldest: {{removedOldest}}'
},
testData: {
completionTime: '12:00 AM',
backupPath: 'path/to/backup',
backupSize: '1.23 MB',
backupCount: '1',
removedOldest: 'false'
}
},
{
name: 'onTest',
requiresLibrary: false,