<Self>(
tag: FleetHealthTag<Self>,
options?: FleetHealthOptions
): Layer.Layer<
| Handler<"status">
| Self
| Hyperlink.Local<Self>
| Handler<"local">
| Handler<"byNode">,
never,
Hyperlink.PeersId<Self> | Hyperlink.SelfNodeId<Self>
>Serve and grant the local instance — counterpart to Hyperlink.serve.
FleetHealth.serve(MeshHealth, { readiness }).pipe(
Layer.provide(Hyperlink.peersLayer(MeshHealth, DropletEast)),
)layers & servingHyperlink.serve
Source src/FleetHealth.ts:3654 lines
export const const serve: <Self>(
tag: FleetHealthTag<Self>,
options?: FleetHealthOptions
) => any
Serve and grant the local instance — counterpart to
Hyperlink.serve
.
FleetHealth.serve(MeshHealth, { readiness }).pipe(
Layer.provide(Hyperlink.peersLayer(MeshHealth, DropletEast)),
)
serve = <function (type parameter) Self in <Self>(tag: FleetHealthTag<Self>, options?: FleetHealthOptions): anySelf>(
tag: FleetHealthTag<Self>tag: type FleetHealthTag<Self> = HyperlinkTag<
Self,
{
local: any
byNode: any
status: any
}
>
A FleetHealth instance tag.
FleetHealthTag<function (type parameter) Self in <Self>(tag: FleetHealthTag<Self>, options?: FleetHealthOptions): anySelf>,
options: FleetHealthOptionsoptions?: FleetHealthOptions,
) => import resourceServeresourceServe(tag: FleetHealthTag<Self>tag, const buildImpl: <Self>(
tag: FleetHealthTag<Self>,
options?: FleetHealthOptions
) => Effect.Effect<
{
readonly local: Effect.Effect<LocalHealth>
readonly byNode: Effect.Effect<
Readonly<Record<string, NodeReport>>
>
readonly status: Effect.Effect<FleetStatus>
},
never,
PeersId<Self> | SelfNodeId<Self>
>
Served impl — resolves peers/self once; members close over them (Telemetry twin).
buildImpl(tag: FleetHealthTag<Self>tag, options: FleetHealthOptionsoptions));