class Google::Apis::ComputeBeta::CircuitBreakers

Settings controlling the volume of requests, connections and retries to this backend service.

Attributes

connect_timeout[RW]

A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like “day” or “month”. Range is approximately 10, 000 years. Corresponds to the JSON property `connectTimeout` @return [Google::Apis::ComputeBeta::Duration]

max_connections[RW]

Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Corresponds to the JSON property `maxConnections` @return [Fixnum]

max_pending_requests[RW]

Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Corresponds to the JSON property `maxPendingRequests` @return [Fixnum]

max_requests[RW]

The maximum number of parallel requests that allowed to the backend service. If not specified, there is no limit. Corresponds to the JSON property `maxRequests` @return [Fixnum]

max_requests_per_connection[RW]

Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Corresponds to the JSON property `maxRequestsPerConnection` @return [Fixnum]

max_retries[RW]

Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Corresponds to the JSON property `maxRetries` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_beta/classes.rb, line 4772
def update!(**args)
  @connect_timeout = args[:connect_timeout] if args.key?(:connect_timeout)
  @max_connections = args[:max_connections] if args.key?(:max_connections)
  @max_pending_requests = args[:max_pending_requests] if args.key?(:max_pending_requests)
  @max_requests = args[:max_requests] if args.key?(:max_requests)
  @max_requests_per_connection = args[:max_requests_per_connection] if args.key?(:max_requests_per_connection)
  @max_retries = args[:max_retries] if args.key?(:max_retries)
end