mirror of https://github.com/hashicorp/consul
47 lines
1.2 KiB
Handlebars
47 lines
1.2 KiB
Handlebars
|
<div ...attributes>
|
||
|
<ul>
|
||
|
{{#each items as |item| }}
|
||
|
<li class={{concat 'healthcheck-output ' item.Status}}>
|
||
|
<div>
|
||
|
<header>
|
||
|
<h3>{{item.Name}}</h3>
|
||
|
</header>
|
||
|
<dl>
|
||
|
{{#if (eq item.ServiceName "")}}
|
||
|
<dt>NodeName</dt>
|
||
|
<dd>{{item.Node}}</dd>
|
||
|
{{else}}
|
||
|
<dt>ServiceName</dt>
|
||
|
<dd>{{item.ServiceName}}</dd>
|
||
|
{{/if}}
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt>CheckID</dt>
|
||
|
<dd>{{or item.CheckID '-'}}</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt>Type</dt>
|
||
|
<dd>
|
||
|
{{item.Type}}
|
||
|
{{#if (and exposed (contains item.Type (array 'http' 'grpc')))}}
|
||
|
<em data-test-exposed="true" data-tooltip="Expose.checks is set to true, so all registered HTTP and gRPC check paths are exposed through Envoy for the Consul agent.">Exposed</em>
|
||
|
{{/if}}
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt>Notes</dt>
|
||
|
<dd>{{or item.Notes '-'}}</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt>Output</dt>
|
||
|
<dd>
|
||
|
<pre><code>{{item.Output}}</code></pre>
|
||
|
<CopyButton @value={{item.Output}} @name="output" />
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
</li>
|
||
|
{{/each}}
|
||
|
</ul>
|
||
|
</div>
|