Package com.google.cloud.logging
Class Exclusion
java.lang.Object
com.google.cloud.logging.Exclusion
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.protobuf.Timestamp
Returns the creation timestamp of the exclusion.Returns an optional description of an exclusion.Returns an advanced logs filter.getName()
Returns the name of log exclusion.com.google.protobuf.Timestamp
Returns the last update timestamp of the exclusion.int
hashCode()
boolean
If set to True, then this exclusion is disabled and it does not exclude any log entries.static Exclusion.Builder
newBuilder
(String name, String filter) Returns a builder forExclusion
objects given the name of the exclusion and its filter.static Exclusion
Creates aExclusion
object given the name of the exclusion and its filter.Returns a builder for thisExclusion
object.toString()
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getName
Returns the name of log exclusion. -
getDescription
Returns an optional description of an exclusion. Used for documentation purpose. -
getFilter
Returns an advanced logs filter. Example:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
.- See Also:
-
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
Returns a builder for thisExclusion
object. -
newBuilder
Returns a builder forExclusion
objects given the name of the exclusion and its filter. -
of
Creates aExclusion
object given the name of the exclusion and its filter.
-