← Automation API
Events
Singular: Event — Base-URL: https://automation-api.ayoune.app — Zugriff: read-only — 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": "6a8bbd10a47555758439cbb6",
"_consumerID": "65d17fffc681100012970857",
"ayoune_fp": [],
"environment": "production",
"modelName": "k8clusters",
"domain": "default",
"origin": "ayoune-automatic-checks-worker-develop",
"category": "automation",
"action": "check",
"label": "triggered",
"value": "serious_azure_yoda",
"evt_data": {
"_id": "6a618edc6cea51dbecadf7de",
"name": "SERIOUS_AZURE_YODA",
"type": "gke",
"provider": "gke",
"healthStatus": "unreachable",
"syncInterval": 120000,
"isDraft": true,
"createdBy": "6045f4d25704710012485569",
"createdAt": "2026-07-23T03:47:40.224Z",
"updatedAt": "2026-08-24T03:30:24.486Z",
"shortID": "Rptmm1v",
"lastHealthCheck": "2026-08-24T03:30:24.486Z"
},
"ts": "2026-08-24T03:40:00.300Z",
"isDraft": true
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://automation-api.ayoune.app/events/6a8bbd10a47555758439cbb6",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers/65d17fffc681100012970857",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
}
],
"relations": [
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
},
{
"rel": "States",
"title": "MODEL_STATE",
"href": "https://api.ayoune.app/config/states",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.states"
}
],
"debugId": "6a8e5fd1c4f84869c29d37e6",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_EVENT",
"href": "https://api.ayoune.app/automation/events/6a8bbd10a47555758439cbb6/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_EVENT",
"href": "https://api.ayoune.app/automation/events/6a8bbd10a47555758439cbb6",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.22.0",
"core": "2026.319.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2408",
"reset": "1787719109",
"resetDate": "Wed Aug 26 2026"
},
"responseTime": 404.179933,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /events |
Liste mit Filtern/Paginierung | automation.events.view |
| GET | /events/:id |
Einzelner Datensatz via ID | automation.events.view |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.automation.events.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.automation.events.findById('OBJECT_ID').exec();