Quantcast
Channel: VMware Communities : Discussion List - vRealize Operations Manager
Viewing all articles
Browse latest Browse all 5932

Too many data points returned from vrops REST API

$
0
0

After grabbing a token, I hit this url:

 

https://vrops/suite-api/api/resources/stats?resourceId=6787c712-0881-47d2-a46b-8d21ef2bc5c8&statKey=datastore:Aggregate of all instances|totalWriteLatency_average

 

which returens hundreds of values (i've abreviated the results below.    

 

Which converting to epoch time, the first date is Sat Sep  8 03:39:59 CDT 50057 and the last date in the series is Mon Jun  7 06:39:41 CDT 50060.

 

Any idea how I would just get one value, the current value?  From the doc, I’ve tried adding &rollUpType=LATEST&intervalType=MINUTES but still getting a large time series (and nothing close to the current timestamp?)

 

{

    "values": [

        {

            "resourceId": "6787c712-0881-47d2-a46b-8d21ef2bc5c8",

            "stat-list": {

                "stat": [

                    {

                        "timestamps": [

                            1517501429630,

                            1517501729620,

                            1517502029637,

......

                        ],

                        "statKey": {

                            "key": "datastore:Aggregate of all instances|totalWriteLatency_average"

                        },

                        "intervalUnit": {

                            "quantifier": 1

                        },

                        "data": [

                            0.800000011920929,

                            0.3333333432674408,

                            0.6000000238418579,

........


Viewing all articles
Browse latest Browse all 5932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>