2020-12-08 15:47:55 +00:00
|
|
|
{{#if (not @noMetricsReason)}}
|
2020-10-26 19:48:23 +00:00
|
|
|
<DataSource
|
2020-12-09 09:22:46 +00:00
|
|
|
@src={{uri
|
2021-09-15 18:50:11 +00:00
|
|
|
'/${partition}/${nspace}/${dc}/metrics/${endpoint}/${service}/${protocol}'
|
2020-12-09 09:22:46 +00:00
|
|
|
(hash
|
|
|
|
nspace=@nspace
|
2021-09-15 18:50:11 +00:00
|
|
|
partition=@partition
|
2020-12-09 09:22:46 +00:00
|
|
|
dc=@dc
|
|
|
|
endpoint=@endpoint
|
|
|
|
service=@service
|
2021-04-12 13:03:57 +00:00
|
|
|
protocol=(or @protocol '')
|
2020-12-09 09:22:46 +00:00
|
|
|
)
|
|
|
|
}}
|
2020-10-26 19:48:23 +00:00
|
|
|
@onchange={{action 'statsUpdate'}}
|
|
|
|
@onerror={{action (mut error) value="error"}}
|
|
|
|
/>
|
2020-12-08 15:47:55 +00:00
|
|
|
{{/if}}
|
2020-10-09 20:31:15 +00:00
|
|
|
|
2021-07-20 15:09:15 +00:00
|
|
|
<div ...attributes class="topology-metrics-stats" data-test-topology-metrics-stats>
|
2020-10-09 20:31:15 +00:00
|
|
|
{{#if hasLoaded }}
|
|
|
|
{{#each stats as |stat|}}
|
2020-11-30 16:52:13 +00:00
|
|
|
<dl {{tooltip
|
|
|
|
stat.desc
|
|
|
|
options=(hash
|
|
|
|
allowHTML=true
|
|
|
|
)
|
|
|
|
}}>
|
2020-10-09 20:31:15 +00:00
|
|
|
<dt>
|
|
|
|
{{stat.value}}
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{stat.label}}
|
|
|
|
</dd>
|
|
|
|
</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>
|