Module: NewRelic::Agent::PayloadMetricMapping
- Defined in:
- lib/new_relic/agent/payload_metric_mapping.rb
Constant Summary collapse
- SPEC_MAPPINGS =
this logic was extracted from TransactionEventAggregator for reuse by the ErrorEventAggregator
{}
Class Method Summary collapse
Class Method Details
.append_mapped_metrics(txn_metrics, sample) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/new_relic/agent/payload_metric_mapping.rb', line 15 def append_mapped_metrics(txn_metrics, sample) if txn_metrics SPEC_MAPPINGS.each do |(name, extracted_values)| if txn_metrics.has_key?(name) stat = txn_metrics[name] extracted_values.each do |value_name, key_name| sample[key_name] = stat.send(value_name) end end end end end |