Package com.google.monitoring.v3
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 Summary
Modifier and TypeMethodDescriptioncom.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 closegetNotificationChannelStrategy(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.booleanIf an alerting policy that was active has no data for this long, any open incidents will closebooleanRequired for log-based alerting policies, i.e. policies with a `LogMatch` condition.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
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;- Returns:
- The notificationRateLimit.
-
getNotificationRateLimitOrBuilder
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; -
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
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
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
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;
-