fun diagnostics(reportId: String = UUID.randomUUID().toString()): DiagnosticsResult

Generates a diagnostic report on the current state of the cluster from the SDKs point of view.

This operation does not perform any I/O. It uses only the last known state of the cluster to assemble the report. For example, if no N1QL query has been executed, the Query service's socket pool might be empty, and as result not show up in the report.

If you wish to actively assess the health of the cluster by performing I/O, consider using ping instead.



An arbitrary ID to assign to the report.