OpenTSDB/opentsdb — pull request #202 by davidkbainbridge (2013-06-28 20:51:00+00:00)
Title: rate calculations options

added the ability to specify rate calculation options when performaing a query. specifically the query can indicate if the metric on which the rate is being calculated is a counter, what the roll over value for that counter is, and what is a reset threshold for the counter. the reset threshold is a value that if the calculated rate exceeds it is reasoned that an anomaly occurred and the calculated rate is returned as 0.0.

i did do a remote of some of the source files with eclipse (which is something i just tend to do when i develop). i had the settings for 2 space indent so that didn't really effect the source, by some of the other lines were reformatted / indented.