Stackdriver Error Reporting V1beta1 Client - Class ReportErrorEventRequest (0.22.9)

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

A request for reporting an individual error event.

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

Namespace

Google \ Cloud \ ErrorReporting \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ project_name string

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID. Example: // projects/my-project-123.

↳ event ReportedErrorEvent

Required. The error event to be reported.

getProjectName

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID.

Example: // projects/my-project-123.

Returns
Type Description
string

setProjectName

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID.

Example: // projects/my-project-123.

Parameter
Name Description
var string
Returns
Type Description
$this

getEvent

Required. The error event to be reported.

Returns
Type Description
ReportedErrorEvent|null

hasEvent

clearEvent

setEvent

Required. The error event to be reported.

Parameter
Name Description
var ReportedErrorEvent
Returns
Type Description
$this

static::build

Parameters
Name Description
projectName string

Required. The resource name of the Google Cloud Platform project. Written as projects/{projectId}, where {projectId} is the Google Cloud Platform project ID.

Example: // projects/my-project-123. Please see ReportErrorsServiceClient::projectName() for help formatting this field.

event ReportedErrorEvent

Required. The error event to be reported.

Returns
Type Description
ReportErrorEventRequest