← Monitoring API
Incidents
Singular: Incident — Base-URL: https://monitoring-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Beispiel-Response (aufgezeichnet) Beispiel
Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.
{
"payload": {
"_id": "6ab23bb0cbbf37c90058032d",
"createdAt": "2026-09-20T09:00:00.000Z",
"updatedAt": "2026-09-20T09:00:00.000Z",
"title": "Erhoehte Antwortzeiten in der Kasse",
"status": "Resolved",
"severity": "major",
"type": "incident",
"_statusComponents": [
"6ab23bafcbbf37c900580296"
],
"impact": "major",
"provenance": "manual",
"updates": [
{
"status": "Investigating",
"body": "Wir sehen erhoehte Antwortzeiten im Kassen-Vorgang und untersuchen die Ursache.",
"at": "2026-09-20T09:00:00.000Z"
},
{
"status": "Identified",
"body": "Ursache ist eine ueberlastete Datenbank-Verbindung. Ein Neustart laeuft.",
"at": "2026-09-20T09:45:00.000Z"
},
{
"status": "Monitoring",
"body": "Die Antwortzeiten sind normalisiert. Wir beobachten weiter.",
"at": "2026-09-20T10:30:00.000Z"
},
{
"status": "Resolved",
"body": "Der Vorfall ist abgeschlossen. Keine Bestellungen sind verloren gegangen.",
"at": "2026-09-20T11:15:00.000Z"
}
],
"startedAt": "2026-09-20T09:00:00.000Z",
"resolvedAt": "2026-09-20T12:00:00.000Z",
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://monitoring-api.ayoune.app/incidents/6ab23bb0cbbf37c90058032d",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "DevOpsAlerts",
"title": "MODEL_DEVOPSALERT",
"href": "https://api.ayoune.app/devops/devopsalerts",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "devops.devopsalerts"
}
],
"debugId": "6ac9c0a997e103049fc314eb",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_INCIDENT",
"href": "https://api.ayoune.app/monitoring/incidents/6ab23bb0cbbf37c90058032d/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_INCIDENT",
"href": "https://api.ayoune.app/monitoring/incidents/6ab23bb0cbbf37c90058032d",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.39.1",
"core": "2026.365.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9645",
"reset": "1791609309",
"resetDate": "Sat Oct 10 2026"
},
"responseTime": 19.148039,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /incidents |
Liste mit Filtern/Paginierung | monitoring.incidents.view |
| GET | /incidents/:id |
Einzelner Datensatz | monitoring.incidents.view |
| POST | /incidents |
Neuen Datensatz erstellen | monitoring.incidents.new |
| PUT | /incidents |
Datensatz aktualisieren | monitoring.incidents.edit |
| DELETE | /incidents/:id |
Datensatz löschen | monitoring.incidents.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.monitoring.incidents.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.monitoring.incidents.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.monitoring.incidents.create({ name: 'Foo' });