lib/sensu/client/process.rb
def deregister
        check = {:handler => "deregistration", :status => 1}
        if @settings[:client].has_key?(:deregistration)
          check = deep_merge(check, @settings[:client][:deregistration])
        end
        timestamp = Time.now.to_i
        overrides = {
          :name => "deregistration",
          :output => "client initiated deregistration",
          :issued => timestamp,
          :executed => timestamp
        }
        publish_check_result(check.merge(overrides))
      end
# Create a check result intended for deregistering a client.
# Client definitions may contain `:deregistration` configuration,
# containing custom attributes and handler information. By
# default, the deregistration check result sets the `:handler` to
# `deregistration`. If the client provides its own `:deregistration`
# configuration, it's deep merged with the defaults. The
# check `:name`, `:output`, `:issued`, and `:executed` values
# are always overridden to guard against an invalid definition.
Create a check result intended for deregistering a client.
Client definitions may contain `:deregistration` configuration,
containing custom attributes and handler information. By
default, the deregistration check result sets the `:handler` to
`deregistration`. If the client provides its own `:deregistration`
configuration, it's deep merged with the defaults.
Create a check result intended for deregistering a client . Client definitions may contain ` : deregistration ` configuration containing custom attributes and handler information . By default the deregistration check result sets the ` : handler ` to ` deregistration ` . If the client provides its own ` : deregistration ` configuration it ' s deep merged with the defaults .
def deregister
        check = {:handler => "deregistration", :status => 1}
        if @settings[:client].has_key?(:deregistration)
          check = deep_merge(check, @settings[:client][:deregistration])
        end
        timestamp = Time.now.to_i
        overrides = {
          :name => "deregistration",
          :output => "client initiated deregistration",
          :issued => timestamp,
          :executed => timestamp
        }
        publish_check_result(check.merge(overrides))
      end
def deregister check = { :handler => "deregistration" , :status => 1 } if @settings [ :client ] . has_key? ( :deregistration ) check = deep_merge ( check , @settings [ :client ] [ :deregistration ] ) end timestamp = Time . now . to_i overrides = { :name => "deregistration" , :output => "client initiated deregistration" , :issued => timestamp , :executed => timestamp } publish_check_result ( check . merge ( overrides ) ) end
Create a check result intended for deregistering a client.
Create a check result intended for deregistering a client .