def validate_metric()

in integ/validate_cloudwatch/validator.py [0:0]


def validate_metric(test_name, metric_namespace, dim_key, dim_value, expected_samples=1):
    print('RUNNING: ' + test_name)
    if metric_exists(metric_namespace, dim_key, dim_value, expected_samples):
        print('SUCCESS: ' + test_name)
        return True, 'Success'

    return False, 'TEST_FAILURE: failed to validate metric existence in CloudWatch'