public interface LogExclusionOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Optional.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Optional.
|
boolean |
getDisabled()
Optional.
|
java.lang.String |
getFilter()
Required.
|
com.google.protobuf.ByteString |
getFilterBytes()
Required.
|
java.lang.String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofjava.lang.String getName()
Required. A client-assigned identifier, such as `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
string name = 1;com.google.protobuf.ByteString getNameBytes()
Required. A client-assigned identifier, such as `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
string name = 1;java.lang.String getDescription()
Optional. A description of this exclusion.
string description = 2;com.google.protobuf.ByteString getDescriptionBytes()
Optional. A description of this exclusion.
string description = 2;java.lang.String getFilter()
Required.
An [advanced logs filter](/logging/docs/view/advanced_filters)
that matches the log entries to be excluded. By using the
[sample function](/logging/docs/view/advanced_filters#sample),
you can exclude less than 100% of the matching log entries.
For example, the following filter matches 99% of low-severity log
entries from load balancers:
"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"
string filter = 3;com.google.protobuf.ByteString getFilterBytes()
Required.
An [advanced logs filter](/logging/docs/view/advanced_filters)
that matches the log entries to be excluded. By using the
[sample function](/logging/docs/view/advanced_filters#sample),
you can exclude less than 100% of the matching log entries.
For example, the following filter matches 99% of low-severity log
entries from load balancers:
"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"
string filter = 3;boolean getDisabled()
Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can use [exclusions.patch](/logging/docs/alpha-exclusion/docs/reference/v2/rest/v2/projects.exclusions/patch) to change the value of this field.
bool disabled = 4;