public interface LabelsApi
Modifier and Type | Method and Description |
---|---|
Label |
cloneLabel(String clonedName,
Label label)
Clone a label.
|
Label |
cloneLabel(String clonedName,
String labelID)
Clone a label.
|
Label |
createLabel(LabelCreateRequest request)
Create a label.
|
Label |
createLabel(String name,
Map<String,String> properties,
String orgID)
Creates a new label and sets
Label.getId() with the new identifier. |
void |
deleteLabel(Label label)
Delete a label.
|
void |
deleteLabel(String labelID)
Delete a label.
|
Label |
findLabelByID(String labelID)
Retrieve a label.
|
List<Label> |
findLabels()
Get all labels.
|
List<Label> |
findLabelsByOrg(Organization organization)
Get all labels.
|
List<Label> |
findLabelsByOrgId(String orgID)
Get all labels.
|
Label |
updateLabel(Label label)
Updates a label's properties.
|
Label |
updateLabel(String labelID,
LabelUpdate labelUpdate)
Update a single label.
|
@Nonnull Label createLabel(@Nonnull String name, @Nonnull Map<String,String> properties, String orgID)
Label.getId()
with the new identifier.name
- name of a labelproperties
- properties of a labelorgID
- @Nonnull Label createLabel(@Nonnull LabelCreateRequest request)
request
- label to create@Nonnull Label updateLabel(@Nonnull Label label)
label
- a label with properties to update@Nonnull Label updateLabel(@Nonnull String labelID, @Nonnull LabelUpdate labelUpdate)
labelID
- ID of label to updatelabelUpdate
- label updatevoid deleteLabel(@Nonnull Label label)
label
- label to deletevoid deleteLabel(@Nonnull String labelID)
labelID
- ID of a label to delete@Nonnull Label cloneLabel(@Nonnull String clonedName, @Nonnull String labelID)
clonedName
- name of cloned labellabelID
- ID of label to clone@Nonnull Label cloneLabel(@Nonnull String clonedName, @Nonnull Label label)
clonedName
- name of cloned labellabel
- label to clone@Nonnull Label findLabelByID(@Nonnull String labelID)
labelID
- ID of a label to get@Nonnull List<Label> findLabelsByOrg(@Nonnull Organization organization)
organization
- specifies the organization of the resourceCopyright © 2018–2020 InfluxData, Inc.. All rights reserved.