Package com.google.monitoring.v3
Class AlertPolicy.AlertStrategy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.monitoring.v3.AlertPolicy.AlertStrategy
- All Implemented Interfaces:
AlertPolicy.AlertStrategyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- AlertPolicy
public static final class AlertPolicy.AlertStrategy
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classControl over how the notification channels in `notification_channels` are notified when this alert fires.static final classControl over how the notification channels in `notification_channels` are notified when this alert fires, on a per-channel basis.static interfacestatic enumControl when notifications will be sent out.static final classControl over the rate of notifications sent to this alerting policy's notification channels.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.DurationIf an alerting policy that was active has no data for this long, any open incidents will closecom.google.protobuf.DurationOrBuilderIf an alerting policy that was active has no data for this long, any open incidents will closestatic AlertPolicy.AlertStrategystatic final com.google.protobuf.Descriptors.DescriptorgetNotificationChannelStrategy(int index) Control how notifications will be sent out, on a per-channel basis.intControl how notifications will be sent out, on a per-channel basis.Control how notifications will be sent out, on a per-channel basis.getNotificationChannelStrategyOrBuilder(int index) Control how notifications will be sent out, on a per-channel basis.Control how notifications will be sent out, on a per-channel basis.getNotificationPrompts(int index) For log-based alert policies, the notification prompts is always [OPENED].intFor log-based alert policies, the notification prompts is always [OPENED].For log-based alert policies, the notification prompts is always [OPENED].intgetNotificationPromptsValue(int index) For log-based alert policies, the notification prompts is always [OPENED].For log-based alert policies, the notification prompts is always [OPENED].Required for log-based alerting policies, i.e. policies with a `LogMatch` condition.Required for log-based alerting policies, i.e. policies with a `LogMatch` condition.com.google.protobuf.Parser<AlertPolicy.AlertStrategy>intbooleanIf an alerting policy that was active has no data for this long, any open incidents will closeinthashCode()booleanRequired for log-based alerting policies, i.e. policies with a `LogMatch` condition.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(AlertPolicy.AlertStrategy prototype) protected AlertPolicy.AlertStrategy.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AlertPolicy.AlertStrategyparseDelimitedFrom(InputStream input) static AlertPolicy.AlertStrategyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AlertPolicy.AlertStrategyparseFrom(byte[] data) static AlertPolicy.AlertStrategyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AlertPolicy.AlertStrategyparseFrom(com.google.protobuf.ByteString data) static AlertPolicy.AlertStrategyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AlertPolicy.AlertStrategyparseFrom(com.google.protobuf.CodedInputStream input) static AlertPolicy.AlertStrategyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AlertPolicy.AlertStrategyparseFrom(InputStream input) static AlertPolicy.AlertStrategyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AlertPolicy.AlertStrategyparseFrom(ByteBuffer data) static AlertPolicy.AlertStrategyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AlertPolicy.AlertStrategy>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NOTIFICATION_RATE_LIMIT_FIELD_NUMBER
public static final int NOTIFICATION_RATE_LIMIT_FIELD_NUMBER- See Also:
-
NOTIFICATION_PROMPTS_FIELD_NUMBER
public static final int NOTIFICATION_PROMPTS_FIELD_NUMBER- See Also:
-
AUTO_CLOSE_FIELD_NUMBER
public static final int AUTO_CLOSE_FIELD_NUMBER- See Also:
-
NOTIFICATION_CHANNEL_STRATEGY_FIELD_NUMBER
public static final int NOTIFICATION_CHANNEL_STRATEGY_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasNotificationRateLimit
public 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;- Specified by:
hasNotificationRateLimitin interfaceAlertPolicy.AlertStrategyOrBuilder- Returns:
- Whether the notificationRateLimit field is set.
-
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;- Specified by:
getNotificationRateLimitin interfaceAlertPolicy.AlertStrategyOrBuilder- Returns:
- The notificationRateLimit.
-
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;- Specified by:
getNotificationRateLimitOrBuilderin interfaceAlertPolicy.AlertStrategyOrBuilder
-
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;- Specified by:
getNotificationPromptsListin interfaceAlertPolicy.AlertStrategyOrBuilder- Returns:
- A list containing the notificationPrompts.
-
getNotificationPromptsCount
public 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;- Specified by:
getNotificationPromptsCountin interfaceAlertPolicy.AlertStrategyOrBuilder- Returns:
- The count of notificationPrompts.
-
getNotificationPrompts
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;- Specified by:
getNotificationPromptsin interfaceAlertPolicy.AlertStrategyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notificationPrompts at the given index.
-
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;- Specified by:
getNotificationPromptsValueListin interfaceAlertPolicy.AlertStrategyOrBuilder- Returns:
- A list containing the enum numeric values on the wire for notificationPrompts.
-
getNotificationPromptsValue
public 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;- Specified by:
getNotificationPromptsValuein interfaceAlertPolicy.AlertStrategyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of notificationPrompts at the given index.
-
hasAutoClose
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;- Specified by:
hasAutoClosein interfaceAlertPolicy.AlertStrategyOrBuilder- Returns:
- Whether the autoClose field is set.
-
getAutoClose
public 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;- Specified by:
getAutoClosein interfaceAlertPolicy.AlertStrategyOrBuilder- Returns:
- The autoClose.
-
getAutoCloseOrBuilder
public 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;- Specified by:
getAutoCloseOrBuilderin interfaceAlertPolicy.AlertStrategyOrBuilder
-
getNotificationChannelStrategyList
public 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;- Specified by:
getNotificationChannelStrategyListin interfaceAlertPolicy.AlertStrategyOrBuilder
-
getNotificationChannelStrategyOrBuilderList
public 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;- Specified by:
getNotificationChannelStrategyOrBuilderListin interfaceAlertPolicy.AlertStrategyOrBuilder
-
getNotificationChannelStrategyCount
public 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;- Specified by:
getNotificationChannelStrategyCountin interfaceAlertPolicy.AlertStrategyOrBuilder
-
getNotificationChannelStrategy
public 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;- Specified by:
getNotificationChannelStrategyin interfaceAlertPolicy.AlertStrategyOrBuilder
-
getNotificationChannelStrategyOrBuilder
public 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;- Specified by:
getNotificationChannelStrategyOrBuilderin interfaceAlertPolicy.AlertStrategyOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AlertPolicy.AlertStrategy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.AlertStrategy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.AlertStrategy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.AlertStrategy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.AlertStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlertPolicy.AlertStrategy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AlertPolicy.AlertStrategy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AlertPolicy.AlertStrategy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AlertPolicy.AlertStrategy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AlertPolicy.AlertStrategy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AlertPolicy.AlertStrategy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-