Class: Google::Apis::LoggingV2::LogView

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/logging_v2/classes.rb,
generated/google/apis/logging_v2/representations.rb,
generated/google/apis/logging_v2/representations.rb

Overview

Describes a view over logs in a bucket.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LogView

Returns a new instance of LogView.



1525
1526
1527
# File 'generated/google/apis/logging_v2/classes.rb', line 1525

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The creation timestamp of the view. Corresponds to the JSON property createTime

Returns:

  • (String)


1498
1499
1500
# File 'generated/google/apis/logging_v2/classes.rb', line 1498

def create_time
  @create_time
end

#descriptionString

Describes this view. Corresponds to the JSON property description

Returns:

  • (String)


1503
1504
1505
# File 'generated/google/apis/logging_v2/classes.rb', line 1503

def description
  @description
end

#filterString

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 id Example: SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout") Corresponds to the JSON property filter

Returns:

  • (String)


1512
1513
1514
# File 'generated/google/apis/logging_v2/classes.rb', line 1512

def filter
  @filter
end

#nameString

The resource name of the view. For example "projects/my-project-id/locations/ my-location/buckets/my-bucket-id/views/my-view Corresponds to the JSON property name

Returns:

  • (String)


1518
1519
1520
# File 'generated/google/apis/logging_v2/classes.rb', line 1518

def name
  @name
end

#update_timeString

Output only. The last update timestamp of the view. Corresponds to the JSON property updateTime

Returns:

  • (String)


1523
1524
1525
# File 'generated/google/apis/logging_v2/classes.rb', line 1523

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1530
1531
1532
1533
1534
1535
1536
# File 'generated/google/apis/logging_v2/classes.rb', line 1530

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)
  @update_time = args[:update_time] if args.key?(:update_time)
end