vendor/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.4.245/lib/new_relic/agent/new_relic_service.rb
def fill_metric_id_cache(pairs_of_specs_and_ids)
        Array(pairs_of_specs_and_ids).each do |metric_spec_hash, metric_id|
          metric_spec = MetricSpec.new(metric_spec_hash['name'],
                                       metric_spec_hash['scope'])
          metric_id_cache[metric_spec] = metric_id
        end
      rescue => e
        # If we've gotten this far, we don't want this error to propagate and
        # make this post appear to have been non-successful, which would trigger
        # re-aggregation of the same metric data into the next post, so just log
        NewRelic::Agent.logger.error("Failed to fill metric ID cache from response, error details follow ", e)
      end
# takes an array of arrays of spec and id, adds it into the
# metric cache so we can save the collector some work by
# sending integers instead of strings the next time around
takes an array of arrays of spec and id, adds it into the
metric cache so we can save the collector some work by
sending integers instead of strings the next time around
takes an array of arrays of spec and id adds it into the metric cache so we can save the collector some work by sending integers instead of strings the next time around
def fill_metric_id_cache(pairs_of_specs_and_ids)
        Array(pairs_of_specs_and_ids).each do |metric_spec_hash, metric_id|
          metric_spec = MetricSpec.new(metric_spec_hash['name'],
                                       metric_spec_hash['scope'])
          metric_id_cache[metric_spec] = metric_id
        end
      rescue => e
        NewRelic::Agent.logger.error("Failed to fill metric ID cache from response, error details follow ", e)
      end
def fill_metric_id_cache ( pairs_of_specs_and_ids ) Array ( pairs_of_specs_and_ids ) . each do | metric_spec_hash , metric_id | metric_spec = MetricSpec . new ( metric_spec_hash [ 'name' ] , metric_spec_hash [ 'scope' ] ) metric_id_cache [ metric_spec ] = metric_id end rescue => e NewRelic :: Agent . logger . error ( "Failed to fill metric ID cache from response, error details follow " , e ) end
takes an array of arrays of spec and id, adds it into the
metric cache so we can save the collector some work by
sending integers instead of strings the next time around
takes an array of arrays of spec and id adds it into the metric cache so we can save the collector some work by sending integers instead of strings the next time around
# If we've gotten this far, we don't want this error to propagate and # make this post appear to have been non-successful, which would trigger # re-aggregation of the same metric data into the next post, so just log
pairs_of_specs_and_ids