Class: Heroku::Scalr::Metric::Wait
- Defined in:
- lib/heroku/scalr/metric.rb
Instance Method Summary collapse
Methods inherited from Abstract
Constructor Details
This class inherits a constructor from Heroku::Scalr::Metric::Abstract
Instance Method Details
#by ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/heroku/scalr/metric.rb', line 73 def by ms = http_get.headers["X-Heroku-Queue-Wait"] unless ms log :warn, "unable to determine queue wait time" return 0 end ms = ms.to_i log :debug, "current queue wait time: #{ms}ms" compare(ms, @app.wait_low, @app.wait_high) end |