headPing method

Future<void> headPing()

Get the status of the instance

Returns the status and InfluxDB version of the instance. Use this endpoint to monitor uptime for the InfluxDB instance. The response returns a HTTP 204 status code to inform you the instance is available. #### InfluxDB Cloud - Isn't versioned and doesn't return X-Influxdb-Version in the headers. #### Related guides - Influx ping

Implementation

Future<void> headPing() async {
  final response = await headPingWithHttpInfo();
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}