See: Description
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);
}
Copyright © 2019 Google LLC. All rights reserved.