Greplin/scales — Issue #11: I'm confused about MeterStatDict
Author: NorthIsUp
Created: 2012-02-29 01:51:43+00:00
State: open

This is mainly about naming things, but tell me if I'm way wrong on this.

So I have the following stats:

STATS = scales.collection('/api',
meter.MeterStat('api_v1'),
meter.MeterStat('multiplexed'),
scales.IntDictStat('status_code'),
scales.PmfStat('latency'),
)

I can go STATS.status_code[200] += 1, but what I really want to do is have a default dictionary of meters so I could do STATS.status_code[200].mark(), but MeterStatDict doesn't seem to be anything like IntDictStat.

Can somebody explain/document the thoughts behind some of these data structures?

p.s. you guys going to py con? I'd love to meet up.