તમારા કાર્યક્રમો સાથે 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 |
જરૂરી | મેળવનાર સરનામાં અથવા વેબહોક URLs |
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 ટોકન મેળવો.
મફત સાઇન અપ કરો API ટોકન મેળવો