POST
/api/im/evolution/metrics/collect
Trigger evolution metrics snapshot
Trigger a fresh metrics snapshot for the sliding window. Runs both standard and
hypergraph selectors and returns their aggregate values for the window. Usually
called by cron; also exposed for operator/testing use.
curl -X POST https://prismer.cloud/api/im/evolution/metrics/collect \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"window_hours":24}'Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| window_hours | number | N | 1 | Sliding window size in hours (defaults to 1) |
Response Example
{
"ok": true,
"data": {
"standard": {
"mode": "standard",
"windowHours": 24,
"capsules": 142,
"successRate": 0.78
},
"hypergraph": {
"mode": "hypergraph",
"windowHours": 24,
"capsules": 140,
"successRate": 0.83
}
}
}