EstaCaido ਨੂੰ ਆਪਣੇ ਐਪਲੀਕੇਸ਼ਨ ਨਾਲ ਇਕਸਾਰ ਕਰੋ
EstaCaido API ਤੁਹਾਨੂੰ ਆਪਣੇ ਮਾਨੀਟਰ, ਘਟਨਾਵਾਂ ਵੇਖਣ, ਚੇਤਾਵਨੀਆਂ ਸੰਰਚਨਾ ਅਤੇ ਹੋਰ ਆਪਣੇ ਕੋਡ ਤੋਂ ਪਰਬੰਧ ਕਰਨ ਦਿੰਦਾ ਹੈ। ਸਭ API ਅੰਤ- ਬਿੰਦੂਆਂ ਨੂੰ ਬੇਨਤੀ ਅਤੇ ਜਵਾਬ ਲਈ JSON ਵਰਤਣ ਲਈ ਹੈ।
https://www.estacaido.com/api/v1/
ਹਰ API ਟੋਕਨ ਪ੍ਰਤੀ ਮਿੰਟ 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 |
ਚੋਣਵਾਂ | ਮਾਨੀਟਰ ID ਨਾਲ ਫਿਲਟਰ |
/api/v1/incidents/{id}/
ਆਪਣੇ ਮਾਨੀਟਰ ਲਈ ਚੇਤਾਵਨੀ ਨੋਟੀਫਿਕੇਸ਼ਨ ਸੰਰਚਨਾ ਕਰੋ ।
/api/v1/alerts/
/api/v1/alerts/
monitor |
ਲੋੜੀਦਾ | ਮਾਨੀਟਰ ID |
alert_type |
ਲੋੜੀਦਾ | ਇਹਨਾਂ ਮੁੱਲਾਂ ਵਿੱਚੋਂ ਇੱਕ: email, sms, slack, discord, webhook, pagerduty, teams |
recipients |
ਲੋੜੀਦਾ | ਪ੍ਰਾਪਤ ਕਰਤਾ ਐਡਰੈੱਸ ਜਾਂ ਵੈਬਹੌਕ URL |
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 ਸਲਾਗ (ਜਿਵੇਂ ਕਿ ਮੇਰਾ-ਸਟੇਟਸ-ਪੇਜ) |
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 ਟੋਕਨ ਪ੍ਰਾਪਤ ਕਰੋ।
ਮੁਫ਼ਤ ਸਾਈਨ ਅੱਪ ਕਰੋ API ਟੋਕਨ ਲਵੋ