InfluxDB2API
public class InfluxDB2API
InfluxDB2API providing a support for managements APIs.
Example:
let client = InfluxDBClient(url: "http://localhost:8086", token: "my-token")
let api = InfluxDB2API(client: client)
api.healthAPI.getHealth { (response, error) in
if let error = error {
print(error)
return
}
if let response = response {
dump(response)
}
}
client.close()
-
Lazy initialized
AuthorizationsAPI
.Declaration
Swift
public lazy var authorizationsAPI: AuthorizationsAPI { get set }
-
Lazy initialized
BucketsAPI
.Declaration
Swift
public lazy var bucketsAPI: BucketsAPI { get set }
-
Lazy initialized
OrganizationsAPI
.Declaration
Swift
public lazy var organizationsAPI: OrganizationsAPI { get set }
-
Lazy initialized
ScraperTargetsAPI
.Declaration
Swift
public lazy var scraperTargetsAPI: ScraperTargetsAPI { get set }
-
Lazy initialized
SecretsAPI
.Declaration
Swift
public lazy var secretsAPI: SecretsAPI { get set }
-
Lazy initialized
SourcesAPI
.Declaration
Swift
public lazy var sourcesAPI: SourcesAPI { get set }
-
Lazy initialized
VariablesAPI
.Declaration
Swift
public lazy var variablesAPI: VariablesAPI { get set }
-
Create a new managements client for a InfluxDB.
Declaration
Swift
public init(client: InfluxDBClient, apiResponseQueue: DispatchQueue = .main)
Parameters
client
the main InfluxDB client
apiResponseQueue
The default queue on which api response is dispatched.
-
Declaration
Swift
public class AuthorizationsAPI
-
Declaration
Swift
public class BucketsAPI
-
Declaration
Swift
public class DBRPsAPI
-
Declaration
Swift
public class HealthAPI
-
Declaration
Swift
public class LabelsAPI
-
Declaration
Swift
public class OrganizationsAPI
-
Declaration
Swift
public class PingAPI
-
Declaration
Swift
public class ReadyAPI
-
Declaration
Swift
public class ScraperTargetsAPI
-
Declaration
Swift
public class SecretsAPI
-
Declaration
Swift
public class SetupAPI
-
Declaration
Swift
public class SourcesAPI
-
Declaration
Swift
public class TasksAPI
-
Declaration
Swift
public class UsersAPI
-
Declaration
Swift
public class VariablesAPI