events.snapshot

Periodically store events in a database.

Consuming the events as a stream isn’t always suitable so this module implements a system to take snapshots of the state of a cluster at regular intervals. There’s a full implementation of this writing the snapshots to a database in djcelery.snapshots in the django-celery distribution.

Module Contents

Classes

Polaroid(self,state,freq=1.0,maxrate=None,cleanup_freq=3600.0,timer=None,app=None) Record event snapshots.

Functions

evcam(camera,freq=1.0,maxrate=None,loglevel=0,logfile=None,pidfile=None,timer=None,app=None) Start snapshot recorder.
class Polaroid(state, freq=1.0, maxrate=None, cleanup_freq=3600.0, timer=None, app=None)

Record event snapshots.

__init__(state, freq=1.0, maxrate=None, cleanup_freq=3600.0, timer=None, app=None)
install()
on_shutter(state)
on_cleanup()
cleanup()
shutter()
capture()
cancel()
__enter__()
__exit__(*exc_info)
evcam(camera, freq=1.0, maxrate=None, loglevel=0, logfile=None, pidfile=None, timer=None, app=None)

Start snapshot recorder.