public class DiagnosticsResult extends Object
Constructor and Description |
---|
DiagnosticsResult(Map<ServiceType,List<EndpointDiagnostics>> endpoints,
String sdk,
String id)
Creates the new diagnostics report.
|
Modifier and Type | Method and Description |
---|---|
Map<ServiceType,List<EndpointDiagnostics>> |
endpoints()
Returns the diagnostic reports of each individual endpoint.
|
boolean |
equals(Object o) |
String |
exportToJson()
Exports this report into the standard JSON format which is consistent across different SDKs.
|
int |
hashCode() |
String |
id()
The ID of this report.
|
String |
sdk()
The identifier of this SDK (useful when exporting to JSON).
|
ClusterState |
state()
Returns the aggregated and simplified cluster state.
|
String |
toString() |
int |
version()
The version of this report (useful when exporting to JSON).
|
@Stability.Internal public DiagnosticsResult(Map<ServiceType,List<EndpointDiagnostics>> endpoints, String sdk, String id)
Note that this is internal API and should not be called at the application level.
endpoints
- the health of each individual endpoint.sdk
- the sdk identifier.id
- the report ID.public String id()
public int version()
public String sdk()
public Map<ServiceType,List<EndpointDiagnostics>> endpoints()
public ClusterState state()
public String exportToJson()
Copyright © 2020 Couchbase, Inc.. All rights reserved.