Module: NewRelic::Agent::Datastores::Mongo
- Defined in:
- lib/new_relic/agent/datastores/mongo.rb,
lib/new_relic/agent/datastores/mongo/event_formatter.rb,
lib/new_relic/agent/datastores/mongo/metric_translator.rb
Defined Under Namespace
Modules: EventFormatter, MetricTranslator
Class Method Summary
collapse
Class Method Details
.is_monitoring_enabled? ⇒ Boolean
19
20
21
|
# File 'lib/new_relic/agent/datastores/mongo.rb', line 19
def self.is_monitoring_enabled?
defined?(::Mongo::Monitoring) end
|
.is_supported_version? ⇒ Boolean
9
10
11
|
# File 'lib/new_relic/agent/datastores/mongo.rb', line 9
def self.is_supported_version?
defined?(::Mongo) && is_monitoring_enabled?
end
|
.is_unsupported_2x? ⇒ Boolean
13
14
15
16
17
|
# File 'lib/new_relic/agent/datastores/mongo.rb', line 13
def self.is_unsupported_2x?
defined?(::Mongo::VERSION) &&
Gem::Version.new(::Mongo::VERSION).segments[0] == 2 &&
!self.is_monitoring_enabled?
end
|