Sha256: a6eb864d1383c042e3bdcad7a7992e82f4bb839bdd2bd0533fbb80c5c44f24db
Contents?: true
Size: 744 Bytes
Versions: 4
Compression:
Stored size: 744 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) metric_attributes = {} metrics.each do |metric| metric_attributes[metric] = attributes end metric_attributes end end end end
Version data entries
4 entries across 4 versions & 1 rubygems