Google Cloud Sql Admin V1 Client - Class PerformanceCaptureConfig (1.9.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enabled bool

Optional. Enables or disables the performance capture feature.

↳ probing_interval_seconds int

Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.

↳ probe_threshold int

Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.

↳ running_threads_threshold int

Optional. Specifies the minimum number of MySQL Threads_running to trigger the performance capture on the primary instance.

↳ seconds_behind_source_threshold int

Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.

↳ transaction_duration_threshold int

Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.

getEnabled

Optional. Enables or disables the performance capture feature.

Returns
Type Description
bool

hasEnabled

clearEnabled

setEnabled

Optional. Enables or disables the performance capture feature.

Parameter
Name Description
var bool
Returns
Type Description
$this

getProbingIntervalSeconds

Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.

Returns
Type Description
int

hasProbingIntervalSeconds

clearProbingIntervalSeconds

setProbingIntervalSeconds

Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.

Parameter
Name Description
var int
Returns
Type Description
$this

getProbeThreshold

Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.

Returns
Type Description
int

hasProbeThreshold

clearProbeThreshold

setProbeThreshold

Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.

Parameter
Name Description
var int
Returns
Type Description
$this

getRunningThreadsThreshold

Optional. Specifies the minimum number of MySQL Threads_running to trigger the performance capture on the primary instance.

Returns
Type Description
int

hasRunningThreadsThreshold

clearRunningThreadsThreshold

setRunningThreadsThreshold

Optional. Specifies the minimum number of MySQL Threads_running to trigger the performance capture on the primary instance.

Parameter
Name Description
var int
Returns
Type Description
$this

getSecondsBehindSourceThreshold

Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.

Returns
Type Description
int

hasSecondsBehindSourceThreshold

clearSecondsBehindSourceThreshold

setSecondsBehindSourceThreshold

Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.

Parameter
Name Description
var int
Returns
Type Description
$this

getTransactionDurationThreshold

Optional. Specifies 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. Specifies 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