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.ReportErrorsServiceClientNamespace
Google.Cloud.ErrorReporting.V1Beta1Assembly
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 | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
ReportErrorsServiceClient(ChannelBase)
public ReportErrorsServiceClient(ChannelBase channel)
Creates a new client for ReportErrorsService
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
ReportErrorsServiceClient(ClientBaseConfiguration)
protected ReportErrorsServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration The client configuration. |
Methods
NewInstance(ClientBaseConfiguration)
protected override ReportErrorsService.ReportErrorsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
ReportErrorsServiceReportErrorsServiceClient |
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 | |
---|---|
Name | Description |
request | ReportErrorEventRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ReportErrorEventRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ReportErrorEventRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | ReportErrorEventRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallReportErrorEventResponse | The call object. |