public static final class Snooze.Criteria extends GeneratedMessage implements Snooze.CriteriaOrBuilder
Criteria specific to the AlertPolicys that this Snooze applies to. The
Snooze will suppress alerts that come from one of the AlertPolicys
whose names are supplied.
Protobuf type google.monitoring.v3.Snooze.Criteria
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
POLICIES_FIELD_NUMBER
public static final int POLICIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Snooze.Criteria getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Snooze.Criteria.Builder newBuilder()
newBuilder(Snooze.Criteria prototype)
public static Snooze.Criteria.Builder newBuilder(Snooze.Criteria prototype)
public static Snooze.Criteria parseDelimitedFrom(InputStream input)
public static Snooze.Criteria parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Snooze.Criteria parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Snooze.Criteria parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Snooze.Criteria parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Snooze.Criteria parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Snooze.Criteria parseFrom(CodedInputStream input)
public static Snooze.Criteria parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Snooze.Criteria parseFrom(InputStream input)
public static Snooze.Criteria parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Snooze.Criteria parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Snooze.Criteria parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Snooze.Criteria> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Snooze.Criteria getDefaultInstanceForType()
getFilter()
public String getFilter()
Optional. The filter string to match on Alert fields when silencing the
alerts. It follows the standard https://google.aip.dev/160 syntax.
A filter string used to apply the snooze to specific incidents
that have matching filter values.
Filters can be defined for snoozes that apply to one alerting
policy.
Filters must be a string formatted as one or more resource labels with
specific label values. If multiple resource labels are used, then they
must be connected with an AND operator. For example, the following filter
applies the snooze to incidents that have an instance ID of
1234567890 and a zone of us-central1-a:
resource.labels.instance_id="1234567890" AND
resource.labels.zone="us-central1-a"
string filter = 2;
| Returns |
| Type |
Description |
String |
The filter.
|
getFilterBytes()
public ByteString getFilterBytes()
Optional. The filter string to match on Alert fields when silencing the
alerts. It follows the standard https://google.aip.dev/160 syntax.
A filter string used to apply the snooze to specific incidents
that have matching filter values.
Filters can be defined for snoozes that apply to one alerting
policy.
Filters must be a string formatted as one or more resource labels with
specific label values. If multiple resource labels are used, then they
must be connected with an AND operator. For example, the following filter
applies the snooze to incidents that have an instance ID of
1234567890 and a zone of us-central1-a:
resource.labels.instance_id="1234567890" AND
resource.labels.zone="us-central1-a"
string filter = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for filter.
|
getParserForType()
public Parser<Snooze.Criteria> getParserForType()
Overrides
getPolicies(int index)
public String getPolicies(int index)
The specific AlertPolicy names for the alert that should be snoozed.
The format is:
projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
There is a limit of 16 policies per snooze. This limit is checked during
snooze creation.
Exactly 1 alert policy is required if filter is specified at the same
time.
repeated string policies = 1 [(.google.api.resource_reference) = { ... }
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The policies at the given index.
|
getPoliciesBytes(int index)
public ByteString getPoliciesBytes(int index)
The specific AlertPolicy names for the alert that should be snoozed.
The format is:
projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
There is a limit of 16 policies per snooze. This limit is checked during
snooze creation.
Exactly 1 alert policy is required if filter is specified at the same
time.
repeated string policies = 1 [(.google.api.resource_reference) = { ... }
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the policies at the given index.
|
getPoliciesCount()
public int getPoliciesCount()
The specific AlertPolicy names for the alert that should be snoozed.
The format is:
projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
There is a limit of 16 policies per snooze. This limit is checked during
snooze creation.
Exactly 1 alert policy is required if filter is specified at the same
time.
repeated string policies = 1 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
int |
The count of policies.
|
getPoliciesList()
public ProtocolStringList getPoliciesList()
The specific AlertPolicy names for the alert that should be snoozed.
The format is:
projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]
There is a limit of 16 policies per snooze. This limit is checked during
snooze creation.
Exactly 1 alert policy is required if filter is specified at the same
time.
repeated string policies = 1 [(.google.api.resource_reference) = { ... }
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Snooze.Criteria.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Snooze.Criteria.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Snooze.Criteria.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides