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
Name
Description
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
Type
Description

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
Name
Description
Returns
Type
Description
$this

getServiceContext

The ServiceContext for which this error was reported.

hasServiceContext

clearServiceContext

setServiceContext

The ServiceContext for which this error was reported.

Returns
Type
Description
$this

getMessage

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

Returns
Type
Description
string

setMessage

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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getContext

Data about the context in which the error occurred.

Returns
Type
Description

hasContext

clearContext

setContext

Data about the context in which the error occurred.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: