Class DiagnosticsReport
- java.lang.Object
-
- com.couchbase.client.core.message.internal.DiagnosticsReport
-
@Public @Experimental public class DiagnosticsReport extends Object
Aggregates the health of allEndpoint
s.- Since:
- 1.5.0
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description DiagnosticsReport(List<EndpointHealth> endpoints, String sdk, String id, RingBufferDiagnostics ringBufferDiagnostics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EndpointHealth>
endpoints()
List<EndpointHealth>
endpoints(ServiceType type)
String
exportToJson()
Exports this report into the standard JSON format which is consistent across different language SDKs.String
exportToJson(boolean pretty)
Exports this report into the standard JSON format which is consistent across different language SDKs.String
id()
RingBufferDiagnostics
ringBufferDiagnostics()
Returns a breakdown of the requests in the internal ringbuffer.String
sdk()
String
toString()
-
-
-
Constructor Detail
-
DiagnosticsReport
public DiagnosticsReport(List<EndpointHealth> endpoints, String sdk, String id, RingBufferDiagnostics ringBufferDiagnostics)
-
-
Method Detail
-
id
public String id()
-
sdk
public String sdk()
-
endpoints
public List<EndpointHealth> endpoints()
-
endpoints
public List<EndpointHealth> endpoints(ServiceType type)
-
ringBufferDiagnostics
public RingBufferDiagnostics ringBufferDiagnostics()
Returns a breakdown of the requests in the internal ringbuffer.
-
exportToJson
public String exportToJson()
Exports this report into the standard JSON format which is consistent across different language SDKs.- Returns:
- the encoded JSON string.
-
exportToJson
public String exportToJson(boolean pretty)
Exports this report into the standard JSON format which is consistent across different language SDKs.- Returns:
- the encoded JSON string.
-
-