Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class PerformanceCaptureConfig.
Performance Capture configuration.
Generated from protobuf message google.cloud.sql.v1.PerformanceCaptureConfig
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ enabled |
bool
Optional. Enable or disable the Performance Capture feature. |
↳ probing_interval_seconds |
int
Optional. The time interval in seconds between any two probes. |
↳ probe_threshold |
int
Optional. The minimum number of consecutive readings above threshold that triggers instance state capture. |
↳ running_threads_threshold |
int
Optional. The minimum number of server threads running to trigger the capture on primary. |
↳ seconds_behind_source_threshold |
int
Optional. The minimum number of seconds replica must be lagging behind primary to trigger capture on replica. |
↳ transaction_duration_threshold |
int
Optional. The amount of time in seconds that a transaction needs to have been open before the watcher starts recording it. |
getEnabled
Optional. Enable or disable the Performance Capture feature.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasEnabled
clearEnabled
setEnabled
Optional. Enable or disable the Performance Capture feature.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProbingIntervalSeconds
Optional. The time interval in seconds between any two probes.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasProbingIntervalSeconds
clearProbingIntervalSeconds
setProbingIntervalSeconds
Optional. The time interval in seconds between any two probes.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProbeThreshold
Optional. The minimum number of consecutive readings above threshold that triggers instance state capture.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasProbeThreshold
clearProbeThreshold
setProbeThreshold
Optional. The minimum number of consecutive readings above threshold that triggers instance state capture.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRunningThreadsThreshold
Optional. The minimum number of server threads running to trigger the capture on primary.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasRunningThreadsThreshold
clearRunningThreadsThreshold
setRunningThreadsThreshold
Optional. The minimum number of server threads running to trigger the capture on primary.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSecondsBehindSourceThreshold
Optional. The minimum number of seconds replica must be lagging behind primary to trigger capture on replica.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasSecondsBehindSourceThreshold
clearSecondsBehindSourceThreshold
setSecondsBehindSourceThreshold
Optional. The minimum number of seconds replica must be lagging behind primary to trigger capture on replica.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTransactionDurationThreshold
Optional. The amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasTransactionDurationThreshold
clearTransactionDurationThreshold
setTransactionDurationThreshold
Optional. The amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|