class Google::Apis::LoggingV2::LogView

Describes a view over log entries in a bucket.

Attributes

create_time[RW]

Output only. The creation timestamp of the view. Corresponds to the JSON property `createTime` @return [String]

description[RW]

Describes this view. Corresponds to the JSON property `description` @return [String]

filter[RW]

Filter that restricts which log entries in a bucket are visible in this view. Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(“projects/myproject”) AND resource.type = “gce_instance” AND LOG_ID(“stdout”) Corresponds to the JSON property `filter` @return [String]

name[RW]

The resource name of the view.For example:projects/my-project/locations/global/ buckets/my-bucket/views/my-view Corresponds to the JSON property `name` @return [String]

schema[RW]

Schema of a table containing logs. Corresponds to the JSON property `schema` @return [Google::Apis::LoggingV2::TableSchema]

update_time[RW]

Output only. The last update timestamp of the view. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/logging_v2/classes.rb, line 1711
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @filter = args[:filter] if args.key?(:filter)
  @name = args[:name] if args.key?(:name)
  @schema = args[:schema] if args.key?(:schema)
  @update_time = args[:update_time] if args.key?(:update_time)
end