Reference documentation and code samples for the Google Cloud Run V2 Client class ServiceScaling.
Scaling settings applied at the service level rather than at the revision level.
Generated from protobuf message google.cloud.run.v2.ServiceScaling
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ min_instance_count |
int
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. (BETA) |
getMinInstanceCount
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. (BETA)
Returns | |
---|---|
Type | Description |
int |
setMinInstanceCount
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. (BETA)
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |