- 3.56.0 (latest)
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.6
- 3.3.6
- 3.2.10
public static interface AlertPolicy.AlertStrategyOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getAutoClose()
public abstract 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 | |
---|---|
Type | Description |
Duration |
The autoClose. |
getAutoCloseOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
List<? extends com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategyOrBuilder> |
getNotificationPrompts(int index)
public abstract 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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
AlertPolicy.AlertStrategy.NotificationPrompt |
The notificationPrompts at the given index. |
getNotificationPromptsCount()
public abstract 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 | |
---|---|
Type | Description |
int |
The count of notificationPrompts. |
getNotificationPromptsList()
public abstract 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 | |
---|---|
Type | Description |
List<NotificationPrompt> |
A list containing the notificationPrompts. |
getNotificationPromptsValue(int index)
public abstract 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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire of notificationPrompts at the given index. |
getNotificationPromptsValueList()
public abstract 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 | |
---|---|
Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for notificationPrompts. |
getNotificationRateLimit()
public abstract 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 | |
---|---|
Type | Description |
AlertPolicy.AlertStrategy.NotificationRateLimit |
The notificationRateLimit. |
getNotificationRateLimitOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
AlertPolicy.AlertStrategy.NotificationRateLimitOrBuilder |
hasAutoClose()
public abstract 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 | |
---|---|
Type | Description |
boolean |
Whether the autoClose field is set. |
hasNotificationRateLimit()
public abstract 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 | |
---|---|
Type | Description |
boolean |
Whether the notificationRateLimit field is set. |