/// <summary> /// List all labels for a telegraf config. /// </summary> /// <param name="telegrafId">ID of the telegraf config</param> /// <returns>a list of all labels for a telegraf config</returns> public async Task<List<Label>> GetLabelsAsync(string telegrafId) { Arguments.CheckNonEmptyString(telegrafId, nameof(telegrafId)); var response = await _service.GetTelegrafsIDLabelsAsync(telegrafId).ConfigureAwait(false); return response.Labels; }
/// <summary> /// List all labels for a telegraf config. /// </summary> /// <param name="telegrafId">ID of the telegraf config</param> /// <returns>a list of all labels for a telegraf config</returns> public async Task <List <Label> > GetLabelsAsync(string telegrafId) { Arguments.CheckNonEmptyString(telegrafId, nameof(telegrafId)); return((await _service.GetTelegrafsIDLabelsAsync(telegrafId)).Labels); }
/// <summary> /// List all labels for a telegraf config. /// </summary> /// <param name="telegrafId">ID of the telegraf config</param> /// <returns>a list of all labels for a telegraf config</returns> public async Task <List <Label> > GetLabelsAsync(string telegrafId) { Arguments.CheckNonEmptyString(telegrafId, nameof(telegrafId)); return(await _service.GetTelegrafsIDLabelsAsync(telegrafId).ContinueWith(t => t.Result.Labels)); }