supervisorHealthWithHttpInfo method

Future<Response> supervisorHealthWithHttpInfo({
  1. String? uuidToken,
  2. String? ip,
})

Get Supervisor health

Get Supervisor health.

Note: This method returns the HTTP Response.

Parameters:

  • String uuidToken: Used for remote connections to device

Implementation

Future<Response> supervisorHealthWithHttpInfo({
  String? uuidToken,
  String? ip,
}) async {
  // ignore: prefer_const_declarations
  final path = ip == null
      ? '${LbStateManagerEnvironment.getApiEndpoint(iotUuid: uuidToken!, servicePort: LbStateManagerEnvironment.lbSetupPort)}/api/service/supervisor/health'
      : '$ip:${LbStateManagerEnvironment.lbSetupPort}/api/service/supervisor/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,
  );
}