Cloud Run V2 API - Class Google::Cloud::Run::V2::ServiceScaling (v0.17.0)

Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::ServiceScaling.

Scaling settings applied at the service level rather than at the revision level.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#min_instance_count

def min_instance_count() -> ::Integer
Returns
  • (::Integer) — Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.

#min_instance_count=

def min_instance_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.
Returns
  • (::Integer) — Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.

#scaling_mode

def scaling_mode() -> ::Google::Cloud::Run::V2::ServiceScaling::ScalingMode
Returns

#scaling_mode=

def scaling_mode=(value) -> ::Google::Cloud::Run::V2::ServiceScaling::ScalingMode
Parameter
Returns