Class: Google::Apis::LoggingV2::LogView
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::LogView
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/representations.rb
Overview
Describes a view over log entries in a bucket.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Describes this view.
-
#filter ⇒ String
Filter that restricts which log entries in a bucket are visible in this view.
-
#name ⇒ String
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. -
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogView
constructor
A new instance of LogView.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LogView
Returns a new instance of LogView.
1702 1703 1704 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1702 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The creation timestamp of the view.
Corresponds to the JSON property createTime
1675 1676 1677 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1675 def create_time @create_time end |
#description ⇒ String
Describes this view.
Corresponds to the JSON property description
1680 1681 1682 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1680 def description @description end |
#filter ⇒ String
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
1689 1690 1691 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1689 def filter @filter end |
#name ⇒ String
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
1695 1696 1697 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1695 def name @name end |
#update_time ⇒ String
Output only. The last update timestamp of the view.
Corresponds to the JSON property updateTime
1700 1701 1702 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1700 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1707 1708 1709 1710 1711 1712 1713 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1707 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 |