Statistics Export via POST: Difference between revisions

no edit summary
(Created page with "The Statistics Export allows querying the API of the Allegro Network Multimeter and transmit JSON results to a remote server via HTTP POST requests. The API path can be determ...")
 
No edit summary
Line 11: Line 11:
This will generate a '''POST /interface-stats-for-mm-1234''' request to '''10.0.0.1''' every minute and send the interface statistics of the multimeter.
This will generate a '''POST /interface-stats-for-mm-1234''' request to '''10.0.0.1''' every minute and send the interface statistics of the multimeter.


==== Sample Node.js server ====
== Example receiving server ==
 
To test the correct setup, a simple example server using Node.js can be used to receive the POST requests and show the transmitted data.


The following script is a basic '''Node.js''' server (with minimal error handling) which reads all POST requests and stores them to a file:
The following script is a basic '''Node.js''' server (with minimal error handling) which reads all POST requests and stores them to a file:
546

edits