Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@influxdata/influxdb-client-giraffe

Package Overview
Dependencies
Maintainers
0
Versions
624
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
  • npm
  • Socket score

Version published
Weekly downloads
176
decreased by-39.31%
Maintainers
0
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc