class Google::Apis::LoggingV2::LogExclusion
Specifies a set of log entries that are not to be stored in Cloud Logging. If your GCP resource receives a large volume of log entries, 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.
Attributes
Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions. Corresponds to the JSON property `createTime` @return [String]
Optional. A description of this exclusion. Corresponds to the JSON property `description` @return [String]
Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field. Corresponds to the JSON property `disabled` @return [Boolean]
Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field. Corresponds to the JSON property `disabled` @return [Boolean]
Required. An advanced logs filter (cloud.google.com/logging/docs/view/ advanced-queries) that matches the log entries to be excluded. By using the sample function (cloud.google.com/logging/docs/view/advanced-queries# sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google
Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample( insertId, 0.99) Corresponds to the JSON property `filter` @return [String]
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. First character has to be alphanumeric. Corresponds to the JSON property `name` @return [String]
Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/logging_v2/classes.rb, line 1351 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/logging_v2/classes.rb, line 1356 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @disabled = args[:disabled] if args.key?(:disabled) @filter = args[:filter] if args.key?(:filter) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) end