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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.AlertStrategy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AlertPolicy.AlertStrategy build()
buildPartial()
public AlertPolicy.AlertStrategy buildPartial()
clear()
public AlertPolicy.AlertStrategy.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public AlertPolicy.AlertStrategy.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertPolicy.AlertStrategy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AlertPolicy.AlertStrategy.Builder clone()
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 |
---|
Type | Description |
Duration | The autoClose.
|
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;
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;
getDefaultInstanceForType()
public AlertPolicy.AlertStrategy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(AlertPolicy.AlertStrategy other)
public AlertPolicy.AlertStrategy.Builder mergeFrom(AlertPolicy.AlertStrategy other)
public AlertPolicy.AlertStrategy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AlertPolicy.AlertStrategy.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.AlertStrategy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.AlertStrategy.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertPolicy.AlertStrategy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.AlertStrategy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides