Sha256: 82ffd8d0b512750d8752b45a5b41e950df5be4dacdea3b67da4ec8c4c0e5e1ff
Contents?: true
Size: 378 Bytes
Versions: 1
Compression:
Stored size: 378 Bytes
Contents
# frozen_string_literal: true module DDTelemetry 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 DDTelemetry::Printer.new.counter_to_s(self) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ddtelemetry-1.0.0a3 | lib/ddtelemetry/counter.rb |