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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.Duration
getAutoClose()
If an alert policy that was active has no data for this long, any open incidents will closecom.google.protobuf.DurationOrBuilder
getAutoCloseOrBuilder()
If an alert policy that was active has no data for this long, any open incidents will closeAlertPolicy.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.NotificationRateLimit
getNotificationRateLimit()
Required for alert policies with a `LogMatch` condition.AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder
getNotificationRateLimitOrBuilder()
Required for alert policies with a `LogMatch` condition.boolean
hasAutoClose()
If an alert policy that was active has no data for this long, any open incidents will closeboolean
hasNotificationRateLimit()
Required for alert policies with a `LogMatch` condition.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasNotificationRateLimit
boolean hasNotificationRateLimit()
Required for alert policies with a `LogMatch` condition. This limit is not implemented for alert policies that are not log-based.
.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
- Returns:
- Whether the notificationRateLimit field is set.
-
getNotificationRateLimit
AlertPolicy.AlertStrategy.NotificationRateLimit getNotificationRateLimit()
Required for alert policies with a `LogMatch` condition. This limit is not implemented for alert policies that are not log-based.
.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
- Returns:
- The notificationRateLimit.
-
getNotificationRateLimitOrBuilder
AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder getNotificationRateLimitOrBuilder()
Required for alert policies with a `LogMatch` condition. This limit is not implemented for alert policies that are not log-based.
.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit notification_rate_limit = 1;
-
hasAutoClose
boolean hasAutoClose()
If an alert 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 alert 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 alert 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;
-
-