Sha256: ad6c13af8140ce4b85e820ec9154eb4053045334f0185b6f8f9f2335f82f4927
Contents?: true
Size: 374 Bytes
Versions: 4
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true module DDMetrics class Counter < Metric def increment(label) validate_label(label) basic_metric_for(label, BasicCounter).increment end def get(label) validate_label(label) basic_metric_for(label, BasicCounter).value end def to_s DDMetrics::Printer.new.counter_to_s(self) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ddmetrics-1.1.0 | lib/ddmetrics/counter.rb |
ddmetrics-1.0.1 | lib/ddmetrics/counter.rb |
ddmetrics-1.0.0 | lib/ddmetrics/counter.rb |
ddmetrics-1.0.0rc1 | lib/ddmetrics/counter.rb |