Class: Google::Apis::CloudbuildV2::Probe

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb

Overview

Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Probe

Returns a new instance of Probe.



1908
1909
1910
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1908

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

Instance Attribute Details

#execGoogle::Apis::CloudbuildV2::ExecAction

ExecAction describes a "run in container" action. Corresponds to the JSON property exec



1900
1901
1902
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1900

def exec
  @exec
end

#period_secondsFixnum

Optional. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional Corresponds to the JSON property periodSeconds

Returns:

  • (Fixnum)


1906
1907
1908
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1906

def period_seconds
  @period_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1913
1914
1915
1916
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1913

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