However this gives us huge amount of data causing. So to filter this further, I am trying to put time limit instead of getting data for an hour. However below REST API is coming back with "Response code 400, msg : Bad Request"
Given the object names you've listed above, I presume you're attempting to run this against an XtremIO X2 array? Which means you're using at least XMS version 6.0?
I just tried each of the commands you've got above, and they worked as expected (I had to change the dates as they are more than a week old so there was no "raw" data available, but otherwise they were an exact cut-n-paste)
What are you using to make the requests? The date format includes a space, which needs to be "escaped" in the request. Most software will look after this for you, but you can always try replacing the space with %20 (the URL-encoded value for a space) and see if that makes any difference.
As for your question around limiting the data, do you really need the "raw" (5 second) data? If not, you can change the granularity to "one_minute" which will give you around 1/12th as much data. Otherwise, what you're doing using a time is the correct way to do it.
Is the GUI itself functioning correctly? It uses the same REST API to gather it's performance data, so if it's working so should your calls...
Thanks. I will try with %20 with date format. I am wondering why the query with time in it worked for Target. Even that has spaces. Anyways I will give all of them a shot again.
I can change to "one_minute" granularity, but would it give me the performance counters which are cumulative/average or are they point in time?
Is the only difference between granularity = raw and one_minute that samples are taken every 5 seconds vs samples are every min?
scotthoward
64 Posts
2854
1
Posted May 20th, 2018 07:00
Given the object names you've listed above, I presume you're attempting to run this against an XtremIO X2 array? Which means you're using at least XMS version 6.0?
I just tried each of the commands you've got above, and they worked as expected (I had to change the dates as they are more than a week old so there was no "raw" data available, but otherwise they were an exact cut-n-paste)
What are you using to make the requests? The date format includes a space, which needs to be "escaped" in the request. Most software will look after this for you, but you can always try replacing the space with %20 (the URL-encoded value for a space) and see if that makes any difference.
As for your question around limiting the data, do you really need the "raw" (5 second) data? If not, you can change the granularity to "one_minute" which will give you around 1/12th as much data. Otherwise, what you're doing using a time is the correct way to do it.
Is the GUI itself functioning correctly? It uses the same REST API to gather it's performance data, so if it's working so should your calls...