PingAPI

public class PingAPI
  • Declaration

    Swift

    public init(influxDB2API: InfluxDB2API)
  • Get the status of the instance

    Declaration

    Swift

    public func getPing(apiResponseQueue: DispatchQueue? = nil, completion: @escaping (_ data: [String : String]?, _ error: InfluxDBClient.InfluxDBError?) -> Void)

    Parameters

    apiResponseQueue

    The queue on which api response is dispatched.

    completion

    completion handler to receive the data and the error objects

  • Get the status of the instance

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
    public func getPing(apiResponseQueue: DispatchQueue? = nil) async throws -> [String : String]?

    Parameters

    apiResponseQueue

    The queue on which api response is dispatched.

    completion

    completion handler to receive the data and the error objects

  • Get the status of the instance

    Declaration

    Swift

    public func headPing(apiResponseQueue: DispatchQueue? = nil, completion: @escaping (_ data: [String : String]?, _ error: InfluxDBClient.InfluxDBError?) -> Void)

    Parameters

    apiResponseQueue

    The queue on which api response is dispatched.

    completion

    completion handler to receive the data and the error objects

  • Get the status of the instance

    Declaration

    Swift

    @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
    public func headPing(apiResponseQueue: DispatchQueue? = nil) async throws -> [String : String]?

    Parameters

    apiResponseQueue

    The queue on which api response is dispatched.

    completion

    completion handler to receive the data and the error objects