Class Exclusion (3.14.9)

public class 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.

Inheritance

Object > Exclusion

Static Methods

newBuilder(String name, String filter)

public static Exclusion.Builder newBuilder(String name, String filter)

Returns a builder for Exclusion objects given the name of the exclusion and its filter.

Parameters
Name Description
name String
filter String
Returns
Type Description
Exclusion.Builder

of(String name, String filter)

public static Exclusion of(String name, String filter)

Creates a Exclusion object given the name of the exclusion and its filter.

Parameters
Name Description
name String
filter String
Returns
Type Description
Exclusion

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Returns the creation timestamp of the exclusion.

Returns
Type Description
Timestamp

getDescription()

public String getDescription()

Returns an optional description of an exclusion. Used for documentation purpose.

Returns
Type Description
String

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

Returns
Type Description
String

getName()

public String getName()

Returns the name of log exclusion.

Returns
Type Description
String

getUpdateTime()

public Timestamp getUpdateTime()

Returns the last update timestamp of the exclusion.

Returns
Type Description
Timestamp

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

isDisabled()

public boolean isDisabled()

If set to True, then this exclusion is disabled and it does not exclude any log entries.

Returns
Type Description
boolean

toBuilder()

public Exclusion.Builder toBuilder()

Returns a builder for this Exclusion object.

Returns
Type Description
Exclusion.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides