Documentation ¶
Index ¶
- func AddDispatch(priorityLevel, flowSchema string)
- func AddReject(priorityLevel, flowSchema, reason string)
- func AddRequestsExecuting(priorityLevel, flowSchema string, delta int)
- func AddRequestsInQueues(priorityLevel, flowSchema string, delta int)
- func GatherAndCompare(expected string, metricNames ...string) error
- func ObserveExecutionDuration(priorityLevel, flowSchema string, executionTime time.Duration)
- func ObserveQueueLength(priorityLevel, flowSchema string, length int)
- func ObserveWaitingDuration(priorityLevel, flowSchema, execute string, waitTime time.Duration)
- func Register()
- func Reset()
- func UpdateSharedConcurrencyLimit(priorityLevel string, limit int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDispatch ¶
func AddDispatch(priorityLevel, flowSchema string)
AddDispatch increments the # of dispatched requests for flow control
func AddReject ¶
func AddReject(priorityLevel, flowSchema, reason string)
AddReject increments the # of rejected requests for flow control
func AddRequestsExecuting ¶
AddRequestsExecuting adds the given delta to the gauge of executing requests of the given flowSchema and priorityLevel
func AddRequestsInQueues ¶
AddRequestsInQueues adds the given delta to the gauge of the # of requests in the queues of the specified flowSchema and priorityLevel
func GatherAndCompare ¶
GatherAndCompare the given metrics with the given Prometheus syntax expected value
func ObserveExecutionDuration ¶
ObserveExecutionDuration observes the execution duration for flow control
func ObserveQueueLength ¶
ObserveQueueLength observes the queue length for flow control
func ObserveWaitingDuration ¶
ObserveWaitingDuration observes the queue length for flow control
Types ¶
This section is empty.