Get Stats And DT For Resources

Get Stats And DT For Resources

The API returns 24 hours of Stats and DT data by default for the specified Resources.

Request
URI
POST
https://{api_host}/suite-api/api/resources/stats/dt/query
COPY
Request Body

The object which specifies the search criteria

dt-stat-query of type(s) application/json
Required

Show optional properties

{
    "resourceIds": [
        {}
    ],
    "statKeys": [
        {}
    ]
}
"{\n  \"resourceIds\" : [ \"4670da02-2928-4343-b671-855755508d11\", \"bc7adda2-5ae5-4a47-beec-c0737a9a9edd\" ],\n  \"statKeys\" : [ \"stat|key1; stat|key2\", \"stat|key3; stat|key4\" ],\n  \"begin\" : 1744473855151,\n  \"end\" : 1744473855151,\n  \"showSmooth\" : true,\n  \"smoothFactor\" : 2.0\n}"
array of string
resourceIds
Required

Collection of Resource identifiers for which Stats and DT values need to be retrieved

array of string
statKeys
Required
Constraints: minItems: 1 maxItems: 2147483647

Collection of StatKeys for which Stats and DT values need to be retrieved

integer As int64 As int64
begin
Optional

The beginning date as a long value of the range of stats to return
Value measures the number of milliseconds since January 1, 1970 00:00:00 UTC

integer As int64 As int64
end
Optional

The ending date as a long value of the range of stats to return
long value is number of milliseconds since January 1, 1970 00:00:00 UTC

boolean
showSmooth
Optional

Flag that indicates whether stats should be smoothened or not. Default value is true

number As double As double
smoothFactor
Optional

The smooth precision, default value is 2.0

Authentication
This operation uses the following authentication methods.
Responses
200

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

Returns stats-of-resources of type(s) application/json
"No Custom Example is Available"
array of object
values
Optional

Collection of resource-stat objects


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"resourceIds":["string"],"statKeys":["string"]}' https://{api_host}/suite-api/api/resources/stats/dt/query