Method: TingYun::Agent::Transaction::Apdex#apdex_bucket
- Defined in:
- lib/ting_yun/agent/transaction/apdex.rb
#apdex_bucket(duration, failed, apdex_t) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/ting_yun/agent/transaction/apdex.rb', line 34 def apdex_bucket(duration, failed, apdex_t) case when failed :apdex_f when duration <= apdex_t :apdex_s when duration <= 4 * apdex_t :apdex_t else :apdex_f end end |