Class ReportErrorsServiceGrpc.ReportErrorsServiceStub (0.173.0-beta)

public static final class ReportErrorsServiceGrpc.ReportErrorsServiceStub extends AbstractAsyncStub<ReportErrorsServiceGrpc.ReportErrorsServiceStub>

A stub to allow clients to do asynchronous rpc calls to service ReportErrorsService.

An API for reporting error events.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > ReportErrorsServiceGrpc.ReportErrorsServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected ReportErrorsServiceGrpc.ReportErrorsServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ReportErrorsServiceGrpc.ReportErrorsServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

reportErrorEvent(ReportErrorEventRequest request, StreamObserver<ReportErrorEventResponse> responseObserver)

public void reportErrorEvent(ReportErrorEventRequest request, StreamObserver<ReportErrorEventResponse> responseObserver)

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 ReportErrorEventRequest
responseObserver io.grpc.stub.StreamObserver<ReportErrorEventResponse>