open-nomad/ui/app/templates/components/job-deployment/deployment-metrics.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.6 KiB
Handlebars
Raw Normal View History

2017-09-19 14:47:10 +00:00
<div class="columns deployment-metrics">
<div class="column nowrap">
<div class="metric-group">
<div class="metric {{if (eq this.deployment.placedCanaries this.deployment.desiredCanaries) "is-primary"}} {{if (eq this.deployment.desiredCanaries 0) "is-faded"}}">
2017-09-19 14:47:10 +00:00
<h3 class="label">Canaries</h3>
<p data-test-deployment-metric="canaries" class="value">{{this.deployment.placedCanaries}} / {{this.deployment.desiredCanaries}}</p>
2017-09-19 14:47:10 +00:00
</div>
</div>
<div class="metric-group">
<div class="metric">
<h3 class="label">Placed</h3>
<p data-test-deployment-metric="placed" class="value">{{this.deployment.placedAllocs}}</p>
2017-09-19 14:47:10 +00:00
</div>
<div class="metric">
<h3 class="label">Desired</h3>
<p data-test-deployment-metric="desired" class="value">{{this.deployment.desiredTotal}}</p>
2017-09-19 14:47:10 +00:00
</div>
</div>
<div class="metric-group">
<div class="metric {{if (gt this.deployment.healthyAllocs 0) "is-primary" "is-faded"}}">
2017-09-19 14:47:10 +00:00
<h3 class="label">Healthy</h3>
<p data-test-deployment-metric="healthy" class="value">{{this.deployment.healthyAllocs}}</p>
2017-09-19 14:47:10 +00:00
</div>
</div>
<div class="metric-group">
<div class="metric {{if (gt this.deployment.unhealthyAllocs 0) "is-danger" "is-faded"}}">
2017-09-19 14:47:10 +00:00
<h3 class="label">Unhealthy</h3>
<p data-test-deployment-metric="unhealthy" class="value">{{this.deployment.unhealthyAllocs}}</p>
2017-09-19 14:47:10 +00:00
</div>
</div>
</div>
<div class="column">
<div data-test-deployment-notification class="notification {{this.deployment.statusClass}}">
{{this.deployment.statusDescription}}
2017-09-19 14:47:10 +00:00
</div>
</div>
</div>