Method: Computation#initialize
- Defined in:
- lib/signalfx/signalflow/computation.rb
#initialize(handle, attach_func, stop_func) ⇒ Computation
Returns a new instance of Computation.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/signalfx/signalflow/computation.rb', line 23 def initialize(handle, attach_func, stop_func) @handle = handle @channel = nil @attach_func = attach_func @stop_func = stop_func @metadata = {} # We can't have a handle until the job is started so we must be at least # at this state @state = STARTED_STATE @pending_messages = Queue.new @batch_size_known = false @expected_batch_size = 0 @current_batch_data = nil @current_batch_size = nil @last_timestamp_seen = nil @resolution = nil @input_timeseries_count = nil end |