Module: HGAPI
- Defined in:
- lib/hg_api.rb,
lib/hg_api/client.rb,
lib/hg_api/version.rb
Overview
Usage example:
client = HGAPI.new
client.metric("signup", 1)
client.metric("load", 100, via: :tcp)
Default transport is udp, it can be changed by passing options hash while constructing client:
client = HGAPI.new(via: :http)
client.metric("this.metric.send.over.http", 5)
Supported transports: udp, tcp, http.
API KEY must be present as environmental variable HOSTED_GRAPHITE_API_KEY.
Defined Under Namespace
Classes: Client
Constant Summary collapse
- VERSION =
"0.0.3"