Pull request Compare This branch is 5 commits ahead, 61 commits behind develop.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
conf
docs
routes
tests
.gitignore
Gruntfile.js
README.md
app.js
npm-shrinkwrap.json
package-version.json
package.json

README.md

Data Logger API

The console-backend-data-logger proejct contains a Node.js app that can be called by other services to contribute data to be displayed in the console.

By default, the data manager runs on port 3001.

For an interactive Swagger API console, see /docs.

For some Frisby unit tests, see /tests.

POST Metrics API

This API can be used to add a metric value. Note that the value will overwrite the previous value for the same metric, if any.

POST /metrics

{
	"data": [
  	{
  	  "source": "zookeeper",
  		"metric": "zookeeper.health",
  		"value": "OK",
  		"causes": "Everything is fine!",
  		"timestamp": 1234567890
  	}
	],
	"timestamp" : 123456789
}

POST Packages API

This API can be used to create a package.

POST /packages

{
	"data": [
	  {
		  "id": "package1",
		  "state": "running",
		  "timestamp": 1234567890
	  }
	],
	"timestamp" : 123456789
}

POST Applications API

This API can be used to create an application.

POST /applications

{
	"data": [
	  {
		  "id": "application2",
		  "state": "stopped",
		  "timestamp": 1234567890
 	  }
	],
	"timestamp" : 123456789
}