getHealthStatus method
Returns a health status map for all subsystems.
Implementation
Future<Map<String, dynamic>> getHealthStatus() async {
return {
'core': {
'security': await _getServiceStatus<SecurityManager>(),
'metrics': await _getServiceStatus<MetricsCollector>(),
},
'storage': {
'blockstore': await _getServiceStatus<BlockStore>(),
'datastore': await _getServiceStatus<DatastoreHandler>(),
'ipld': await _getServiceStatus<IPLDHandler>(),
},
'network': {
'dht': await _getServiceStatus<DHTHandler>(),
'pubsub': await _getServiceStatus<PubSubHandler>(),
'bitswap': await _getServiceStatus<BitswapHandler>(),
'mdns': await _getServiceStatus<MDNSHandler>(),
'bootstrap': await _getServiceStatus<BootstrapHandler>(),
},
'services': {
'routing': await _getServiceStatus<ContentRoutingHandler>(),
'dnslink': await _getServiceStatus<DNSLinkHandler>(),
'graphsync': await _getServiceStatus<GraphsyncHandler>(),
'autonat': await _getServiceStatus<AutoNATHandler>(),
'ipns': await _getServiceStatus<IPNSHandler>(),
},
};
}