MCPcopy
hub / github.com/CodisLabs/codis / Overview

Method Overview

pkg/proxy/proxy.go:552–564  ·  view source on GitHub ↗
(flags StatsFlags)

Source from the content-addressed store, hash-verified

550)
551
552func (s *Proxy) Overview(flags StatsFlags) *Overview {
553 o := &Overview{
554 Version: utils.Version,
555 Compile: utils.Compile,
556 Config: s.Config(),
557 Model: s.Model(),
558 Stats: s.Stats(flags),
559 }
560 if flags.HasBit(StatsSlots) {
561 o.Slots = s.Slots()
562 }
563 return o
564}
565
566func (s *Proxy) Stats(flags StatsFlags) *Stats {
567 stats := &Stats{}

Callers 3

startMetricsJsonMethod · 0.95
handleOverviewMethod · 0.45
handleOverviewMethod · 0.45

Calls 5

ConfigMethod · 0.95
ModelMethod · 0.95
StatsMethod · 0.95
SlotsMethod · 0.95
HasBitMethod · 0.80

Tested by

no test coverage detected