InfluxDBClient class

Main InfluxDB client class

Constructors

InfluxDBClient({String? url, String? token, String? bucket, String? org, Client? client, String? username, String? password, bool debug = defaultEnableDebug, int maxRedirects = defaultMaxRedirects, bool followRedirects = defaultFollowRedirects})
Create a new client for a InfluxDB.
InfluxDBClient.connectV1({String? url, String? username, String? password, String? database, String? retentionPolicy, bool debug = defaultEnableDebug, int maxRedirects = defaultMaxRedirects, bool followRedirects = defaultFollowRedirects})
Create a new client for InfluxDB 1.8 compatibility API.
factory

Properties

bucket ↔ String?
getter/setter pair
client ↔ Client
getter/setter pair
debug ↔ bool
getter/setter pair
defaultHeaders ↔ Map<String, String>
getter/setter pair
followRedirects ↔ bool
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
maxRedirects ↔ int
getter/setter pair
org ↔ String?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token ↔ String?
getter/setter pair
url ↔ String?
getter/setter pair

Methods

close() → void
Closes the client and cleans up any resources associated with it.
getApiClient({String basePath = '/api/v2'}) → ApiClient
getAuthorizationsApi() → AuthorizationsApi
getBucketsApi() → BucketsApi
getDBRPsApi() → DBRPsApi
getDeleteService() → DeleteService
getHealthApi() → HealthApi
getInvokableScriptsService() → InvokableScriptsService
Create an InvokableScripts API instance.
getLabelsApi() → LabelsApi
getOrganizationsApi() → OrganizationsApi
getPingApi() → PingApi
getQueryService({QueryOptions? queryOptions}) → QueryService
getReadyApi() → ReadyApi
getSecretsApi() → SecretsApi
getSetupApi() → SetupApi
getTasksApi() → TasksApi
getUsersApi() → UsersApi
getVariablesApi() → VariablesApi
getWriteService([WriteOptions? writeOptions]) → WriteService
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultEnableDebug → const bool
defaultFollowRedirects → const bool
defaultMaxRedirects → const int