Class: Nomad::TaskEvent

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

#disk_limitSize (readonly)

The disk limit of the task event

Returns:



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

field :DiskLimit, as: :disk_limit, load: :int_as_size_in_megabytes

#disk_sizeSize (readonly)

The disk size of the task event

Returns:



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

field :DiskSize, as: :disk_size, load: :int_as_size_in_megabytes

#download_errorString (readonly)

The download error of the task event

Returns:

  • (String)


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

field :DownloadError, as: :download_error, load: :string_as_nil

#driver_errorString (readonly)

The driver error of the task event

Returns:

  • (String)


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

field :DriverError, as: :driver_error, load: :string_as_nil

#driver_messageString (readonly)

The driver message of the task event

Returns:

  • (String)


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

field :DriverMessage, as: :driver_message, load: :string_as_nil

#exit_codeInteger (readonly)

The exit_code of the task event

Returns:

  • (Integer)


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

field :ExitCode, as: :exit_code

#failed_siblingString (readonly)

The failed sibling of the task event

Returns:

  • (String)


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

field :FailedSibling, as: :failed_sibling, load: :string_as_nil

#fails_taskBoolean (readonly)

Whether the task failed

Returns:

  • (Boolean)


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

field :FailsTask, as: :fails_task

#kill_errorString (readonly)

The kill error of the task event

Returns:

  • (String)


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

field :KillError, as: :kill_error, load: :string_as_nil

#kill_reasonString (readonly)

The kill_reason of the task event

Returns:

  • (String)


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

field :KillReason, as: :kill_reason, load: :string_as_nil

#kill_timeoutDuration (readonly)

The kill timeout of the task event

Returns:



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

field :KillTimeout, as: :kill_timeout, load: :nanoseconds_as_duration

#messageString (readonly)

The message of the task event

Returns:

  • (String)


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

field :Message, as: :message, load: :string_as_nil

#restart_reasonString (readonly)

The reason for the restart of the task event

Returns:

  • (String)


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

field :RestartReason, as: :restart_reason, load: :string_as_nil

#setup_errorString (readonly)

The setup error of the task event

Returns:

  • (String)


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

field :SetupError, as: :setup_error, load: :string_as_nil

#signalInteger (readonly)

The signal of the task event

Returns:

  • (Integer)


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

field :Signal, as: :signal

#start_delayString (readonly)

The start delay of the task event

Returns:

  • (String)


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

field :StartDelay, as: :start_delay, load: :nanoseconds_as_duration

#task_signalString (readonly)

The task signal of the task event

Returns:

  • (String)


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

field :TaskSignal, as: :task_signal, load: :string_as_nil

#task_signal_reasonString (readonly)

The task signal reason of the task event

Returns:

  • (String)


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

field :TaskSignalReason, as: :task_signal_reason, load: :string_as_nil

#timeString (readonly)

The time of the task event

Returns:

  • (String)


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

field :Time, as: :time, load: :nanoseconds_as_timestamp

#typeString (readonly)

The type of the task event

Returns:

  • (String)


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

field :Type, as: :type, load: :string_as_nil

#validation_errorString (readonly)

The validation error of the task event

Returns:

  • (String)


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

field :ValidationError, as: :validation_error, load: :string_as_nil

#vault_errorString (readonly)

The vault error of the task event

Returns:

  • (String)


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

field :VaultError, as: :vault_error, load: :string_as_nil