Socket
Book a DemoInstallSign in
Socket

@influxdata/influxdb-client-giraffe

Package Overview
Dependencies
Maintainers
11
Versions
642
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@influxdata/influxdb-client-giraffe

InfluxDB 2.x client - giraffe integration

1.35.0
latest
Source
npmnpm
Version published
Weekly downloads
271
271.23%
Maintainers
11
Weekly downloads
 
Created
Source

@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.

Keywords

influxdb

FAQs

Package last updated on 15 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.