Class: Google::Apis::LoggingV2::LogSplit
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::LogSplit
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/representations.rb
Overview
Additional information used to correlate multiple log entries. Used when a single LogEntry would exceed the Google Cloud Logging size limit and is split across multiple log entries.
Instance Attribute Summary collapse
-
#index ⇒ Fixnum
The index of this LogEntry in the sequence of split log entries.
-
#total_splits ⇒ Fixnum
The total number of log entries that the original LogEntry was split into.
-
#uid ⇒ String
A globally unique identifier for all log entries in a sequence of split log entries.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogSplit
constructor
A new instance of LogSplit.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LogSplit
Returns a new instance of LogSplit.
1722 1723 1724 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1722 def initialize(**args) update!(**args) end |
Instance Attribute Details
#index ⇒ Fixnum
The index of this LogEntry in the sequence of split log entries. Log entries
are given |index| values 0, 1, ..., n-1 for a sequence of n log entries.
Corresponds to the JSON property index
1708 1709 1710 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1708 def index @index end |
#total_splits ⇒ Fixnum
The total number of log entries that the original LogEntry was split into.
Corresponds to the JSON property totalSplits
1713 1714 1715 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1713 def total_splits @total_splits end |
#uid ⇒ String
A globally unique identifier for all log entries in a sequence of split log
entries. All log entries with the same |LogSplit.uid| are assumed to be part
of the same sequence of split log entries.
Corresponds to the JSON property uid
1720 1721 1722 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1720 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1727 1728 1729 1730 1731 |
# File 'lib/google/apis/logging_v2/classes.rb', line 1727 def update!(**args) @index = args[:index] if args.key?(:index) @total_splits = args[:total_splits] if args.key?(:total_splits) @uid = args[:uid] if args.key?(:uid) end |