method DiscoveryProvider.isHealthy
Since 0.2.0
DiscoveryProvider.isHealthy(): Promise<boolean>

M70c: reports whether the discovery backend is reachable right now, for the plugin's health indicator.

Optional: a provider with no meaningful liveness check omits it, and the indicator then relies on the service's everResolved state. This answers a fact (reachability), not a policy: the indicator owns the up/degraded/ down mapping.

Return Type

Promise<boolean>

true when the backend is reachable

Usage

import { type DiscoveryProvider } from "service-discovery-plugin/src/index.ts";