Class DiagnosticsReport
java.lang.Object
com.couchbase.client.core.message.internal.DiagnosticsReport
@Public @Experimental public class DiagnosticsReport extends Object
Aggregates the health of all
Endpoint
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
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 Details
-
DiagnosticsReport
public DiagnosticsReport(List<EndpointHealth> endpoints, String sdk, String id, RingBufferDiagnostics ringBufferDiagnostics)
-
-
Method Details
-
id
-
sdk
-
endpoints
-
endpoints
-
ringBufferDiagnostics
Returns a breakdown of the requests in the internal ringbuffer. -
exportToJson
Exports this report into the standard JSON format which is consistent across different language SDKs.- Returns:
- the encoded JSON string.
-
exportToJson
Exports this report into the standard JSON format which is consistent across different language SDKs.- Returns:
- the encoded JSON string.
-
toString
-