lib/sensu/client/process.rb
def publish_keepalive
        payload = keepalive_payload
        @logger.debug("publishing keepalive", :payload => payload)
        @transport.publish(:direct, "keepalives", Sensu::JSON.dump(payload)) do |info|
          if info[:error]
            @logger.error("failed to publish keepalive", {
              :payload => payload,
              :error => info[:error].to_s
            })
          end
        end
      end
# Publish a Sensu client keepalive to the transport for
# processing. JSON serialization is used for transport messages.
Publish a Sensu client keepalive to the transport for
processing. JSON serialization is used for transport messages.
Publish a Sensu client keepalive to the transport for processing . JSON serialization is used for transport messages .
def publish_keepalive
        payload = keepalive_payload
        @logger.debug("publishing keepalive", :payload => payload)
        @transport.publish(:direct, "keepalives", Sensu::JSON.dump(payload)) do |info|
          if info[:error]
            @logger.error("failed to publish keepalive", {
              :payload => payload,
              :error => info[:error].to_s
            })
          end
        end
      end
def publish_keepalive payload = keepalive_payload @logger . debug ( "publishing keepalive" , :payload => payload ) @transport . publish ( :direct , "keepalives" , Sensu :: JSON . dump ( payload ) ) do | info | if info [ :error ] @logger . error ( "failed to publish keepalive" , { :payload => payload , :error => info [ :error ] . to_s } ) end end end
Publish a Sensu client keepalive to the transport for
processing.
Publish a Sensu client keepalive to the transport for processing .