Class: FFWD::Plugin::JSON::FrameConnection

Inherits:
Connection show all
Includes:
Logging
Defined in:
lib/ffwd/plugin/json.rb

Constant Summary

Constants inherited from Connection

Connection::EVENT_FIELDS, Connection::METRIC_FIELDS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Logging

included, #log

Methods inherited from Connection

#initialize, #read_event, #read_metric, #read_tags, #read_time, #receive_json

Methods inherited from Connection

#datasink=, #send_data

Constructor Details

This class inherits a constructor from FFWD::Plugin::JSON::Connection

Class Method Details

.plugin_typeObject



71
72
73
# File 'lib/ffwd/plugin/json.rb', line 71

def self.plugin_type
  "json_frame_in"
end

Instance Method Details

#receive_data(data) ⇒ Object



75
76
77
78
79
# File 'lib/ffwd/plugin/json.rb', line 75

def receive_data data
  receive_json data
rescue => e
  log.error "Failed to receive JSON: #{data}: #{e}"
end