Stackdriver Error Reporting V1beta1 Client - Class ReportErrorEventRequest (0.21.1)

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getEvent

Required. The error event to be reported.

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

hasEvent

clearEvent

setEvent

Required. The error event to be reported.

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

static::build

Parameters
NameDescription
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
TypeDescription
Google\Cloud\ErrorReporting\V1beta1\ReportErrorEventRequest