2019-03-07 10:51:39 +00:00
<ul data-test-healthchecks>
2019-07-23 14:03:54 +00:00
{{ # each ( sort-by ( action 'sortChecksByImportance' ) items ) as | item | }}
2019-11-25 18:45:10 +00:00
{{! TODO: this component and its child should be moved to a single component }}
2019-07-23 14:03:54 +00:00
{{ # healthcheck-output
data-test-node-healthcheck=item.Name
class=item.Status
tagName='li'
}}
{{ # block-slot 'header' }}
<h3> {{ item .Name }} </h3>
{{ / block-slot }}
{{ # block-slot 'content' }}
<dl>
<dt>ServiceName</dt>
<dd> {{ or item .ServiceName '-' }} </dd>
</dl>
<dl>
<dt>CheckID</dt>
<dd> {{ or item .CheckID '-' }} </dd>
</dl>
2019-11-25 18:45:10 +00:00
<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>
2019-07-23 14:03:54 +00:00
<dl>
<dt>Notes</dt>
<dd> {{ or item .Notes '-' }} </dd>
</dl>
2019-11-25 18:45:10 +00:00
<dl>
{{ # if ( not-eq item .Type 'ttl' ) }}
<dt>Output</dt>
<dd>
<pre><code> {{ item .Output }} </code></pre>
{{ # feedback-dialog type = 'inline' }}
{{ # block-slot 'action' as | success error | }}
{{ copy-button success = ( action success ) error = ( action error ) clipboardText = item .Output title = 'copy output to clipboard' }}
{{ / block-slot }}
{{ # block-slot 'success' as | transition | }}
<p class= {{ transition }} >
Copied output!
</p>
{{ / block-slot }}
{{ # block-slot 'error' as | transition | }}
<p class= {{ transition }} >
Sorry, something went wrong!
</p>
{{ / block-slot }}
{{ / feedback-dialog }}
</dd>
{{ / if }}
</dl>
2019-07-23 14:03:54 +00:00
{{ / block-slot }}
{{ / healthcheck-output }}
2019-02-21 13:10:53 +00:00
{{ / each }}
</ul>