Bases: exceptions.Exception
Add a notification driver at runtime.
Sends a notification using the specified driver
Parameters: |
|
---|
Outgoing message format includes the above parameters, and appends the following:
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:
{'message_id': str(uuid.uuid4()),
'publisher_id': 'compute.host1',
'timestamp': timeutils.utcnow(),
'priority': 'WARN',
'event_type': 'compute.create_instance',
'payload': {'instance_id': 12, ... }}
decorator for notify which is used from utils.monkey_patch()
Parameters: |
|
---|---|
Returns: | function – decorated function |