Get a monitor
curl --request GET \
--url https://api.hebeat.com/monitors/{monitor_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hebeat.com/monitors/{monitor_id}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"monitor": {
"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",
"timeout_ms": 123,
"degraded_after_ms": 123,
"max_attempts": 123,
"config_version": 123,
"config": {
"type": "http",
"url": "<string>",
"method": "GET",
"request_headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"request_body": "<string>",
"expected_status": [
349
],
"follow_redirects": true,
"max_redirects": 5,
"header_assertions": [
{
"comparison": "equals",
"name": "<string>",
"value": "<string>"
}
],
"body_assertions": [
{
"comparison": "contains",
"value": "<string>"
}
]
},
"regions": [
{
"region_code": "us-east",
"status": "unknown",
"last_checked_at": "2023-11-07T05:31:56Z"
}
],
"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"
}
}
}{
"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
Get a monitor
GET
/
monitors
/
{monitor_id}
Get a monitor
curl --request GET \
--url https://api.hebeat.com/monitors/{monitor_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hebeat.com/monitors/{monitor_id}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"monitor": {
"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",
"timeout_ms": 123,
"degraded_after_ms": 123,
"max_attempts": 123,
"config_version": 123,
"config": {
"type": "http",
"url": "<string>",
"method": "GET",
"request_headers": [
{
"name": "<string>",
"value": "<string>"
}
],
"request_body": "<string>",
"expected_status": [
349
],
"follow_redirects": true,
"max_redirects": 5,
"header_assertions": [
{
"comparison": "equals",
"name": "<string>",
"value": "<string>"
}
],
"body_assertions": [
{
"comparison": "contains",
"value": "<string>"
}
]
},
"regions": [
{
"region_code": "us-east",
"status": "unknown",
"last_checked_at": "2023-11-07T05:31:56Z"
}
],
"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"
}
}
}{
"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?