Class ReportErrorsService.ReportErrorsServiceClient (2.0.0-beta05)

public class ReportErrorsServiceClient : ClientBase<ReportErrorsService.ReportErrorsServiceClient>

Client for ReportErrorsService

Inheritance

Object > ClientBase > ClientBase<ReportErrorsService.ReportErrorsServiceClient> > 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(ClientBase.ClientBaseConfiguration)

protected ReportErrorsServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
ReportErrorsService.ReportErrorsServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ErrorReporting.V1Beta1.ReportErrorsService.ReportErrorsServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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.

For more information, see Using Error Reporting with regionalized logs.

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, Nullable<DateTime>, CancellationToken)

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

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.

For more information, see Using Error Reporting with regionalized logs.

Parameters
NameDescription
requestReportErrorEventRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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.

For more information, see Using Error Reporting with regionalized logs.

Parameters
NameDescription
requestReportErrorEventRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ReportErrorEventResponse>

The call object.

ReportErrorEventAsync(ReportErrorEventRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

For more information, see Using Error Reporting with regionalized logs.

Parameters
NameDescription
requestReportErrorEventRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<ReportErrorEventResponse>

The call object.