Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class TargetMetric.
Target metric for read pool auto scaling.
Generated from protobuf message google.cloud.sql.v1.ReadPoolAutoScaleConfig.TargetMetric
Namespace
Google \ Cloud \ Sql \ V1 \ ReadPoolAutoScaleConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ metric |
string
The metric name to be used for auto scaling. |
↳ target_value |
float
The target value for the metric. |
getMetric
The metric name to be used for auto scaling.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasMetric
clearMetric
setMetric
The metric name to be used for auto scaling.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargetValue
The target value for the metric.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasTargetValue
clearTargetValue
setTargetValue
The target value for the metric.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|