Class: Google::Apis::LoggingV1beta3::Log

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

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_nameString

Optional. The common name of the log. Example: "request_log". Corresponds to the JSON property displayName

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 70

def display_name
  @display_name
end

#nameString

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

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 65

def name
  @name
end

#payload_typeString

Optional. A URI representing the expected payload type for log entries. Corresponds to the JSON property payloadType

Returns:

  • (String)


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