Cisco Cisco Prime Performance Manager 1.5 Developer's Guide

Page of 41
 
Cisco Prime Performance Manager1.5 REST API Guide 
6.4.2 JSONv2 
The JSON report format version 2 is a simpler and easier to traverse JSON data structure. It can 
be obtained by passing the “outputType=jsonv2” query string parameter or passing the 
HTTP Accept header “application/vnd.cisco.ppm+json;v=2”. 
Request / Response (JSON) -  “Interface  Availability” Network Level Report 
Request – Notice, the outputType query string parameter is set “
json
GET 
/ppm/rest/reports/Application+Traffic/AAA/AAA+Accounting+Dashboard?
outputType
=jsonv2
 HTTP/1.1 
Host: ppm-clean.cisco.com:4440 
Connection: Keep-Alive 
User-Agent: RestClient-Tool 
Response 
HTTP/1.1 206 Partial Content 
Transfer-Encoding: chunked 
Date: Fri, 05 Oct 2012 21:18:30 GMT 
Content-Type: application/json;charset=UTF-8 
Server: Apache-Coyote/1.1 
Content-Range: pages 1/1 
Cache-Control: no-cache 
 

  "report": { 
    "name": "AAA Accounting Dashboard", 
    "header": [ 
      "Device", 
      "Timestamp", 
      "Server", 
      "Protocol", 
      "Requests Requests", 
      "Requests Timeouts", 
      "Requests Percent", 
      "Requests Response Time Millisecs", 
      "Responses Server Error", 
      "Responses Incorrect", 
      "Successful Transactions Success", 
      "Successful Transactions Success\/Sec", 
      "Failed Transactions Failed", 
      "Failed Transactions Percent" 
    ], 
    "data": [ 
      [ 
        "ems2941a", 
        "2013-02-17T16:00-0500", 
        "10.74.125.10", 
        "radius", 
        "0", 
        "0", 
        "0.0", 
        "0.0", 
        "0", 
        "0", 
        "0", 
        "0.0",