Class: ScoutSignalfx::PeriodicCallback

Inherits:
Object
  • Object
show all
Defined in:
lib/scout_signalfx/periodic_callback.rb

Overview

This is ran after each reporting period (once per-minute).

Instance Method Summary collapse

Instance Method Details

#call(reporting_period, metadata) ⇒ Object


4
5
6
7
8
9
10
11
12
13
# File 'lib/scout_signalfx/periodic_callback.rb', line 4

def call(reporting_period, )
  @reporting_period = reporting_period
  @metadata = 

  return if controller_metrics.empty?
  ScoutSignalfx.signalfx_client.send(
    gauges: guages,
    counters: counters,
  )
end