Sha256: 4a90b45618f85b9223d94b7e7667fa34b26b5f437d7b46d99af67241a35cdd51
Contents?: true
Size: 767 Bytes
Versions: 5
Compression:
Stored size: 767 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. require 'new_relic/agent/datastores/mongo/metric_translator' module NewRelic module TestHelpers module MongoMetricBuilder def build_test_metrics(name, request_type = :web) NewRelic::Agent::Datastores::Mongo::MetricTranslator.build_metrics( name, @collection_name, request_type ) end def metrics_with_attributes(metrics, attributes = { :call_count => 1 }) metric_attributes = {} metrics.each do |metric| metric_attributes[metric] = attributes end metric_attributes end end end end
Version data entries
5 entries across 5 versions & 1 rubygems