method ConsulProvider.prototype.healthUrl
ConsulProvider.prototype.healthUrl(
serviceName: string,
index?: number
): string

Builds the health-read URL.

Always sends passing=true: self-registration advertises the instance before its socket is bound, and filtering on passing checks is what makes that window harmless for every consumer.

Parameters

serviceName: string

Logical service name

optional
index: number

Blocking-query index, omitted for a plain read

Return Type

string

The absolute URL

Usage

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