Class: Fluent::Plugin::ServiceDiscovery::Service
- Inherits:
-
Struct
- Object
- Struct
- Fluent::Plugin::ServiceDiscovery::Service
- Defined in:
- lib/fluent/plugin/service_discovery.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#name ⇒ Object
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
-
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
-
#port ⇒ Object
Returns the value of attribute port.
-
#shared_key ⇒ Object
Returns the value of attribute shared_key.
-
#standby ⇒ Object
Returns the value of attribute standby.
-
#username ⇒ Object
Returns the value of attribute username.
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
34 35 36 |
# File 'lib/fluent/plugin/service_discovery.rb', line 34 def host @host end |
#name ⇒ Object
Returns the value of attribute name
34 35 36 |
# File 'lib/fluent/plugin/service_discovery.rb', line 34 def name @name end |
#password ⇒ Object
Returns the value of attribute password
34 35 36 |
# File 'lib/fluent/plugin/service_discovery.rb', line 34 def password @password end |
#plugin_name ⇒ Object
Returns the value of attribute plugin_name
34 35 36 |
# File 'lib/fluent/plugin/service_discovery.rb', line 34 def plugin_name @plugin_name end |
#port ⇒ Object
Returns the value of attribute port
34 35 36 |
# File 'lib/fluent/plugin/service_discovery.rb', line 34 def port @port end |
#shared_key ⇒ Object
Returns the value of attribute shared_key
34 35 36 |
# File 'lib/fluent/plugin/service_discovery.rb', line 34 def shared_key @shared_key end |
#standby ⇒ Object
Returns the value of attribute standby
34 35 36 |
# File 'lib/fluent/plugin/service_discovery.rb', line 34 def standby @standby end |
#username ⇒ Object
Returns the value of attribute username
34 35 36 |
# File 'lib/fluent/plugin/service_discovery.rb', line 34 def username @username end |
#weight ⇒ Object
Returns the value of attribute weight
34 35 36 |
# File 'lib/fluent/plugin/service_discovery.rb', line 34 def weight @weight end |
Instance Method Details
#discovery_id ⇒ Object
35 36 37 |
# File 'lib/fluent/plugin/service_discovery.rb', line 35 def discovery_id @discovery_id ||= Base64.encode64(to_h.to_s) end |