Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class WorkloadCaptureConfig.
The workload capture configuration for a Cloud SQL primary instance.
Generated from protobuf message google.cloud.sql.v1.WorkloadCaptureConfig
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ workload_id |
string
Output only. The ID of the captured workload. |
↳ capture_mode |
int
Output only. The mode of the workload capture. |
↳ state |
int
Output only. The state of the workload capture. |
↳ start_time |
Google\Protobuf\Timestamp
Output only. The start time of the workload capture. |
↳ end_time |
Google\Protobuf\Timestamp
Output only. The end time of the workload capture. This field is unset while the capture is running. |
↳ replay_instance |
string
Output only. The name of the replay instance, excluding the project ID, if live replay is enabled. |
↳ retention_days |
int
Output only. The retention period in days for the captured workload. |
↳ backup_id |
string
Output only. The base backup ID associated with the workload capture. |
↳ max_capture_duration |
Google\Protobuf\Duration
Output only. The maximum duration for this workload capture. |
getWorkloadId
Output only. The ID of the captured workload.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasWorkloadId
clearWorkloadId
setWorkloadId
Output only. The ID of the captured workload.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCaptureMode
Output only. The mode of the workload capture.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasCaptureMode
clearCaptureMode
setCaptureMode
Output only. The mode of the workload capture.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
Output only. The state of the workload capture.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasState
clearState
setState
Output only. The state of the workload capture.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStartTime
Output only. The start time of the workload capture.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasStartTime
clearStartTime
setStartTime
Output only. The start time of the workload capture.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEndTime
Output only. The end time of the workload capture. This field is unset while the capture is running.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasEndTime
clearEndTime
setEndTime
Output only. The end time of the workload capture. This field is unset while the capture is running.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getReplayInstance
Output only. The name of the replay instance, excluding the project ID, if live replay is enabled.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasReplayInstance
clearReplayInstance
setReplayInstance
Output only. The name of the replay instance, excluding the project ID, if live replay is enabled.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRetentionDays
Output only. The retention period in days for the captured workload.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasRetentionDays
clearRetentionDays
setRetentionDays
Output only. The retention period in days for the captured workload.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBackupId
Output only. The base backup ID associated with the workload capture.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasBackupId
clearBackupId
setBackupId
Output only. The base backup ID associated with the workload capture.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMaxCaptureDuration
Output only. The maximum duration for this workload capture.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Duration|null |
|
hasMaxCaptureDuration
clearMaxCaptureDuration
setMaxCaptureDuration
Output only. The maximum duration for this workload capture.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Duration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|