getPing method
Get the status of the instance
Retrieves 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> getPing() async {
final response = await getPingWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}