Class: Nomad::JobService
Constant Summary
Constants inherited from Response
Instance Attribute Summary collapse
-
#checks ⇒ Array<JobServiceCheck>
readonly
The service checks.
-
#name ⇒ String
readonly
The service name.
-
#port_label ⇒ String
readonly
The service port_label.
-
#tags ⇒ Array<String>
readonly
The service tags.
Method Summary
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Nomad::Response
Instance Attribute Details
#checks ⇒ Array<JobServiceCheck> (readonly)
The service checks.
874 875 876 |
# File 'lib/nomad/api/job.rb', line 874 field :Checks, as: :checks, load: ->(item) { Array(item).map { |i| JobServiceCheck.decode(i) } } |
#name ⇒ String (readonly)
The service name.
859 |
# File 'lib/nomad/api/job.rb', line 859 field :Name, as: :name, load: :string_as_nil |
#port_label ⇒ String (readonly)
The service port_label.
869 |
# File 'lib/nomad/api/job.rb', line 869 field :PortLabel, as: :port_label, load: :string_as_nil |
#tags ⇒ Array<String> (readonly)
The service tags.
864 |
# File 'lib/nomad/api/job.rb', line 864 field :Tags, as: :tags, load: :array_of_strings |