Class: Google::Apis::LoggingV1beta3::Log
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV1beta3::Log
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/logging_v1beta3/classes.rb,
generated/google/apis/logging_v1beta3/representations.rb,
generated/google/apis/logging_v1beta3/representations.rb
Overview
Output only. Describes a log, which is a named stream of log entries.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Optional. The common name of the log.
-
#name ⇒ String
The resource name of the log.
-
#payload_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Log
constructor
A new instance of Log.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Log
Returns a new instance of Log
77 78 79 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 77 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Optional. The common name of the log. Example: "request_log"
.
Corresponds to the JSON property displayName
70 71 72 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 70 def display_name @display_name end |
#name ⇒ String
The resource name of the log. Example: "/projects/my-gcp-project-id/logs/
LOG_NAME"
, where LOG_NAME
is the URL-encoded given name of the log. The log
includes those log entries whose LogEntry.log
field contains this given name.
To avoid name collisions, it is a best practice to prefix the given log name
with the service name, but this is not required. Examples of log given names:
"appengine.googleapis.com/request_log"
, "apache-access"
.
Corresponds to the JSON property name
65 66 67 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 65 def name @name end |
#payload_type ⇒ String
Optional. A URI representing the expected payload type for log entries.
Corresponds to the JSON property payloadType
75 76 77 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 75 def payload_type @payload_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
82 83 84 85 86 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 82 def update!(**args) @name = args[:name] unless args[:name].nil? @display_name = args[:display_name] unless args[:display_name].nil? @payload_type = args[:payload_type] unless args[:payload_type].nil? end |