|
|
@ -37,6 +37,33 @@ function createEventDetails(event) {
|
|
|
|
case 'attach':
|
|
|
|
case 'attach':
|
|
|
|
details = 'Container ' + eventAttr.name + ' attached';
|
|
|
|
details = 'Container ' + eventAttr.name + ' attached';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'detach':
|
|
|
|
|
|
|
|
details = 'Container ' + eventAttr.name + ' detached';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'copy':
|
|
|
|
|
|
|
|
details = 'Container ' + eventAttr.name + ' copied';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'export':
|
|
|
|
|
|
|
|
details = 'Container ' + eventAttr.name + ' exported';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'health_status':
|
|
|
|
|
|
|
|
details = 'Container ' + eventAttr.name + ' executed health status';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'oom':
|
|
|
|
|
|
|
|
details = 'Container ' + eventAttr.name + ' goes in out of memory';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'rename':
|
|
|
|
|
|
|
|
details = 'Container ' + eventAttr.name + ' renamed';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'resize':
|
|
|
|
|
|
|
|
details = 'Container ' + eventAttr.name + ' resized';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'top':
|
|
|
|
|
|
|
|
details = 'Showed running processes for container ' + eventAttr.name;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'update':
|
|
|
|
|
|
|
|
details = 'Container ' + eventAttr.name + ' updated';
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
if (event.Action.indexOf('exec_create') === 0) {
|
|
|
|
if (event.Action.indexOf('exec_create') === 0) {
|
|
|
|
details = 'Exec instance created';
|
|
|
|
details = 'Exec instance created';
|
|
|
@ -52,15 +79,27 @@ function createEventDetails(event) {
|
|
|
|
case 'delete':
|
|
|
|
case 'delete':
|
|
|
|
details = 'Image deleted';
|
|
|
|
details = 'Image deleted';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'import':
|
|
|
|
|
|
|
|
details = 'Image ' + event.Actor.ID + ' imported';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'load':
|
|
|
|
|
|
|
|
details = 'Image ' + event.Actor.ID + ' loaded';
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 'tag':
|
|
|
|
case 'tag':
|
|
|
|
details = 'New tag created for ' + eventAttr.name;
|
|
|
|
details = 'New tag created for ' + eventAttr.name;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'untag':
|
|
|
|
case 'untag':
|
|
|
|
details = 'Image untagged';
|
|
|
|
details = 'Image untagged';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'save':
|
|
|
|
|
|
|
|
details = 'Image ' + event.Actor.ID + ' saved';
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 'pull':
|
|
|
|
case 'pull':
|
|
|
|
details = 'Image ' + event.Actor.ID + ' pulled';
|
|
|
|
details = 'Image ' + event.Actor.ID + ' pulled';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'push':
|
|
|
|
|
|
|
|
details = 'Image ' + event.Actor.ID + ' pushed';
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
details = 'Unsupported event';
|
|
|
|
details = 'Unsupported event';
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -73,6 +112,9 @@ function createEventDetails(event) {
|
|
|
|
case 'destroy':
|
|
|
|
case 'destroy':
|
|
|
|
details = 'Network ' + eventAttr.name + ' deleted';
|
|
|
|
details = 'Network ' + eventAttr.name + ' deleted';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'remove':
|
|
|
|
|
|
|
|
details = 'Network ' + eventAttr.name + ' removed';
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 'connect':
|
|
|
|
case 'connect':
|
|
|
|
details = 'Container connected to ' + eventAttr.name + ' network';
|
|
|
|
details = 'Container connected to ' + eventAttr.name + ' network';
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|