Class: Nomad::AgentMember
Constant Summary collapse
- STATUS_ALIVE =
The text for an “alive” member
"alive".freeze
Constants inherited from Response
Instance Attribute Summary collapse
-
#address ⇒ String
readonly
The address of the member.
-
#delegate_cur ⇒ Integer
readonly
The delegate_cur.
-
#delegate_max ⇒ Integer
readonly
The delegate_max.
-
#delegate_min ⇒ Integer
readonly
The delegate_min.
-
#name ⇒ String
readonly
The name of the member.
-
#port ⇒ Integer
readonly
The rpc port of the member.
-
#protocol_cur ⇒ Integer
readonly
The protocol_cur.
-
#protocol_max ⇒ Integer
readonly
The protocol_max.
-
#protocol_min ⇒ Integer
readonly
The protocol_min.
-
#status ⇒ String
readonly
The status.
-
#tags ⇒ Hash<String,String>
readonly
The tags of the member (arbitary).
Instance Method Summary collapse
-
#alive? ⇒ Boolean
Determines if this member is alive.
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Nomad::Response
Instance Attribute Details
#address ⇒ String (readonly)
The address of the member
145 |
# File 'lib/nomad/api/agent.rb', line 145 field :Addr, as: :address |
#delegate_cur ⇒ Integer (readonly)
The delegate_cur
190 |
# File 'lib/nomad/api/agent.rb', line 190 field :DelegateCur, as: :delegate_cur |
#delegate_max ⇒ Integer (readonly)
The delegate_max
185 |
# File 'lib/nomad/api/agent.rb', line 185 field :DelegateMax, as: :delegate_max |
#delegate_min ⇒ Integer (readonly)
The delegate_min
180 |
# File 'lib/nomad/api/agent.rb', line 180 field :DelegateMin, as: :delegate_min |
#name ⇒ String (readonly)
The name of the member
140 |
# File 'lib/nomad/api/agent.rb', line 140 field :Name, as: :name |
#port ⇒ Integer (readonly)
The rpc port of the member
150 |
# File 'lib/nomad/api/agent.rb', line 150 field :Port, as: :port |
#protocol_cur ⇒ Integer (readonly)
The protocol_cur
175 |
# File 'lib/nomad/api/agent.rb', line 175 field :ProtocolCur, as: :protocol_cur |
#protocol_max ⇒ Integer (readonly)
The protocol_max
170 |
# File 'lib/nomad/api/agent.rb', line 170 field :ProtocolMax, as: :protocol_max |
#protocol_min ⇒ Integer (readonly)
The protocol_min
165 |
# File 'lib/nomad/api/agent.rb', line 165 field :ProtocolMin, as: :protocol_min |
#status ⇒ String (readonly)
The status
160 |
# File 'lib/nomad/api/agent.rb', line 160 field :Status, as: :status |
#tags ⇒ Hash<String,String> (readonly)
The tags of the member (arbitary)
155 |
# File 'lib/nomad/api/agent.rb', line 155 field :Tags, as: :tags, load: :stringify_keys |
Instance Method Details
#alive? ⇒ Boolean
Determines if this member is alive.
195 196 197 |
# File 'lib/nomad/api/agent.rb', line 195 def alive? self.status == STATUS_ALIVE end |