API access to AppNeta data

Our web service API makes data collected and generated by AppNeta available for analysis, reporting and presentation in third-party systems. Results are delivered in a lightweight json format that can be readily consumed by a broad range of clients. The API is presented using Swagger, a third-party framework the sole purpose of which is to provide a rich, interactive experience when attempting to understand and test all of the capabilities within an API.

Path data for a specific time range

You’ll need three pieces of info per path: path ID, start time (optional), end time (optional).

Interactive API

  1. Navigate to > API.
  2. Go to PathView > path list and hover over the path name of interest. The tooltip presents a path id.
  3. Next you’ll need the start and end times in unix time. Try this free tool.
  4. Navigate to > API.
  5. Open path > GET /v2/path/{id}/data.
  6. Fill in the blanks and click ‘Try it out!

curl

  • Go to PathView > path list and hover over the path name of interest. The tooltip presents a path id.
  • Next you’ll need the start and end times in unix time. Try this free tool.
  • The following example gets exactly one total capacity measurement. Note that the Swagger interface also provides the curl syntax for any query, all you need to do is add user credentials.

    curl -X GET --header "Accept: application/json" -u email:password "https://yourAppNetaInstance/pvc-data/v2/path/81103/data?from=1462406460&to=1462406460&metric=totalcapacity" | python -m json.tool
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    Dload  Upload   Total   Spent    Left  Speed
    100   295  100   295    0     0    569      0 --:--:-- --:--:-- --:--:--   679
    {
    "data": {
    "availableCapacity": [],
    "dataJitter": [],
    "dataLoss": [],
    "latency": [],
    "mos": [],
    "rtt": [],
    "totalCapacity": [],
    "twampJitter": [],
    "twampLoss": [],
    "twampRtt": [],
    "utilizedCapacity": [],
     "voiceJitter": [],
     "voiceLoss": []
     },
     "dataInbound": null,
     "dataOutbound": null,
     "instrumentation": "ONE_WAY",
     "pathId": 81103
     }