Interface AlertPolicy.AlertStrategyOrBuilder (3.42.0)

public static interface AlertPolicy.AlertStrategyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutoClose()

public abstract 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
TypeDescription
Duration

The autoClose.

getAutoCloseOrBuilder()

public abstract 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;

Returns
TypeDescription
DurationOrBuilder

getNotificationChannelStrategy(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationChannelStrategy

getNotificationChannelStrategyCount()

public abstract 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;

Returns
TypeDescription
int

getNotificationChannelStrategyList()

public abstract 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;

Returns
TypeDescription
List<NotificationChannelStrategy>

getNotificationChannelStrategyOrBuilder(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder

getNotificationChannelStrategyOrBuilderList()

public abstract 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;

Returns
TypeDescription
List<? extends com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder>

getNotificationRateLimit()

public abstract 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
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimit

The notificationRateLimit.

getNotificationRateLimitOrBuilder()

public abstract 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;

Returns
TypeDescription
AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder

hasAutoClose()

public abstract 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
TypeDescription
boolean

Whether the autoClose field is set.

hasNotificationRateLimit()

public abstract 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
TypeDescription
boolean

Whether the notificationRateLimit field is set.