Class DiagnosticsReport

java.lang.Object
com.couchbase.client.core.message.internal.DiagnosticsReport

@Public
@Experimental
public class DiagnosticsReport
extends Object
Aggregates the health of all Endpoints.
Since:
1.5.0
Author:
Michael Nitschinger
  • Constructor Details

  • Method Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object