- 3.79.0 (latest)
- 3.77.0
- 3.76.0
- 3.75.0
- 3.74.0
- 3.73.0
- 3.71.0
- 3.69.0
- 3.68.0
- 3.65.0
- 3.64.0
- 3.63.0
- 3.61.0
- 3.60.0
- 3.59.0
- 3.58.0
- 3.57.0
- 3.56.0
- 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 final class AlertPolicy.AlertStrategy.Builder extends GeneratedMessageV3.Builder<AlertPolicy.AlertStrategy.Builder> implements AlertPolicy.AlertStrategyOrBuilder Control over how the notification channels in notification_channels
 are notified when this alert fires.
 Protobuf type google.monitoring.v3.AlertPolicy.AlertStrategy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AlertPolicy.AlertStrategy.BuilderImplements
AlertPolicy.AlertStrategyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addAllNotificationChannelStrategy(Iterable<? extends AlertPolicy.AlertStrategy.NotificationChannelStrategy> values)
public AlertPolicy.AlertStrategy.Builder addAllNotificationChannelStrategy(Iterable<? extends AlertPolicy.AlertStrategy.NotificationChannelStrategy> values)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 | 
| values | Iterable<? extends com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy> | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
addAllNotificationPrompts(Iterable<? extends AlertPolicy.AlertStrategy.NotificationPrompt> values)
public AlertPolicy.AlertStrategy.Builder addAllNotificationPrompts(Iterable<? extends AlertPolicy.AlertStrategy.NotificationPrompt> values)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 | 
| values | Iterable<? extends com.google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationPrompt>The notificationPrompts to add. | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | This builder for chaining. | 
addAllNotificationPromptsValue(Iterable<Integer> values)
public AlertPolicy.AlertStrategy.Builder addAllNotificationPromptsValue(Iterable<Integer> values)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 | 
| values | Iterable<Integer>The enum numeric values on the wire for notificationPrompts to add. | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | This builder for chaining. | 
addNotificationChannelStrategy(AlertPolicy.AlertStrategy.NotificationChannelStrategy value)
public AlertPolicy.AlertStrategy.Builder addNotificationChannelStrategy(AlertPolicy.AlertStrategy.NotificationChannelStrategy value)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 | 
| value | AlertPolicy.AlertStrategy.NotificationChannelStrategy | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
addNotificationChannelStrategy(AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue)
public AlertPolicy.AlertStrategy.Builder addNotificationChannelStrategy(AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue)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 | 
| builderForValue | AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
addNotificationChannelStrategy(int index, AlertPolicy.AlertStrategy.NotificationChannelStrategy value)
public AlertPolicy.AlertStrategy.Builder addNotificationChannelStrategy(int index, AlertPolicy.AlertStrategy.NotificationChannelStrategy value)Control how notifications will be sent out, on a per-channel basis.
 
 repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
 
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | AlertPolicy.AlertStrategy.NotificationChannelStrategy | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
addNotificationChannelStrategy(int index, AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue)
public AlertPolicy.AlertStrategy.Builder addNotificationChannelStrategy(int index, AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue)Control how notifications will be sent out, on a per-channel basis.
 
 repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
 
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
addNotificationChannelStrategyBuilder()
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelStrategyBuilder()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 | 
| AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder | |
addNotificationChannelStrategyBuilder(int index)
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder addNotificationChannelStrategyBuilder(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.Builder | |
addNotificationPrompts(AlertPolicy.AlertStrategy.NotificationPrompt value)
public AlertPolicy.AlertStrategy.Builder addNotificationPrompts(AlertPolicy.AlertStrategy.NotificationPrompt value)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 | 
| value | AlertPolicy.AlertStrategy.NotificationPromptThe notificationPrompts to add. | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | This builder for chaining. | 
addNotificationPromptsValue(int value)
public AlertPolicy.AlertStrategy.Builder addNotificationPromptsValue(int value)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 | 
| value | intThe enum numeric value on the wire for notificationPrompts to add. | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | This builder for chaining. | 
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.AlertStrategy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
build()
public AlertPolicy.AlertStrategy build()| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy | |
buildPartial()
public AlertPolicy.AlertStrategy buildPartial()| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy | |
clear()
public AlertPolicy.AlertStrategy.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
clearAutoClose()
public AlertPolicy.AlertStrategy.Builder clearAutoClose()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 | 
| AlertPolicy.AlertStrategy.Builder | |
clearField(Descriptors.FieldDescriptor field)
public AlertPolicy.AlertStrategy.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
clearNotificationChannelStrategy()
public AlertPolicy.AlertStrategy.Builder clearNotificationChannelStrategy()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 | 
| AlertPolicy.AlertStrategy.Builder | |
clearNotificationPrompts()
public AlertPolicy.AlertStrategy.Builder clearNotificationPrompts()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 | 
| AlertPolicy.AlertStrategy.Builder | This builder for chaining. | 
clearNotificationRateLimit()
public AlertPolicy.AlertStrategy.Builder clearNotificationRateLimit() 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.Builder | |
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertPolicy.AlertStrategy.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
clone()
public AlertPolicy.AlertStrategy.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
getAutoClose()
public 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. | 
getAutoCloseBuilder()
public Duration.Builder getAutoCloseBuilder()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 | 
| Builder | |
getAutoCloseOrBuilder()
public 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 | |
getDefaultInstanceForType()
public AlertPolicy.AlertStrategy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getNotificationChannelStrategy(int index)
public 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 | |
getNotificationChannelStrategyBuilder(int index)
public AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder getNotificationChannelStrategyBuilder(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.Builder | |
getNotificationChannelStrategyBuilderList()
public List<AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder> getNotificationChannelStrategyBuilderList()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<Builder> | |
getNotificationChannelStrategyCount()
public 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 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 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 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 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 | intThe index of the element to return. | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.NotificationPrompt | The notificationPrompts at the given index. | 
getNotificationPromptsCount()
public 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 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 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 | intThe 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 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 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. | 
getNotificationRateLimitBuilder()
public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder getNotificationRateLimitBuilder() 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.Builder | |
getNotificationRateLimitOrBuilder()
public 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 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 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. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeAutoClose(Duration value)
public AlertPolicy.AlertStrategy.Builder mergeAutoClose(Duration value)If an alerting policy that was active has no data for this long, any open incidents will close
 .google.protobuf.Duration auto_close = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | Duration | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
mergeFrom(AlertPolicy.AlertStrategy other)
public AlertPolicy.AlertStrategy.Builder mergeFrom(AlertPolicy.AlertStrategy other)| Parameter | |
|---|---|
| Name | Description | 
| other | AlertPolicy.AlertStrategy | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AlertPolicy.AlertStrategy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public AlertPolicy.AlertStrategy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
mergeNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit value)
public AlertPolicy.AlertStrategy.Builder mergeNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit value) 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;
 
| Parameter | |
|---|---|
| Name | Description | 
| value | AlertPolicy.AlertStrategy.NotificationRateLimit | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.AlertStrategy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
removeNotificationChannelStrategy(int index)
public AlertPolicy.AlertStrategy.Builder removeNotificationChannelStrategy(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.Builder | |
setAutoClose(Duration value)
public AlertPolicy.AlertStrategy.Builder setAutoClose(Duration value)If an alerting policy that was active has no data for this long, any open incidents will close
 .google.protobuf.Duration auto_close = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | Duration | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
setAutoClose(Duration.Builder builderForValue)
public AlertPolicy.AlertStrategy.Builder setAutoClose(Duration.Builder builderForValue)If an alerting policy that was active has no data for this long, any open incidents will close
 .google.protobuf.Duration auto_close = 3;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
setField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.AlertStrategy.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
setNotificationChannelStrategy(int index, AlertPolicy.AlertStrategy.NotificationChannelStrategy value)
public AlertPolicy.AlertStrategy.Builder setNotificationChannelStrategy(int index, AlertPolicy.AlertStrategy.NotificationChannelStrategy value)Control how notifications will be sent out, on a per-channel basis.
 
 repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
 
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| value | AlertPolicy.AlertStrategy.NotificationChannelStrategy | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
setNotificationChannelStrategy(int index, AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue)
public AlertPolicy.AlertStrategy.Builder setNotificationChannelStrategy(int index, AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder builderForValue)Control how notifications will be sent out, on a per-channel basis.
 
 repeated .google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationChannelStrategy notification_channel_strategy = 4;
 
| Parameters | |
|---|---|
| Name | Description | 
| index | int | 
| builderForValue | AlertPolicy.AlertStrategy.NotificationChannelStrategy.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
setNotificationPrompts(int index, AlertPolicy.AlertStrategy.NotificationPrompt value)
public AlertPolicy.AlertStrategy.Builder setNotificationPrompts(int index, AlertPolicy.AlertStrategy.NotificationPrompt value)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 | |
|---|---|
| Name | Description | 
| index | intThe index to set the value at. | 
| value | AlertPolicy.AlertStrategy.NotificationPromptThe notificationPrompts to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | This builder for chaining. | 
setNotificationPromptsValue(int index, int value)
public AlertPolicy.AlertStrategy.Builder setNotificationPromptsValue(int index, int value)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 | |
|---|---|
| Name | Description | 
| index | intThe index to set the value at. | 
| value | intThe enum numeric value on the wire for notificationPrompts to set. | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | This builder for chaining. | 
setNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit value)
public AlertPolicy.AlertStrategy.Builder setNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit value) 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;
 
| Parameter | |
|---|---|
| Name | Description | 
| value | AlertPolicy.AlertStrategy.NotificationRateLimit | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
setNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit.Builder builderForValue)
public AlertPolicy.AlertStrategy.Builder setNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit.Builder builderForValue) 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;
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | AlertPolicy.AlertStrategy.NotificationRateLimit.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertPolicy.AlertStrategy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.AlertStrategy.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| AlertPolicy.AlertStrategy.Builder | |