class Google::Apis::LoggingV1beta3::LogSink

Describes where log entries are written outside of Cloud Logging.

Attributes

destination[RW]

The resource name of the destination. Cloud Logging writes designated log entries to this destination. For example, `“storage.googleapis.com/my-output- bucket”`. Corresponds to the JSON property `destination` @return [String]

errors[RW]

_Output only._ If any errors occur when invoking a sink method, then this field contains descriptions of the errors. Corresponds to the JSON property `errors` @return [Array<Google::Apis::LoggingV1beta3::LogError>]

filter[RW]

An advanced logs filter. If present, only log entries matching the filter are written. Only project sinks use this field; log sinks and log service sinks must not include a filter. Corresponds to the JSON property `filter` @return [String]

name[RW]

The client-assigned name of this sink. For example, `“my-syslog-sink”`. The name must be unique among the sinks of a similar kind in the project. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/logging_v1beta3/classes.rb, line 511
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/logging_v1beta3/classes.rb, line 516
def update!(**args)
  @name = args[:name] unless args[:name].nil?
  @destination = args[:destination] unless args[:destination].nil?
  @filter = args[:filter] unless args[:filter].nil?
  @errors = args[:errors] unless args[:errors].nil?
end