Stackdriver Logging V2 Client - Class LogSplit (1.30.3)

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

Namespace

Google \ Cloud \ Logging \ V2

Methods

__construct

Constructor.

Parameters
Name Description
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.

Returns
Type Description
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.

Parameter
Name Description
var string
Returns
Type Description
$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.

Returns
Type Description
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.

Parameter
Name Description
var int
Returns
Type Description
$this

getTotalSplits

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

Returns
Type Description
int

setTotalSplits

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

Parameter
Name Description
var int
Returns
Type Description
$this