Sample json response – Brocade Network Advisor REST API Guide (Supporting Network Advisor 12.3.0) User Manual
Page 57

Brocade Network Advisor REST API Guide
43
53-1003160-01
Getting Traffic Flow Performance Data
4
} catch (IOException ie) {
System.out.println(ie.toString());
} finally {
if (null != con) {
con.disconnect();
}
}
Sample JSON response
The following is the JSON response for retrieving performance data for the Transmit Frame Rate
measure.
CALLING GET
http://10.24.48.103/rest/resourcegroups/All/fcswitches/10:00:00:05:33:13:78:7E/ti
meseriestxframerate?startdate=1402012800000&enddate=1402023600000&granularity=GRA
NULARITY_30MIN
REQUEST HTTPSTATUS = 200
{"performanceDatas":[{"targetKey":"fldbid-16","targetType":"FLOW","timeSeriesData
s":[]},{"targetKey":"fldbid-13","targetType":"FLOW","timeSeriesDatas":[{"timeInSe
conds":1402023599,"value":0.0,"lo":0.0,"hi":0.0,"sum":0.0},{"timeInSeconds":14020
21799,"value":0.0,"lo":0.0,"hi":0.0,"sum":0.0},{"timeInSeconds":1402019999,"value
":0.0,"lo":0.0,"hi":0.0,"sum":0.0},{"timeInSeconds":1402018199,"value":0.0,"lo":0
.0,"hi":0.0,"sum":0.0},{"timeInSeconds":1402016399,"value":0.0,"lo":0.0,"hi":0.0,
"sum":0.0},{"timeInSeconds":1402014599,"value":0.0,"lo":0.0,"hi":0.0,"sum":0.0}]}
,{"targetKey":"fldbid-10","targetType":"FLOW","timeSeriesDatas":[{"timeInSeconds"
:1402023599,"value":0.0030000000000000005,"lo":0.0,"hi":0.005,"sum":0.0},{"timeIn
Seconds":1402021799,"value":0.005833333333333334,"lo":0.004,"hi":0.009,"sum":0.0}
,{"timeInSeconds":1402019999,"value":0.006000000000000001,"lo":0.0,"hi":0.014,"su
m":0.0},{"timeInSeconds":1402018199,"value":0.006666666666666665,"lo":0.0,"hi":0.
013,"sum":0.0},{"timeInSeconds":1402016399,"value":0.007666666666666666,"lo":0.0,
"hi":0.011,"sum":0.0},{"timeInSeconds":1402014599,"value":0.006333333333333333,"l
o":0.0,"hi":0.013,"sum":0.0}]},{"targetKey":"fldbid-9","targetType":"FLOW","timeS
eriesDatas":[{"timeInSeconds":1402023599,"value":0.004833333333333333,"lo":0.0,"h
i":0.009,"sum":0.0},{"timeInSeconds":1402021799,"value":0.006166666666666667,"lo"
:0.004,"hi":0.009,"sum":0.0},{"timeInSeconds":1402019999,"value":0.00433333333333
3334,"lo":0.0,"hi":0.011,"sum":0.0},{"timeInSeconds":1402018199,"value":0.0066666
66666666665,"lo":0.0,"hi":0.013,"sum":0.0},{"timeInSeconds":1402016399,"value":0.
007833333333333333,"lo":0.0,"hi":0.014,"sum":0.0},{"timeInSeconds":1402014599,"va
lue":0.004166666666666667,"lo":0.0,"hi":0.012,"sum":0.0}]},{"targetKey":"fldbid-1
1","targetType":"FLOW","timeSeriesDatas":[{"timeInSeconds":1402023599,"value":0.0
05,"lo":0.0,"hi":0.011,"sum":0.0},{"timeInSeconds":1402021799,"value":0.004833333
333333334,"lo":0.0,"hi":0.009,"sum":0.0},{"timeInSeconds":1402019999,"value":0.00
6666666666666668,"lo":0.0,"hi":0.013,"sum":0.0},{"timeInSeconds":1402018199,"valu
e":0.007166666666666666,"lo":0.0,"hi":0.014,"sum":0.0},{"timeInSeconds":140201639
9,"value":0.005833333333333334,"lo":0.0,"hi":0.012,"sum":0.0},{"timeInSeconds":14
02014599,"value":0.004166666666666667,"lo":0.0,"hi":0.01,"sum":0.0}]},{"targetKey
":"fldbid-15","targetType":"FLOW","timeSeriesDatas":[]},{"targetKey":"fldbid-14",
"targetType":"FLOW","timeSeriesDatas":[{"timeInSeconds":1402023599,"value":0.0188
3333333333333,"lo":0.009,"hi":0.028,"sum":0.0},{"timeInSeconds":1402021799,"value
":0.023499999999999997,"lo":0.017,"hi":0.036,"sum":0.0},{"timeInSeconds":14020199
99,"value":0.022166666666666668,"lo":0.008,"hi":0.034,"sum":0.0},{"timeInSeconds"
:1402018199,"value":0.02933333333333334,"lo":0.01,"hi":0.048,"sum":0.0},{"timeInS
econds":1402016399,"value":0.02916666666666667,"lo":0.01,"hi":0.045,"sum":0.0},{"
timeInSeconds":1402014599,"value":0.021500000000000002,"lo":0.004,"hi":0.043,"sum
":0.0}]},{"targetKey":"fldbid-17","targetType":"FLOW","timeSeriesDatas":[]},{"tar
getKey":"fldbid-8","targetType":"FLOW","timeSeriesDatas":[{"timeInSeconds":140202
3599,"value":0.005833333333333334,"lo":0.004,"hi":0.009,"sum":0.0},{"timeInSecond
s":1402021799,"value":0.006666666666666667,"lo":0.004,"hi":0.01,"sum":0.0},{"time