Update event field names to match the new API fields.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
d1d3969661
commit
d3cd038b84
4 changed files with 65 additions and 19 deletions
|
|
@ -282,11 +282,15 @@ class Project(object):
|
|||
time = time.replace(
|
||||
microsecond=microseconds_from_time_nano(event['timeNano']))
|
||||
return {
|
||||
'service': container.service,
|
||||
'event': event['status'],
|
||||
'container': container.id,
|
||||
'image': event['from'],
|
||||
'time': time,
|
||||
'type': 'container',
|
||||
'action': event['status'],
|
||||
'id': container.id,
|
||||
'service': container.service,
|
||||
'attributes': {
|
||||
'name': container.name,
|
||||
'image': event['from'],
|
||||
}
|
||||
}
|
||||
|
||||
service_names = set(self.service_names)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue