Class: InfluxClient

$k. InfluxClient

new $k.InfluxClient(database, url)

Creates a new InfluxDB cient

Name Type Description
database string

Name of the database

url string optional

URL of the InfluxDB server. Default: http://localhost:8086

Since:
  • 5.2.2 Abstract superclass of Javascript objects that wrap a i-views object

Methods

authenticateFromEncrypedAccount(encryptedAccount)

Set the username and password from a volume encrypted authenication string

Name Type Description
encryptedAccount string

Encrypted account (Base64 encoded string generated in the Admin-Tool)

Since:
  • 5.2.2

setRetentionPolicy(policy)

Set the retentionPolicy

Name Type Description
policy string

The name of a retention policy

Since:
  • 5.2.2

setWriteDelay(delay)

Set the delay before actually writing datapoints to InfluxDB. All datapoints written during this timespan are combined to a single write request.

Name Type Description
delay number

Number of seconds

Since:
  • 5.2.2

writePoints(datapoints)

Write datapoints to InfluxDB

Name Type Description
datapoints Array.<object>

List of datapoints objects:

 [ {measurement: "m", fields: { }, tags: { } ]

Since:
  • 5.2.2