Fi EstaCaido pamọ́ sí àwọn ìṣàmúlò-ètò rẹ̀
EstaCaido API ná láti mú òǹlò rẹ̀ lágbára lórí àwọn mónẹ́ẹ̀lì rẹ̀, wó àwọn àgbègbè, kọ́òdù àwọn ìṣàfarawé àwọn ìṣàmúlò-ètò àti àwọn mìíràn láti inú ìṣàmúlò-ètò rẹ̀. Gbogbo àwọn ààyè API tí a lò ní JSON fún àwọn ẹ̀yàn ìtàn atí àwọn ààyè ìṣàmúlò-ètò.
https://www.estacaido.com/api/v1/
Each API token can make up to 100 requests per minute. Requests over that limit get a 429 Too Many Requests response.
Lo ìṣàfihàn ààtòjútó àìdálẹ̀ àìdálẹ̀ fún gbogbo àwọn ìtàn API. Fi àìdálẹ̀ rẹ̀ sínú àkọlé Àìdálẹ̀.
/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
Ṣàrà àwọn ìṣàmúlò-ètò rẹ̀.
/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 |
Tí a fẹ́ | Orúkọ fún àwọn ìṣàfihàn |
domain |
Tí a fẹ́ | Àwọn dómén láti wòye, àwọn ààyè-iṣẹ́ example.com |
check_interval |
Àwọn ìkúndùǹ | Àwọn ìparí ìṣàmúlò-ètò ìṣàyẹwo nínú àwọn ìṣísẹ̀, ọkan ninu 30, 60, 300, 600, 900, 1800, 3600. Àtòjọ-ẹ̀yàn: 300 |
check_type |
Àwọn ìkúndùǹ | Àwọn fálù yìí: http, https, ping. Àtòjọ-ẹ̀yàn: 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 |
Àwọn ìkúndùǹ | Àwọn ọjọ́ tí a fẹ́ láti fàyè gba. Àtòjọ-ẹ̀yàn: 30 |
Wó àwọn àgbègbè àwọn ààyè-iṣẹ́ àti ìtàn wọn.
/api/v1/incidents/
status |
Àwọn ìkúndùǹ | Àwọn ìṣàmúlò-ètò |
monitor |
Àwọn ìkúndùǹ | Àwọn ààtò àtòjọ-ẹ̀yàn |
/api/v1/incidents/{id}/
Àtòjọ-ẹ̀yàn àwọn ìṣàmúlò-ètò fún àwọn ìṣàmúlò-ètò rẹ.
/api/v1/alerts/
/api/v1/alerts/
monitor |
Tí a fẹ́ | Àwọn Àkọ́lé |
alert_type |
Tí a fẹ́ | Ọkan ninu àwọn fálù yìí: email, sms, slack, discord, webhook, pagerduty, teams |
recipients |
Tí a fẹ́ | Àdírẹ̀sì àwọn ìṣàmúlò-ètò tàbí URL̀ wẹ́ẹ̀bù |
alert_on_down |
Àwọn ìkúndùǹ | Fi àkọlé àwòrán pamọ́ látigbá tí ààyè-iṣẹ́ náà bá kù (ò̀tọ́: òótọ́) |
alert_on_recovery |
Àwọn ìkúndùǹ | Fi àkọlé silẹ látigbá tí ààyè-iṣẹ́ náà bá dáábòónú (ò̀tọ́: òótọ́) |
/api/v1/alerts/{id}/
/api/v1/alerts/{id}/
Ṣẹ̀dà àti ìrànwọ́ àwọn ojú-ìwé ìṣàfarawé àwọn ìṣàmúlò-ètò ìtàn.
/api/v1/status-pages/
/api/v1/status-pages/
title |
Tí a fẹ́ | Àkọ́lé fún ojú-ìwé ìṣàfarawé |
slug |
Tí a fẹ́ | URL slug (gẹ́gẹ́ bíi ojú-ìwé ìṣàfarawékọ́ mìíràn) |
description |
Àwọn ìkúndùǹ | Àwọn àkọlé |
is_public |
Àwọn ìkúndùǹ | Fi àwọn ààyè-iṣẹ́ pamọ́ (òòró: òótọ́) |
Ṣàrà ìṣàmúlò-ètò àti ìṣàmúlò-ètò.
/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}'
Ṣàfihàn fun ọ̀fẹ̀ àti gba API rẹ̀ tokè láti bẹrẹ ìdapọ̀.
Forukọsilẹ Ọfẹ Gba Tókè API