class Google::Apis::LoggingV1beta3::LogEntryMetadata

Additional data that is associated with a log entry, set by the service creating the log entry.

Attributes

labels[RW]

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>]

project_id[RW]

The project ID of the Google Cloud Platform service that created the log entry. Corresponds to the JSON property `projectId` @return [String]

region[RW]

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]

service_name[RW]

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]

severity[RW]

The severity of the log entry. Corresponds to the JSON property `severity` @return [String]

timestamp[RW]

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]

user_id[RW]

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]

zone[RW]

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

new(**args) click to toggle source
# File generated/google/apis/logging_v1beta3/classes.rb, line 257
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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