Class: Google::Apis::LifesciencesV2beta::Event

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/lifesciences_v2beta/classes.rb,
generated/google/apis/lifesciences_v2beta/representations.rb,
generated/google/apis/lifesciences_v2beta/representations.rb

Overview

Carries information about events that occur during pipeline execution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Event

Returns a new instance of Event



539
540
541
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 539

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#container_killedGoogle::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



473
474
475
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 473

def container_killed
  @container_killed
end

#container_startedGoogle::Apis::LifesciencesV2beta::ContainerStartedEvent

An event generated when a container starts. Corresponds to the JSON property containerStarted



478
479
480
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 478

def container_started
  @container_started
end

#container_stoppedGoogle::Apis::LifesciencesV2beta::ContainerStoppedEvent

An event generated when a container exits. Corresponds to the JSON property containerStopped



483
484
485
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 483

def container_stopped
  @container_stopped
end

#delayedGoogle::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



489
490
491
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 489

def delayed
  @delayed
end

#descriptionString

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

Returns:

  • (String)


496
497
498
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 496

def description
  @description
end

#failedGoogle::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



502
503
504
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 502

def failed
  @failed
end

#pull_startedGoogle::Apis::LifesciencesV2beta::PullStartedEvent

An event generated when the worker starts pulling an image. Corresponds to the JSON property pullStarted



507
508
509
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 507

def pull_started
  @pull_started
end

#pull_stoppedGoogle::Apis::LifesciencesV2beta::PullStoppedEvent

An event generated when the worker stops pulling an image. Corresponds to the JSON property pullStopped



512
513
514
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 512

def pull_stopped
  @pull_stopped
end

#timestampString

The time at which the event occurred. Corresponds to the JSON property timestamp

Returns:

  • (String)


517
518
519
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 517

def timestamp
  @timestamp
end

#unexpected_exit_statusGoogle::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



525
526
527
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 525

def unexpected_exit_status
  @unexpected_exit_status
end

#worker_assignedGoogle::Apis::LifesciencesV2beta::WorkerAssignedEvent

An event generated after a worker VM has been assigned to run the pipeline. Corresponds to the JSON property workerAssigned



531
532
533
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 531

def worker_assigned
  @worker_assigned
end

#worker_releasedGoogle::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



537
538
539
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 537

def worker_released
  @worker_released
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



544
545
546
547
548
549
550
551
552
553
554
555
556
557
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 544

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