public static enum AlertPolicy.Severity extends Enum<AlertPolicy.Severity> implements com.google.protobuf.ProtocolMessageEnum
An enumeration of possible severity level for an Alert Policy.Protobuf enum
google.monitoring.v3.AlertPolicy.Severity| Enum Constant and Description |
|---|
CRITICAL
This is the highest severity level.
|
ERROR
This is the medium severity level.
|
SEVERITY_UNSPECIFIED
No severity is specified.
|
UNRECOGNIZED |
WARNING
This is the lowest severity level.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CRITICAL_VALUE
This is the highest severity level.
|
static int |
ERROR_VALUE
This is the medium severity level.
|
static int |
SEVERITY_UNSPECIFIED_VALUE
No severity is specified.
|
static int |
WARNING_VALUE
This is the lowest severity level.
|
| Modifier and Type | Method and Description |
|---|---|
static AlertPolicy.Severity |
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<AlertPolicy.Severity> |
internalGetValueMap() |
static AlertPolicy.Severity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static AlertPolicy.Severity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AlertPolicy.Severity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlertPolicy.Severity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlertPolicy.Severity SEVERITY_UNSPECIFIED
No severity is specified. This is the default value.
SEVERITY_UNSPECIFIED = 0;public static final AlertPolicy.Severity CRITICAL
This is the highest severity level. Use this if the problem could cause significant damage or downtime.
CRITICAL = 1;public static final AlertPolicy.Severity ERROR
This is the medium severity level. Use this if the problem could cause minor damage or downtime.
ERROR = 2;public static final AlertPolicy.Severity WARNING
This is the lowest severity level. Use this if the problem is not causing any damage or downtime, but could potentially lead to a problem in the future.
WARNING = 3;public static final AlertPolicy.Severity UNRECOGNIZED
public static final int SEVERITY_UNSPECIFIED_VALUE
No severity is specified. This is the default value.
SEVERITY_UNSPECIFIED = 0;public static final int CRITICAL_VALUE
This is the highest severity level. Use this if the problem could cause significant damage or downtime.
CRITICAL = 1;public static final int ERROR_VALUE
This is the medium severity level. Use this if the problem could cause minor damage or downtime.
ERROR = 2;public static final int WARNING_VALUE
This is the lowest severity level. Use this if the problem is not causing any damage or downtime, but could potentially lead to a problem in the future.
WARNING = 3;public static AlertPolicy.Severity[] values()
for (AlertPolicy.Severity c : AlertPolicy.Severity.values()) System.out.println(c);
public static AlertPolicy.Severity 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 AlertPolicy.Severity valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static AlertPolicy.Severity forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<AlertPolicy.Severity> 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 AlertPolicy.Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.