ReadonlyhostHostname or IP literal. IPv6 literals arrive unbracketed.
ReadonlyidInstance identity, unique within the service.
Used as the ejection tracker's key, so it must be stable across resolves for ejection to survive a cache refresh.
Optional ReadonlymetadataFree-form key/value metadata the backend carries.
ReadonlyportTCP port.
Optional ReadonlysecureWhether the instance speaks TLS, deciding the https scheme.
ReadonlyserviceThe logical service this instance belongs to.
Optional ReadonlytagsFree-form labels the backend carries (Consul tags, for example).
Optional ReadonlyweightRelative selection weight for the 'weighted-random' strategy.
Absent means 1. A non-positive weight is never selected unless every
instance is non-positive, in which case selection falls back to uniform.
One reachable instance of a service.
Providers normalize their backend's own shape into this — a Consul health entry, a Kubernetes EndpointSlice endpoint, a DNS SRV record, and a literal static entry all arrive here identically.
Since
0.2.0