List monitors
curl --request GET \
--url https://api.hebeat.com/monitors \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hebeat.com/monitors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hebeat.com/monitors"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"monitors": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"type": "http",
"target": "<string>",
"enabled": true,
"status": "paused",
"interval_seconds": 123,
"selected_regions": [
"us-east"
],
"last_transition_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"regions": [
{
"region_code": "us-east",
"status": "unknown",
"last_checked_at": "2023-11-07T05:31:56Z"
}
],
"stats": {
"last_checked_at": "2023-11-07T05:31:56Z",
"uptime_24h": 0.5,
"uptime_7d": 0.5,
"uptime_30d": 0.5,
"latency_avg_ms_24h": 1,
"latency_p95_ms_24h": 1,
"history": [
{
"bucket_start": "2023-11-07T05:31:56Z",
"status": "active",
"uptime": 0.5
}
]
},
"in_maintenance": true,
"heartbeat": {
"schedule": {
"kind": "period",
"period_seconds": 1296030
},
"grace_seconds": 123,
"keep_messages": true,
"token_hint": "<string>",
"last_ping_at": "2023-11-07T05:31:56Z",
"last_start_at": "2023-11-07T05:31:56Z",
"next_due_at": "2023-11-07T05:31:56Z"
}
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123
}
}{
"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
List monitors
GET
/
monitors
List monitors
curl --request GET \
--url https://api.hebeat.com/monitors \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hebeat.com/monitors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hebeat.com/monitors"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"monitors": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"type": "http",
"target": "<string>",
"enabled": true,
"status": "paused",
"interval_seconds": 123,
"selected_regions": [
"us-east"
],
"last_transition_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"regions": [
{
"region_code": "us-east",
"status": "unknown",
"last_checked_at": "2023-11-07T05:31:56Z"
}
],
"stats": {
"last_checked_at": "2023-11-07T05:31:56Z",
"uptime_24h": 0.5,
"uptime_7d": 0.5,
"uptime_30d": 0.5,
"latency_avg_ms_24h": 1,
"latency_p95_ms_24h": 1,
"history": [
{
"bucket_start": "2023-11-07T05:31:56Z",
"status": "active",
"uptime": 0.5
}
]
},
"in_maintenance": true,
"heartbeat": {
"schedule": {
"kind": "period",
"period_seconds": 1296030
},
"grace_seconds": 123,
"keep_messages": true,
"token_hint": "<string>",
"last_ping_at": "2023-11-07T05:31:56Z",
"last_start_at": "2023-11-07T05:31:56Z",
"next_due_at": "2023-11-07T05:31:56Z"
}
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123
}
}{
"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
Query Parameters
Was this page helpful?