Get response times
curl --request GET \
--url https://app.larm.dev/api/v1/monitors/{monitor_id}/response-timesimport requests
url = "https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"p95": 142.5,
"by_location": [
{
"location": "us-east",
"p95": 185.2,
"checks": 1440
},
{
"location": "eu-central",
"p95": 99.8,
"checks": 1440
}
]
}
}
Monitors
Get response times
Returns p95 response times overall and by probe location
GET
/
api
/
v1
/
monitors
/
{monitor_id}
/
response-times
Get response times
curl --request GET \
--url https://app.larm.dev/api/v1/monitors/{monitor_id}/response-timesimport requests
url = "https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.larm.dev/api/v1/monitors/{monitor_id}/response-times")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"p95": 142.5,
"by_location": [
{
"location": "us-east",
"p95": 185.2,
"checks": 1440
},
{
"location": "eu-central",
"p95": 99.8,
"checks": 1440
}
]
}
}
Requires
Returns the aggregate p95 response time (averaged across regions) and a per-region breakdown sorted by p95 descending.
monitors:read permission. Uses the Stats rate limit bucket (30 req/min).
Monitor ID (UUID)
Time range. One of:
1h, 6h, 24h, 7d, 30d, 90d.{
"data": {
"p95": 142.5,
"by_location": [
{
"location": "us-east",
"p95": 185.2,
"checks": 1440
},
{
"location": "eu-central",
"p95": 99.8,
"checks": 1440
}
]
}
}
{
"data": {
"p95": null,
"by_location": []
}
}
⌘I