class Google::Apis::LoggingV1beta3::LogEntryMetadata
Additional data that is associated with a log entry, set by the service creating the log entry.
Attributes
A set of (key, value) data that provides additional information about the log entry. If the log entry is from one of the Google Cloud Platform sources listed below, the indicated (key, value) information must be provided: Google App Engine, #service_name `appengine.googleapis.com`: “appengine.googleapis.com/ module_id”, “appengine.googleapis.com/version_id”, and one of: “appengine. googleapis.com/replica_index”, “appengine.googleapis.com/clone_id”, or else provide the following Compute Engine labels: Google Compute Engine, #service_name `compute.googleapis.com`: “compute.googleapis.com/resource_type”, “instance” “compute.googleapis.com/resource_id”, Corresponds to the JSON property `labels` @return [Hash<String,String>]
The project ID of the Google Cloud Platform service that created the log entry. Corresponds to the JSON property `projectId` @return [String]
The region name of the Google Cloud Platform service that created the log entry. For example, `“us-central1”`. Corresponds to the JSON property `region` @return [String]
The API name of the Google Cloud Platform service that created the log entry. For example, `“compute.googleapis.com”`. Corresponds to the JSON property `serviceName` @return [String]
The severity of the log entry. Corresponds to the JSON property `severity` @return [String]
The time the event described by the log entry occurred. Timestamps must be later than January 1, 1970. Corresponds to the JSON property `timestamp` @return [String]
The fully-qualified email address of the authenticated user that performed or requested the action represented by the log entry. If the log entry does not apply to an action taken by an authenticated user, then the field should be empty. Corresponds to the JSON property `userId` @return [String]
The zone of the Google Cloud Platform service that created the log entry. For example, `“us-central1-a”`. Corresponds to the JSON property `zone` @return [String]
Public Class Methods
# File generated/google/apis/logging_v1beta3/classes.rb, line 257 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/logging_v1beta3/classes.rb, line 262 def update!(**args) @timestamp = args[:timestamp] unless args[:timestamp].nil? @severity = args[:severity] unless args[:severity].nil? @project_id = args[:project_id] unless args[:project_id].nil? @service_name = args[:service_name] unless args[:service_name].nil? @region = args[:region] unless args[:region].nil? @zone = args[:zone] unless args[:zone].nil? @user_id = args[:user_id] unless args[:user_id].nil? @labels = args[:labels] unless args[:labels].nil? end