class Google::Apis::AppengineV1beta5::HealthCheck

Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment.

Attributes

check_interval[RW]

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

disable_health_check[RW]

Whether to explicitly disable health checks for this instance. Corresponds to the JSON property `disableHealthCheck` @return [Boolean]

disable_health_check?[RW]

Whether to explicitly disable health checks for this instance. Corresponds to the JSON property `disableHealthCheck` @return [Boolean]

healthy_threshold[RW]

Number of consecutive successful health checks required before receiving traffic. Corresponds to the JSON property `healthyThreshold` @return [Fixnum]

host[RW]

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

restart_threshold[RW]

Number of consecutive failed health checks required before an instance is restarted. Corresponds to the JSON property `restartThreshold` @return [Fixnum]

timeout[RW]

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

unhealthy_threshold[RW]

Number of consecutive failed health checks required before removing traffic. Corresponds to the JSON property `unhealthyThreshold` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/appengine_v1beta5/classes.rb, line 663
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_v1beta5/classes.rb, line 668
def update!(**args)
  @check_interval = args[:check_interval] if args.key?(:check_interval)
  @disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check)
  @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
  @host = args[:host] if args.key?(:host)
  @restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold)
  @timeout = args[:timeout] if args.key?(:timeout)
  @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
end