Stackdriver Logging V2 Client - Class LogSplit (1.24.10)

Reference documentation and code samples for the Stackdriver Logging V2 Client class LogSplit.

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.

Generated from protobuf message google.logging.v2.LogSplit

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ 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.

↳ index int

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.

↳ total_splits int

The total number of log entries that the original LogEntry was split into.

getUid

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.

Generated from protobuf field string uid = 1;

Returns
TypeDescription
string

setUid

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.

Generated from protobuf field string uid = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIndex

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.

Generated from protobuf field int32 index = 2;

Returns
TypeDescription
int

setIndex

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.

Generated from protobuf field int32 index = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTotalSplits

The total number of log entries that the original LogEntry was split into.

Generated from protobuf field int32 total_splits = 3;

Returns
TypeDescription
int

setTotalSplits

The total number of log entries that the original LogEntry was split into.

Generated from protobuf field int32 total_splits = 3;

Parameter
NameDescription
var int
Returns
TypeDescription
$this