pub struct SlackHealth { /* private fields */ }Expand description
Checks the bot token with auth.test.
Up: Slack accepts the token.Down: Slack rejects it, or the call fails.Unknown: before start, or with no bot token.
It keeps Up for [slack.health] cache_secs and Down for 5 s or less.
One check runs at a time. Other probes get the result of that check. Details give a
short error code only.
Trait Implementations§
Source§impl Debug for SlackHealth
impl Debug for SlackHealth
Source§impl HealthIndicator for SlackHealth
impl HealthIndicator for SlackHealth
Source§fn check(&self) -> BoxFuture<'_, HealthCheckOutput>
fn check(&self) -> BoxFuture<'_, HealthCheckOutput>
Run the check and return the current health output. Read more
Source§fn group(&self) -> IndicatorGroup
fn group(&self) -> IndicatorGroup
Which probe group this indicator belongs to. Default:
IndicatorGroup::Readiness.Source§fn timeout_ms(&self) -> u64
fn timeout_ms(&self) -> u64
Per-indicator timeout in milliseconds. Default: 2 000 ms.
Auto Trait Implementations§
impl !Freeze for SlackHealth
impl !RefUnwindSafe for SlackHealth
impl !UnwindSafe for SlackHealth
impl Forget for SlackHealth
impl Send for SlackHealth
impl Sync for SlackHealth
impl Unpin for SlackHealth
impl UnsafeUnpin for SlackHealth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.