Class: Bounscale::Collector::Throughput
Constant Summary
Constants inherited
from Busyness
Busyness::HISTORY_HOLDING_SEC
Instance Method Summary
collapse
Methods inherited from Busyness
clear_history!
Instance Method Details
#name ⇒ Object
9
10
11
|
# File 'lib/bounscale/collector/throughput.rb', line 9
def name
"throughput"
end
|
#post ⇒ Object
6
7
|
# File 'lib/bounscale/collector/throughput.rb', line 6
def post
end
|
#pre ⇒ Object
3
4
|
# File 'lib/bounscale/collector/throughput.rb', line 3
def pre
end
|
#value ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/bounscale/collector/throughput.rb', line 13
def value
return 0 if history.length < 2
(history.length.to_f / whole_sec) * 60
end
|