getHealthWithHttpInfo method

Future<Response> getHealthWithHttpInfo({
  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).

Note: This method returns the HTTP Response.

Parameters:

  • String uuidToken: Used for remote connections to device

Implementation

Future<Response> getHealthWithHttpInfo({
  String? uuidToken,
}) async {
  // ignore: prefer_const_declarations
  final path = uuidToken != null
      ? '${LbSetupEnvironment.getApiEndpoint(iotUuid: uuidToken)}/health'
      : '/health';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}