Class: Google::Apis::LoggingV2::LogSplit

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LogSplit

Returns a new instance of LogSplit.



2672
2673
2674
# File 'lib/google/apis/logging_v2/classes.rb', line 2672

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

Instance Attribute Details

#indexFixnum

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

Returns:

  • (Fixnum)


2658
2659
2660
# File 'lib/google/apis/logging_v2/classes.rb', line 2658

def index
  @index
end

#total_splitsFixnum

The total number of log entries that the original LogEntry was split into. Corresponds to the JSON property totalSplits

Returns:

  • (Fixnum)


2663
2664
2665
# File 'lib/google/apis/logging_v2/classes.rb', line 2663

def total_splits
  @total_splits
end

#uidString

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

Returns:

  • (String)


2670
2671
2672
# File 'lib/google/apis/logging_v2/classes.rb', line 2670

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2677
2678
2679
2680
2681
# File 'lib/google/apis/logging_v2/classes.rb', line 2677

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