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

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.6 1.1.0 1.0.0 0.19.0 0.18.0 0.17.1 0.16.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.12 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` |   |