Sha256: 29e8d5ae90d6fb9bbe5d8ef327bd57845d541dd027141a0f918b4a793b3e4092
Contents?: true
Size: 980 Bytes
Versions: 3
Compression:
Stored size: 980 Bytes
Contents
# Measures Client Ruby ## Installation Add this line to your application's Gemfile: ```ruby gem "measures" ``` And then execute: ```bash $ bundle ``` Or install it yourself as: ```bash $ gem install measures ``` ## Usage ```ruby require "measures" # Creates the transport form (UDP/HTTP/...) transport = Measures::Transport::UDP.new("logstash.foo.bar", 30) # Creates the measure client instance measures = Measures::Client.new(transport, "my-app") # Sends count metric measures.count("my_count_metric") # Sends count metric with additional data measures.count("my_count_metric", { "foo" => "bar" }) # Sends time metric measures.time("my_time_metric") do # Some long operations sleep(10) end # Sends time metric with additional data measures.time("my_time_metric", { "foo" => "bar" }) do # Some long operations sleep(10) end ``` ## Measures in other languages - [Python](https://github.com/globocom/measures) - [Go](https://github.com/scorphus/measures)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
measures-3.0.0 | README.md |
measures-2.1.0 | README.md |
measures-2.0.0 | README.md |