Package com.google.cloud.logging
Class Exclusion
- java.lang.Object
-
- com.google.cloud.logging.Exclusion
-
public class Exclusion extends Object
Specifies a set of log entries that are not to be stored in Logging. If your GCP resource receives a large volume of logs, you can use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Note that organization-level and folder-level exclusions don't apply to child resources, and that you can't exclude audit log entries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExclusion.BuilderA builder forExclusionobjects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)com.google.protobuf.TimestampgetCreateTime()Returns the creation timestamp of the exclusion.StringgetDescription()Returns an optional description of an exclusion.StringgetFilter()Returns an advanced logs filter.StringgetName()Returns the name of log exclusion.com.google.protobuf.TimestampgetUpdateTime()Returns the last update timestamp of the exclusion.inthashCode()booleanisDisabled()If set to True, then this exclusion is disabled and it does not exclude any log entries.static Exclusion.BuildernewBuilder(String name, String filter)Returns a builder forExclusionobjects given the name of the exclusion and its filter.static Exclusionof(String name, String filter)Creates aExclusionobject given the name of the exclusion and its filter.Exclusion.BuildertoBuilder()Returns a builder for thisExclusionobject.StringtoString()
-
-
-
Method Detail
-
getName
public String getName()
Returns the name of log exclusion.
-
getDescription
public String getDescription()
Returns an optional description of an exclusion. Used for documentation purpose.
-
getFilter
public String getFilter()
Returns an advanced logs filter. Example:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99).- See Also:
- Advanced Log Filters
-
isDisabled
public boolean isDisabled()
If set to True, then this exclusion is disabled and it does not exclude any log entries.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Returns the creation timestamp of the exclusion.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Returns the last update timestamp of the exclusion.
-
toBuilder
public Exclusion.Builder toBuilder()
Returns a builder for thisExclusionobject.
-
newBuilder
public static Exclusion.Builder newBuilder(String name, String filter)
Returns a builder forExclusionobjects given the name of the exclusion and its filter.
-
-