Stackdriver Error Reporting V1beta1 Client - Class ErrorEvent (0.19.12)

Reference documentation and code samples for the Stackdriver Error Reporting V1beta1 Client class ErrorEvent.

An error event which is returned by the Error Reporting system.

Generated from protobuf message google.devtools.clouderrorreporting.v1beta1.ErrorEvent

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ event_time Google\Protobuf\Timestamp

Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

↳ service_context Google\Cloud\ErrorReporting\V1beta1\ServiceContext

The ServiceContext for which this error was reported.

↳ message string

The stack trace that was reported or logged by the service.

↳ context Google\Cloud\ErrorReporting\V1beta1\ErrorContext

Data about the context in which the error occurred.

getEventTime

Time when the event occurred as provided in the error report.

If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEventTime

clearEventTime

setEventTime

Time when the event occurred as provided in the error report.

If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getServiceContext

The ServiceContext for which this error was reported.

Returns
TypeDescription
Google\Cloud\ErrorReporting\V1beta1\ServiceContext|null

hasServiceContext

clearServiceContext

setServiceContext

The ServiceContext for which this error was reported.

Parameter
NameDescription
var Google\Cloud\ErrorReporting\V1beta1\ServiceContext
Returns
TypeDescription
$this

getMessage

The stack trace that was reported or logged by the service.

Returns
TypeDescription
string

setMessage

The stack trace that was reported or logged by the service.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getContext

Data about the context in which the error occurred.

Returns
TypeDescription
Google\Cloud\ErrorReporting\V1beta1\ErrorContext|null

hasContext

clearContext

setContext

Data about the context in which the error occurred.

Parameter
NameDescription
var Google\Cloud\ErrorReporting\V1beta1\ErrorContext
Returns
TypeDescription
$this