0.0.8 • Published 6 years ago

simple-influx-http v0.0.8

Weekly downloads
14
License
Unlicense
Repository
github
Last release
6 years ago

Dependencies LCommit

Downloads NPM Node

Size install size

Tiny library for InfluxDB data write

Use command this way:

const {writeToInflux} = require('simple-influx-http');

(async () => {
    await writeToInflux({
        url: 'http://localhost:8086',     // influx http api url with port
        db: 'myData',                     // database name
        meas: 'water',                    // measurement name
        tags: {                           // tags to add
            country: 'russia',
            city: 'sochi',
        },
        values: {                         // values to send
            temp: 24,
            desc: 'good time to swim',
        },
        timestamp: '1476742925219947761', // time to add                (default = current)
        retry: 3,                         // superagent request retries (default = 3)
        timeout: {                        // superagent request timeout (default = 10000/20000)
            response: 10000,
            deadline: 20000,
        }
    });
})();
0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago