def print_all_vals()

in CWMetricsToOpenSearch/handler.py [0:0]


def print_all_vals(vals):
    doms = dict()
    for val in vals:
        if not (val.domain_name, val.region) in doms.keys():
            doms[(val.domain_name, val.region)] = 0
        doms[(val.domain_name, val.region)] += 1
    print('Retrieved {} values'.format(len(vals)))
    total = 0
    for dom, count in doms.items():
        print('{}: {}'.format(dom, count))
        total += count
    print('Retrieved a total of {} values'.format(total))