(self, request, tenant_id, entity_id, check_id)
Get a specific check that was created before
Get a specific check that was created before
Get a specific check that was created before
def get_check(self, request, tenant_id, entity_id, check_id):
        """
        Get a specific check that was created before
        """
        entities = self._entity_cache_for_tenant(tenant_id).entities

        try:
            check = _get_check(entities, entity_id, check_id)
            return json.dumps(check.to_json())
        except (ObjectDoesNotExist, ParentDoesNotExist) as e:
            request.setResponseCode(e.code)
            return json.dumps(e.to_json())
def get_check ( self , request , tenant_id , entity_id , check_id ) : entities = self . _entity_cache_for_tenant ( tenant_id ) . entities try : check = _get_check ( entities , entity_id , check_id ) return json . dumps ( check . to_json ( ) ) except ( ObjectDoesNotExist , ParentDoesNotExist ) as e : request . setResponseCode ( e . code ) return json . dumps ( e . to_json ( ) )