Sha256: 8467e267793a0344d7a420676d18cbe5c10774a359b0b20e5bc64d55fe5c6f23
Contents?: true
Size: 536 Bytes
Versions: 4
Compression:
Stored size: 536 Bytes
Contents
# frozen_string_literal: true module Riemann class State include Beefcake::Message optional :time, :int64, 1 optional :state, :string, 2 optional :service, :string, 3 optional :host, :string, 4 optional :description, :string, 5 optional :once, :bool, 6 repeated :tags, :string, 7 optional :ttl, :float, 8 optional :metric_f, :float, 15 def initialize super @time ||= Time.now.to_i end def metric @metric || metric_f end attr_writer :metric end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
riemann-client-1.2.1 | lib/riemann/state.rb |
riemann-client-1.2.0 | lib/riemann/state.rb |
riemann-client-1.1.0 | lib/riemann/state.rb |
riemann-client-1.0.1 | lib/riemann/state.rb |