Last active
August 29, 2015 14:01
-
-
Save denismakogon/9c2d802e2a61eb6164d2 to your computer and use it in GitHub Desktop.
Notification refactoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# **kwards should contain: AZ, name, flavor(new flavor for instance resize), compute instance id, volume size | |
def send_usage_event(self, event_type, **kwargs): | |
event_type = 'trove.instance.%s' % event_type | |
publisher_id = CONF.host | |
az = kwargs.pop('az') | |
name = kwargs.pop('name') | |
created_time = timeutils.isotime(self.db_info.created) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment