mjpitz / go-gracefully

A simple, efficient, and easy to use Golang library for implementing application health checks. Features first-class support for stream-based checks.
MIT License
10 stars 1 forks source link

Add error-rate check #2

Open mjpitz opened 4 years ago

mjpitz commented 4 years ago

The idea would be to add a new type of check that allows errors to be pushed into a channel. The associated check keeps track of the error rates and compares it with the desired thresholds. When it reaches / passes a given threshold, it changes the checks state.