(self, request)
return
Validates the check xml and returns the metrics
Validates the check xml and returns the metrics
Validates the check xml and returns the metrics
def test_check(self, request):
        """
        Validates the check xml and returns the metrics
        """
        response = self.validate_check_payload(request)
        if (response[0] == 200):
            request.setHeader(b"content-type", b"application/xml")
            response_body = test_check(response[1]["module"])
            return xmltodict.unparse(response_body)
        request.setResponseCode(response[0])
        return
def test_check ( self , request ) : response = self . validate_check_payload ( request ) if ( response [ 0 ] == 200 ) : request . setHeader ( b"content-type" , b"application/xml" ) response_body = test_check ( response [ 1 ] [ "module" ] ) return xmltodict . unparse ( response_body ) request . setResponseCode ( response [ 0 ] ) return