Class: Google::Apis::LifesciencesV2beta::Event
- Inherits:
-
Object
- Object
- Google::Apis::LifesciencesV2beta::Event
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/lifesciences_v2beta/classes.rb,
lib/google/apis/lifesciences_v2beta/representations.rb,
lib/google/apis/lifesciences_v2beta/representations.rb
Overview
Carries information about events that occur during pipeline execution.
Instance Attribute Summary collapse
-
#container_killed ⇒ Google::Apis::LifesciencesV2beta::ContainerKilledEvent
An event generated when a container is forcibly terminated by the worker.
-
#container_started ⇒ Google::Apis::LifesciencesV2beta::ContainerStartedEvent
An event generated when a container starts.
-
#container_stopped ⇒ Google::Apis::LifesciencesV2beta::ContainerStoppedEvent
An event generated when a container exits.
-
#delayed ⇒ Google::Apis::LifesciencesV2beta::DelayedEvent
An event generated whenever a resource limitation or transient error delays execution of a pipeline that was otherwise ready to run.
-
#description ⇒ String
A human-readable description of the event.
-
#failed ⇒ Google::Apis::LifesciencesV2beta::FailedEvent
An event generated when the execution of a pipeline has failed.
-
#pull_started ⇒ Google::Apis::LifesciencesV2beta::PullStartedEvent
An event generated when the worker starts pulling an image.
-
#pull_stopped ⇒ Google::Apis::LifesciencesV2beta::PullStoppedEvent
An event generated when the worker stops pulling an image.
-
#timestamp ⇒ String
The time at which the event occurred.
-
#unexpected_exit_status ⇒ Google::Apis::LifesciencesV2beta::UnexpectedExitStatusEvent
An event generated when the execution of a container results in a non-zero exit status that was not otherwise ignored.
-
#worker_assigned ⇒ Google::Apis::LifesciencesV2beta::WorkerAssignedEvent
An event generated after a worker VM has been assigned to run the pipeline.
-
#worker_released ⇒ Google::Apis::LifesciencesV2beta::WorkerReleasedEvent
An event generated when the worker VM that was assigned to the pipeline has been released (deleted).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Event
constructor
A new instance of Event.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Event
Returns a new instance of Event.
535 536 537 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 535 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container_killed ⇒ Google::Apis::LifesciencesV2beta::ContainerKilledEvent
An event generated when a container is forcibly terminated by the worker.
Currently, this only occurs when the container outlives the timeout specified
by the user.
Corresponds to the JSON property containerKilled
470 471 472 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 470 def container_killed @container_killed end |
#container_started ⇒ Google::Apis::LifesciencesV2beta::ContainerStartedEvent
An event generated when a container starts.
Corresponds to the JSON property containerStarted
475 476 477 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 475 def container_started @container_started end |
#container_stopped ⇒ Google::Apis::LifesciencesV2beta::ContainerStoppedEvent
An event generated when a container exits.
Corresponds to the JSON property containerStopped
480 481 482 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 480 def container_stopped @container_stopped end |
#delayed ⇒ Google::Apis::LifesciencesV2beta::DelayedEvent
An event generated whenever a resource limitation or transient error delays
execution of a pipeline that was otherwise ready to run.
Corresponds to the JSON property delayed
486 487 488 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 486 def delayed @delayed end |
#description ⇒ String
A human-readable description of the event. Note that these strings can change
at any time without notice. Any application logic must use the information in
the details field.
Corresponds to the JSON property description
493 494 495 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 493 def description @description end |
#failed ⇒ Google::Apis::LifesciencesV2beta::FailedEvent
An event generated when the execution of a pipeline has failed. Note that
other events can continue to occur after this event.
Corresponds to the JSON property failed
499 500 501 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 499 def failed @failed end |
#pull_started ⇒ Google::Apis::LifesciencesV2beta::PullStartedEvent
An event generated when the worker starts pulling an image.
Corresponds to the JSON property pullStarted
504 505 506 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 504 def pull_started @pull_started end |
#pull_stopped ⇒ Google::Apis::LifesciencesV2beta::PullStoppedEvent
An event generated when the worker stops pulling an image.
Corresponds to the JSON property pullStopped
509 510 511 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 509 def pull_stopped @pull_stopped end |
#timestamp ⇒ String
The time at which the event occurred.
Corresponds to the JSON property timestamp
514 515 516 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 514 def @timestamp end |
#unexpected_exit_status ⇒ Google::Apis::LifesciencesV2beta::UnexpectedExitStatusEvent
An event generated when the execution of a container results in a non-zero
exit status that was not otherwise ignored. Execution will continue, but only
actions that are flagged as ALWAYS_RUN will be executed. Other actions will
be skipped.
Corresponds to the JSON property unexpectedExitStatus
522 523 524 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 522 def unexpected_exit_status @unexpected_exit_status end |
#worker_assigned ⇒ Google::Apis::LifesciencesV2beta::WorkerAssignedEvent
An event generated after a worker VM has been assigned to run the pipeline.
Corresponds to the JSON property workerAssigned
527 528 529 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 527 def worker_assigned @worker_assigned end |
#worker_released ⇒ Google::Apis::LifesciencesV2beta::WorkerReleasedEvent
An event generated when the worker VM that was assigned to the pipeline has
been released (deleted).
Corresponds to the JSON property workerReleased
533 534 535 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 533 def worker_released @worker_released end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
540 541 542 543 544 545 546 547 548 549 550 551 552 553 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 540 def update!(**args) @container_killed = args[:container_killed] if args.key?(:container_killed) @container_started = args[:container_started] if args.key?(:container_started) @container_stopped = args[:container_stopped] if args.key?(:container_stopped) @delayed = args[:delayed] if args.key?(:delayed) @description = args[:description] if args.key?(:description) @failed = args[:failed] if args.key?(:failed) @pull_started = args[:pull_started] if args.key?(:pull_started) @pull_stopped = args[:pull_stopped] if args.key?(:pull_stopped) @timestamp = args[:timestamp] if args.key?(:timestamp) @unexpected_exit_status = args[:unexpected_exit_status] if args.key?(:unexpected_exit_status) @worker_assigned = args[:worker_assigned] if args.key?(:worker_assigned) @worker_released = args[:worker_released] if args.key?(:worker_released) end |