1.0.3 • Published 6 years ago

green-influx v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

green-influx

An Influx database ingestion service for AWS Greengrass.

Green application CodeFactor

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.

MethodResourceReturn code(s)Payload requiredDescription
GET/databases200NoThis route returns the list of databases currently configured on the Influx database.
GET/users200NoThis route returns information on the currently registered users on the Influx database.
POST/query200YesThis 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/:name200NoThis route return the series associated with the given name.
GET/measurements200NoThis route returns an array of the currently registered measurement names on the Influx database.
POST/measurements200NoThis route allows an external application to insert a new measurement in the Influx database.
DELETE/measurements200YesThis route allows to remove the given measurement from the Influx database.

See also