包package
io.agentscope.spring.boot.admin.metricsio.agentscope.spring.boot.admin.metrics
package io.agentscope.spring.boot.admin.metrics
io.agentscope.spring.boot.admin.metrics 属于运行时与部署,服务化、调度、控制面与 Web 应用。 该包共收录 3 个公开类型。
io.agentscope.spring.boot.admin.metrics belongs to the Runtime & deployment layer and contains 3 public types.
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
MetricsHook | 类class | 指标钩子,承载智能体的部署、调度与服务化运行。 Legacy `Hook` that observes `PostCallEvent` and forwards the per-call token usage
to a `MetricsRecorder`. |
MetricsRecorder | 类class | 指标记录器,承载智能体的部署、调度与服务化运行。 Thread-safe accumulator for token usage counters, sliced by agent name and by model name. |
记录Records
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
UsageStats | 记录record | 承载用量 Stats数据的记录类型。 Immutable snapshot of accumulated usage counters for a single bucket (agent or model). |