Hourly metrics collected for the given check. Results are limited to the last month only.
token field must be set in the
List all metrics by hour
select*fromupdown_metric_hourwheretoken = '3sdv'order bytimestamp desc
List all metric periods where the total time was greater than 400ms
selecttimestamp,timings ->> 'total' as timing_totalfromupdown_metric_hourwheretoken = '3sdv'and (timings ->> 'total')::int > 400order bytimestamp desc
Percentage of samples responding under 1 second
select100 * (requests -> 'by_response_time' -> 'under1000')::int / (requests -> 'samples')::float as req_under_1secfromupdown_metric_hourwheretoken = '3sdv'order bytimestamp desc
Get detailed metrics about a check. Statistic are aggregated per hour. For example all requests performed between 5:00 and 5:59 will be reported at 5:00 in this API. The time range needs to be at least one hour to get data.
|host||jsonb||Host where the check was made.|
|timestamp||timestamp without time zone||The time (hour) that the metrics are for.|
|token||text||Unique token of the check.|