Module: Statter
- Defined in:
- lib/statter.rb,
lib/statter/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.2.2"
Class Method Summary collapse
- .config {|Config.instance| ... } ⇒ Object
- .send_counter(name, data) ⇒ Object
- .send_value(name, data) ⇒ Object
Class Method Details
.config {|Config.instance| ... } ⇒ Object
8 9 10 |
# File 'lib/statter.rb', line 8 def config yield Config.instance end |
.send_counter(name, data) ⇒ Object
12 13 14 15 |
# File 'lib/statter.rb', line 12 def send_counter(name, data) agent = Agent.with_config(Config.instance) agent.send_data(:counter, name, data) end |
.send_value(name, data) ⇒ Object
17 18 19 20 |
# File 'lib/statter.rb', line 17 def send_value(name, data) agent = Agent.with_config(Config.instance) agent.send_data(:value, name, data) end |