コード例 #1
0
def validate(msg):
    try:
        request_body_schema(msg)
    except Exception as ex:
        LOG.debug(ex)
        raise exceptions.ValidationException(str(ex))
コード例 #2
0
def validate(body):
    try:
        event_schema_request_body(body)
    except Exception as ex:
        LOG.debug(ex)
        raise exceptions.ValidationException(str(ex))
コード例 #3
0
def validate(name):
    try:
        metric_name_schema(name)
    except Exception as ex:
        LOG.debug(ex)
        raise exceptions.ValidationException(str(ex))
コード例 #4
0
def validate(dimensions):
    try:
        dimensions_schema(dimensions)
    except Exception as ex:
        LOG.debug(ex)
        raise exceptions.ValidationException(str(ex))