REST API description: Difference between revisions

Line 178: Line 178:
</pre>
</pre>


== JSON Output Traffic counters ==
== JSON output traffic counters ==


Traffic counters are represented as a JSON array with at least 4 lines. The structure is as follows:
All counters are aggregated counters, either for the selected time interval or since the processing start of the Allegro. Many traffic counters have 4 separate values. These traffic counters are represented as a JSON array with at least 4 lines. The structure is as follows:
* line 1: received packets.
* line 1: received packets.
* line 2: received bytes.
* line 2: received bytes.
Line 200: Line 200:


<code>curl --silent -k -u USER:PASSWORD 'https://allegro-mm-XXXX/API/stats/modules/ip/ips/10.1.2.3' | jq '.lastSecond[1] + .lastSecond[3]'</code>
<code>curl --silent -k -u USER:PASSWORD 'https://allegro-mm-XXXX/API/stats/modules/ip/ips/10.1.2.3' | jq '.lastSecond[1] + .lastSecond[3]'</code>


== API parameters ==
== API parameters ==
404

edits