public sealed class RevisionScaling : IMessage<RevisionScaling>, IEquatable<RevisionScaling>, IDeepCloneable<RevisionScaling>, IBufferMessage, IMessageReference documentation and code samples for the Cloud Run Admin v2 API class RevisionScaling.
Settings for revision-level scaling settings.
Implements
IMessageRevisionScaling, IEquatableRevisionScaling, IDeepCloneableRevisionScaling, IBufferMessage, IMessageNamespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Constructors
RevisionScaling()
public RevisionScaling()RevisionScaling(RevisionScaling)
public RevisionScaling(RevisionScaling other)| Parameter | |
|---|---|
| Name | Description |
other |
RevisionScaling |
Properties
ConcurrencyUtilization
public float ConcurrencyUtilization { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
float |
|
CpuUtilization
public float CpuUtilization { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
float |
|
HasConcurrencyUtilization
public bool HasConcurrencyUtilization { get; }Gets whether the "concurrency_utilization" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasCpuUtilization
public bool HasCpuUtilization { get; }Gets whether the "cpu_utilization" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
MaxInstanceCount
public int MaxInstanceCount { get; set; }Optional. Maximum number of serving instances that this resource should have. When unspecified, the field is set to the server default value of
- For more information see https://cloud.google.com/run/docs/configuring/max-instances
| Property Value | |
|---|---|
| Type | Description |
int |
|
MinInstanceCount
public int MinInstanceCount { get; set; }Optional. Minimum number of serving instances that this resource should have.
| Property Value | |
|---|---|
| Type | Description |
int |
|