MCPcopy Index your code
hub / github.com/php/frankenphp / Metrics

Interface Metrics

metrics.go:19–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17type StopReason int
18
19type Metrics interface {
20 // StartWorker collects started workers
21 StartWorker(name string)
22 // ReadyWorker collects ready workers
23 ReadyWorker(name string)
24 // StopWorker collects stopped workers
25 StopWorker(name string, reason StopReason)
26 // TotalWorkers collects expected workers
27 TotalWorkers(name string, num int)
28 // TotalThreads collects total threads
29 TotalThreads(num int)
30 // StartRequest collects started requests
31 StartRequest()
32 // StopRequest collects stopped requests
33 StopRequest()
34 // StopWorkerRequest collects stopped worker requests
35 StopWorkerRequest(name string, duration time.Duration)
36 // StartWorkerRequest collects started worker requests
37 StartWorkerRequest(name string)
38 Shutdown()
39 QueuedWorkerRequest(name string)
40 DequeuedWorkerRequest(name string)
41 QueuedRequest()
42 DequeuedRequest()
43}
44
45type nullMetrics struct{}
46

Implementers 2

nullMetricsmetrics.go

Calls

no outgoing calls

Tested by

no test coverage detected