Follow

Tip: Example using Traverse getRawHistoricalData web service

Below are example requests for historical data using the Traverse web services.

First, in SOAP XML Format (suitable for use with the tool SoapUI):

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="http://traverse.zyrion.com/05/06/test">
   <soapenv:Header/>
   <soapenv:Body>
      <test:getRawHistoricalData>
         <testRawHistoricalRequest>
            <password>traverse</password>
            <username>superuser</username>
            <searchCriterias>
               <searchOption>TEST_NAME</searchOption>
               <searchTerms>Packet Loss</searchTerms>
            </searchCriterias>
            <searchCriterias>
               <searchOption>DEVICE_NAME</searchOption>
               <searchTerms>Traverse Server</searchTerms>
            </searchCriterias>
            <endTimeExp>now</endTimeExp>
            <startTimeExp>1-hours-ago</startTimeExp>
         </testRawHistoricalRequest>
      </test:getRawHistoricalData>
   </soapenv:Body>
</soapenv:Envelope>

 and the same request using JSON format and the 'curl' command:

curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{
  "username":"superuser",
  "password":"traverse",
  "startTimeExp":"1-hours-ago",
  "endTimeExp":"now",
  "searchCriterias": [
    {
      "searchOption": "TEST_NAME",
      "searchTerms": "Packet Loss"
    },
    {
      "searchOption": "DEVICE_NAME",
      "searchTerms": "Traverse Server"
    }
  ]
}' http://traverse_server/api/json/test/getRawHistoricalData
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

1 Comments

Article is closed for comments.