Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Question on PERFSonar Client REST Interface

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Question on PERFSonar Client REST Interface


Chronological Thread 
  • From: Andrew Lake <>
  • To: Lucas Tang <>, "" <>
  • Subject: Re: [perfsonar-user] Question on PERFSonar Client REST Interface
  • Date: Wed, 10 Aug 2016 06:05:43 -0700
  • Ironport-phdr: 9a23:qmYt/BHe5E/xtgrHuDwZDZ1GYnF86YWxBRYc798ds5kLTJ75os6wAkXT6L1XgUPTWs2DsrQf1LqQ7vurADFIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnY6Uy/yPgttJ+nzBpWaz4Huj7jzqNXvZFBsmTG0evtOJRO55VHVq8Ifms1+I6A+4hzUvn9PfOcQzmRtcxbb1Q7x/Mmr+5hq6WFNoP87389GTajgeakkF/pVAClsezQt6dflrh7FRBHK+2ARSE0XlAZFGQ7I8Eu8U5vs5HjUrO14jQCcMdf7UvgQUDevp/NiThP5oCoccTg07DeE2YRLkKtHrUf59FREyInObdTQbaImcw==

Hi,

There is not a way to do it directly, you have to use time-range. You could look at the time-interval field in the metadata to get an idea for how often the test are performed and use that to guide your time-range. You’ll probably end up needing to query a few hours of throughput data and 2 minutes or so of latency data in most cases. 

Thanks,
Andy

On August 10, 2016 at 7:49:12 AM, Lucas Tang () wrote:

Hi,


I would like to ask if there is a way to retrieve only the latest data from the REST Interface?


As of now, I'm using "time-range" parameter with an arbitrary number, hoping I can get the most result result, and the reverse all of the results, taking the first index, and then breaking out of the loop. It is rather inefficient, and takes a long time if the dataset is huge. I have tried using the "limit" option as well however I noticed it retrieves the first X results as opposed to the last X.


With that, can you assist on finding a way to retrieve only the latest result?


Regards,

Lucas




Archive powered by MHonArc 2.6.19.

Top of Page