google-cloud-errorreporting overview

com.google.devtools.clouderrorreporting.v1beta1

The interfaces provided are listed below, along with usage samples.

ErrorGroupServiceClient

Service Description: Service for retrieving and updating individual error groups.

Sample for ErrorGroupServiceClient:


 try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
   ErrorGroupName groupName = ErrorGroupName.of("[PROJECT]", "[GROUP]");
   ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
 }
 

ErrorStatsServiceClient

Service Description: An API for retrieving and managing error statistics as well as data for individual events.

Sample for ErrorStatsServiceClient:


 try (ErrorStatsServiceClient errorStatsServiceClient = ErrorStatsServiceClient.create()) {
   ProjectName projectName = ProjectName.of("[PROJECT]");
   DeleteEventsResponse response = errorStatsServiceClient.deleteEvents(projectName);
 }
 

ReportErrorsServiceClient

Service Description: An API for reporting error events.

Sample for ReportErrorsServiceClient:


 try (ReportErrorsServiceClient reportErrorsServiceClient = ReportErrorsServiceClient.create()) {
   ProjectName projectName = ProjectName.of("[PROJECT]");
   ReportedErrorEvent event = ReportedErrorEvent.newBuilder().build();
   ReportErrorEventResponse response =
       reportErrorsServiceClient.reportErrorEvent(projectName, event);
 }
 

com.google.devtools.clouderrorreporting.v1beta1.stub