Interface RevisionScalingOrBuilder (0.103.0)

public interface RevisionScalingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConcurrencyUtilization()

public abstract float getConcurrencyUtilization()

Optional. Determines a threshold for concurrency utilization before scaling begins. Accepted values are between 0.1 and 0.95 (inclusive) or 0.0 to disable concurrency utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.

optional float concurrency_utilization = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The concurrencyUtilization.

getCpuUtilization()

public abstract float getCpuUtilization()

Optional. Determines a threshold for CPU utilization before scaling begins. Accepted values are between 0.1 and 0.90 (inclusive) or 0.0 to disable CPU utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.

optional float cpu_utilization = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The cpuUtilization.

getMaxInstanceCount()

public abstract int getMaxInstanceCount()

Optional. Maximum number of serving instances that this resource should have. When unspecified, the field is set to the server default value of

  1. For more information see https://cloud.google.com/run/docs/configuring/max-instances

int32 max_instance_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxInstanceCount.

getMinInstanceCount()

public abstract int getMinInstanceCount()

Optional. Minimum number of serving instances that this resource should have.

int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The minInstanceCount.

hasConcurrencyUtilization()

public abstract boolean hasConcurrencyUtilization()

Optional. Determines a threshold for concurrency utilization before scaling begins. Accepted values are between 0.1 and 0.95 (inclusive) or 0.0 to disable concurrency utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.

optional float concurrency_utilization = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the concurrencyUtilization field is set.

hasCpuUtilization()

public abstract boolean hasCpuUtilization()

Optional. Determines a threshold for CPU utilization before scaling begins. Accepted values are between 0.1 and 0.90 (inclusive) or 0.0 to disable CPU utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.

optional float cpu_utilization = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cpuUtilization field is set.