Skip navigation links

Package com.google.cloud.errorreporting.v1beta1

A client to Stackdriver Error Reporting API.

See: Description

Package com.google.cloud.errorreporting.v1beta1 Description

A client to Stackdriver Error Reporting API.

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()) {
   GroupName groupName = GroupName.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);
 }
 
 
Skip navigation links

Copyright © 2019 Google LLC. All rights reserved.