Sha256: c72185d44fc9f07a85639786e467bb19968b56eadaab2c1012898d2bc2a3748f
Contents?: true
Size: 726 Bytes
Versions: 17
Compression:
Stored size: 726 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) NewRelic::Agent::Datastores::Mongo::MetricTranslator.build_metrics( name, @collection_name ) end def metrics_with_attributes(metrics, attributes = { :call_count => 1 }) metric_attributes = {} metrics.each do |metric| metric_attributes[metric] = attributes.dup end metric_attributes end end end end
Version data entries
17 entries across 17 versions & 2 rubygems