2020-10-26 19:48:23 +00:00
|
|
|
{{#unless @noMetricsReason}}
|
|
|
|
<DataSource
|
2020-11-13 15:39:00 +00:00
|
|
|
@src={{uri @nspace @dc 'metrics' @endpoint @service @protocol}}
|
2020-10-26 19:48:23 +00:00
|
|
|
@onchange={{action 'statsUpdate'}}
|
|
|
|
@onerror={{action (mut error) value="error"}}
|
|
|
|
/>
|
|
|
|
{{/unless}}
|
2020-10-09 20:31:15 +00:00
|
|
|
|
|
|
|
<div class="stats">
|
|
|
|
{{#if hasLoaded }}
|
|
|
|
{{#each stats as |stat|}}
|
|
|
|
<dl>
|
|
|
|
<dt>
|
|
|
|
{{stat.value}}
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{stat.label}}
|
|
|
|
</dd>
|
|
|
|
<Tooltip>{{{stat.desc}}}</Tooltip>
|
|
|
|
</dl>
|
|
|
|
{{else}}
|
|
|
|
<span>No Metrics Available</span>
|
|
|
|
{{/each}}
|
|
|
|
{{else}}
|
2020-10-26 19:48:23 +00:00
|
|
|
<TopologyMetrics::Status
|
|
|
|
@noMetricsReason={{@noMetricsReason}}
|
|
|
|
@error={{error}}
|
|
|
|
/>
|
2020-10-09 20:31:15 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|