public static final class AlertPolicy.AlertStrategy extends com.google.protobuf.GeneratedMessageV3 implements AlertPolicy.AlertStrategyOrBuilder
Control over how the notification channels in `notification_channels` are notified when this alert fires.Protobuf type
google.monitoring.v3.AlertPolicy.AlertStrategy| Modifier and Type | Class and Description |
|---|---|
static class |
AlertPolicy.AlertStrategy.Builder
Control over how the notification channels in `notification_channels`
are notified when this alert fires.
|
static class |
AlertPolicy.AlertStrategy.NotificationChannelStrategy
Control over how the notification channels in `notification_channels`
are notified when this alert fires, on a per-channel basis.
|
static interface |
AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder |
static class |
AlertPolicy.AlertStrategy.NotificationPrompt
Control when notifications will be sent out.
|
static class |
AlertPolicy.AlertStrategy.NotificationRateLimit
Control over the rate of notifications sent to this alerting policy's
notification channels.
|
static interface |
AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_CLOSE_FIELD_NUMBER |
static int |
NOTIFICATION_CHANNEL_STRATEGY_FIELD_NUMBER |
static int |
NOTIFICATION_PROMPTS_FIELD_NUMBER |
static int |
NOTIFICATION_RATE_LIMIT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.Duration |
getAutoClose()
If an alerting policy that was active has no data for this long, any open
incidents will close
.google.protobuf.Duration auto_close = 3; |
com.google.protobuf.DurationOrBuilder |
getAutoCloseOrBuilder()
If an alerting policy that was active has no data for this long, any open
incidents will close
.google.protobuf.Duration auto_close = 3; |
static AlertPolicy.AlertStrategy |
getDefaultInstance() |
AlertPolicy.AlertStrategy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AlertPolicy.AlertStrategy.NotificationChannelStrategy |
getNotificationChannelStrategy(int index)
Control how notifications will be sent out, on a per-channel basis.
|
int |
getNotificationChannelStrategyCount()
Control how notifications will be sent out, on a per-channel basis.
|
List<AlertPolicy.AlertStrategy.NotificationChannelStrategy> |
getNotificationChannelStrategyList()
Control how notifications will be sent out, on a per-channel basis.
|
AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder |
getNotificationChannelStrategyOrBuilder(int index)
Control how notifications will be sent out, on a per-channel basis.
|
List<? extends AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder> |
getNotificationChannelStrategyOrBuilderList()
Control how notifications will be sent out, on a per-channel basis.
|
AlertPolicy.AlertStrategy.NotificationPrompt |
getNotificationPrompts(int index)
For log-based alert policies, the notification prompts is always
[OPENED].
|
int |
getNotificationPromptsCount()
For log-based alert policies, the notification prompts is always
[OPENED].
|
List<AlertPolicy.AlertStrategy.NotificationPrompt> |
getNotificationPromptsList()
For log-based alert policies, the notification prompts is always
[OPENED].
|
int |
getNotificationPromptsValue(int index)
For log-based alert policies, the notification prompts is always
[OPENED].
|
List<Integer> |
getNotificationPromptsValueList()
For log-based alert policies, the notification prompts is always
[OPENED].
|
AlertPolicy.AlertStrategy.NotificationRateLimit |
getNotificationRateLimit()
Required for log-based alerting policies, i.e. policies with a `LogMatch`
condition.
|
AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder |
getNotificationRateLimitOrBuilder()
Required for log-based alerting policies, i.e. policies with a `LogMatch`
condition.
|
com.google.protobuf.Parser<AlertPolicy.AlertStrategy> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasAutoClose()
If an alerting policy that was active has no data for this long, any open
incidents will close
.google.protobuf.Duration auto_close = 3; |
int |
hashCode() |
boolean |
hasNotificationRateLimit()
Required for log-based alerting policies, i.e. policies with a `LogMatch`
condition.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AlertPolicy.AlertStrategy.Builder |
newBuilder() |
static AlertPolicy.AlertStrategy.Builder |
newBuilder(AlertPolicy.AlertStrategy prototype) |
AlertPolicy.AlertStrategy.Builder |
newBuilderForType() |
protected AlertPolicy.AlertStrategy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AlertPolicy.AlertStrategy |
parseDelimitedFrom(InputStream input) |
static AlertPolicy.AlertStrategy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.AlertStrategy |
parseFrom(byte[] data) |
static AlertPolicy.AlertStrategy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.AlertStrategy |
parseFrom(ByteBuffer data) |
static AlertPolicy.AlertStrategy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.AlertStrategy |
parseFrom(com.google.protobuf.ByteString data) |
static AlertPolicy.AlertStrategy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.AlertStrategy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AlertPolicy.AlertStrategy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.AlertStrategy |
parseFrom(InputStream input) |
static AlertPolicy.AlertStrategy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AlertPolicy.AlertStrategy> |
parser() |
AlertPolicy.AlertStrategy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NOTIFICATION_RATE_LIMIT_FIELD_NUMBER
public static final int NOTIFICATION_PROMPTS_FIELD_NUMBER
public static final int AUTO_CLOSE_FIELD_NUMBER
public static final int NOTIFICATION_CHANNEL_STRATEGY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasNotificationRateLimit()
Required for log-based alerting policies, i.e. policies with a `LogMatch` condition. This limit is not implemented for alerting policies that do not have a LogMatch condition.
.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
hasNotificationRateLimit in interface AlertPolicy.AlertStrategyOrBuilderpublic AlertPolicy.AlertStrategy.NotificationRateLimit getNotificationRateLimit()
Required for log-based alerting policies, i.e. policies with a `LogMatch` condition. This limit is not implemented for alerting policies that do not have a LogMatch condition.
.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
getNotificationRateLimit in interface AlertPolicy.AlertStrategyOrBuilderpublic AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder getNotificationRateLimitOrBuilder()
Required for log-based alerting policies, i.e. policies with a `LogMatch` condition. This limit is not implemented for alerting policies that do not have a LogMatch condition.
.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
getNotificationRateLimitOrBuilder in interface AlertPolicy.AlertStrategyOrBuilderpublic List<AlertPolicy.AlertStrategy.NotificationPrompt> getNotificationPromptsList()
For log-based alert policies, the notification prompts is always [OPENED]. For non log-based alert policies, the notification prompts can be [OPENED] or [OPENED, CLOSED].
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2;
getNotificationPromptsList in interface AlertPolicy.AlertStrategyOrBuilderpublic int getNotificationPromptsCount()
For log-based alert policies, the notification prompts is always [OPENED]. For non log-based alert policies, the notification prompts can be [OPENED] or [OPENED, CLOSED].
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2;
getNotificationPromptsCount in interface AlertPolicy.AlertStrategyOrBuilderpublic AlertPolicy.AlertStrategy.NotificationPrompt getNotificationPrompts(int index)
For log-based alert policies, the notification prompts is always [OPENED]. For non log-based alert policies, the notification prompts can be [OPENED] or [OPENED, CLOSED].
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2;
getNotificationPrompts in interface AlertPolicy.AlertStrategyOrBuilderindex - The index of the element to return.public List<Integer> getNotificationPromptsValueList()
For log-based alert policies, the notification prompts is always [OPENED]. For non log-based alert policies, the notification prompts can be [OPENED] or [OPENED, CLOSED].
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2;
getNotificationPromptsValueList in interface AlertPolicy.AlertStrategyOrBuilderpublic int getNotificationPromptsValue(int index)
For log-based alert policies, the notification prompts is always [OPENED]. For non log-based alert policies, the notification prompts can be [OPENED] or [OPENED, CLOSED].
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt notification_prompts = 2;
getNotificationPromptsValue in interface AlertPolicy.AlertStrategyOrBuilderindex - The index of the value to return.public boolean hasAutoClose()
If an alerting policy that was active has no data for this long, any open incidents will close
.google.protobuf.Duration auto_close = 3;hasAutoClose in interface AlertPolicy.AlertStrategyOrBuilderpublic com.google.protobuf.Duration getAutoClose()
If an alerting policy that was active has no data for this long, any open incidents will close
.google.protobuf.Duration auto_close = 3;getAutoClose in interface AlertPolicy.AlertStrategyOrBuilderpublic com.google.protobuf.DurationOrBuilder getAutoCloseOrBuilder()
If an alerting policy that was active has no data for this long, any open incidents will close
.google.protobuf.Duration auto_close = 3;getAutoCloseOrBuilder in interface AlertPolicy.AlertStrategyOrBuilderpublic List<AlertPolicy.AlertStrategy.NotificationChannelStrategy> getNotificationChannelStrategyList()
Control how notifications will be sent out, on a per-channel basis.
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
getNotificationChannelStrategyList in interface AlertPolicy.AlertStrategyOrBuilderpublic List<? extends AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder> getNotificationChannelStrategyOrBuilderList()
Control how notifications will be sent out, on a per-channel basis.
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
getNotificationChannelStrategyOrBuilderList in interface AlertPolicy.AlertStrategyOrBuilderpublic int getNotificationChannelStrategyCount()
Control how notifications will be sent out, on a per-channel basis.
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
getNotificationChannelStrategyCount in interface AlertPolicy.AlertStrategyOrBuilderpublic AlertPolicy.AlertStrategy.NotificationChannelStrategy getNotificationChannelStrategy(int index)
Control how notifications will be sent out, on a per-channel basis.
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
getNotificationChannelStrategy in interface AlertPolicy.AlertStrategyOrBuilderpublic AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder getNotificationChannelStrategyOrBuilder(int index)
Control how notifications will be sent out, on a per-channel basis.
repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
getNotificationChannelStrategyOrBuilder in interface AlertPolicy.AlertStrategyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AlertPolicy.AlertStrategy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.AlertStrategy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.AlertStrategy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.AlertStrategy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.AlertStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.AlertStrategy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.AlertStrategy parseFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.AlertStrategy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.AlertStrategy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.AlertStrategy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.AlertStrategy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AlertPolicy.AlertStrategy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AlertPolicy.AlertStrategy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AlertPolicy.AlertStrategy.Builder newBuilder()
public static AlertPolicy.AlertStrategy.Builder newBuilder(AlertPolicy.AlertStrategy prototype)
public AlertPolicy.AlertStrategy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AlertPolicy.AlertStrategy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AlertPolicy.AlertStrategy getDefaultInstance()
public static com.google.protobuf.Parser<AlertPolicy.AlertStrategy> parser()
public com.google.protobuf.Parser<AlertPolicy.AlertStrategy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AlertPolicy.AlertStrategy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.