@influxdata/influxdb-client-giraffe
TypeScript icon, indicating that this package has built-in type declarations

1.35.0 • Public • Published

@influxdata/influxdb-client-giraffe

This package provides an efficient queryToTable function that queries InfluxDB (v2) and returns a Table that is then directly suitable as a data input of various Giraffe visualizations.

import {InfluxDB} from '@influxdata/influxdb-client'
import {queryToTable} from '@influxdata/influxdb-client-giraffe'
import {newTable, Plot} from '@influxdata/giraffe'
...
const queryApi = new InfluxDB({url, token}).getQueryApi(org)
const table = await queryToTable(
  api,
  'from(bucket: "my-bucket") |> range(start: -30d)',
  newTable,
  {maxTableRows: 5000}
)
...
<Plot config={{table, ...}}></Plot>
...

See https://github.com/influxdata/influxdb-client-js to know more.

Readme

Keywords

Package Sidebar

Install

npm i @influxdata/influxdb-client-giraffe

Weekly Downloads

5

Version

1.35.0

License

MIT

Unpacked Size

297 kB

Total Files

12

Last publish

Collaborators

  • bednar.b
  • srebhan
  • mrpowersj
  • wdoconnell
  • blegesse
  • chunyellow
  • influxdata-ci
  • mavarius
  • bnelson_influx
  • monono
  • zoesteinkamp