Пример #1
0
 def _notify(self, ctxt, event_type, payload, priority):
     notifier_api.notify(ctxt,
                         self.publisher_id,
                         event_type,
                         priority,
                         payload)
Пример #2
0
def notify(context, service, event_type, payload):
    priority = 'INFO'
    publisher_id = notifier_api.publisher_id(service)
    event_type = "dns.%s" % event_type
    notifier_api.notify(context, publisher_id, event_type, priority, payload)
Пример #3
0
 def _notify(self, ctxt, event_type, payload, priority):
     notifier_api.notify(ctxt, self.publisher_id, event_type, priority,
                         payload)