headPingWithHttpInfo method

Future<Response> headPingWithHttpInfo()

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

Note: This method returns the HTTP Response.

Implementation

Future<Response> headPingWithHttpInfo() async {
  final path = r'/ping';

  // ignore: prefer_final_locals
  Object? postBody;

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

  const authNames = <String>[
    'BasicAuthentication',
    'QuerystringAuthentication',
    'TokenAuthentication'
  ];
  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'HEAD',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes[0],
    authNames,
  );
}