Sha256: 322d2249d4024c8176d05721186345b9c35c00e73873f2c63391aa9067c9ffa9
Contents?: true
Size: 724 Bytes
Versions: 2
Compression:
Stored size: 724 Bytes
Contents
module NdrStats # The supported types of measurement. Currently just mirrors what # the statsd format supports, with the addition of tagging through # DataDog's extension to the serialisation format. module Stats def timing(name, value, **tags) return unless configured? adaptor.timing(name, value, tags: tags) end def time(name, **tags, &block) return yield unless configured? adaptor.time(name, tags: tags, &block) end def count(name, by = 1, **tags) return unless configured? adaptor.count(name, by, tags: tags) end def gauge(name, value, **tags) return unless configured? adaptor.gauge(name, value, tags: tags) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ndr_stats-0.2.2 | lib/ndr_stats/stats.rb |
ndr_stats-0.2.1 | lib/ndr_stats/stats.rb |