Class: HostedGraphite::HTTP
- Defined in:
- lib/hosted_graphite/protocols/http.rb
Constant Summary
Constants inherited from Protocol
Protocol::API_URI, Protocol::HOST, Protocol::PORT
Instance Method Summary collapse
-
#initialize ⇒ HTTP
constructor
A new instance of HTTP.
- #send_message(message) ⇒ Object
Methods inherited from Protocol
Constructor Details
Instance Method Details
#send_message(message) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/hosted_graphite/protocols/http.rb', line 12 def () req = Net::HTTP::Post.new(@uri.request_uri) req.basic_auth api_key, nil req.body = @http.request(req) end |