Method: Mu::Scale#data
- Defined in:
- lib/mu/api/scale.rb
#data(view = 'TIMELINE', zoom = "0", position = "0", bot_id = "") ⇒ Object
gets chart data for the Scale test
* view = the TIMELINE or CALLGRAPH chart.
* zoom = the zoom level (0 to 1). 1 returns data for 100% of the time range, 0.5 returns data for 50% of the time range, and 0 returns only the last minute of data
* position = 0.
* bot_id = the scale engine id
147 148 149 150 151 |
# File 'lib/mu/api/scale.rb', line 147 def data(view='TIMELINE', zoom="0", position="0", bot_id="") response = get "data", "view=#{view.upcase}&zoom=#{zoom}&position=#{position}&bot_id=#{bot_id}" msg response, Logger::DEBUG return response end |