Method: Wavefront::Write#raw
- Defined in:
- lib/wavefront-sdk/write.rb
#raw(points, openclose = manage_conn) ⇒ Object
Send raw data to a Wavefront proxy, optionally automatically opening and closing the connection. (Or not, if that does not make sense in the context of the writer.)
181 182 183 184 185 186 187 188 189 |
# File 'lib/wavefront-sdk/write.rb', line 181 def raw(points, openclose = manage_conn) writer.open if openclose && writer.respond_to?(:open) begin [points].flatten.each { |p| writer.send_point(p) } ensure writer.close if openclose && writer.respond_to?(:close) end end |