/// <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);
 }
示例#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;
 }
示例#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));
 }