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))
Ejemplo n.º 3
0
def validate(name):
    try:
        metric_name_schema(name)
    except Exception as ex:
        LOG.debug(ex)
        raise exceptions.ValidationException(str(ex))
Ejemplo n.º 4
0
def validate(dimensions):
    try:
        dimensions_schema(dimensions)
    except Exception as ex:
        LOG.debug(ex)
        raise exceptions.ValidationException(str(ex))