def _send_notification(self, action):
    payload = service_notification.ServiceStatusPayload(self)
    service_notification.ServiceStatusNotification(publisher=notification.NotificationPublisher.from_service_obj(self), event_type=notification.EventType(object='service', action=action), priority=fields.NotificationPriority.INFO, payload=payload).emit(self._context)
def _send_notification(self, action):
    payload = service_notification.ServiceStatusPayload(self)
    service_notification.ServiceStatusNotification(publisher=notification.NotificationPublisher.from_service_obj(self), event_type=notification.EventType(object='service', action=action), priority=fields.NotificationPriority.INFO, payload=payload).emit(self._context)