Google Cloud Error Reporting v1beta1 API - Class ReportErrorsService.ReportErrorsServiceClient (3.0.0-beta03)

public class ReportErrorsService.ReportErrorsServiceClient : ClientBase<ReportErrorsService.ReportErrorsServiceClient>

Reference documentation and code samples for the Google Cloud Error Reporting v1beta1 API class ReportErrorsService.ReportErrorsServiceClient.

Client for ReportErrorsService

Inheritance

object > ClientBase > ClientBaseReportErrorsServiceReportErrorsServiceClient > ReportErrorsService.ReportErrorsServiceClient

Namespace

Google.Cloud.ErrorReporting.V1Beta1

Assembly

Google.Cloud.ErrorReporting.V1Beta1.dll

Constructors

ReportErrorsServiceClient()

protected ReportErrorsServiceClient()

Protected parameterless constructor to allow creation of test doubles.

ReportErrorsServiceClient(CallInvoker)

public ReportErrorsServiceClient(CallInvoker callInvoker)

Creates a new client for ReportErrorsService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ReportErrorsServiceClient(ChannelBase)

public ReportErrorsServiceClient(ChannelBase channel)

Creates a new client for ReportErrorsService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ReportErrorsServiceClient(ClientBaseConfiguration)

protected ReportErrorsServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

NewInstance(ClientBaseConfiguration)

protected override ReportErrorsService.ReportErrorsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
ReportErrorsServiceReportErrorsServiceClient
Overrides

ReportErrorEvent(ReportErrorEventRequest, CallOptions)

public virtual ReportErrorEventResponse ReportErrorEvent(ReportErrorEventRequest request, CallOptions options)

Report an individual error event and record the event to a log.

This endpoint accepts either an OAuth token, or an API key for authentication. To use an API key, append it to the URL as the value of a key parameter. For example:

POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456

Note: Error Reporting is a global service built on Cloud Logging and doesn't analyze logs stored in regional log buckets or logs routed to other Google Cloud projects.

Parameters
NameDescription
requestReportErrorEventRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ReportErrorEventResponse

The response received from the server.

ReportErrorEvent(ReportErrorEventRequest, Metadata, DateTime?, CancellationToken)

public virtual ReportErrorEventResponse ReportErrorEvent(ReportErrorEventRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Report an individual error event and record the event to a log.

This endpoint accepts either an OAuth token, or an API key for authentication. To use an API key, append it to the URL as the value of a key parameter. For example:

POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456

Note: Error Reporting is a global service built on Cloud Logging and doesn't analyze logs stored in regional log buckets or logs routed to other Google Cloud projects.

Parameters
NameDescription
requestReportErrorEventRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ReportErrorEventResponse

The response received from the server.

ReportErrorEventAsync(ReportErrorEventRequest, CallOptions)

public virtual AsyncUnaryCall<ReportErrorEventResponse> ReportErrorEventAsync(ReportErrorEventRequest request, CallOptions options)

Report an individual error event and record the event to a log.

This endpoint accepts either an OAuth token, or an API key for authentication. To use an API key, append it to the URL as the value of a key parameter. For example:

POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456

Note: Error Reporting is a global service built on Cloud Logging and doesn't analyze logs stored in regional log buckets or logs routed to other Google Cloud projects.

Parameters
NameDescription
requestReportErrorEventRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallReportErrorEventResponse

The call object.

ReportErrorEventAsync(ReportErrorEventRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ReportErrorEventResponse> ReportErrorEventAsync(ReportErrorEventRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Report an individual error event and record the event to a log.

This endpoint accepts either an OAuth token, or an API key for authentication. To use an API key, append it to the URL as the value of a key parameter. For example:

POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456

Note: Error Reporting is a global service built on Cloud Logging and doesn't analyze logs stored in regional log buckets or logs routed to other Google Cloud projects.

Parameters
NameDescription
requestReportErrorEventRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallReportErrorEventResponse

The call object.