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. |
↳ scaling_mode |
int
Optional. The scaling mode for the service. |
↳ manual_instance_count |
int
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. |
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.
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.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getScalingMode
Optional. The scaling mode for the service.
Returns | |
---|---|
Type | Description |
int |
setScalingMode
Optional. The scaling mode for the service.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getManualInstanceCount
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.
Returns | |
---|---|
Type | Description |
int |
hasManualInstanceCount
clearManualInstanceCount
setManualInstanceCount
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.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |