Package com.influxdb.client
Interface VariablesApi
@ThreadSafe
public interface VariablesApi
The client of the InfluxDB 2.x that implement Variables HTTP API endpoint.
- Author:
- Jakub Bednar (27/03/2019 09:35)
-
Method Summary
Modifier and TypeMethodDescriptionAdd a label to a variable.Add a label to a variable.cloneVariable
(String clonedName, Variable variable) Clone a variable.cloneVariable
(String clonedName, String variableID) Clone a variable.createVariable
(Variable variable) Create a variable.void
deleteLabel
(Label label, Variable variable) Delete a label from a variable.void
deleteLabel
(String labelID, String variableID) Delete a label from a variable.void
deleteVariable
(Variable variable) Delete a variable.void
deleteVariable
(String variableID) Delete a variable.findVariableByID
(String variableID) Get a variable.findVariables
(Organization organization) Get all variables.findVariables
(String orgID) Get all variables.List all labels for a variable.List all labels for a variable.updateVariable
(Variable variable) Update a variable.
-
Method Details
-
createVariable
Create a variable.- Parameters:
variable
- variable to create- Returns:
- variable created
-
updateVariable
Update a variable.- Parameters:
variable
- variable update to apply- Returns:
- variable updated
-
deleteVariable
Delete a variable.- Parameters:
variable
- variable to delete
-
deleteVariable
Delete a variable.- Parameters:
variableID
- id of the variable
-
cloneVariable
Clone a variable.- Parameters:
clonedName
- name of cloned variablevariableID
- ID of variable to clone- Returns:
- cloned variable
-
cloneVariable
Clone a variable.- Parameters:
clonedName
- name of cloned variablevariable
- variable to clone- Returns:
- cloned variable
-
findVariableByID
Get a variable.- Parameters:
variableID
- ID of the variable (required)- Returns:
- variable found
-
findVariables
Get all variables.- Parameters:
organization
- specifies the organization of the resource- Returns:
- all variables for an organization
-
findVariables
Get all variables.- Parameters:
orgID
- specifies the organization id of the resource- Returns:
- all variables for an organization
-
getLabels
List all labels for a variable.- Parameters:
variable
- the variable- Returns:
- a list of all labels for a variable
-
getLabels
List all labels for a variable.- Parameters:
variableID
- ID of the variable- Returns:
- a list of all labels for a variable
-
addLabel
Add a label to a variable.- Parameters:
label
- label to addvariable
- the variable- Returns:
- a list of all labels for a variable
-
addLabel
Add a label to a variable.- Parameters:
labelID
- the ID of label to addvariableID
- ID of the variable- Returns:
- a list of all labels for a variable
-
deleteLabel
Delete a label from a variable.- Parameters:
label
- the label to deletevariable
- the variable
-
deleteLabel
Delete a label from a variable.- Parameters:
labelID
- the ID of a labelvariableID
- ID of the variable
-