Send feedback
Class AlertPolicy.AlertStrategy.Builder (3.3.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.3.5 keyboard_arrow_down
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]