Class | MetricsPack |
In: |
lib/stella/core_ext.rb
|
Parent: | Storable |
A simple class for really fast serialized timing data. NOTE: We‘re storing the serialized data directly to a redis sorted set so it‘s important that each chunk of data in unique. Also, it‘s possible to grab the stamp from the zrange using :with_scores. NOTE2: We bypass Storable‘s to_csv and from_csv for speed. TODO: test speed difference.
METRICS | = | [:rt, :sc, :sr, :fb, :lb, :rscs, :rshs, :rqcs, :rqhs] |
TALLIES | = | [:n, :errors] |
@stamp => 1281355304 (2010-08-09-12-01-44) quantize_stamp(1.day) => 1281312000 (2010-08-09) quantize_stamp(1.hour) => 1281355200 (2010-08-09-12) quantize_stamp(1.minute) => 1281355260 (2010-08-09-12-01)