agentrouter.metrics.v1.CustomerMetricsService
CustomerMetricsService is the consumer-facing, tenancy-scoped metrics API. It is a thin business facade in front of the DPO metrics-query service (DPO#10): each RPC authenticates the caller, resolves and verifies the tenancy scope, maps the request path to a (metric, entity, layer) triple, calls DPO, and returns the uniform envelope. Every RPC is row-scoped to the caller -- a user can only read metrics for entities they own or a project they are a member of. Infra layers (DATAPLANE/GATEWAY) are NOT reachable here; they are admin-only via MetricsService.
GetApiKeyMetric
GetApiKeyMetric returns a metric for a single API key. The key must belong
GetProjectMetric
GetProjectMetric returns a project-level metric. The caller must be a
GetUserMetric
GetUserMetric returns a metric for a single user. The user_id is forced to
GetMyMetric
GetMyMetric returns a USER-layer metric for the calling user, resolved
ListMetrics
ListMetrics returns DPO's metric catalog: the known metrics, the layers