Class: HostStatus::NewRelic::APM
- Inherits:
-
Application::Proxy
- Object
- Application::Proxy
- HostStatus::NewRelic::APM
- Defined in:
- lib/host_status/new_relic/apm.rb
Constant Summary collapse
- DEFAULTS =
{ response_time: nil, error_rate: nil, instance_count: nil, apdex_score: nil, }.freeze
Instance Method Summary collapse
Constructor Details
This class inherits a constructor from HostStatus::Application::Proxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HostStatus::Application::Proxy
Instance Method Details
#transform_arguments(**opts) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/host_status/new_relic/apm.rb', line 16 def transform_arguments(**opts) Hashie::Extensions::SymbolizeKeys.symbolize_keys!(opts) = DEFAULTS.merge(opts) [:latency_p50] = .delete(:response_time) [:errors] = .delete(:error_rate) [:process_count] = .delete(:instance_count) end |