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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.AlertStrategy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AlertPolicy.AlertStrategy build()
Returns
buildPartial()
public AlertPolicy.AlertStrategy buildPartial()
Returns
clear()
public AlertPolicy.AlertStrategy.Builder clear()
Returns
Overrides
clearAutoClose()
public AlertPolicy.AlertStrategy.Builder clearAutoClose()
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
clearField(Descriptors.FieldDescriptor field)
public AlertPolicy.AlertStrategy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNotificationRateLimit()
public AlertPolicy.AlertStrategy.Builder clearNotificationRateLimit()
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
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertPolicy.AlertStrategy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AlertPolicy.AlertStrategy.Builder clone()
Returns
Overrides
getAutoClose()
public 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
getAutoCloseBuilder()
public Duration.Builder getAutoCloseBuilder()
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
getAutoCloseOrBuilder()
public 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
getDefaultInstanceForType()
public AlertPolicy.AlertStrategy getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNotificationRateLimit()
public 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
getNotificationRateLimitBuilder()
public AlertPolicy.AlertStrategy.NotificationRateLimit.Builder getNotificationRateLimitBuilder()
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
getNotificationRateLimitOrBuilder()
public 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
hasAutoClose()
public 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
Type | Description |
boolean | Whether the autoClose field is set.
|
hasNotificationRateLimit()
public 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
Type | Description |
boolean | Whether the notificationRateLimit field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAutoClose(Duration value)
public AlertPolicy.AlertStrategy.Builder mergeAutoClose(Duration value)
If an alert policy that was active has no data for this long, any open
incidents will close
.google.protobuf.Duration auto_close = 3;
Parameter
Returns
mergeFrom(AlertPolicy.AlertStrategy other)
public AlertPolicy.AlertStrategy.Builder mergeFrom(AlertPolicy.AlertStrategy other)
Parameter
Returns
public AlertPolicy.AlertStrategy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AlertPolicy.AlertStrategy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit value)
public AlertPolicy.AlertStrategy.Builder mergeNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit value)
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.AlertStrategy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAutoClose(Duration value)
public AlertPolicy.AlertStrategy.Builder setAutoClose(Duration value)
If an alert policy that was active has no data for this long, any open
incidents will close
.google.protobuf.Duration auto_close = 3;
Parameter
Returns
setAutoClose(Duration.Builder builderForValue)
public AlertPolicy.AlertStrategy.Builder setAutoClose(Duration.Builder builderForValue)
If an alert 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
setField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.AlertStrategy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit value)
public AlertPolicy.AlertStrategy.Builder setNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit value)
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;
Parameter
Returns
setNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit.Builder builderForValue)
public AlertPolicy.AlertStrategy.Builder setNotificationRateLimit(AlertPolicy.AlertStrategy.NotificationRateLimit.Builder builderForValue)
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;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertPolicy.AlertStrategy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.AlertStrategy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides