API :
http://SERVERIP:PORT/api/json/v2/nfareports/wlcconsReport
类型
GET
参数
apiKey |
唯一密匙 |
设备ID |
接入点 ID |
路由器ID |
控制器 ID |
类型 |
速度/容量/百分比 |
报表类型 |
全部/流量/应用程序/apmac/主机/ip主机 |
计数 |
整数值 |
时间段 |
每小时/今天/昨天/每周/每月/自定义 |
粒度 |
1/5 |
过滤器开始时间 |
1 到24 |
过滤器截止时间 |
1 到24 |
示例API :
http://localhost:8080/api/json/v2/nfareports/wlcconsReport?&ResolveDNS=false&apiKey=407ef7c282fa0ace024d34f6cc8e7ba1&RouterID=50001&filterStTime=00&filterEdTime=00&Device
示例输出:
{
"showGranularity": true ,
"trafficdata":[
{
- "total": "76.413 MB",
- "std": "11.084 Kbp",
- "avg": "14.131 Kbps",
- "min": "0.00 bps",
- "max": "53.459 Kbps",
- "95th": "26.013 Kbps",
- "traffic": "Traffic IN",
},
{
- "total": "76.473 MB",
- "std": "11.084 Kbps",
- "avg": "14.142 Kbps",
- "min": "0.00 bps",
- "max": "52.228 Kbps",
- "95th": "26.176 Kbps",
- "traffic": "Traffic OUT"
}
],
"applicationin":[
[
- "Unclassified",
- "3.475 KB",
- 0,
- "0 %"
],
[
- "Unclassified",
- "3.406 KB",
- 0,
- "0 %"
]
],
"HostIn":[
[
- "7a:bd:d0:3b:19:34",
- "126.000 Bytes",
- "0",
- "0 %",
],
[
- "94:5a:56:9d:04:52",
- "126.000 Bytes",
- "0",
- "0 %",
]
],
"IPHostIn":[
[
- "1.1.1.81",
- "4.043 KB",
- "0",
- "0 %",
],
[
- "1.1.1.74",
- "3.983 KB",
- "0",
- "0 %",
]
],
"APMacIn":[
[
- "5c:93:a2:dc:31:a1",
- "292.407 KB",
- "0",
- "0 %",
],
],
"APMacOut":[
[
- "5c:93:a2:dc:31:a1", "290.658 KB",
- "0",
- "0 %",
],
],
"APMacInDet":{
- "Type": "APMacIn ",
- "Total": "76.413 MB",
- "RouterIP": "172.21.172.13",
- "Name": "172.21.172.13"
},
"appOUTDet":{
- "Type": "ApplicationOut",
- "Total": "76.473 MB",
- "RouterIP": "172.21.172.13",
- "Name": "172.21.172.13"
},
"IPHostOut":[
[
- "1.1.1.35",
- "4.165 KB",
- "0",
- "0 %",
],
[
- "1.1.1.9",
- "4.083 KB",
- "0",
- "0 %",
]
],
"GraphData":[
{
- "seriesname": "OUT",
"data":[
],
"yaxiscolumnorder":[
]
},
{
- "seriesname": "IN",
"data":[
],
"yaxiscolumnorder":[
]
}
],
"yaxis": "in Kbps",
"HostOutDet":{
- "Type": "HostOut",
- "Total": "76.473 MB",
- "RouterIP": "172.21.172.13",
- "Name": "172.21.172.13",
},
"APMacOutDet":{
- "Type": "APMacOut",
- "Total": "76.473 MB",
- "RouterIP": "172.21.172.13",
- "Name": "172.21.172.13",
},
"HostOut":[
[
- "10:cf:58:cf:e3:58",
- "126.000 Bytes",
- 0,
- "0 %"
],
[
- "29:6a:30:3b:4d:18",
- "126.000 Bytes",
- 0,
- "0 %"
]
],
"granularity": "in Kbps",
"IPHostOutDet":{
- "Type": "IPHostOut",
- "Total": "76.473 MB",
- "RouterIP": "172.21.172.13",
- "Name": "172.21.172.13",
},
"applicationout":[
[
- "Unclassified",
- "3.535 KB",
- 0,
- "0 %"
],
[
- "Unclassified",
- "3.423 KB",
- 0,
- "0 %"
]
],
- "startTime": "2018-10-09 08:00",
- "endTime": "2018-10-09 20:00",
"appINDet":{
- "Type": "ApplicationIN",
- "Total": "76.413 MB",
- "RouterIP": "172.21.172.13",
- "Name": "172.21.172.13"
},
"HostInDet":{
- "Type": "HostIn",
- "Total": "76.413 MB",
- "RouterIP": "172.21.172.13",
- "Name": "172.21.172.13"
}
}