Functionality related to notifications common to multiple layers of the system.
Get the start and end of the relevant audit usage period
Parameters: | current_period – if True, this will generate a usage for the current usage period; if False, this will generate a usage for the previous audit period. |
---|
Get bandwidth usage information for the instance for the specified audit period.
Format image metadata for use in notifications from the instance system metadata.
Get detailed instance information for an instance which is common to all notifications.
:param:instance: nova.objects.Instance :param:network_info: network_info provided if not None :param:system_metadata: system_metadata DB entries for the instance, if not None
Note
Currently unused here in trunk, but needed for potential custom modifications.
Decorator for notify which is used from utils.monkey_patch().
Parameters: |
|
---|---|
Returns: | fn – decorated function |
Send an api.fault notification.
Send compute.instance.update notification to report any changes occurred in that instance
Send compute.instance.update notification to report changes if there are any, in the instance