Response time and outcome metrics
curl --request GET \
--url https://api.hebeat.com/monitors/{monitor_id}/metrics \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hebeat.com/monitors/{monitor_id}/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hebeat.com/monitors/{monitor_id}/metrics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"window": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"retention_days": 123,
"clamped": true,
"code": "1h",
"bucket_seconds": 123,
"source": "exact"
},
"summary": {
"uptime": 0.5,
"counts": {
"active": 1,
"degraded": 1,
"error": 1,
"probe_error": 1,
"dispatch_error": 1,
"missing_check": 1,
"skipped": 1
},
"latency": {
"samples": 1,
"avg_ms": 1,
"p50_ms": 1,
"p75_ms": 1,
"p95_ms": 1,
"p99_ms": 1
}
},
"regions": [
{
"region_code": "us-east",
"summary": {
"uptime": 0.5,
"counts": {
"active": 1,
"degraded": 1,
"error": 1,
"probe_error": 1,
"dispatch_error": 1,
"missing_check": 1,
"skipped": 1
},
"latency": {
"samples": 1,
"avg_ms": 1,
"p50_ms": 1,
"p75_ms": 1,
"p95_ms": 1,
"p99_ms": 1
}
},
"series": [
{
"bucket_start": "2023-11-07T05:31:56Z",
"latency": {
"samples": 1,
"avg_ms": 1,
"p50_ms": 1,
"p75_ms": 1,
"p95_ms": 1,
"p99_ms": 1
},
"phases": {
"dns": {
"samples": 1,
"avg_ms": 1
},
"tcp_connect": {
"samples": 1,
"avg_ms": 1
},
"tls_handshake": {
"samples": 1,
"avg_ms": 1
},
"ttfb": {
"samples": 1,
"avg_ms": 1
},
"transfer": {
"samples": 1,
"avg_ms": 1
}
}
}
]
}
]
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}Monitors
Response time and outcome metrics
GET
/
monitors
/
{monitor_id}
/
metrics
Response time and outcome metrics
curl --request GET \
--url https://api.hebeat.com/monitors/{monitor_id}/metrics \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hebeat.com/monitors/{monitor_id}/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hebeat.com/monitors/{monitor_id}/metrics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"window": {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"retention_days": 123,
"clamped": true,
"code": "1h",
"bucket_seconds": 123,
"source": "exact"
},
"summary": {
"uptime": 0.5,
"counts": {
"active": 1,
"degraded": 1,
"error": 1,
"probe_error": 1,
"dispatch_error": 1,
"missing_check": 1,
"skipped": 1
},
"latency": {
"samples": 1,
"avg_ms": 1,
"p50_ms": 1,
"p75_ms": 1,
"p95_ms": 1,
"p99_ms": 1
}
},
"regions": [
{
"region_code": "us-east",
"summary": {
"uptime": 0.5,
"counts": {
"active": 1,
"degraded": 1,
"error": 1,
"probe_error": 1,
"dispatch_error": 1,
"missing_check": 1,
"skipped": 1
},
"latency": {
"samples": 1,
"avg_ms": 1,
"p50_ms": 1,
"p75_ms": 1,
"p95_ms": 1,
"p99_ms": 1
}
},
"series": [
{
"bucket_start": "2023-11-07T05:31:56Z",
"latency": {
"samples": 1,
"avg_ms": 1,
"p50_ms": 1,
"p75_ms": 1,
"p95_ms": 1,
"p99_ms": 1
},
"phases": {
"dns": {
"samples": 1,
"avg_ms": 1
},
"tcp_connect": {
"samples": 1,
"avg_ms": 1
},
"tls_handshake": {
"samples": 1,
"avg_ms": 1
},
"ttfb": {
"samples": 1,
"avg_ms": 1
},
"transfer": {
"samples": 1,
"avg_ms": 1
}
}
}
]
}
]
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}{
"error": {
"code": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>",
"params": {}
}
],
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"member_count": 123,
"kind": "shared"
}
]
}
}Headers
Was this page helpful?