Interface ILabelsApi
Namespace: InfluxDB.Client
Assembly: InfluxDB.Client.dll
Syntax
public interface ILabelsApi
Methods
CloneLabelAsync(String, Label, CancellationToken)
Clone a label.
Declaration
Task<Label> CloneLabelAsync(string clonedName, Label label, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
clonedName | name of cloned label |
Label | label | label to clone |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<Label> | cloned label |
CloneLabelAsync(String, String, CancellationToken)
Clone a label.
Declaration
Task<Label> CloneLabelAsync(string clonedName, string labelId, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
clonedName | name of cloned label |
System. |
labelId | ID of label to clone |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<Label> | cloned label |
CreateLabelAsync(LabelCreateRequest, CancellationToken)
Create a label
Declaration
Task<Label> CreateLabelAsync(LabelCreateRequest request, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Label |
request | label to create |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<Label> | Added label |
CreateLabelAsync(String, Dictionary<String, String>, String, CancellationToken)
Create a label
Declaration
Task<Label> CreateLabelAsync(string name, Dictionary<string, string> properties, string orgId, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | name of a label |
Dictionary<System. |
properties | properties of a label |
System. |
orgId | owner of a label |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<Label> | Added label |
DeleteLabelAsync(Label, CancellationToken)
Delete a label.
Declaration
System.Threading.Tasks.Task DeleteLabelAsync(Label label, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Label | label | label to delete |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
delete has been accepted |
DeleteLabelAsync(String, CancellationToken)
Delete a label.
Declaration
System.Threading.Tasks.Task DeleteLabelAsync(string labelId, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
labelId | ID of label to delete |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System. |
delete has been accepted |
FindLabelByIdAsync(String, CancellationToken)
Retrieve a label.
Declaration
Task<Label> FindLabelByIdAsync(string labelId, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
labelId | ID of a label to get |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<Label> | Label detail |
FindLabelsAsync(CancellationToken)
List all labels.
Cancellation tokenDeclaration
Task<List<Label>> FindLabelsAsync(CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Cancellation |
cancellationToken |
Returns
Type | Description |
---|---|
Task<List<Label>> | List all labels. |
FindLabelsByOrgAsync(Organization, CancellationToken)
Get all labels.
Declaration
Task<List<Label>> FindLabelsByOrgAsync(Organization organization, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Organization | organization | specifies the organization of the resource |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<List<Label>> | all labels |
FindLabelsByOrgIdAsync(String, CancellationToken)
Get all labels.
Declaration
Task<List<Label>> FindLabelsByOrgIdAsync(string orgId, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
orgId | specifies the organization ID of the resource |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<List<Label>> | all labels |
UpdateLabelAsync(Label, CancellationToken)
Update a single label
Declaration
Task<Label> UpdateLabelAsync(Label label, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Label | label | label to update |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<Label> | Updated label |
UpdateLabelAsync(String, LabelUpdate, CancellationToken)
Update a single label
Declaration
Task<Label> UpdateLabelAsync(string labelId, LabelUpdate labelUpdate, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
labelId | ID of label to update |
Label |
labelUpdate | label update |
Cancellation |
cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
Task<Label> | Updated label |