2020-04-22 14:40:59 +00:00
<ul>
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 }}
2020-04-22 14:40:59 +00:00
<HealthcheckOutput class= {{ item .Status }} @tagName="li">
2020-02-19 19:26:38 +00:00
<BlockSlot @name="header">
2019-07-23 14:03:54 +00:00
<h3> {{ item .Name }} </h3>
2020-02-19 19:26:38 +00:00
</BlockSlot>
<BlockSlot @name="content">
2019-07-23 14:03:54 +00:00
<dl>
2020-05-07 13:57:15 +00:00
{{ # if ( eq item .ServiceName "" ) }}
<dt>NodeName</dt>
<dd> {{ item .Node }} </dd>
{{ else }}
2019-07-23 14:03:54 +00:00
<dt>ServiceName</dt>
2020-05-07 13:57:15 +00:00
<dd> {{ item .ServiceName }} </dd>
{{ / if }}
2019-07-23 14:03:54 +00:00
</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>
2020-02-19 19:26:38 +00:00
<FeedbackDialog @type="inline">
<BlockSlot @name="action" as |success error|>
<CopyButton @success= {{ action success }} @error= {{ action error }} @clipboardText= {{ item .Output }} @title="copy output to clipboard" />
</BlockSlot>
<BlockSlot @name="success" as |transition|>
2019-11-25 18:45:10 +00:00
<p class= {{ transition }} >
Copied output!
</p>
2020-02-19 19:26:38 +00:00
</BlockSlot>
<BlockSlot @name="error" as |transition|>
2019-11-25 18:45:10 +00:00
<p class= {{ transition }} >
Sorry, something went wrong!
</p>
2020-02-19 19:26:38 +00:00
</BlockSlot>
</FeedbackDialog>
2019-11-25 18:45:10 +00:00
</dd>
{{ / if }}
</dl>
2020-02-19 19:26:38 +00:00
</BlockSlot>
</HealthcheckOutput>
2019-02-21 13:10:53 +00:00
{{ / each }}
</ul>