ReadyAPI
public class ReadyAPI
-
Declaration
Swift
public init(influxDB2API: InfluxDB2API)
-
Get the readiness of an instance at startup
Declaration
Swift
public func getReady(zapTraceSpan: String? = nil, apiResponseQueue: DispatchQueue? = nil, completion: @escaping (_ data: Ready?, _ error: InfluxDBClient.InfluxDBError?) -> Void)
Parameters
zapTraceSpan
(header) OpenTracing span context (optional)
apiResponseQueue
The queue on which api response is dispatched.
completion
completion handler to receive the data and the error objects
-
getReady(zapTraceSpan:
AsynchronousapiResponseQueue: ) Get the readiness of an instance at startup
Declaration
Swift
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) public func getReady(zapTraceSpan: String? = nil, apiResponseQueue: DispatchQueue? = nil) async throws -> Ready?
Parameters
zapTraceSpan
(header) OpenTracing span context (optional)
apiResponseQueue
The queue on which api response is dispatched.
completion
completion handler to receive the data and the error objects