【文件属性】:
文件名称:statsd:Ruby Statsd客户端,它不是Python示例代码的直接端口。 因为Ruby不是Python
文件大小:15KB
文件格式:ZIP
更新时间:2021-03-01 19:30:49
Ruby
statsd-ruby CI:
的Ruby客户端
安装
捆绑器:
gem "statsd-ruby"
基本用法
# Set up a global Statsd client for a server on localhost:9125
$statsd = Statsd . new 'localhost' , 9125
# Set up a global Statsd client for a server on IPv6 port 9125
$statsd = Statsd . new '::1' , 9125
# Send some stats
$statsd . increment 'garets'
$statsd . timing 'glork' , 320
$statsd . gauge 'bork' , 100
# Use {#time} to time the ex
【文件预览】:
statsd-master
----.github()
--------workflows()
----LICENSE.txt(1KB)
----.document(55B)
----lib()
--------statsd()
--------statsd-ruby.rb(17B)
--------statsd.rb(15KB)
----Gemfile(38B)
----README.rdoc(2KB)
----spec()
--------statsd_admin_spec.rb(3KB)
--------statsd_spec.rb(16KB)
--------helper.rb(575B)
----Rakefile(296B)
----.gitignore(779B)
----statsd-ruby.gemspec(797B)