Cloud Run Admin v2 API - Class ServiceScaling (2.12.0)

public sealed class ServiceScaling : IMessage<ServiceScaling>, IEquatable<ServiceScaling>, IDeepCloneable<ServiceScaling>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Run Admin v2 API class ServiceScaling.

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

Inheritance

object > ServiceScaling

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Constructors

ServiceScaling()

public ServiceScaling()

ServiceScaling(ServiceScaling)

public ServiceScaling(ServiceScaling other)
Parameter
Name Description
other ServiceScaling

Properties

HasManualInstanceCount

public bool HasManualInstanceCount { get; }

Gets whether the "manual_instance_count" field is set

Property Value
Type Description
bool

ManualInstanceCount

public int ManualInstanceCount { get; set; }

Optional. total instance count for the service in manual scaling mode. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.

Property Value
Type Description
int

MinInstanceCount

public int MinInstanceCount { get; set; }

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.

Property Value
Type Description
int

ScalingMode

public ServiceScaling.Types.ScalingMode ScalingMode { get; set; }

Optional. The scaling mode for the service.

Property Value
Type Description
ServiceScalingTypesScalingMode