mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: add requests received/handled in Status responses (#1132)
This is useful as additional data to inflight requests. Callers can determine request arrival and processing rate.
This commit is contained in:
@@ -35,6 +35,8 @@ type MTLSRunnerFactory func(addr, certCommonName string, pki *PKIData) (Runner,
|
||||
// RunnerStatus is general information on Runner health as returned by Runner::Status() call
|
||||
type RunnerStatus struct {
|
||||
ActiveRequestCount int32 // Number of active running requests on Runner
|
||||
RequestsReceived uint64 // Number of requests received by Runner
|
||||
RequestsHandled uint64 // Number of requests handled without NACK by Runner
|
||||
StatusFailed bool // True if Status execution failed
|
||||
Cached bool // True if Status was provided from cache
|
||||
StatusId string // Call ID for Status
|
||||
|
||||
Reference in New Issue
Block a user