cloudburst

module
v0.0.0-...-3cdd1f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2021 License: EUPL-1.2

README

CloudBurst

godoc pipeline status coverage report goreportcard

CloudBurst is an HTTP/CoAP frontend for storing/retrieving SenML in/from InfluxDB using a simple API.

The API (documented below) works over HTTP(s) and CoAP(s) with CBOR (application/senml+cbor), JSON (application/senml+json), and XML (application/senml+xml). SenSML or SenML FETCH/PATCH are currently not supported.

Installation

Download and build the application using:

go get "git.snt.utwente.nl/dingen/cloudburst/cmd/cloudburst"

The server can be started using cloudburst -c <config file>. Example configuration can be found in config.dist.yaml.

API

The API exposes endpoints based on InfluxDB measurements. This allows one to store data from different sources separately.

GET /api/v1[/measurement][/host]

Retrieve SenML data for host from measurement.

Optional path parameters:

Parameter Description
measurement Name of the InfluxDB measurement. cloudburst by default.
host Hostname of the device. This may be a regular expression.

Optional query parameters:

Parameter Description
last Only retrieve the last values for every host.
from Unix timestamp in seconds, or duration (in the past). Defaults to 1h.
to Unix timestamp in seconds, or duration (in the past). Defaults to 0s.

Optional headers:

Parameter Description
Accept SenML MIME type. JSON by default.
POST /api/v1[/measurement][/host]

Store SenML data for host in measurement.

Optional path parameters:

Parameter Description
measurement Name of the InfluxDB measurement. cloudburst by default.
host Hostname of the device.

Required headers:

Parameter Description
Content-Type SenML MIME type.

Directories

Path Synopsis
cmd
scrapers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL