lib/collective/collectors/newrelic.rb
def instrument_apdex(group, info)
      if info.include? 'application_summary'
        group.instrument 'response_time', info['application_summary']['response_time'], units: 'ms'
        group.instrument 'apdex_score', info['application_summary']['apdex_score']
      end
      if info.include? 'end_user_summary'
        group.group 'browser' do |group|
          group.instrument 'response_time', info['end_user_summary']['response_time'], units: 's'
          group.instrument 'apdex_score', info['end_user_summary']['apdex_score']
        end
      end
    end
# Given an `info` hash that contains appdex summaries, instruments the
# application and browser appdex scores
Given an `info` hash that contains appdex summaries, instruments the
application and browser appdex scores
Given an ` info ` hash that contains appdex summaries instruments the application and browser appdex scores
def instrument_apdex(group, info)
      if info.include? 'application_summary'
        group.instrument 'response_time', info['application_summary']['response_time'], units: 'ms'
        group.instrument 'apdex_score', info['application_summary']['apdex_score']
      end
      if info.include? 'end_user_summary'
        group.group 'browser' do |group|
          group.instrument 'response_time', info['end_user_summary']['response_time'], units: 's'
          group.instrument 'apdex_score', info['end_user_summary']['apdex_score']
        end
      end
    end
def instrument_apdex ( group , info ) if info . include? 'application_summary' group . instrument 'response_time' , info [ 'application_summary' ] [ 'response_time' ] , units : 'ms' group . instrument 'apdex_score' , info [ 'application_summary' ] [ 'apdex_score' ] end if info . include? 'end_user_summary' group . group 'browser' do | group | group . instrument 'response_time' , info [ 'end_user_summary' ] [ 'response_time' ] , units : 's' group . instrument 'apdex_score' , info [ 'end_user_summary' ] [ 'apdex_score' ] end end end
Given an `info` hash that contains appdex summaries, instruments the
application and browser appdex scores
Given an ` info ` hash that contains appdex summaries instruments the application and browser appdex scores
group
info