Class: Fluent::Plugin::ServiceDiscovery::Service

Inherits:
Struct
  • Object
show all
Defined in:
lib/fluent/plugin/service_discovery.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



34
35
36
# File 'lib/fluent/plugin/service_discovery.rb', line 34

def host
  @host
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



34
35
36
# File 'lib/fluent/plugin/service_discovery.rb', line 34

def name
  @name
end

#passwordObject

Returns the value of attribute password

Returns:

  • (Object)

    the current value of password



34
35
36
# File 'lib/fluent/plugin/service_discovery.rb', line 34

def password
  @password
end

#plugin_nameObject

Returns the value of attribute plugin_name

Returns:

  • (Object)

    the current value of plugin_name



34
35
36
# File 'lib/fluent/plugin/service_discovery.rb', line 34

def plugin_name
  @plugin_name
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



34
35
36
# File 'lib/fluent/plugin/service_discovery.rb', line 34

def port
  @port
end

#shared_keyObject

Returns the value of attribute shared_key

Returns:

  • (Object)

    the current value of shared_key



34
35
36
# File 'lib/fluent/plugin/service_discovery.rb', line 34

def shared_key
  @shared_key
end

#standbyObject

Returns the value of attribute standby

Returns:

  • (Object)

    the current value of standby



34
35
36
# File 'lib/fluent/plugin/service_discovery.rb', line 34

def standby
  @standby
end

#usernameObject

Returns the value of attribute username

Returns:

  • (Object)

    the current value of username



34
35
36
# File 'lib/fluent/plugin/service_discovery.rb', line 34

def username
  @username
end

#weightObject

Returns the value of attribute weight

Returns:

  • (Object)

    the current value of weight



34
35
36
# File 'lib/fluent/plugin/service_discovery.rb', line 34

def weight
  @weight
end

Instance Method Details

#discovery_idObject



35
36
37
# File 'lib/fluent/plugin/service_discovery.rb', line 35

def discovery_id
  @discovery_id ||= Base64.encode64(to_h.to_s)
end