Class: Google::Apis::LifesciencesV2beta::DelayedEvent

Inherits:
Object
  • Object
show all
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

An event generated whenever a resource limitation or transient error delays execution of a pipeline that was otherwise ready to run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DelayedEvent

Returns a new instance of DelayedEvent.



387
388
389
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 387

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

Instance Attribute Details

#causeString

A textual description of the cause of the delay. The string can change without notice because it is often generated by another service (such as Compute Engine). Corresponds to the JSON property cause

Returns:

  • (String)


377
378
379
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 377

def cause
  @cause
end

#metricsArray<String>

If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, CPUS or INSTANCES). If the particular metric is not known, a single UNKNOWN metric will be present. Corresponds to the JSON property metrics

Returns:

  • (Array<String>)


385
386
387
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 385

def metrics
  @metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



392
393
394
395
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 392

def update!(**args)
  @cause = args[:cause] if args.key?(:cause)
  @metrics = args[:metrics] if args.key?(:metrics)
end