getHealth method

Future<void> getHealth({
  1. String? uuidToken,
})

Check Logbot Setup status

Checks if Logbot Setup is actually running. If the service doesn't provides a response, the reason could be either the service is not running or the device is unreachable (powered off or unreachable).

Parameters:

  • String uuidToken: Used for remote connections to device

Implementation

Future<void> getHealth({
  String? uuidToken,
}) async {
  final response = await getHealthWithHttpInfo(
    uuidToken: uuidToken,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}