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

Get Latest Stats

Description

Get the latest stat for a given Resource and given a set of attributes

Request

Request

URL

URL


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

Path Parameters

Path Parameters

string
id Required

The StatsQuery object which can be used to refine the query


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

Object, containing a map of List of Stat objects keyed by each resource UUID

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl https://localhost/suite-api/api/resources/{id}/stats/latest


Feedback

Was this page helpful?