doglessdata/doglessdata.py
def service_check(self, service_name="", status=OK, message="", tags=None):
        """
        SERVICE CHECK

        status - Integer corresponding to the check status: 

            0  =  OK
            1  =  WARNING
            2  =  CRITICAL
            3  =  UNKNOWN

        """
        assert isinstance(status, int)

        timestamp = int(time.time())

        metric_name = "lambda." + service_name
        metric_name = metric_name.replace("..", ".")
        tags = self._get_tags(tags, service_name)
        tags = ",".join(tags)
        timestamp = int(time.time())
        tmpl = (
                    "MONITORING"
                    "|{timestamp}"
                    "|{status}"
                    "|check"
                    "|{metric_name}"
                    "|#{tags}"
                )
        statsd_string = tmpl.format(**locals())
        if message:
            statsd_string += "|m:%s" % message
        return print(statsd_string)

        SERVICE CHECK

        status - Integer corresponding to the check status: 

            0  =  OK
            1  =  WARNING
            2  =  CRITICAL
            3  =  UNKNOWN

        
SERVICE CHECK
status - Integer corresponding to the check status.


SERVICE CHECK status - Integer corresponding to the check status .
def service_check(self, service_name="", status=OK, message="", tags=None):
        assert isinstance(status, int)
        timestamp = int(time.time())
        metric_name = "lambda." + service_name
        metric_name = metric_name.replace("..", ".")
        tags = self._get_tags(tags, service_name)
        tags = ",".join(tags)
        timestamp = int(time.time())
        tmpl = (
                    "MONITORING"
                    "|{timestamp}"
                    "|{status}"
                    "|check"
                    "|{metric_name}"
                    "|#{tags}"
                )
        statsd_string = tmpl.format(**locals())
        if message:
            statsd_string += "|m:%s" % message
        return print(statsd_string)
def service_check ( self , service_name = "" , status = OK , message = "" , tags = None ) : assert isinstance ( status , int ) timestamp = int ( time . time ( ) ) metric_name = "lambda." + service_name metric_name = metric_name . replace ( ".." , "." ) tags = self . _get_tags ( tags , service_name ) tags = "," . join ( tags ) timestamp = int ( time . time ( ) ) tmpl = ( "MONITORING" "|{timestamp}" "|{status}" "|check" "|{metric_name}" "|#{tags}" ) statsd_string = tmpl . format ( ** locals ( ) ) if message : statsd_string += "|m:%s" % message return print ( statsd_string )
SERVICE CHECK
status - Integer corresponding to the check status:
SERVICE CHECK status - Integer corresponding to the check status :
"""
        SERVICE CHECK

        status - Integer corresponding to the check status: 

            0  =  OK
            1  =  WARNING
            2  =  CRITICAL
            3  =  UNKNOWN

        """
self
service_name
status
message
tags