Sha256: 47468503ccfa97b4700c530c7e5daa4b1576bd0a449f37d72617a2d53a7e32fe

Contents?: true

Size: 547 Bytes

Versions: 8

Compression:

Stored size: 547 Bytes

Contents

module PromMultiProc
  class Gauge < Collector
    def set(value, labels = {})
      write("set".freeze, value, labels)
    end

    def inc(labels = {})
      write("inc".freeze, 1, labels)
    end

    def dec(labels = {})
      write("dec".freeze, 1, labels)
    end

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

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

    def set_to_current_time(labels = {})
      write("set_to_current_time".freeze, 1, 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/gauge.rb
prom_multi_proc_rb-0.1.6 lib/prom_multi_proc/gauge.rb
prom_multi_proc_rb-0.1.5 lib/prom_multi_proc/gauge.rb
prom_multi_proc_rb-0.1.4 lib/prom_multi_proc/gauge.rb
prom_multi_proc_rb-0.1.3 lib/prom_multi_proc/gauge.rb
prom_multi_proc_rb-0.1.2 lib/prom_multi_proc/gauge.rb
prom_multi_proc_rb-0.1.1 lib/prom_multi_proc/gauge.rb
prom_multi_proc_rb-0.1.0 lib/prom_multi_proc/gauge.rb