google-cloud-errorreporting overview (0.124.3-beta)

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:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 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:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 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:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 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