InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client-giraffe > createCollector
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[]>;
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