Sha256: 41faa85bdbf3e9a152bbc7b5fac276141aff541c323ff75874b5cf3e1a2f8645

Contents?: true

Size: 211 Bytes

Versions: 8

Compression:

Stored size: 211 Bytes

Contents

module PromMultiProc
  class Counter < Collector
    def inc(labels = {})
      write("inc".freeze, 1, labels)
    end

    def add(value, labels = {})
      write("add".freeze, value, labels)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
prom_multi_proc_rb-0.1.7 lib/prom_multi_proc/counter.rb
prom_multi_proc_rb-0.1.6 lib/prom_multi_proc/counter.rb
prom_multi_proc_rb-0.1.5 lib/prom_multi_proc/counter.rb
prom_multi_proc_rb-0.1.4 lib/prom_multi_proc/counter.rb
prom_multi_proc_rb-0.1.3 lib/prom_multi_proc/counter.rb
prom_multi_proc_rb-0.1.2 lib/prom_multi_proc/counter.rb
prom_multi_proc_rb-0.1.1 lib/prom_multi_proc/counter.rb
prom_multi_proc_rb-0.1.0 lib/prom_multi_proc/counter.rb