Class: Nomad::JobService

Inherits:
Response show all
Defined in:
lib/nomad/api/job.rb

Constant Summary

Constants inherited from Response

Response::BUILTIN_LOADERS

Instance Attribute Summary collapse

Method Summary

Methods inherited from Response

#==, decode, #initialize, #to_h

Constructor Details

This class inherits a constructor from Nomad::Response

Instance Attribute Details

#checksArray<JobServiceCheck> (readonly)

The service checks.

Returns:



874
875
876
# File 'lib/nomad/api/job.rb', line 874

field :Checks, as: :checks, load: ->(item) {
  Array(item).map { |i| JobServiceCheck.decode(i) }
}

#nameString (readonly)

The service name.

Returns:

  • (String)


859
# File 'lib/nomad/api/job.rb', line 859

field :Name, as: :name, load: :string_as_nil

#port_labelString (readonly)

The service port_label.

Returns:

  • (String)


869
# File 'lib/nomad/api/job.rb', line 869

field :PortLabel, as: :port_label, load: :string_as_nil

#tagsArray<String> (readonly)

The service tags.

Returns:

  • (Array<String>)


864
# File 'lib/nomad/api/job.rb', line 864

field :Tags, as: :tags, load: :array_of_strings