notifications: remove app up/down
This commit is contained in:
@@ -152,26 +152,6 @@ function oomEvent(eventId, app, addon, containerId, event, callback) {
|
||||
}, callback);
|
||||
}
|
||||
|
||||
function appUp(eventId, app, callback) {
|
||||
assert.strictEqual(typeof eventId, 'string');
|
||||
assert.strictEqual(typeof app, 'object');
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
forEachAdmin({ skip: [] }, function (admin, done) {
|
||||
add(admin.id, eventId, `App ${app.fqdn} is back online`, `The application installed at ${app.fqdn} is back online.`, done);
|
||||
}, callback);
|
||||
}
|
||||
|
||||
function appDied(eventId, app, callback) {
|
||||
assert.strictEqual(typeof eventId, 'string');
|
||||
assert.strictEqual(typeof app, 'object');
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
forEachAdmin({ skip: [] }, function (admin, callback) {
|
||||
add(admin.id, eventId, `App ${app.fqdn} is down`, `The application installed at ${app.fqdn} is not responding.`, callback);
|
||||
}, callback);
|
||||
}
|
||||
|
||||
function appUpdated(eventId, app, callback) {
|
||||
assert.strictEqual(typeof eventId, 'string');
|
||||
assert.strictEqual(typeof app, 'object');
|
||||
@@ -323,12 +303,6 @@ function onEvent(id, action, source, data, callback) {
|
||||
case eventlog.ACTION_APP_OOM:
|
||||
return oomEvent(id, data.app, data.addon, data.containerId, data.event, callback);
|
||||
|
||||
case eventlog.ACTION_APP_DOWN:
|
||||
return appDied(id, data.app, callback);
|
||||
|
||||
case eventlog.ACTION_APP_UP:
|
||||
return appUp(id, data.app, callback);
|
||||
|
||||
case eventlog.ACTION_APP_UPDATE_FINISH:
|
||||
return appUpdated(id, data.app, callback);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user