Class: Google::Apis::LoggingV1beta3::LogService

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 service that writes log entries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LogService

Returns a new instance of LogService.


419
420
421
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 419

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#index_keysArray<String>

A list of the names of the keys used to index and label individual log entries from this service. The first two keys are used as the primary and secondary index, respectively. Additional keys may be used to label the entries. For example, App Engine indexes its entries by module and by version, so its indexKeys field is the following: [ "appengine.googleapis.com/module_id", " appengine.googleapis.com/version_id" ] Corresponds to the JSON property indexKeys

Returns:

  • (Array<String>)

417
418
419
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 417

def index_keys
  @index_keys
end

#nameString

The service's name. Example: "appengine.googleapis.com". Log names beginning with this string are reserved for this service. This value can appear in the LogEntry.metadata.serviceName field of log entries associated with this log service. Corresponds to the JSON property name

Returns:

  • (String)

407
408
409
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 407

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


424
425
426
427
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 424

def update!(**args)
  @name = args[:name] unless args[:name].nil?
  @index_keys = args[:index_keys] unless args[:index_keys].nil?
end