API :
http://SERVERIP:PORT/api/json/v2/nfareports/consReport
类型
GET
参数
| apiKey | 唯一密匙 |
| 设备ID | 接口ID/IP组ID/接口组ID |
| 类型 | 速度/容量/百分比 |
| 报表类型 | 全部 |
| 计数 | 整数值 |
| 时间段 | 每小时/今天/昨天/每周/每月/自定义 |
| 解析DNS | true/false |
| IP组 | true/false |
| 业务视图 | 如果资源是接口组则为true,否则false |
| 粒度 | 1/5 |
示例API :
http://localhost:8080/api/json/v2/nfareports/consReport?&ResolveDNS=false&apiKey=d34fdda92933bfe523a5f3947cb82116&BussView=false&IPGroup=false&filterStTime=00&filterEdTime=00&Device
示例输出:
{
"showGranularity": true ,
"trafficdata":[
{
- "std":"3.247 Kbps",
- "total":"7.41 MB",
- "avg":"16.198 Kbps",
- "min":"7.886 Kbps",
- "max":"23.544 Kbps",
- "95th":"21.149 Kbps",
- "traffic":"Traffic IN",
},
{
- "std":"2.097 Kbps",
- "total":"7.284 MB",
- "avg":"15.921 Kbps",
- "min":"10.587 Kbps",
- "max":"20.844 Kbps",
- "95th":"19.384 Kbps",
- "traffic":"Traffic OUT"
}
],
"applicationin":[
[
- "ARGUS_App",
- "409.824 ",
- 6,
- "6 %"
],
[
- "NVP-II_App",
- "403.463 ",
- 5,
- "5 %"
],
[
- "MUX_App",
- "302.929 ",
- 4,
- "4 %"
],
[
- "CHAOS_App",
- "302.68 ",
- 4,
- "4 %"
],
[
- "Others",
- "1.783 ",
- 24,
- "24 %"
]
],
"appOUTDet":[
{
- "hdrTitle":"127.0.0.1 ( IfIndex4 )",
- "Type":"ApplicationOut",
- "Total":"7.284 MB",
- "RouterIP":"127.0.0.1",
- "Name":"IfIndex4",
},
"destinationout":[
[
- "205.1.1.1",
- "1.198 MB ",
- 16,
- "16 %"
]
],
"srcINDet":[
{
- "hdrTitle":"127.0.0.1 ( IfIndex4 )",
- "Type":"SourceIN",
- "Total":"7.443 MB",
- "RouterIP":"127.0.0.1",
- "Name":"IfIndex4"
},
"GraphData":[
{
"data":[
[
],
[
- 1533122820000,
- 7.886266666666667
]
],
"yaxiscolumnorder":[
]
},
{
"data":[
[
- 1533122760000,
- 18.159866666666666
],
[
- 1533122820000,
- 14.338133333333333
]
],
"yaxiscolumnorder":[
]
}
],
- "yaxis":"in Kbps",
- "spdString":"Utilization is calculated with Link Speed of 1.0 Mbps,1.0 Mbps",
"dstOUTDet":{
- "hdrTitle":"127.0.0.1 ( IfIndex4 ) ",
- "Type":"DestinationOUT",
- "Total":"7.284 MB",
- "RouterIP":"127.0.0.1",
- "Name":"IfIndex4"
},
"dstINDet":{
- "hdrTitle":"127.0.0.1 ( IfIndex4 )",
- "Type":"DestinationIN",
- "Total":"7.443 MB",
- "RouterIP":"127.0.0.1",
- "Name":"IfIndex4"
},
"sourcein":[
[
- "200.205.127.248",
- "537.321 KB ",
- 7,
- "7 %"
],
[
- "200.205.127.246",
- "485.038 KB ",
- 7,
- "7 %"
],
[
- "Others",
- "1.295 KB ",
- 17,
- "17 %"
]
],
"destinationin":[
[
- "205.1.1.3",
- "227.318 KB ",
- 3,
- "3 %"
],
[
- "205.1.1.6",
- "220.348 KB ",
- 3,
- "3 %"
],
[
- "Others",
- "1.295 KB ",
- 17,
- "17 %"
]
],
"sourceout":[
[
- "200.205.127.247",
- "460.359 KB ",
- 6,
- "6 %"
],
[
- "200.205.127.242",
- "443.558 KB ",
- 6,
- "6 %"
],
[
- "Others",
- "1.198 KB ",
- 16,
- "16 %"
]
],
"srcOUTDet":{
- "hdrTitle":"127.0.0.1 ( IfIndex4 )",
- "Type":"SourceOUT",
- "Total":"7.284 MB",
- "RouterIP":"127.0.0.1",
- "Name":"IfIndex4"
},
- "startTime":"2018-08-01 15:57",
- "endTime":"2018-08-01 16:57",
"appINDet":{
- "hdrTitle":"127.0.0.1 ( IfIndex4 )",
- "Type":"ApplicationIN",
- "Total":"7.443 MB",
- "RouterIP":"127.0.0.1",
- "Name":"IfIndex4"
}
}