Class: NewRelic::Agent::Monitors

Inherits:
Object
  • Object
show all
Defined in:
lib/new_relic/agent/monitors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(events) ⇒ Monitors

Returns a new instance of Monitors.



19
20
21
22
23
# File 'lib/new_relic/agent/monitors.rb', line 19

def initialize(events)
  @synthetics_monitor = NewRelic::Agent::SyntheticsMonitor.new(events)
  @cross_app_monitor = NewRelic::Agent::DistributedTracing::CrossAppMonitor.new(events)
  @distributed_tracing_monitor = NewRelic::Agent::DistributedTracing::Monitor.new(events)
end

Instance Attribute Details

#cross_app_monitorObject (readonly)



15
16
17
# File 'lib/new_relic/agent/monitors.rb', line 15

def cross_app_monitor
  @cross_app_monitor
end

#distributed_tracing_monitorObject (readonly)



17
18
19
# File 'lib/new_relic/agent/monitors.rb', line 17

def distributed_tracing_monitor
  @distributed_tracing_monitor
end

#synthetics_monitorObject (readonly)



16
17
18
# File 'lib/new_relic/agent/monitors.rb', line 16

def synthetics_monitor
  @synthetics_monitor
end