Add documentation on HealthObserve trait

This commit is contained in:
Andrew Hauck 2024-08-09 09:12:23 -07:00 committed by Andrew Hauck
parent 8a0c73f174
commit 50c3687e83
2 changed files with 3 additions and 1 deletions

2
.bleep
View file

@ -1 +1 @@
36269b8823b23381398508138bbab33c03ba7681
f123f5e43e9ada31a0e541b917ea674527fd06a3

View file

@ -24,6 +24,8 @@ use pingora_http::{RequestHeader, ResponseHeader};
use std::sync::Arc;
use std::time::Duration;
/// [HealthObserve] is an interface for observing health changes of backends,
/// this is what's used for our health observation callback.
#[async_trait]
pub trait HealthObserve {
/// Observes the health of a [Backend], can be used for monitoring purposes.