-
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
WriteandQueryendpoints 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
bucketDefault destination bucket for writes.
orgDefault organization bucket for writes.
precisionDefault precision for the unix timestamps within the body line-protocol.
timeoutIntervalForRequestTimeout interval to use when waiting for additional data.
timeoutIntervalForResourceMaximum amount of time that a resource request should be allowed to take.
enableGzipEnable Gzip compression for HTTP requests.
connectionProxyDictionaryEnable Gzip compression for HTTP requests.
urlSessionDelegateA delegate to handle HTTP session-level events.
View on GitHub
InfluxDBOptions Structure Reference