Ontwikkelaars
API-documentatie
Alles wat u nodig heeft om Continuum te integreren in uw workflow. Beheer monitors programmatisch, automatiseer implementaties en bouw aangepaste dashboards.
Snelstart
curl -X GET "https://api.continuumnexus.com/v1/monitors" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Monitors
| Methode | Endpoint | Beschrijving |
|---|---|---|
| GET | /v1/monitors | Lijst van alle monitors |
| POST | /v1/monitors | Maak een nieuwe monitor |
| GET | /v1/monitors/{"{id}"} | Monitor details ophalen |
| PUT | /v1/monitors/{"{id}"} | Update een monitor |
| DELETE | /v1/monitors/{"{id}"} | Verwijder een monitor |
| POST | /v1/monitors/{"{id}"}/pause | Monitoring pauzeren |
| POST | /v1/monitors/{"{id}"}/resume | Monitoring hervatten |
| GET | /v1/monitors/{"{id}"}/results | Check resultaten ophalen (gepagineerd) |
| GET | /v1/monitors/{"{id}"}/uptime | Uptime statistieken ophalen |
Scenario's (Multi-stap)
Uniek voor Continuum| Methode | Endpoint | Beschrijving |
|---|---|---|
| GET | /v1/scenarios | Lijst van alle scenario's |
| POST | /v1/scenarios | Maak een multi-stap scenario |
| GET | /v1/scenarios/{"{id}"} | Scenario details ophalen |
| POST | /v1/scenarios/{"{id}"}/run | Handmatige run starten |
| GET | /v1/scenarios/{"{id}"}/results | Scenario run geschiedenis ophalen |
Voorbeeld: Maak een monitor
{
"name": "Production API Health",
"url": "https://api.example.com/health",
"method": "GET",
"interval": 60,
"regions": ["eu-west", "us-east"],
"assertions": [
{ "type": "status", "operator": "equals", "value": 200 },
{ "type": "responseTime", "operator": "lessThan", "value": 500 },
{ "type": "jsonPath", "path": "$.status", "operator": "equals", "value": "ok" }
],
"headers": {
"Authorization": "Bearer {{secret:api_token}}"
},
"alerts": {
"channels": ["email", "slack"],
"onFailure": true,
"onRecovery": true
}
}Voorbeeld: Maak een multi-stap scenario
{
"name": "E-Commerce Checkout Flow",
"interval": 300,
"steps": [
{
"name": "Login",
"url": "https://api.example.com/auth/login",
"method": "POST",
"body": {
"email": "test@example.com",
"password": "{{secret:test_password}}"
},
"extract": {
"token": "$.accessToken",
"userId": "$.user.id"
}
},
{
"name": "Add to Cart",
"url": "https://api.example.com/cart",
"method": "POST",
"headers": {
"Authorization": "Bearer {{token}}"
},
"body": {
"productId": "SKU-12345",
"quantity": 1
},
"extract": {
"cartId": "$.cartId"
}
},
{
"name": "Checkout",
"url": "https://api.example.com/checkout/{{cartId}}",
"method": "POST",
"headers": {
"Authorization": "Bearer {{token}}"
},
"assertions": [
{ "type": "status", "operator": "equals", "value": 200 },
{ "type": "jsonPath", "path": "$.order.status", "operator": "equals", "value": "confirmed" }
]
}
]
}Let op: Variabelen uit een stap (zoals {token}) zijn automatisch beschikbaar in volgende stappen. Gebruik {secret:name} voor gevoelige waarden.
Use Cases
CI/CD-integratie
Maak automatisch monitors aan na het deployen. Pauzeer tijdens onderhoudsvensters.
Infrastructure as Code
Beheer de configuratie van uw monitors met versiebeheer. Deploy monitors samen met uw infrastructuur.
Aangepaste Dashboards
Haal statistieken binnen in Grafana, Datadog of uw eigen dashboards voor centrale observability.
Bulkbewerkingen
Maak honderden monitors aan vanuit een CSV. Update configuraties in batch.
Authenticatie
Alle API-verzoeken vereisen een Bearer-token. Genereer API-sleutels in uw dashboard onder Instellingen → API-sleutels.
Snelheidslimieten
| Plan | Verzoeken/min | Verzoeken/dag |
|---|---|---|
| Pro | 60 | 10.000 |
| Groei | 150 | 50.000 |
| Business | 300 | 100.000 |
Klaar om te integreren?
Schrijf u in voor de wachtlijst voor vroege toegang tot de API en help de ontwikkeling vorm te geven.