InfluxDB Shunya API
#
GrafanaGrafana is a data visualization tool used to display and represent the data.
#
InfluxDB configuration in ShunyaConfig | Descriptions |
---|---|
Influx DB URL | url to the Influx DB instance. |
Database Name | Name of the database in which the data gets stored. |
The configurations need to be set manually by the user before using the API's
For example:
A sample JSON snippet should contain
#
Commonly configured parametersFor example:
A typical Influxdb configuration without security will look like this
#
API'sAPI | Description | Details |
---|---|---|
newInfluxdb() | Create a new Influx DB Instance. | Read More |
writeDbInflux() | Send Data to Influx DB. | Read More |
newInfluxdb()
#
Description : Creates a new Influxdb Instance
Parameters
name (char *)
- Name of the JSON object.
Return-type : influxdbObj
Returns : influxdbObj Instance for Influxdb
Usage :
For example: Lets say your /etc/shunya/config.json
JSON file looks like
So the usage of the API's will be
writeDbInflux()
#
Description : Send Data to Influx DB.
Parameters
obj
(influxdbObj) - the InfulxDB Instancedata
(char) - the data to be sent to Influxdb in Influx db line format...
Return-type : int8_t
Usage :