Skip to content

octoprint.vendor.sockjs.tornado.stats#

MovingAverage #

Bases: object

Moving average class implementation

__init__(period=10) #

Constructor.

period Moving window size. Average will be calculated from the data in the window.

add(n) #

Add value to the current accumulator

n Value to add

flush() #

Add accumulator to the moving average queue and reset it. For example, called by the StatsCollector once per second to calculate per-second average.

StatsCollector #

Bases: object

dump() #

Return dictionary with current statistical information

Back to top