MCPcopy
hub / github.com/cortexlabs/cortex / StatsReporter

Interface StatsReporter

pkg/activator/activator.go:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39const APINameCtxKey ctxValue = "apiName"
40
41type StatsReporter interface {
42 AddAPI(apiName string)
43 RemoveAPI(apiName string)
44}
45
46type Activator interface {
47 Try(ctx context.Context, fn func() error) error

Callers 4

addAPIMethod · 0.65
mainFunction · 0.65
removeAPIMethod · 0.65
mainFunction · 0.65

Implementers 2

Autoscalerpkg/autoscaler/autoscaler.go
PrometheusStatsReporterpkg/activator/request_stats.go

Calls

no outgoing calls

Tested by

no test coverage detected