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}'

请求体

FieldTypeReqDefaultDescription
window_hoursnumberN1Sliding window size in hours (defaults to 1)

响应示例

{
  "ok": true,
  "data": {
    "standard": {
      "mode": "standard",
      "windowHours": 24,
      "capsules": 142,
      "successRate": 0.78
    },
    "hypergraph": {
      "mode": "hypergraph",
      "windowHours": 24,
      "capsules": 140,
      "successRate": 0.83
    }
  }
}

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test