Method: NewRelic::Agent::Datastores::MetricHelper.metrics_for
- Defined in:
- lib/new_relic/agent/datastores/metric_helper.rb
permalink .metrics_for(product, operation, collection = nil, generic_product = nil, host = nil, port_path_or_id = nil) ⇒ Object
84 85 86 87 88 89 90 91 92 93 |
# File 'lib/new_relic/agent/datastores/metric_helper.rb', line 84 def self.metrics_for(product, operation, collection = nil, generic_product = nil, host = nil, port_path_or_id = nil) product, operation, collection = product_operation_collection_for(product, operation, collection, generic_product) # Order of these metrics matters--the first metric in the list will # be treated as the scoped metric in a bunch of different cases. metrics = unscoped_metrics_for(product, operation, collection, host, port_path_or_id) metrics.unshift(scoped_metric_for(product, operation, collection)) metrics end |