Add more event types

This commit is contained in:
Johannes Zellner
2019-01-19 15:53:49 +01:00
parent 1ec0f67b29
commit 8d3c1c9f9e
2 changed files with 13 additions and 1 deletions

View File

@@ -373,6 +373,8 @@ var ACTION_APP_UPDATE = 'app.update';
var ACTION_APP_LOGIN = 'app.login';
var ACTION_APP_OOM = 'app.oom';
var ACTION_APP_DOWN = 'app.down';
var ACTION_APP_TASK_CRASH = 'app.task.crash';
var ACTION_BACKUP_FINISH = 'backup.finish';
var ACTION_BACKUP_START = 'backup.start';
var ACTION_BACKUP_CLEANUP_START = 'backup.cleanup.start';
@@ -400,6 +402,8 @@ var ACTION_MAIL_LIST_REMOVE = 'mail.list.remove';
var ACTION_DYNDNS_UPDATE = 'dyndns.update';
var ACTION_SYSTEM_CRASH = 'system.crash';
app.filter('eventLogSource', function() {
return function(eventLog) {
var source = eventLog.source;
@@ -476,6 +480,9 @@ app.filter('eventLogDetails', function() {
case ACTION_APP_DOWN:
return source.app.manifest.title + ' is not reachable';
case ACTION_APP_TASK_CRASH:
return 'Apptask for app with id ' + source.appId + ' crashed';
case ACTION_BACKUP_START:
return 'Backup started';
@@ -545,6 +552,9 @@ app.filter('eventLogDetails', function() {
case ACTION_DYNDNS_UPDATE:
return 'DNS was updated from ' + data.fromIp + ' to ' + data.toIp;
case ACTION_SYSTEM_CRASH:
return 'A system process crashed';
default: return eventLog.action;
}
};