docs(openrouter-analytics): sync analytics skills with the query builder - #180
devin-ai-integration[bot] wants to merge 5 commits into
Conversation
…tamps Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Original prompt from Automation
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
… query builder Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…its own blockquote paragraph Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…est counts Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… dimension, and server-tool exclusions Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Summary
Four rounds of analytics skill sync against
packages/clickhouse/analytics/andservices/cfw-public-api/src/routes/analytics/in openrouter-web. Every statement below is taken from a registry, schema constant, migration, or route schema in that source.Round 1 (commit 7b1f643) —
time_rangeonPOST /api/v1/analytics/queryrequires seconds (YYYY-MM-DDTHH:MM:SSZ, fractional allowed);2026-05-01T00:00Zis rejected with 400.Round 2 (commits 803e12f, 391dcea) — corrections and additions across the three analytics skills:
Round 3 (commit eed46f2) — server-tool accounting in request counts, following openrouter-web #39256:
Round 4 (commit 4812cc6) — latency SLO metrics and server-tool timing exclusions, following openrouter-web#42186, openrouter-web#42209, and openrouter-web#39842:
The classifier-column correction is the one an agent could previously get wrong silently: with two names the response has one column per dimension, not the generic EAV pair. The possible-cache metrics resolve to an hourly rollup that carries only
modelandprovider, so any other dimension or filter, orminutegranularity, returns 400.Overlaps with #184 (schema skill only, same latency SLO metrics and
streamed); this PR is the superset.Verification: static review against the source registries, migrations 163/174, and route schemas. No live call was made against the analytics endpoints.
Link to Devin session: https://openrouter.devinenterprise.com/sessions/56737e0e76c84459936257ad4816d4ad
Open in Devin Desktop: https://openrouter.devinenterprise.com/desktop/session/56737e0e76c84459936257ad4816d4ad?variant=devin