diff options
Diffstat (limited to 'src/mongo/db/process_health/health_observer.h')
-rw-r--r-- | src/mongo/db/process_health/health_observer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/process_health/health_observer.h b/src/mongo/db/process_health/health_observer.h index cdfeeb81f08..a5a48306929 100644 --- a/src/mongo/db/process_health/health_observer.h +++ b/src/mongo/db/process_health/health_observer.h @@ -89,6 +89,13 @@ public: * Timeout value enforced on an individual health check. */ virtual Milliseconds getObserverTimeout() const = 0; + + /** + * Returns false if the health observer is missing some configuration it needs for its health + * checks. In the case of faulty configuration, make sure to log any helpful messages within + * this method. + */ + virtual bool isConfigured() const = 0; }; } // namespace process_health |