{{#if (eq loader.error.status '404')}} Warning! This service has been deregistered and no longer exists in the catalog. {{else if (eq loader.error.status '403')}} Error! You no longer have access to this service. {{else}} Warning! An error was returned whilst loading this data, refresh to try again. {{/if}} {{#let loader.data as |item|}} {{#if item.IsOrigin}} {{! We only really need meta to get the correct ServiceID }} {{! but we may as well use the NodeName and ServiceName }} {{! from meta also, but they should be the same as the instance }} {{! so if we can ever get ServiceID from elsewhere we could save }} {{! a HTTP request/long poll here }} {{#if meta.data.ServiceID}} {{! if we have a proxy then get the additional instance information }} {{! for the proxy itself so if the service is called `backend` }} {{! its likely to have a proxy service called `backend-sidecar-proxy` }} {{! and this second request get the info for that instance and saves }} {{! it into the `proxy` variable }} {{/if}} {{/if}}
  1. All Services
  2. Service ({{item.Service.Service}})

{{! TODO: Looks like we can get this straight from item.Proxy.Mode }} {{! the less we need `proxy` and `meta` the better }} {{#if (eq meta.ServiceProxy.Mode 'transparent')}} {{/if}}
Service Name
{{item.Service.Service}}
{{#unless item.Node.Meta.synthetic-node}}
Node Name
{{item.Node.Node}}
{{/unless}} {{#if item.Service.PeerName}}
Peer Name
{{item.Service.PeerName}}
{{/if}}
{{#let (or item.Service.Address item.Node.Address) as |address|}} {{address}} {{/let}} {{outlet}}
{{/let}}