Socket
Socket
Sign inDemoInstall

@influxdata/influxdb-client-giraffe

Package Overview
Dependencies
0
Maintainers
11
Versions
541
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @influxdata/influxdb-client-giraffe

InfluxDB 2.x client - giraffe integration


Version published
Weekly downloads
257
decreased by-24.85%
Maintainers
11
Install size
284 kB
Created
Weekly downloads
 

Changelog

Source

1.33.2 [2023-02-23]

Bug Fixes

  1. Various updates to dependencies

Readme

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

Last updated on 23 Feb 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc