def statistic_type(statistic):
    valid_values = ['Average', 'Minimum', 'Maximum', 'SampleCount', 'Sum']
    if (statistic not in valid_values):
        raise ValueError(('Statistic must be one of: "%s"' % ', '.join(valid_values)))
    return statistic
def statistic_type(statistic):
    valid_values = ['Average', 'Minimum', 'Maximum', 'SampleCount', 'Sum']
    if (statistic not in valid_values):
        raise ValueError(('Statistic must be one of: "%s"' % ', '.join(valid_values)))
    return statistic