/// <summary> /// Describe all available databases. /// </summary> /// <returns>A list of all Databases</returns> public async Task <List <Database> > ShowDatabasesAsync() { var response = await _influxDbClient.ShowDatabases(NoErrorHandlers); var queryResult = response.ReadAs <QueryResult>(); var serie = queryResult.Results.Single().Series.Single(); var databases = new List <Database>(); foreach (var value in serie.Values) { databases.Add(new Database { Name = (string)value[0] }); } return(databases); }
public async Task <InfluxDbApiResponse> ShowDatabases(IEnumerable <ApiResponseErrorHandlingDelegate> errorHandlers) { return(await _influxDbClient.ShowDatabases(errorHandlers)); }