class Google::Apis::LoggingV2beta1::LogSink
Describes a sink used to export log entries outside Cloud Logging.
Attributes
The export destination. See [Exporting Logs With Sinks](/logging/docs/api/ tasks/exporting-logs). Examples: `“storage.googleapis.com/a-bucket”`, `“ bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset”`. Corresponds to the JSON property `destination` @return [String]
An [advanced logs filter](/logging/docs/view/advanced_filters). Only log entries matching that filter are exported. The filter must be consistent with the log entry format specified by the `outputVersionFormat` parameter, regardless of the format of the log entry that was originally written to Cloud Logging. Example (V2 format): `“logName=projects/my-projectid/logs/syslog AND severity>=ERROR”`. Corresponds to the JSON property `filter` @return [String]
Required. The client-assigned sink identifier. Example: `“my-severe-errors-to- pubsub”`. Sink identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.` . Corresponds to the JSON property `name` @return [String]
The log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Cloud Logging. Corresponds to the JSON property `outputVersionFormat` @return [String]
Public Class Methods
# File generated/google/apis/logging_v2beta1/classes.rb, line 744 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/logging_v2beta1/classes.rb, line 749 def update!(**args) @name = args[:name] if args.key?(:name) @destination = args[:destination] if args.key?(:destination) @filter = args[:filter] if args.key?(:filter) @output_version_format = args[:output_version_format] if args.key?(:output_version_format) end