class Google::Apis::AppengineV1beta::LivenessCheck

Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances.

Attributes

check_interval[RW]

Interval between health checks. Corresponds to the JSON property `checkInterval` @return [String]

failure_threshold[RW]

Number of consecutive failed checks required before considering the VM unhealthy. Corresponds to the JSON property `failureThreshold` @return [Fixnum]

host[RW]

Host header to send when performing a HTTP Liveness check. Example: “myapp. appspot.com” Corresponds to the JSON property `host` @return [String]

initial_delay[RW]

The initial delay before starting to execute the checks. Corresponds to the JSON property `initialDelay` @return [String]

path[RW]

The request path. Corresponds to the JSON property `path` @return [String]

success_threshold[RW]

Number of consecutive successful checks required before considering the VM healthy. Corresponds to the JSON property `successThreshold` @return [Fixnum]

timeout[RW]

Time before the check is considered failed. Corresponds to the JSON property `timeout` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/appengine_v1beta/classes.rb, line 1823
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/appengine_v1beta/classes.rb, line 1828
def update!(**args)
  @check_interval = args[:check_interval] if args.key?(:check_interval)
  @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
  @host = args[:host] if args.key?(:host)
  @initial_delay = args[:initial_delay] if args.key?(:initial_delay)
  @path = args[:path] if args.key?(:path)
  @success_threshold = args[:success_threshold] if args.key?(:success_threshold)
  @timeout = args[:timeout] if args.key?(:timeout)
end