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.



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

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

Instance Attribute Details

#distributed_tracing_monitorObject (readonly)



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

def distributed_tracing_monitor
  @distributed_tracing_monitor
end

#synthetics_monitorObject (readonly)



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

def synthetics_monitor
  @synthetics_monitor
end