class Google::Apis::AppengineV1beta5::HealthCheck

Configure health checking for the VM instances. Unhealthy VM instances will be killed and replaced with new instances.

Attributes

check_interval[RW]

The 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]

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

host[RW]

The host header to send when performing an HTTP health check (e.g. myapp. appspot.com) Corresponds to the JSON property `host` @return [String]

restart_threshold[RW]

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

timeout[RW]

The amount of time before the health check is considered failed. Corresponds to the JSON property `timeout` @return [String]

unhealthy_threshold[RW]

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

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/appengine_v1beta5/classes.rb, line 1189
def update!(**args)
  @disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check)
  @host = args[:host] if args.key?(:host)
  @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
  @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
  @restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold)
  @check_interval = args[:check_interval] if args.key?(:check_interval)
  @timeout = args[:timeout] if args.key?(:timeout)
end