Package com.influxdb.client
Interface LabelsApi
@ThreadSafe
public interface LabelsApi
The client of the InfluxDB 2.x that implement Labels HTTP API endpoint.
- Author:
- Jakub Bednar (bednar@github) (28/01/2019 10:37)
-
Method Summary
Modifier and TypeMethodDescriptioncloneLabel
(String clonedName, Label label) Clone a label.cloneLabel
(String clonedName, String labelID) Clone a label.createLabel
(LabelCreateRequest request) Create a label.Creates a new label and setsLabel.getId()
with the new identifier.void
deleteLabel
(Label label) Delete a label.void
deleteLabel
(String labelID) Delete a label.findLabelByID
(String labelID) Retrieve a label.Get all labels.findLabelsByOrg
(Organization organization) Get all labels.findLabelsByOrgId
(String orgID) Get all labels.updateLabel
(Label label) Updates a label's properties.updateLabel
(String labelID, LabelUpdate labelUpdate) Update a single label.
-
Method Details
-
createLabel
@Nonnull Label createLabel(@Nonnull String name, @Nonnull Map<String, String> properties, String orgID) Creates a new label and setsLabel.getId()
with the new identifier.- Parameters:
name
- name of a labelproperties
- properties of a labelorgID
- ID of the org- Returns:
- Label created
-
createLabel
Create a label.- Parameters:
request
- label to create- Returns:
- Added label
-
updateLabel
Updates a label's properties.- Parameters:
label
- a label with properties to update- Returns:
- updated label
-
updateLabel
Update a single label.- Parameters:
labelID
- ID of label to updatelabelUpdate
- label update- Returns:
- updated label
-
deleteLabel
Delete a label.- Parameters:
label
- label to delete
-
deleteLabel
Delete a label.- Parameters:
labelID
- ID of a label to delete
-
cloneLabel
Clone a label.- Parameters:
clonedName
- name of cloned labellabelID
- ID of label to clone- Returns:
- cloned label
-
cloneLabel
Clone a label.- Parameters:
clonedName
- name of cloned labellabel
- label to clone- Returns:
- cloned label
-
findLabelByID
Retrieve a label.- Parameters:
labelID
- ID of a label to get- Returns:
- label details
-
findLabels
Get all labels.- Returns:
- all labels
-
findLabelsByOrg
Get all labels.- Parameters:
organization
- specifies the organization of the resource- Returns:
- all labels
-
findLabelsByOrgId
Get all labels.- Parameters:
orgID
- specifies the organization ID of the resource- Returns:
- all labels
-