Permalink
Browse files

Create README.md

  • Loading branch information...
eriklax committed Oct 8, 2018
1 parent e63a88c commit e9b4a4942e74e36740a6e8170d78bac14375ff07
Showing with 20 additions and 0 deletions.
  1. +20 −0 database/influxdb/README.md
@@ -0,0 +1,20 @@
## InfluxDB(address, opts)
InfluxDB client class to send [line protocol](https://docs.influxdata.com/influxdb/v1.6/write_protocols/line_protocol_reference/) instructions over UDP.

**Params**

- address `string` - IP-address to InfluxDB server. Required.
- opts `array` - options array

**Returns**: class object.

The following options are available in the **opts** array.

- port `number` - UDP port. The default is 8089.

## send(measurement, fieldset, [tagset])
Send a line protocol update.

- measurement `string` - The measurement.
- fieldset `array`- The fieldset, key-value array
- tagset `array`- The tagset, key-value array

0 comments on commit e9b4a49

Please sign in to comment.