Class PerformanceCaptureConfig.Builder (0.1.0)

public static final class PerformanceCaptureConfig.Builder extends GeneratedMessage.Builder<PerformanceCaptureConfig.Builder> implements PerformanceCaptureConfigOrBuilder

Performance capture configuration.

Protobuf type google.cloud.sql.v1beta4.PerformanceCaptureConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTransactionKillExcludedUserHosts(Iterable<String> values)

public PerformanceCaptureConfig.Builder addAllTransactionKillExcludedUserHosts(Iterable<String> values)

Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: ["app_user", "db_admin@10.1.2.3", "report_user@%"]

repeated string transaction_kill_excluded_user_hosts = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The transactionKillExcludedUserHosts to add.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

addTransactionKillExcludedUserHosts(String value)

public PerformanceCaptureConfig.Builder addTransactionKillExcludedUserHosts(String value)

Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: ["app_user", "db_admin@10.1.2.3", "report_user@%"]

repeated string transaction_kill_excluded_user_hosts = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The transactionKillExcludedUserHosts to add.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

addTransactionKillExcludedUserHostsBytes(ByteString value)

public PerformanceCaptureConfig.Builder addTransactionKillExcludedUserHostsBytes(ByteString value)

Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: ["app_user", "db_admin@10.1.2.3", "report_user@%"]

repeated string transaction_kill_excluded_user_hosts = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the transactionKillExcludedUserHosts to add.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

build()

public PerformanceCaptureConfig build()
Returns
Type Description
PerformanceCaptureConfig

buildPartial()

public PerformanceCaptureConfig buildPartial()
Returns
Type Description
PerformanceCaptureConfig

clear()

public PerformanceCaptureConfig.Builder clear()
Returns
Type Description
PerformanceCaptureConfig.Builder
Overrides

clearCpuUtilizationThresholdPercent()

public PerformanceCaptureConfig.Builder clearCpuUtilizationThresholdPercent()

Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from 10 to 99. Enter 0 to disable the check.

optional int32 cpu_utilization_threshold_percent = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearEnabled()

public PerformanceCaptureConfig.Builder clearEnabled()

Optional. Enables or disables the performance capture feature.

optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearHistoryListLengthThresholdCount()

public PerformanceCaptureConfig.Builder clearHistoryListLengthThresholdCount()

Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from 10000 to 10000000. Enter 0 to disable the check.

optional int32 history_list_length_threshold_count = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearMemoryUsageThresholdPercent()

public PerformanceCaptureConfig.Builder clearMemoryUsageThresholdPercent()

Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from 10 to 99. Enter 0 to disable the check.

optional int32 memory_usage_threshold_percent = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearProbeThreshold()

public PerformanceCaptureConfig.Builder clearProbeThreshold()

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

optional int32 probe_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearProbingIntervalSeconds()

public PerformanceCaptureConfig.Builder clearProbingIntervalSeconds()

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

optional int32 probing_interval_seconds = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearRunningThreadsThreshold()

public PerformanceCaptureConfig.Builder clearRunningThreadsThreshold()

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

optional int32 running_threads_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearSecondsBehindSourceThreshold()

public PerformanceCaptureConfig.Builder clearSecondsBehindSourceThreshold()

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

optional int32 seconds_behind_source_threshold = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearSemaphoreWaitThresholdCount()

public PerformanceCaptureConfig.Builder clearSemaphoreWaitThresholdCount()

Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from 10 to 10000. Enter 0 to disable the check.

optional int32 semaphore_wait_threshold_count = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearTransactionDurationThreshold()

public PerformanceCaptureConfig.Builder clearTransactionDurationThreshold()

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

optional int32 transaction_duration_threshold = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearTransactionKillExcludedUserHosts()

public PerformanceCaptureConfig.Builder clearTransactionKillExcludedUserHosts()

Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: ["app_user", "db_admin@10.1.2.3", "report_user@%"]

repeated string transaction_kill_excluded_user_hosts = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearTransactionKillThresholdSeconds()

public PerformanceCaptureConfig.Builder clearTransactionKillThresholdSeconds()

Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from 60 to 604800 (7 days). Enter 0 to disable. If enabled (i.e., > 0), this value must be greater than or equal to transaction_duration_threshold. Configurations where 0 < transaction_kill_threshold_seconds < transaction_duration_threshold will be rejected.

optional int32 transaction_kill_threshold_seconds = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearTransactionKillType()

public PerformanceCaptureConfig.Builder clearTransactionKillType()

Optional. Determines which transactions are allowed to be terminated when they exceed transaction_kill_threshold_seconds. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to READ_ONLY_TRANSACTIONS if unspecified.

optional .google.cloud.sql.v1beta4.PerformanceCaptureConfig.TransactionKillType transaction_kill_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

clearTransactionLockWaitThresholdCount()

public PerformanceCaptureConfig.Builder clearTransactionLockWaitThresholdCount()

Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from 10 to 10000. Enter 0 to disable the check.

optional int32 transaction_lock_wait_threshold_count = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

getCpuUtilizationThresholdPercent()

public int getCpuUtilizationThresholdPercent()

Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from 10 to 99. Enter 0 to disable the check.

optional int32 cpu_utilization_threshold_percent = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The cpuUtilizationThresholdPercent.

getDefaultInstanceForType()

public PerformanceCaptureConfig getDefaultInstanceForType()
Returns
Type Description
PerformanceCaptureConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Optional. Enables or disables the performance capture feature.

optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enabled.

getHistoryListLengthThresholdCount()

public int getHistoryListLengthThresholdCount()

Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from 10000 to 10000000. Enter 0 to disable the check.

optional int32 history_list_length_threshold_count = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The historyListLengthThresholdCount.

getMemoryUsageThresholdPercent()

public int getMemoryUsageThresholdPercent()

Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from 10 to 99. Enter 0 to disable the check.

optional int32 memory_usage_threshold_percent = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The memoryUsageThresholdPercent.

getProbeThreshold()

public int getProbeThreshold()

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

optional int32 probe_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The probeThreshold.

getProbingIntervalSeconds()

public int getProbingIntervalSeconds()

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

optional int32 probing_interval_seconds = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The probingIntervalSeconds.

getRunningThreadsThreshold()

public int getRunningThreadsThreshold()

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

optional int32 running_threads_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The runningThreadsThreshold.

getSecondsBehindSourceThreshold()

public int getSecondsBehindSourceThreshold()

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

optional int32 seconds_behind_source_threshold = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The secondsBehindSourceThreshold.

getSemaphoreWaitThresholdCount()

public int getSemaphoreWaitThresholdCount()

Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from 10 to 10000. Enter 0 to disable the check.

optional int32 semaphore_wait_threshold_count = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The semaphoreWaitThresholdCount.

getTransactionDurationThreshold()

public int getTransactionDurationThreshold()

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

optional int32 transaction_duration_threshold = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The transactionDurationThreshold.

getTransactionKillExcludedUserHosts(int index)

public String getTransactionKillExcludedUserHosts(int index)

Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: ["app_user", "db_admin@10.1.2.3", "report_user@%"]

repeated string transaction_kill_excluded_user_hosts = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The transactionKillExcludedUserHosts at the given index.

getTransactionKillExcludedUserHostsBytes(int index)

public ByteString getTransactionKillExcludedUserHostsBytes(int index)

Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: ["app_user", "db_admin@10.1.2.3", "report_user@%"]

repeated string transaction_kill_excluded_user_hosts = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the transactionKillExcludedUserHosts at the given index.

getTransactionKillExcludedUserHostsCount()

public int getTransactionKillExcludedUserHostsCount()

Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: ["app_user", "db_admin@10.1.2.3", "report_user@%"]

repeated string transaction_kill_excluded_user_hosts = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of transactionKillExcludedUserHosts.

getTransactionKillExcludedUserHostsList()

public ProtocolStringList getTransactionKillExcludedUserHostsList()

Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: ["app_user", "db_admin@10.1.2.3", "report_user@%"]

repeated string transaction_kill_excluded_user_hosts = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the transactionKillExcludedUserHosts.

getTransactionKillThresholdSeconds()

public int getTransactionKillThresholdSeconds()

Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from 60 to 604800 (7 days). Enter 0 to disable. If enabled (i.e., > 0), this value must be greater than or equal to transaction_duration_threshold. Configurations where 0 < transaction_kill_threshold_seconds < transaction_duration_threshold will be rejected.

optional int32 transaction_kill_threshold_seconds = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The transactionKillThresholdSeconds.

getTransactionKillType()

public PerformanceCaptureConfig.TransactionKillType getTransactionKillType()

Optional. Determines which transactions are allowed to be terminated when they exceed transaction_kill_threshold_seconds. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to READ_ONLY_TRANSACTIONS if unspecified.

optional .google.cloud.sql.v1beta4.PerformanceCaptureConfig.TransactionKillType transaction_kill_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceCaptureConfig.TransactionKillType

The transactionKillType.

getTransactionKillTypeValue()

public int getTransactionKillTypeValue()

Optional. Determines which transactions are allowed to be terminated when they exceed transaction_kill_threshold_seconds. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to READ_ONLY_TRANSACTIONS if unspecified.

optional .google.cloud.sql.v1beta4.PerformanceCaptureConfig.TransactionKillType transaction_kill_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for transactionKillType.

getTransactionLockWaitThresholdCount()

public int getTransactionLockWaitThresholdCount()

Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from 10 to 10000. Enter 0 to disable the check.

optional int32 transaction_lock_wait_threshold_count = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The transactionLockWaitThresholdCount.

hasCpuUtilizationThresholdPercent()

public boolean hasCpuUtilizationThresholdPercent()

Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from 10 to 99. Enter 0 to disable the check.

optional int32 cpu_utilization_threshold_percent = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cpuUtilizationThresholdPercent field is set.

hasEnabled()

public boolean hasEnabled()

Optional. Enables or disables the performance capture feature.

optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the enabled field is set.

hasHistoryListLengthThresholdCount()

public boolean hasHistoryListLengthThresholdCount()

Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from 10000 to 10000000. Enter 0 to disable the check.

optional int32 history_list_length_threshold_count = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the historyListLengthThresholdCount field is set.

hasMemoryUsageThresholdPercent()

public boolean hasMemoryUsageThresholdPercent()

Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from 10 to 99. Enter 0 to disable the check.

optional int32 memory_usage_threshold_percent = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the memoryUsageThresholdPercent field is set.

hasProbeThreshold()

public boolean hasProbeThreshold()

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

optional int32 probe_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the probeThreshold field is set.

hasProbingIntervalSeconds()

public boolean hasProbingIntervalSeconds()

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

optional int32 probing_interval_seconds = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the probingIntervalSeconds field is set.

hasRunningThreadsThreshold()

public boolean hasRunningThreadsThreshold()

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

optional int32 running_threads_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the runningThreadsThreshold field is set.

hasSecondsBehindSourceThreshold()

public boolean hasSecondsBehindSourceThreshold()

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

optional int32 seconds_behind_source_threshold = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the secondsBehindSourceThreshold field is set.

hasSemaphoreWaitThresholdCount()

public boolean hasSemaphoreWaitThresholdCount()

Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from 10 to 10000. Enter 0 to disable the check.

optional int32 semaphore_wait_threshold_count = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the semaphoreWaitThresholdCount field is set.

hasTransactionDurationThreshold()

public boolean hasTransactionDurationThreshold()

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

optional int32 transaction_duration_threshold = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the transactionDurationThreshold field is set.

hasTransactionKillThresholdSeconds()

public boolean hasTransactionKillThresholdSeconds()

Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from 60 to 604800 (7 days). Enter 0 to disable. If enabled (i.e., > 0), this value must be greater than or equal to transaction_duration_threshold. Configurations where 0 < transaction_kill_threshold_seconds < transaction_duration_threshold will be rejected.

optional int32 transaction_kill_threshold_seconds = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the transactionKillThresholdSeconds field is set.

hasTransactionKillType()

public boolean hasTransactionKillType()

Optional. Determines which transactions are allowed to be terminated when they exceed transaction_kill_threshold_seconds. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to READ_ONLY_TRANSACTIONS if unspecified.

optional .google.cloud.sql.v1beta4.PerformanceCaptureConfig.TransactionKillType transaction_kill_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the transactionKillType field is set.

hasTransactionLockWaitThresholdCount()

public boolean hasTransactionLockWaitThresholdCount()

Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from 10 to 10000. Enter 0 to disable the check.

optional int32 transaction_lock_wait_threshold_count = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the transactionLockWaitThresholdCount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PerformanceCaptureConfig other)

public PerformanceCaptureConfig.Builder mergeFrom(PerformanceCaptureConfig other)
Parameter
Name Description
other PerformanceCaptureConfig
Returns
Type Description
PerformanceCaptureConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PerformanceCaptureConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceCaptureConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PerformanceCaptureConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PerformanceCaptureConfig.Builder
Overrides

setCpuUtilizationThresholdPercent(int value)

public PerformanceCaptureConfig.Builder setCpuUtilizationThresholdPercent(int value)

Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from 10 to 99. Enter 0 to disable the check.

optional int32 cpu_utilization_threshold_percent = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The cpuUtilizationThresholdPercent to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setEnabled(boolean value)

public PerformanceCaptureConfig.Builder setEnabled(boolean value)

Optional. Enables or disables the performance capture feature.

optional bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setHistoryListLengthThresholdCount(int value)

public PerformanceCaptureConfig.Builder setHistoryListLengthThresholdCount(int value)

Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from 10000 to 10000000. Enter 0 to disable the check.

optional int32 history_list_length_threshold_count = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The historyListLengthThresholdCount to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setMemoryUsageThresholdPercent(int value)

public PerformanceCaptureConfig.Builder setMemoryUsageThresholdPercent(int value)

Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from 10 to 99. Enter 0 to disable the check.

optional int32 memory_usage_threshold_percent = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The memoryUsageThresholdPercent to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setProbeThreshold(int value)

public PerformanceCaptureConfig.Builder setProbeThreshold(int value)

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

optional int32 probe_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The probeThreshold to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setProbingIntervalSeconds(int value)

public PerformanceCaptureConfig.Builder setProbingIntervalSeconds(int value)

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

optional int32 probing_interval_seconds = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The probingIntervalSeconds to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setRunningThreadsThreshold(int value)

public PerformanceCaptureConfig.Builder setRunningThreadsThreshold(int value)

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

optional int32 running_threads_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The runningThreadsThreshold to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setSecondsBehindSourceThreshold(int value)

public PerformanceCaptureConfig.Builder setSecondsBehindSourceThreshold(int value)

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

optional int32 seconds_behind_source_threshold = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The secondsBehindSourceThreshold to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setSemaphoreWaitThresholdCount(int value)

public PerformanceCaptureConfig.Builder setSemaphoreWaitThresholdCount(int value)

Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from 10 to 10000. Enter 0 to disable the check.

optional int32 semaphore_wait_threshold_count = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The semaphoreWaitThresholdCount to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setTransactionDurationThreshold(int value)

public PerformanceCaptureConfig.Builder setTransactionDurationThreshold(int value)

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

optional int32 transaction_duration_threshold = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The transactionDurationThreshold to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setTransactionKillExcludedUserHosts(int index, String value)

public PerformanceCaptureConfig.Builder setTransactionKillExcludedUserHosts(int index, String value)

Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: ["app_user", "db_admin@10.1.2.3", "report_user@%"]

repeated string transaction_kill_excluded_user_hosts = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The transactionKillExcludedUserHosts to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setTransactionKillThresholdSeconds(int value)

public PerformanceCaptureConfig.Builder setTransactionKillThresholdSeconds(int value)

Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from 60 to 604800 (7 days). Enter 0 to disable. If enabled (i.e., > 0), this value must be greater than or equal to transaction_duration_threshold. Configurations where 0 < transaction_kill_threshold_seconds < transaction_duration_threshold will be rejected.

optional int32 transaction_kill_threshold_seconds = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The transactionKillThresholdSeconds to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setTransactionKillType(PerformanceCaptureConfig.TransactionKillType value)

public PerformanceCaptureConfig.Builder setTransactionKillType(PerformanceCaptureConfig.TransactionKillType value)

Optional. Determines which transactions are allowed to be terminated when they exceed transaction_kill_threshold_seconds. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to READ_ONLY_TRANSACTIONS if unspecified.

optional .google.cloud.sql.v1beta4.PerformanceCaptureConfig.TransactionKillType transaction_kill_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PerformanceCaptureConfig.TransactionKillType

The transactionKillType to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setTransactionKillTypeValue(int value)

public PerformanceCaptureConfig.Builder setTransactionKillTypeValue(int value)

Optional. Determines which transactions are allowed to be terminated when they exceed transaction_kill_threshold_seconds. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to READ_ONLY_TRANSACTIONS if unspecified.

optional .google.cloud.sql.v1beta4.PerformanceCaptureConfig.TransactionKillType transaction_kill_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for transactionKillType to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.

setTransactionLockWaitThresholdCount(int value)

public PerformanceCaptureConfig.Builder setTransactionLockWaitThresholdCount(int value)

Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from 10 to 10000. Enter 0 to disable the check.

optional int32 transaction_lock_wait_threshold_count = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The transactionLockWaitThresholdCount to set.

Returns
Type Description
PerformanceCaptureConfig.Builder

This builder for chaining.