Metrics API

Metrics allow you to add and visualize time series data for your performance testing.

get
Get Metric Values

https://api.iotify.io/v1/metric/:metric
The API provides metrics value over a given time range with aggregation.
Request
Response
Request
Path Parameters
metric
required
string
Metric ID which needs be retrieved
Body Parameters
start
optional
number
Unix time stamp in milliseconds from which Metrics should be calculated. If not provided, its set to current time -60 minutes. (i.e. 1 hour ago)
interval
optional
number
The interval in milliseconds at which the aggregated values should be calculated. By default its 1 minute.
end
optional
number
Unix timestamp in milliseconds upto which Metric should be calculated. If not provided its set to the current time.
Response
200: OK
{
"success": true,
"result": {
"1590746278020": {
"min": 54,
"max": 54,
"avg": 54
},
"1590746287980": {
"min": 28,
"max": 96,
"avg": 63.25
},
"1590746298000": {
"min": 8,
"max": 99,
"avg": 65.16666666666667
},
"1590746307960": {
"min": 38,
"max": 87,
"avg": 67.8
},
"1590746308020": {
"min": 17,
"max": 98,
"avg": 73.5
},
"1590746317980": {
"min": 4,
"max": 97,
"avg": 58.55555555555556
},
"1590746318040": {
"min": 27,
"max": 94,
"avg": 71
}
}
}