Skip to main content

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.