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
Namespace
Google \ Cloud \ ErrorReporting \ V1beta1Methods
__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 |
ServiceContext
The |
↳ message |
string
The stack trace that was reported or logged by the service. |
↳ context |
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 |
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 | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getServiceContext
The ServiceContext
for which this error was reported.
Returns | |
---|---|
Type | Description |
ServiceContext|null |
hasServiceContext
clearServiceContext
setServiceContext
The ServiceContext
for which this error was reported.
Parameter | |
---|---|
Name | Description |
var |
ServiceContext
|
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 |
ErrorContext|null |
hasContext
clearContext
setContext
Data about the context in which the error occurred.
Parameter | |
---|---|
Name | Description |
var |
ErrorContext
|
Returns | |
---|---|
Type | Description |
$this |