/// <summary> /// Returns a list of telegraf configs for specified organization. /// </summary> /// <param name="orgId">specifies the organization of the telegraf configs</param> /// <returns>A list of telegraf configs</returns> public async Task <List <Telegraf> > FindTelegrafsByOrgIdAsync(string orgId) { return((await _service.GetTelegrafsAsync(orgId)).Configurations); }
/// <summary> /// Returns a list of telegraf configs for specified organization. /// </summary> /// <param name="orgId">specifies the organization of the telegraf configs</param> /// <returns>A list of telegraf configs</returns> public async Task<List<Telegraf>> FindTelegrafsByOrgIdAsync(string orgId) { var response = await _service.GetTelegrafsAsync(orgId).ConfigureAwait(false); return response.Configurations; }
/// <summary> /// Returns a list of telegraf configs for specified organization. /// </summary> /// <param name="orgId">specifies the organization of the telegraf configs</param> /// <returns>A list of telegraf configs</returns> public async Task <List <Telegraf> > FindTelegrafsByOrgIdAsync(string orgId) { return(await _service.GetTelegrafsAsync(orgId).ContinueWith(t => t.Result.Configurations)); }