Get graph
Retrieves pre-preocessed statistical data in a format that's ideal to feed into a JS charting/graphing plugin.
Request
Method |
URL |
POST |
/smserver-default/sms.GetGraph |
RAW |
POST /smserver-default/sms.GetGraph HTTP/1.1 Cache-Control: no-cache Connection: Keep-Alive Pragma: no-cache Content-Type: application/json; charset=UTF-8 Accept: */* Authorization: Bearer XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[ { "Offset" : 60, "Protocol" : "All", "Graph" : [ "Session", "KBUp", "KBDown" ], "nodes" : [ "Z5ENP7AZMPRERDQHUEWBSICAKI", "NPFS3SNTFBLUVFJNCLUZPUEB4E" ] } ] |
Explained |
Retrieves pre-processed statistical data in a format that is ideal to draw a chart/graph.
Protocol: protocollo scelto Graph: grafico di ritorno ("session","KBUp","KBDown","KBUp",KBDown") nodes: the virtual server nodes for which you wish to retrieve the chart data |
Response
Method |
URL |
RAW |
Accept-Encoding: synlz,gzip Content-Type: application/json; charset=UTF-8
{"result":[
"session" : [ [ NumberLong(1454709730000), 3 ], [ NumberLong(1454709735000), 1 ], [ NumberLong(1454709740000), 4 ], "kbup" : [ [ NumberLong(1454709730000), 2584 ], [ NumberLong(1454709730000), 589 ], [ NumberLong(1454709735000), 2875 ], "kbdown" : [ [ NumberLong(1454709730000), 0 ], [ NumberLong(1454709735000), 1987 ], [ NumberLong(1454709740000), 3324 ],
],"id":772674711} |
Explained |
A JSON array containing charting data in a format that is ideal for most charting components (like ChartJS and similar).
Each requested series has a timestamp which is the UTC [UnixTime * 1000] and the associated value. |