status property

Future<Map<String, dynamic>> status

Implementation

Future<Map<String, dynamic>> get status async {
  try {
    final response = await client!.get("/_cluster/health");
    return response;
  } catch (e) {
    return {"status": "Cluster not reachable"};
  }
}