Bases: exceptions.Exception
Sends a notification using the specified driver
Notify parameters:
publisher_id - the source worker_type.host of the message event_type - the literal type of event (ex. Instance Creation) priority - patterned after the enumeration of Python logging levels in
the set (DEBUG, WARN, INFO, ERROR, CRITICAL)
payload - A python dictionary of attributes
Outgoing message format includes the above parameters, and appends the following:
message_id - a UUID representing the id for this notification timestamp - the GMT timestamp the notification was sent at
The composite message will be constructed as a dictionary of the above attributes, which will then be sent via the transport mechanism defined by the driver.
Message example:
decorator for notify which is used from utils.monkey_patch()
Parameters: |
|
---|---|
Returns: | function – decorated function |