/// <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);
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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));
 }