Unsolved
This post is more than 5 years old
3 Posts
0
1023
How to use cluster-name in performance query for xtremIO?
The query [/api/json/v2/types/performance?cluster-name=XtrmIOCluster&entity=Cluster] is returning HTTP response code 400. What is the correct syntax to query for entity belonging to a particular cluster?
mabela
33 Posts
0
April 12th, 2016 11:00
Hello,
Are you using GET? See examples below:
GET https://XMS-IP/api/json/v2/types/performance?cluster-name=XtremIO-Cluster102&entity=Cluster&granularity=one_day&time-frame=last_year&export-to-file=tst.txt
GET https://XMS-IP/api/json/v2/types/performance?cluster-name=XtremIO-Cluster101&entity=Cluster
mdshahjada
3 Posts
0
April 18th, 2016 20:00
Hi,
Yes i am using the GET.
The api works fine when i do not mention the cluster-name, but with cluster-name it gives HTTP response code 400.
And also what are the parameters i need to pass to get the performance metrics of a particular element (say for example target) for just the time when i am making the api call (i.e. real time data).
mabela
33 Posts
0
April 19th, 2016 08:00
What version of XtremIO are you running?
To get particular performance metrics of particular element for just that point in time, you should use granularity=ray.
Example:
api/json/v2/types/performance?entity=Cluster&granularity=raw&limit=1