public static enum AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType extends Enum<AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType> implements com.google.protobuf.ProtocolMessageEnum
Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE.Protobuf enum
google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType| Enum Constant and Description |
|---|
DELTA_PER_MINUTE
Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute.
|
DELTA_PER_SECOND
Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second.
|
GAUGE
Sets the utilization target value for a gauge metric.
|
UNDEFINED_UTILIZATION_TARGET_TYPE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DELTA_PER_MINUTE_VALUE
Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute.
|
static int |
DELTA_PER_SECOND_VALUE
Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second.
|
static int |
GAUGE_VALUE
Sets the utilization target value for a gauge metric.
|
static int |
UNDEFINED_UTILIZATION_TARGET_TYPE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType> |
internalGetValueMap() |
static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType UNDEFINED_UTILIZATION_TARGET_TYPE
A value indicating that the enum field is not set.
UNDEFINED_UTILIZATION_TARGET_TYPE = 0;public static final AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType DELTA_PER_MINUTE
Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute.
DELTA_PER_MINUTE = 87432861;public static final AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType DELTA_PER_SECOND
Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second.
DELTA_PER_SECOND = 255180029;public static final AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType GAUGE
Sets the utilization target value for a gauge metric. The autoscaler will collect the average utilization of the virtual machines from the last couple of minutes, and compare the value to the utilization target value to perform autoscaling.
GAUGE = 67590361;public static final AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType UNRECOGNIZED
public static final int UNDEFINED_UTILIZATION_TARGET_TYPE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_UTILIZATION_TARGET_TYPE = 0;public static final int DELTA_PER_MINUTE_VALUE
Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per minute.
DELTA_PER_MINUTE = 87432861;public static final int DELTA_PER_SECOND_VALUE
Sets the utilization target value for a cumulative or delta metric, expressed as the rate of growth per second.
DELTA_PER_SECOND = 255180029;public static final int GAUGE_VALUE
Sets the utilization target value for a gauge metric. The autoscaler will collect the average utilization of the virtual machines from the last couple of minutes, and compare the value to the utilization target value to perform autoscaling.
GAUGE = 67590361;public static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType[] values()
for (AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType c : AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType.values()) System.out.println(c);
public static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static AutoscalingPolicyCustomMetricUtilization.UtilizationTargetType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.