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:
  • 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:
      internalGetFieldAccessorTable in class com.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:
      hasNotificationRateLimit in interface AlertPolicy.AlertStrategyOrBuilder
      Returns:
      Whether the notificationRateLimit field is set.
    • getNotificationRateLimit

      public 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;
      Specified by:
      getNotificationRateLimit in interface AlertPolicy.AlertStrategyOrBuilder
      Returns:
      The notificationRateLimit.
    • getNotificationRateLimitOrBuilder

      public 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;
      Specified by:
      getNotificationRateLimitOrBuilder in interface AlertPolicy.AlertStrategyOrBuilder
    • getNotificationPromptsList

      public 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;
      Specified by:
      getNotificationPromptsList in interface AlertPolicy.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:
      getNotificationPromptsCount in interface AlertPolicy.AlertStrategyOrBuilder
      Returns:
      The count of notificationPrompts.
    • getNotificationPrompts

      public 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;
      Specified by:
      getNotificationPrompts in interface AlertPolicy.AlertStrategyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The notificationPrompts at the given index.
    • getNotificationPromptsValueList

      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;
      Specified by:
      getNotificationPromptsValueList in interface AlertPolicy.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:
      getNotificationPromptsValue in interface AlertPolicy.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:
      hasAutoClose in interface AlertPolicy.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:
      getAutoClose in interface AlertPolicy.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:
      getAutoCloseOrBuilder in interface AlertPolicy.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:
      getNotificationChannelStrategyList in interface AlertPolicy.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:
      getNotificationChannelStrategyOrBuilderList in interface AlertPolicy.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:
      getNotificationChannelStrategyCount in interface AlertPolicy.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:
      getNotificationChannelStrategy in interface AlertPolicy.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:
      getNotificationChannelStrategyOrBuilder in interface AlertPolicy.AlertStrategyOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static AlertPolicy.AlertStrategy parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AlertPolicy.AlertStrategy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AlertPolicy.AlertStrategy parseDelimitedFrom(InputStream input) throws IOException
      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

      public AlertPolicy.AlertStrategy.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AlertPolicy.AlertStrategy.Builder newBuilder()
    • newBuilder

      public static AlertPolicy.AlertStrategy.Builder newBuilder(AlertPolicy.AlertStrategy prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AlertPolicy.AlertStrategy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AlertPolicy.AlertStrategy getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AlertPolicy.AlertStrategy> parser()
    • getParserForType

      public com.google.protobuf.Parser<AlertPolicy.AlertStrategy> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AlertPolicy.AlertStrategy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder