REST API統合レポート

本ページでは統合レポートのREST APIについて説明します。

 

API

http://SERVERIP:PORT/api/json/v2/nfareports/consReport

例:
http://localhost:8080/api/json/v2/nfareports/consReport?&ResolveDNS=false&apiKey=d34fdda92933bfe523a5f3947cb82116&BussView=false&IPGroup=false&filterStTime=00&filterEdTime=00&Device

 

メソッド

GET

 

パラメーター

apiKey (一意のキー)
DeviceID (インターフェースID)/(IPグループID)/(インターフェースグループID)
Type speed/volume/percentage
reportType all
count (整数値)
TimeFrame hourly/today/yesterday/weekly/monthly/eight/custom
ResolveDNS true/false
IPGroup true/false
BussView true(対象がインターフェースグループの場合)/false(それ以外の場合)
granularity 1/5

 

出力例

{

"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":[

{

  • "seriesname": "IN",
  • "data":[

    [

    • 1533122760000,
    • 10.01

    ],

    [

    • 1533122820000,
    • 7.886266666666667

    ]

    ],

    "yaxiscolumnorder":[

    • 0,

    ]

},

{

  • "seriesname": "OUT",
  • "data":[

    [

    • 1533122760000,
    • 18.159866666666666

    ],

    [

    • 1533122820000,
    • 14.338133333333333

    ]

    ],

    "yaxiscolumnorder":[

    • 0,

    ]

}

],

  • "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"

},

  • "granularity": "1 min ",
  • "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"

}

}