3 Copyright (C) The Arvados Authors. All rights reserved.
5 SPDX-License-Identifier: CC-BY-SA-3.0
11 # 'ev' is a dict containing the log table record describing the change.
13 if ev.get("event_type") == "create" and ev.get("object_kind") == "arvados#collection":
14 print "A new collection was created: %s" % ev["object_uuid"]
16 api = arvados.api("v1")
17 ws = arvados.events.subscribe(api, [], on_message)