-
Default organization bucket for writes.
Declaration
Swift
public let bucket: String?
-
Default destination bucket for writes.
Declaration
Swift
public let org: String?
-
Default precision for the unix timestamps within the body line-protocol.
Declaration
Swift
public let precision: InfluxDBClient.TimestampPrecision
-
The timeout interval to use when waiting for additional data. Default to 60 sec.
Declaration
Swift
public let timeoutIntervalForRequest: TimeInterval
-
The maximum amount of time that a resource request should be allowed to take. Default to 5 min.
Declaration
Swift
public let timeoutIntervalForResource: TimeInterval
-
Enable Gzip compression for HTTP requests. Currently only the
Write
andQuery
endpoints supports the Gzip compression.Declaration
Swift
public let enableGzip: Bool
-
A dictionary containing information about the proxy to use within the HTTP client.
Declaration
Swift
public let connectionProxyDictionary: [AnyHashable : Any]?
-
A delegate to handle HTTP session-level events. Useful for disable redirects or custom auth handling.
Declaration
Swift
public weak var urlSessionDelegate: URLSessionDelegate?
-
init(bucket:
org: precision: timeoutIntervalForRequest: timeoutIntervalForResource: enableGzip: connectionProxyDictionary: urlSessionDelegate: ) Create a new options for client.
Declaration
Swift
public init(bucket: String? = nil, org: String? = nil, precision: TimestampPrecision = defaultTimestampPrecision, timeoutIntervalForRequest: TimeInterval = 60, timeoutIntervalForResource: TimeInterval = 60 * 5, enableGzip: Bool = false, connectionProxyDictionary: [AnyHashable: Any]? = nil, urlSessionDelegate: URLSessionDelegate? = nil)
Parameters
bucket
Default destination bucket for writes.
org
Default organization bucket for writes.
precision
Default precision for the unix timestamps within the body line-protocol.
timeoutIntervalForRequest
Timeout interval to use when waiting for additional data.
timeoutIntervalForResource
Maximum amount of time that a resource request should be allowed to take.
enableGzip
Enable Gzip compression for HTTP requests.
connectionProxyDictionary
Enable Gzip compression for HTTP requests.
urlSessionDelegate
A delegate to handle HTTP session-level events.