public class ReportErrorsServiceClient : ClientBase<ReportErrorsService.ReportErrorsServiceClient>
Client for ReportErrorsService
Inheritance
Object > ClientBase > ClientBase<ReportErrorsService.ReportErrorsServiceClient> > 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(ClientBase.ClientBaseConfiguration)
protected ReportErrorsServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.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 | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
ReportErrorsService.ReportErrorsServiceClient |
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 | |
---|---|
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, Nullable<DateTime>, CancellationToken)
public virtual ReportErrorEventResponse ReportErrorEvent(ReportErrorEventRequest request, Metadata headers = null, DateTime? deadline = null, 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 | |
---|---|
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 | Nullable<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.
For more information, see Using Error Reporting with regionalized logs.
Parameters | |
---|---|
Name | Description |
request | ReportErrorEventRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ReportErrorEventResponse> | The call object. |
ReportErrorEventAsync(ReportErrorEventRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ReportErrorEventResponse> ReportErrorEventAsync(ReportErrorEventRequest request, Metadata headers = null, DateTime? deadline = null, 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 | |
---|---|
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 | Nullable<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 |
AsyncUnaryCall<ReportErrorEventResponse> | The call object. |