Class: Google::Apis::LoggingV1beta3::LogService
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV1beta3::LogService
- 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
-
#index_keys ⇒ Array<String>
A list of the names of the keys used to index and label individual log entries from this service.
-
#name ⇒ String
The service's name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogService
constructor
A new instance of LogService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
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_keys ⇒ Array<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
417 418 419 |
# File 'generated/google/apis/logging_v1beta3/classes.rb', line 417 def index_keys @index_keys end |
#name ⇒ String
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
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 |