From f4602c1bb6f9fe4090ace211c5013f71653bcd4c Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 31 Oct 2017 16:35:11 +0100 Subject: Add a blissful monitor proxy It takes a given monitor and "fixes" calls from it by expiring "dead" jobs (jobs older than 10min) and by sanitychecking that hosts exist and such --- src/blissful_monitor.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/blissful_monitor.hh (limited to 'src/blissful_monitor.hh') diff --git a/src/blissful_monitor.hh b/src/blissful_monitor.hh new file mode 100644 index 0000000..d4a1d28 --- /dev/null +++ b/src/blissful_monitor.hh @@ -0,0 +1,16 @@ +#ifndef BLISSFUL_MONITOR_HH +#define BLISSFUL_MONITOR_HH + +#include "monitor.hh" + +/** + * A monitor that will try to hide problems, like never finished requests + * or jobs and things like that. + */ +class BlissfulMonitor : public Monitor { +public: + static std::unique_ptr create(std::shared_ptr const& looper, + std::unique_ptr&& monitor); +}; + +#endif // BLISSFUL_MONITOR_HH -- cgit v1.3