1.0.3 • Published 6 years ago
green-influx v1.0.3
green-influx
An Influx database ingestion service for AWS Greengrass.
Current version: 1.0.1
Lead Maintainer: Halim Qarroum
Table of contents
Install
green add npm://green-influx
Description
This application is an Expressify interface to a running Influx database. It provides Expressify APIs to interact with the Influx database which are listed in the API section.
Influx provides a great way to store time-series measurements on the local Greengrass core without being connected to the Internet.
API
This application exposes an Expressify API which is accessible from any green application locally, but also from the AWS IoT Core service from the cloud remotely. The available API endpoints are documented and described below.
Method | Resource | Return code(s) | Payload required | Description |
---|---|---|---|---|
GET | /databases | 200 | No | This route returns the list of databases currently configured on the Influx database. |
GET | /users | 200 | No | This route returns information on the currently registered users on the Influx database. |
POST | /query | 200 | Yes | This route can be used to send a SQL query to the Influx database through the given payload object (can be a string or an array of strings). |
GET | /series/:name | 200 | No | This route return the series associated with the given name . |
GET | /measurements | 200 | No | This route returns an array of the currently registered measurement names on the Influx database. |
POST | /measurements | 200 | No | This route allows an external application to insert a new measurement in the Influx database. |
DELETE | /measurements | 200 | Yes | This route allows to remove the given measurement from the Influx database. |
See also
- The green-cli command-line tool.
- The green-sdk software development kit for green applications.
- The Expressify framework.