metrics method

Map<String, dynamic> metrics()

A point-in-time snapshot of hub metrics.

Implementation

Map<String, dynamic> metrics() => {
  'nodes': nodes.all.length,
  'onlineNodes': nodes.all.where((n) => n.descriptor.online).length,
  'activeSessions': sessions.all.length,
  'auditRecords': audit.records.length,
};