public static enum AlertPolicy.AlertStrategy.NotificationPrompt extends Enum<AlertPolicy.AlertStrategy.NotificationPrompt> implements com.google.protobuf.ProtocolMessageEnum
Control when notifications will be sent out.Protobuf enum
google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt| Enum Constant and Description |
|---|
CLOSED
Notify when an incident is closed.
|
NOTIFICATION_PROMPT_UNSPECIFIED
No strategy specified.
|
OPENED
Notify when an incident is opened.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSED_VALUE
Notify when an incident is closed.
|
static int |
NOTIFICATION_PROMPT_UNSPECIFIED_VALUE
No strategy specified.
|
static int |
OPENED_VALUE
Notify when an incident is opened.
|
| Modifier and Type | Method and Description |
|---|---|
static AlertPolicy.AlertStrategy.NotificationPrompt |
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.AlertStrategy.NotificationPrompt> |
internalGetValueMap() |
static AlertPolicy.AlertStrategy.NotificationPrompt |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static AlertPolicy.AlertStrategy.NotificationPrompt |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AlertPolicy.AlertStrategy.NotificationPrompt |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlertPolicy.AlertStrategy.NotificationPrompt[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlertPolicy.AlertStrategy.NotificationPrompt NOTIFICATION_PROMPT_UNSPECIFIED
No strategy specified. Treated as error.
NOTIFICATION_PROMPT_UNSPECIFIED = 0;public static final AlertPolicy.AlertStrategy.NotificationPrompt OPENED
Notify when an incident is opened.
OPENED = 1;public static final AlertPolicy.AlertStrategy.NotificationPrompt CLOSED
Notify when an incident is closed.
CLOSED = 3;public static final AlertPolicy.AlertStrategy.NotificationPrompt UNRECOGNIZED
public static final int NOTIFICATION_PROMPT_UNSPECIFIED_VALUE
No strategy specified. Treated as error.
NOTIFICATION_PROMPT_UNSPECIFIED = 0;public static final int OPENED_VALUE
Notify when an incident is opened.
OPENED = 1;public static final int CLOSED_VALUE
Notify when an incident is closed.
CLOSED = 3;public static AlertPolicy.AlertStrategy.NotificationPrompt[] values()
for (AlertPolicy.AlertStrategy.NotificationPrompt c : AlertPolicy.AlertStrategy.NotificationPrompt.values()) System.out.println(c);
public static AlertPolicy.AlertStrategy.NotificationPrompt 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.AlertStrategy.NotificationPrompt valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static AlertPolicy.AlertStrategy.NotificationPrompt forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<AlertPolicy.AlertStrategy.NotificationPrompt> 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.AlertStrategy.NotificationPrompt valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.