MCPcopy Create free account
hub / github.com/astercloud/aster / GetStats

Method GetStats

server/handlers/pool.go:242–250  ·  view source on GitHub ↗

GetStats retrieves pool statistics

(c *gin.Context)

Source from the content-addressed store, hash-verified

240
241// GetStats retrieves pool statistics
242func (h *PoolHandler) GetStats(c *gin.Context) {
243 c.JSON(http.StatusOK, gin.H{
244 "success": true,
245 "data": gin.H{
246 "total_agents": h.pool.Size(),
247 "max_agents": 100,
248 },
249 })
250}

Callers

nothing calls this directly

Calls 2

JSONMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected