ລວມເອົາ EstaCaido ກັບໂປແກຼມຂອງທ່ານ
API EstaCaido ອະນຸຍາດໃຫ້ທ່ານຈັດການຕິດຕາມຂອງທ່ານ, ເບິ່ງເຫດການ, ຕັ້ງຄ່າການແຈ້ງເຕືອນແລະຫຼາຍກ່ວາຈາກໂປຣແກຣມຂອງທ່ານເອງ. ຈຸດສຸດທ້າຍ API ທັງຫມົດໃຊ້ JSON ສຳ ລັບຄໍາຮ້ອງຂໍແລະຮ່າງກາຍຕອບ.
https://www.estacaido.com/api/v1/
API token ແຕ່ລະອັນສາມາດເຮັດໄດ້ເຖິງການຮ້ອງຂໍ 100 ຕໍ່ນາທີ. ຄໍາຮ້ອງຂໍທີ່ເກີນຂອບເຂດນັ້ນໄດ້ຮັບຄໍາຕອບ 429 Too Many Requests.
ໃຊ້ການຢັ້ງຢືນທີ່ອີງໃສ່ໂຕກອນ ສຳລັບການຮ້ອງຂໍ API ທັງໝົດ. ລວມໂຕກອນຂອງທ່ານໃນຫົວຂໍ້ການອະນຸຍາດ.
/api/v1/auth/token/
curl -X POST https://www.estacaido.com/api/v1/auth/token/ \
-H "Content-Type: application/json" \
-d '{"username": "your@email.com", "password": "yourpassword"}'
{
"token": "your-api-token-here"
}
Authorization: Token your-api-token-here
ຈັດການການຕິດຕາມເວບໄຊທ໌ຂອງທ່ານ
/api/v1/monitors/
[
{
"id": 1,
"name": "Production API",
"company": {
"id": 1,
"website": "api.example.com"
},
"check_type": "http",
"check_interval": 300,
"is_active": true,
"is_paused": false,
"last_check_at": "2024-01-15T10:30:00Z",
"created_at": "2024-01-01T00:00:00Z"
}
]
/api/v1/monitors/
name |
ຕ້ອງການ | ຊື່ຂອງໂມງ |
domain |
ຕ້ອງການ | ໂດເມນທີ່ຈະຕິດຕາມເບິ່ງ, ຕົວຢ່າງ example.com |
check_interval |
ທາງເລືອກ | ໄລຍະເວລາກວດສອບໃນວິນາທີ, ຫນຶ່ງຂອງ 30, 60, 300, 600, 900, 1800, 3600. ແບບປ້ອນກ່ອນ: 300 |
check_type |
ທາງເລືອກ | ຄ່າອັນນຶ່ງໃນນີ້: http, https, ping. ຕົວອ້າງອີງ: https |
/api/v1/monitors/{id}/
/api/v1/monitors/{id}/
/api/v1/monitors/{id}/
/api/v1/monitors/{id}/pause/
/api/v1/monitors/{id}/resume/
/api/v1/monitors/{id}/statistics/
days |
ທາງເລືອກ | ຈໍານວນມື້ທີ່ຈະລວມເຂົ້າກັນ. ຕົວອ້າງອີງ: 30 |
ເບິ່ງເຫດການທີ່ລົ້ມເຫຼວ ແລະ ປະຫວັດຂອງພວກມັນ.
/api/v1/incidents/
status |
ທາງເລືອກ | ຕື່ມລາຍຊື່ຂອງຂໍ້ຄວາມທີ່ໄດ້ຮັບແລ້ວ |
monitor |
ທາງເລືອກ | ຕົວກັ່ນຕອງຕາມຕົວລະບຸໂມງ |
/api/v1/incidents/{id}/
Configure alert notifications for your monitors.
/api/v1/alerts/
/api/v1/alerts/
monitor |
ຕ້ອງການ | លេខសម្គាល់ម៉ូនីទ័រ |
alert_type |
ຕ້ອງການ | ຄ່າໃດໜຶ່ງໃນນີ້: email, sms, slack, discord, webhook, pagerduty, teams |
recipients |
ຕ້ອງການ | ທີ່ຢູ່ຜູ້ຮັບ ຫຼື URL webhook |
alert_on_down |
ທາງເລືອກ | ແຈ້ງເຕືອນເມື່ອເວບໄຊທ໌ລົ້ມເຫລວ (ຕົວແບບເດີມ: ຖືກ) |
alert_on_recovery |
ທາງເລືອກ | ແຈ້ງເຕືອນເມື່ອເວັບໄຊໄດ້ຟື້ນຟູ (ຕົວອ້າງອີງ: ຖືກແລ້ວ) |
/api/v1/alerts/{id}/
/api/v1/alerts/{id}/
ສ້າງ ແລະ ຈັດການໜ້າສະຖານະສາທາລະນະ
/api/v1/status-pages/
/api/v1/status-pages/
title |
ຕ້ອງການ | ຫົວຂໍ້ຂອງ ໜ້າ ສະຖານະ |
slug |
ຕ້ອງການ | URL slug (ຕົວຢ່າງ, ຫນ້າສະຖານະຂອງຂ້ອຍ) |
description |
ທາງເລືອກ | ຂໍ້ຄວາມອະທິບາຍ |
is_public |
ທາງເລືອກ | ເຮັດໃຫ້ມີການເຂົ້າເຖິງສາທາລະນະ (ຕົວແບບເດີມ: ຖືກຕ້ອງ) |
ຈັດການການເຂົ້າເຖິງ ແລະ ການຮ່ວມງານຂອງທີມງານ
/api/v1/teams/
/api/v1/teams/
/api/v1/teams/{id}/
import requests
API_TOKEN = 'your-api-token'
BASE_URL = 'https://www.estacaido.com/api/v1'
headers = {
'Authorization': f'Token {API_TOKEN}',
'Content-Type': 'application/json'
}
# List all monitors
response = requests.get(f'{BASE_URL}/monitors/', headers=headers)
monitors = response.json()
print(monitors)
# Create a new monitor
new_monitor = {
'name': 'My Website',
'domain': 'example.com',
'check_interval': 300
}
response = requests.post(f'{BASE_URL}/monitors/', json=new_monitor, headers=headers)
print(response.json())
const API_TOKEN = 'your-api-token';
const BASE_URL = 'https://www.estacaido.com/api/v1';
const headers = {
'Authorization': `Token ${API_TOKEN}`,
'Content-Type': 'application/json'
};
// List all monitors
fetch(`${BASE_URL}/monitors/`, { headers })
.then(res => res.json())
.then(monitors => console.log(monitors));
// Create a new monitor
fetch(`${BASE_URL}/monitors/`, {
method: 'POST',
headers,
body: JSON.stringify({
name: 'My Website',
domain: 'example.com',
check_interval: 300
})
})
.then(res => res.json())
.then(data => console.log(data));
# List all monitors
curl -X GET https://www.estacaido.com/api/v1/monitors/ \
-H "Authorization: Token your-api-token"
# Create a new monitor
curl -X POST https://www.estacaido.com/api/v1/monitors/ \
-H "Authorization: Token your-api-token" \
-H "Content-Type: application/json" \
-d '{"name": "My Website", "domain": "example.com", "check_interval": 300}'
ລົງທະບຽນສໍາລັບການຟຣີແລະໄດ້ຮັບ API ຂອງທ່ານ token ເພື່ອເລີ່ມຕົ້ນການລວມເຂົ້າກັນ.
ລົງທະບຽນຟຣີ ເອົາໂຕຄອນ API