def validate(msg): try: request_body_schema(msg) except Exception as ex: LOG.debug(ex) raise exceptions.ValidationException(str(ex))
def validate(body): try: event_schema_request_body(body) except Exception as ex: LOG.debug(ex) raise exceptions.ValidationException(str(ex))
def validate(name): try: metric_name_schema(name) except Exception as ex: LOG.debug(ex) raise exceptions.ValidationException(str(ex))
def validate(dimensions): try: dimensions_schema(dimensions) except Exception as ex: LOG.debug(ex) raise exceptions.ValidationException(str(ex))