influxdb-client-js

InfluxDB 2.0 JavaScript client

View the Project on GitHub influxdata/influxdb-client-js

Home > @influxdata/influxdb-client-giraffe > createCollector

createCollector() function

Creates influxdb-client-js’s FluxResultObserver that collects row results to a Table instance

Signature:

declare function createCollector(resolve: (value: FromFluxResult) => void, reject: (reason?: any) => void, tableFactory: GiraffeTableFactory, tableOptions?: TableOptions): FluxResultObserver<string[]>;

Parameters

Parameter Type Description
resolve (value: FromFluxResult) => void called when the Table is collected
reject (reason?: any) => void called upon error
tableFactory GiraffeTableFactory  
tableOptions TableOptions (Optional) tableOptions allow to filter or even stop the processing of rows, or restrict the columns to collect

Returns:

FluxResultObserver<string[]>

FluxResultObserver that collects table data from result rows