---
title: "GET /v1/admin/monitor/usage-logs/stat"
method: GET
path: "/v1/admin/monitor/usage-logs/stat"
tags: ["AdminMonitorService"]
---

# GET /v1/admin/monitor/usage-logs/stat

`GET /v1/admin/monitor/usage-logs/stat`

GetUsageLogsStat returns realtime RPM/TPM aggregated over a fixed trailing
 60s window of usage logs. Filters mirror ListUsageLogsRequest semantics.

 Keep this literal route before /v1/admin/monitor/usage-logs/{id}; otherwise
 some HTTP routers may match "stat" as a path id.

## Query parameters

- `userId` string
- `modelId` string
- `channelId` string
- `status` integer

## Response `200`

OK

- AdminV1GetUsageLogsStatReply
  - `rpm` string — Requests recorded in the trailing 60s window. Declared optional (explicit presence) so a zero value is still emitted through the EmitUnpopulated:false response envelope instead of disappearing from the JSON body.
  - `tpm` string — Sum of total_tokens over the same window; explicit presence for the same reason as rpm. Proto JSON serializes int64 as a decimal string.
  - `windowSeconds` integer — Trailing window length in seconds (currently always 60).

## Changes

- **2026-09-03** `a4b851fa3bdd` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/apiqik/apis/apiqik-api/changes/v1/admin/monitor/usage-logs/stat/get.md)

---

[API](https://skmtc.dev/apiqik/apis/apiqik-api.md) · [All operations](https://skmtc.dev/apiqik/apis/apiqik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apiqik/apiqik-api/revisions/a4b851fa3bdd/schema)
