7 # 'ev' is a dict containing the log table record describing the change.
9 if ('event_type' in ev and
10 ev['event_type'] == 'create' and
11 ev["object_kind"] == "arvados#collection"):
12 print "A new collection was created %s" % ev['object_uuid']
14 api = arvados.api('v1', cache=False)
15 ws = arvados.events.subscribe(api, [], on_message)