Stackdriver Error Reporting V1beta1 Client - Class ReportErrorEventRequest (0.22.7)

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 Google\Cloud\ErrorReporting\V1beta1\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
Google\Cloud\ErrorReporting\V1beta1\ReportedErrorEvent|null

hasEvent

clearEvent

setEvent

Required. The error event to be reported.

Parameter
Name Description
var Google\Cloud\ErrorReporting\V1beta1\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 Google\Cloud\ErrorReporting\V1beta1\ReportErrorsServiceClient::projectName() for help formatting this field.

event Google\Cloud\ErrorReporting\V1beta1\ReportedErrorEvent

Required. The error event to be reported.

Returns
Type Description
Google\Cloud\ErrorReporting\V1beta1\ReportErrorEventRequest