Interface AlertPolicy.AlertStrategyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
AlertPolicy.AlertStrategy, AlertPolicy.AlertStrategy.Builder
Enclosing class:
AlertPolicy

public static interface AlertPolicy.AlertStrategyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasNotificationRateLimit

      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;
      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;
      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;
    • getNotificationPromptsList

      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;
      Returns:
      A list containing the notificationPrompts.
    • getNotificationPromptsCount

      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;
      Returns:
      The count of notificationPrompts.
    • getNotificationPrompts

      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;
      Parameters:
      index - The index of the element to return.
      Returns:
      The notificationPrompts at the given index.
    • getNotificationPromptsValueList

      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;
      Returns:
      A list containing the enum numeric values on the wire for notificationPrompts.
    • getNotificationPromptsValue

      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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of notificationPrompts at the given index.
    • hasAutoClose

      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;
      Returns:
      Whether the autoClose field is set.
    • getAutoClose

      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;
      Returns:
      The autoClose.
    • getAutoCloseOrBuilder

      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;
    • getNotificationChannelStrategyList

      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;
    • getNotificationChannelStrategy

      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;
    • getNotificationChannelStrategyCount

      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;
    • getNotificationChannelStrategyOrBuilderList

      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;
    • getNotificationChannelStrategyOrBuilder

      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;