lib/sensu/server/process.rb
def create_client(name)
        {
          :name => name,
          :address => "unknown",
          :subscriptions => ["client:#{name}"],
          :keepalives => false,
          :version => VERSION,
          :timestamp => Time.now.to_i
        }
      end
# Create a blank client (data). Only the client name is known,
# the other client attributes must be updated via the API (POST
# /clients:client). Dynamically created clients and those
# updated via the API will have client keepalives disabled by
# default, `:keepalives` is set to `false`.
#
# @param name [String] to use for the client.
# @return [Hash] client.
Create a blank client (data). Only the client name is known,
the other client attributes must be updated via the API (POST
clients:client). Dynamically created clients and those
updated via the API will have client keepalives disabled by
default, `:keepalives` is set to `false`.
Create a blank client ( data ) . Only the client name is known the other client attributes must be updated via the API ( POST clients : client ) . Dynamically created clients and those updated via the API will have client keepalives disabled by default ` : keepalives ` is set to ` false ` .
def create_client(name)
        {
          :name => name,
          :address => "unknown",
          :subscriptions => ["client:#{name}"],
          :keepalives => false,
          :version => VERSION,
          :timestamp => Time.now.to_i
        }
      end
def create_client ( name ) { :name => name , :address => "unknown" , :subscriptions => [ "client:#{name}" ] , :keepalives => false , :version => VERSION , :timestamp => Time . now . to_i } end
Create a blank client (data).
Create a blank client ( data ) .
None
Hash
name
to use for the client.
to use for the client .