Send feedback
Class Exclusion (3.11.10)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.11.10 keyboard_arrow_down
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
Returns
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
Returns
Methods
equals(Object o)
public boolean equals ( Object o )
Parameter
Returns
Overrides
getCreateTime()
public Timestamp getCreateTime ()
Returns the creation timestamp of the exclusion.
Returns
getDescription()
public String getDescription ()
Returns an optional description of an exclusion. Used for documentation purpose.
Returns
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
getName()
Returns the name of log exclusion.
Returns
getUpdateTime()
public Timestamp getUpdateTime ()
Returns the last update timestamp of the exclusion.
Returns
hashCode()
Returns
Overrides
isDisabled()
public boolean isDisabled ()
If set to True, then this exclusion is disabled and it does not exclude any log entries.
Returns
toBuilder()
public Exclusion . Builder toBuilder ()
Returns a builder for this Exclusion
object.
Returns
toString()
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-24 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-24 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-24 UTC."]]