Class: Google::Apis::AppengineV1::LivenessCheck

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appengine_v1/classes.rb,
generated/google/apis/appengine_v1/representations.rb,
generated/google/apis/appengine_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LivenessCheck

Returns a new instance of LivenessCheck.


1550
1551
1552
# File 'generated/google/apis/appengine_v1/classes.rb', line 1550

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

Instance Attribute Details

#check_intervalString

Interval between health checks. Corresponds to the JSON property checkInterval

Returns:

  • (String)

1515
1516
1517
# File 'generated/google/apis/appengine_v1/classes.rb', line 1515

def check_interval
  @check_interval
end

#failure_thresholdFixnum

Number of consecutive failed checks required before considering the VM unhealthy. Corresponds to the JSON property failureThreshold

Returns:

  • (Fixnum)

1521
1522
1523
# File 'generated/google/apis/appengine_v1/classes.rb', line 1521

def failure_threshold
  @failure_threshold
end

#hostString

Host header to send when performing a HTTP Liveness check. Example: "myapp. appspot.com" Corresponds to the JSON property host

Returns:

  • (String)

1527
1528
1529
# File 'generated/google/apis/appengine_v1/classes.rb', line 1527

def host
  @host
end

#initial_delayString

The initial delay before starting to execute the checks. Corresponds to the JSON property initialDelay

Returns:

  • (String)

1532
1533
1534
# File 'generated/google/apis/appengine_v1/classes.rb', line 1532

def initial_delay
  @initial_delay
end

#pathString

The request path. Corresponds to the JSON property path

Returns:

  • (String)

1537
1538
1539
# File 'generated/google/apis/appengine_v1/classes.rb', line 1537

def path
  @path
end

#success_thresholdFixnum

Number of consecutive successful checks required before considering the VM healthy. Corresponds to the JSON property successThreshold

Returns:

  • (Fixnum)

1543
1544
1545
# File 'generated/google/apis/appengine_v1/classes.rb', line 1543

def success_threshold
  @success_threshold
end

#timeoutString

Time before the check is considered failed. Corresponds to the JSON property timeout

Returns:

  • (String)

1548
1549
1550
# File 'generated/google/apis/appengine_v1/classes.rb', line 1548

def timeout
  @timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1555
1556
1557
1558
1559
1560
1561
1562
1563
# File 'generated/google/apis/appengine_v1/classes.rb', line 1555

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