public final class PerformanceCaptureConfig extends GeneratedMessage implements PerformanceCaptureConfigOrBuilder
Performance capture configuration.
Protobuf type google.cloud.sql.v1beta4.PerformanceCaptureConfig
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int CPU_UTILIZATION_THRESHOLD_PERCENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int ENABLED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
HISTORY_LIST_LENGTH_THRESHOLD_COUNT_FIELD_NUMBER
public static final int HISTORY_LIST_LENGTH_THRESHOLD_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int MEMORY_USAGE_THRESHOLD_PERCENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PROBE_THRESHOLD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PROBING_INTERVAL_SECONDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int RUNNING_THREADS_THRESHOLD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SECONDS_BEHIND_SOURCE_THRESHOLD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SEMAPHORE_WAIT_THRESHOLD_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TRANSACTION_DURATION_THRESHOLD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TRANSACTION_KILL_EXCLUDED_USER_HOSTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TRANSACTION_KILL_THRESHOLD_SECONDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TRANSACTION_KILL_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TRANSACTION_LOCK_WAIT_THRESHOLD_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static PerformanceCaptureConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static PerformanceCaptureConfig.Builder newBuilder()
public static PerformanceCaptureConfig.Builder newBuilder(PerformanceCaptureConfig prototype)
public static PerformanceCaptureConfig parseDelimitedFrom(InputStream input)
public static PerformanceCaptureConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PerformanceCaptureConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static PerformanceCaptureConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PerformanceCaptureConfig parseFrom(ByteString data)
public static PerformanceCaptureConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PerformanceCaptureConfig parseFrom(CodedInputStream input)
public static PerformanceCaptureConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PerformanceCaptureConfig parseFrom(InputStream input)
public static PerformanceCaptureConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PerformanceCaptureConfig parseFrom(ByteBuffer data)
public static PerformanceCaptureConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<PerformanceCaptureConfig> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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.
|
public PerformanceCaptureConfig getDefaultInstanceForType()
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.
|
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.
|
public Parser<PerformanceCaptureConfig> getParserForType()
Overrides
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.
|
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.
|
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.
|
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.
|
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.
|
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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];
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PerformanceCaptureConfig.Builder newBuilderForType()
protected PerformanceCaptureConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public PerformanceCaptureConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides