Sha256: 86cb51c49d514fda3369c484ff311b6273c74f6425df25f876d35cd73f680524
Contents?: true
Size: 818 Bytes
Versions: 4
Compression:
Stored size: 818 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::MetricHelper.metrics_for("MongoDB", 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
4 entries across 4 versions & 1 rubygems