public interface InfluxDB
Modifier and Type | Interface and Description |
---|---|
static class |
InfluxDB.LogLevel
Controls the level of logging of the REST layer.
|
Modifier and Type | Method and Description |
---|---|
void |
alterDatabasePrivilege(String database,
String name,
boolean isAdmin,
String... permissions)
Alter the admin privilege of a given database user.
|
void |
authenticateDatabaseUser(String database,
String username,
String password)
Authenticate with the given credentials against the database.
|
void |
createClusterAdmin(String name,
String password)
Create a new cluster admin.
|
void |
createDatabase(String name,
int replicationFactor)
Create a new Database.
|
void |
createDatabaseUser(String database,
String name,
String password,
String... permissions)
Create a new regular database user.
|
void |
createScheduledDelete(String database,
ScheduledDelete delete)
Create a new scheduled deletion.
|
void |
deleteClusterAdmin(String name)
Delete a cluster admin.
|
void |
deleteContinuousQuery(String database,
int id)
Delete a continous query.
|
void |
deleteDatabase(String name)
Delete a database.
|
void |
deleteDatabaseUser(String database,
String name)
Delete a database user.
|
void |
deletePoints(String database,
String serieName)
Delete all points of a serie.
|
void |
deleteScheduledDelete(String database,
int id)
Delete a scheduled deletion.
|
List<User> |
describeClusterAdmins()
Describe all cluster admins.
|
List<ContinuousQuery> |
describeContinuousQueries(String database)
Describe all contious queries in a database.
|
List<Database> |
describeDatabases()
Describe all available databases.
|
List<User> |
describeDatabaseUsers(String database)
Describe all database users allowed to acces the given database.
|
List<ScheduledDelete> |
describeScheduledDeletes(String database)
Describe all scheduled deletes.
|
Pong |
ping()
Ping this influxDB-
|
List<Serie> |
Query(String database,
String query,
TimeUnit precision)
Execute a query agains a database.
|
InfluxDB |
setLogLevel(InfluxDB.LogLevel logLevel)
Set the loglevel which is used for REST related actions.
|
void |
updateClusterAdmin(String name,
String password)
Update the password of the given admin.
|
void |
updateDatabaseUser(String database,
String name,
String password,
String... permissions)
Update the password and/or the permissions of a database user.
|
void |
write(String database,
TimeUnit precision,
Serie... series)
Write a Series to the given database.
|
InfluxDB setLogLevel(InfluxDB.LogLevel logLevel)
logLevel
- the loglevel to set.Pong ping()
void write(String database, TimeUnit precision, Serie... series)
database
- the name of the database to write to.precision
- the precision used for the values.series
- a Array of Serie
s to write.List<Serie> Query(String database, String query, TimeUnit precision)
database
- the name of the database.query
- the query to execute, for language specification please see http://influxdb.org/docs/query_languageprecision
- the precision used for the values.void createDatabase(String name, int replicationFactor)
name
- the name of the new database.replicationFactor
- the replicationfactor to use, must be >= 1.void deleteDatabase(String name)
name
- the name of the database to delete.List<Database> describeDatabases()
void createClusterAdmin(String name, String password)
name
- the name of the new admin.password
- the password for the new admin.void deleteClusterAdmin(String name)
name
- the name of the admin to delete.List<User> describeClusterAdmins()
void updateClusterAdmin(String name, String password)
name
- the name of the admin for which the password should be updated.password
- the new password for the given admin.void createDatabaseUser(String database, String name, String password, String... permissions)
database
- the name of the database where this user is allowed.name
- the name of the new database user.password
- the password for this user.permissions
- a array of readFrom and writeTo permissions (in this order) and given in regex
form.void deleteDatabaseUser(String database, String name)
database
- the name of the database the given user should be removed from.name
- the name of the user to remove.List<User> describeDatabaseUsers(String database)
database
- the name of the database for which all users should be described.void updateDatabaseUser(String database, String name, String password, String... permissions)
database
- the name of the database where this user is allowed.name
- the name of the existing database user.password
- the password for this user.permissions
- a array of readFrom and writeTo permissions (in this order) and given in regex
form.void alterDatabasePrivilege(String database, String name, boolean isAdmin, String... permissions)
database
- the name of the database where this user is allowed.name
- the name of the existing database user.isAdmin
- if set to true this user is a database admin, otherwise it isnt.permissions
- a array of readFrom and writeTo permissions (in this order) and given in regex
form.void authenticateDatabaseUser(String database, String username, String password)
database
- the name of the database where this user is allowed.username
- the name of the existing database user.password
- the password for this user.List<ContinuousQuery> describeContinuousQueries(String database)
database
- the name of the database for which all continous queries should be described.void deleteContinuousQuery(String database, int id)
database
- the name of the database for which this query should be deleted.id
- the id of the query.void deletePoints(String database, String serieName)
database
- the database in which the given points should be deleted.serieName
- the name of the serie.void createScheduledDelete(String database, ScheduledDelete delete)
database
- the name of the database.delete
- the query which describes what to delete.List<ScheduledDelete> describeScheduledDeletes(String database)
database
- the name of the database for which all scheduled deletes should be described.void deleteScheduledDelete(String database, int id)
database
- the name of the database for which this scheduled deletes should be deleted-.id
- the id of the delete.Copyright © 2014. All Rights Reserved.