[{"label":"Latest (8.6.3)","version":"latest"}]
vrealize-operations

Get Latest Stats Of Resources

Description

Takes the form: api/resources/stats/latest?resourceId=UUID1&resourceId=UUID2 OR api/resources/stats/latest?resourceId=UUID2&statKey=cpu|usagemhz&statKey=cpu|demandmhz

Request

Request

URL

URL


get
https://localhost/suite-api/api/resources/stats/latest
Copy

Query Parameters

Query Parameters

boolean
currentOnly Optional

Indicates whether to report only “current” stat values, i.e. skip the stat-s that haven’t published any value during recent collection cycles.


integer
maxSamples Optional

The maximum number of samples to return when querying latest stats. Defaults to 1 so that when processing the query if it is omitted the response would contain a single sample


boolean
metrics Optional

Indicates whether specified statKey-s of query should be forcibly treated as metrics (does not include instanced stats)


array
resourceId Optional

Array of Resource ids for which the latest stats should be fetched


array
statKey Optional

Array of stat keys for which the latest stats should be returned


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns StatsOfResources of type(s) application/json, application/xml, text/csv

The object containing a map of list of stat objects keyed by each Resource identifier

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl https://localhost/suite-api/api/resources/stats/latest


Feedback

Was this page helpful?