Get DT Stats Of Resource Using GET

Get DT Stats Of Resource Using GET

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

Request
URI
GET
https://{api_host}/api/resources/{id}/stats/dt
COPY
Path Parameters
string
id
Required

The Identifier of the resource object

Query Parameters
integer
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
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

string of array
resourceIds
Required

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

boolean
showSmooth
Optional

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

number
smoothFactor
Optional

The smooth precision, default value is 2.0

string of array
statKeys
Required

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


Authentication
This operation uses the following authentication methods.
Responses
200

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

Returns stats-of-resources of type(s) application/json
{
    "values": [
        {
            "resourceId": "string",
            "stats": {
                "stat": [
                    {
                        "data": [
                            "number"
                        ],
                        "dtTimestamps": [
                            0
                        ],
                        "intervalUnit": {
                            "intervalType": "string",
                            "quantifier": 0
                        },
                        "links": [
                            {
                                "description": "string",
                                "href": "string",
                                "name": "string",
                                "rel": "string"
                            }
                        ],
                        "maxThresholdData": [
                            "number"
                        ],
                        "minThresholdData": [
                            "number"
                        ],
                        "rollUpType": "string",
                        "smoothValues": [
                            "number"
                        ],
                        "statKey": {
                            "key": "string"
                        },
                        "statValues": [
                            "string"
                        ],
                        "timestamps": [
                            0
                        ],
                        "values": [
                            "string"
                        ]
                    }
                ]
            }
        }
    ]
}
values
Optional

Collection of resource-stat objects