geonode.monitoring.utils
Attributes
Classes
Handler instances dispatch logging events to specific destinations. |
|
A class that represents a thread of control. |
|
Functions
|
|
|
|
|
Generator of periods: tuple of [start, end). |
|
|
|
Add new DateTime input formats |
|
|
|
Module Contents
- class geonode.monitoring.utils.MonitoringHandler(service, *args, **kwargs)[source]
Bases:
logging.HandlerHandler instances dispatch logging events to specific destinations.
The base handler class. Acts as a placeholder which defines the Handler interface. Handlers can optionally use Formatter instances to format records as desired. By default, no formatter is specified; in this case, the ‘raw’ message as determined by record.message is logged.
- class geonode.monitoring.utils.RequestToMonitoringThread(service, *args, **kwargs)[source]
Bases:
threading.ThreadA class that represents a thread of control.
This class can be safely subclassed in a limited fashion. There are two ways to specify the activity: by passing a callable object to the constructor, or by overriding the run() method in a subclass.
- run()[source]
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
- geonode.monitoring.utils.generate_periods(since, interval, end=None, align=True)[source]
Generator of periods: tuple of [start, end). since parameter will be aligned to closest interval before since.