public sealed class ReportErrorsServiceClientImpl : ReportErrorsServiceClientReference documentation and code samples for the Google Cloud Error Reporting v1beta1 API class ReportErrorsServiceClientImpl.
ReportErrorsService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.ErrorReporting.V1Beta1Assembly
Google.Cloud.ErrorReporting.V1Beta1.dll
Remarks
An API for reporting error events.
Constructors
ReportErrorsServiceClientImpl(ReportErrorsServiceClient, ReportErrorsServiceSettings, ILogger)
public ReportErrorsServiceClientImpl(ReportErrorsService.ReportErrorsServiceClient grpcClient, ReportErrorsServiceSettings settings, ILogger logger)Constructs a client wrapper for the ReportErrorsService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
ReportErrorsServiceReportErrorsServiceClientThe underlying gRPC client. |
settings |
ReportErrorsServiceSettingsThe base ReportErrorsServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override ReportErrorsService.ReportErrorsServiceClient GrpcClient { get; }The underlying gRPC ReportErrorsService client
| Property Value | |
|---|---|
| Type | Description |
ReportErrorsServiceReportErrorsServiceClient |
|
Methods
ReportErrorEvent(ReportErrorEventRequest, CallSettings)
public override ReportErrorEventResponse ReportErrorEvent(ReportErrorEventRequest request, CallSettings callSettings = null)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 service built on Cloud Logging and can analyze log entries when all of the following are true:
- Customer-managed encryption keys (CMEK) are disabled on the log bucket.
- The log bucket satisfies one of the following:
- The log bucket is stored in the same project where the logs originated.
- The logs were routed to a project, and then that project stored those logs in a log bucket that it owns.
| Parameters | |
|---|---|
| Name | Description |
request |
ReportErrorEventRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ReportErrorEventResponse |
The RPC response. |
ReportErrorEventAsync(ReportErrorEventRequest, CallSettings)
public override Task<ReportErrorEventResponse> ReportErrorEventAsync(ReportErrorEventRequest request, CallSettings callSettings = null)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 service built on Cloud Logging and can analyze log entries when all of the following are true:
- Customer-managed encryption keys (CMEK) are disabled on the log bucket.
- The log bucket satisfies one of the following:
- The log bucket is stored in the same project where the logs originated.
- The logs were routed to a project, and then that project stored those logs in a log bucket that it owns.
| Parameters | |
|---|---|
| Name | Description |
request |
ReportErrorEventRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskReportErrorEventResponse |
A Task containing the RPC response. |