MCPcopy Index your code
hub / github.com/coder/coder / UpdateStats

Method UpdateStats

agent/stats.go:27–27  ·  view source on GitHub ↗
(ctx context.Context, req *proto.UpdateStatsRequest)

Source from the content-addressed store, hash-verified

25
26type statsDest interface {
27 UpdateStats(ctx context.Context, req *proto.UpdateStatsRequest) (*proto.UpdateStatsResponse, error)
28}
29
30// statsReporter is a subcomponent of the agent that handles registering the stats callback on the

Callers 4

TestAgentStatsFunction · 0.65
TestCollectInsightsFunction · 0.65
reportLoopMethod · 0.65
reportLockedMethod · 0.65

Implementers 5

StatsAPIcoderd/agentapi/stats.go
fakeStatsDestagent/stats_internal_test.go
drpcAgentClientagent/proto/agent_drpc.pb.go
DRPCAgentUnimplementedServeragent/proto/agent_drpc.pb.go
FakeAgentAPIagent/agenttest/client.go

Calls

no outgoing calls

Tested by 2

TestAgentStatsFunction · 0.52
TestCollectInsightsFunction · 0.52