GetModelStats
GET/v1/usage/model-stats
GetModelStats reads request, error and latency figures for each model from the model rollups.
The model rollups have no customer column, so the figures cover the whole installation. That is correct only while an installation serves one customer, as every SaaS and Enterprise installation does today. So a request that names a customer other than the installation's own is refused with PERMISSION_DENIED, and so is a project-tier key. A request that names no customer needs a platform usage.read grant.
Otherwise authorization is the same as GetUsageStats: metrics_reader and usage.read.
Request
Responses
- 200
Success