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