Exemplo n.º 1
0
    def _emit(self, severity, message, **associations):
        """
        :param severity: One of the defined serverity values
        :param message: One line human readable string
        :param associations: Optional extra attributes to associate
                             the event with a particular cluster/server/service
        """
        now_utc = now()
        log.info("Eventer._emit: %s/%s/%s" %
                 (now_utc, severity_str(severity), message))

        self._events.append(
            Event(when=now_utc,
                  message=message,
                  severity=severity,
                  **associations))
Exemplo n.º 2
0
    def _emit(self, severity, message, **associations):
        """
        :param severity: One of the defined serverity values
        :param message: One line human readable string
        :param associations: Optional extra attributes to associate
                             the event with a particular cluster/server/service
        """
        now_utc = now()
        log.info("Eventer._emit: %s/%s/%s" % (now_utc, severity_str(severity), message))

        self._events.append(Event(
            when=now_utc,
            message=message,
            severity=severity,
            **associations
        ))
Exemplo n.º 3
0
 def get_severity(self, obj):
     return severity_str(obj.severity)
Exemplo n.º 4
0
 def get_severity(self, obj):
     return severity_str(obj.severity)