diagnostics method

Future<DiagnosticsResult> diagnostics([
  1. DiagnosticsOptions? options
])

Returns a diagnostics report about the currently active connections with the cluster.

Includes information about remote and local addresses, last activity, and other diagnostics information.

Implementation

Future<DiagnosticsResult> diagnostics([DiagnosticsOptions? options]) async {
  final response = await _connection.diagnostics(reportId: options?.reportId);
  return response.toApi();
}