Reference documentation and code samples for the Google BigQuery Reservation V1 Client class Autoscale.
Auto scaling settings.
Generated from protobuf message google.cloud.bigquery.reservation.v1.Reservation.Autoscale
Namespace
Google \ Cloud \ BigQuery \ Reservation \ V1 \ ReservationMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ current_slots |
int|string
Output only. The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots]. Note: after users reduce max_slots, it may take a while before it can be propagated, so current_slots may stay in the original value and could be larger than max_slots for that brief period (less than one minute) |
↳ max_slots |
int|string
Number of slots to be scaled when needed. |
getCurrentSlots
Output only. The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots]. Note: after users reduce max_slots, it may take a while before it can be propagated, so current_slots may stay in the original value and could be larger than max_slots for that brief period (less than one minute)
Returns | |
---|---|
Type | Description |
int|string |
setCurrentSlots
Output only. The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots]. Note: after users reduce max_slots, it may take a while before it can be propagated, so current_slots may stay in the original value and could be larger than max_slots for that brief period (less than one minute)
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getMaxSlots
Number of slots to be scaled when needed.
Returns | |
---|---|
Type | Description |
int|string |
setMaxSlots
Number of slots to be scaled when needed.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |