github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/ui/app/templates/components/task-row.hbs (about) 1 <td class="is-narrow"> 2 {{#if (not task.driverStatus.healthy)}} 3 <span data-test-icon="unhealthy-driver" class="tooltip text-center" aria-label="{{task.driver}} is unhealthy"> 4 {{x-icon "warning" class="is-warning"}} 5 </span> 6 {{/if}} 7 </td> 8 <td data-test-name> 9 {{#link-to "allocations.allocation.task" task.allocation task class="is-primary"}} 10 {{task.name}} 11 {{/link-to}} 12 </td> 13 <td data-test-state>{{task.state}}</td> 14 <td data-test-message> 15 {{#if task.events.lastObject.message}} 16 {{task.events.lastObject.message}} 17 {{else}} 18 <em>No message</em> 19 {{/if}} 20 </td> 21 <td data-test-time>{{format-ts task.events.lastObject.time}}</td> 22 <td data-test-ports> 23 <ul> 24 {{#with task.resources.networks.firstObject as |network|}} 25 {{#each network.reservedPorts as |port|}} 26 <li data-test-port> 27 <strong>{{port.Label}}:</strong> 28 <a href="http://{{network.ip}}:{{port.Value}}" target="_blank" rel="noopener noreferrer">{{network.ip}}:{{port.Value}}</a> 29 </li> 30 {{/each}} 31 {{#each network.dynamicPorts as |port|}} 32 <li> 33 <strong>{{port.Label}}:</strong> 34 <a href="http://{{network.ip}}:{{port.Value}}" target="_blank" rel="noopener noreferrer">{{network.ip}}:{{port.Value}}</a> 35 </li> 36 {{/each}} 37 {{/with}} 38 </ul> 39 </td> 40 <td data-test-cpu class="is-1 has-text-centered"> 41 {{#if task.isRunning}} 42 {{#if (and (not cpu) fetchStats.isRunning)}} 43 ... 44 {{else if statsError}} 45 <span class="tooltip text-center" role="tooltip" aria-label="Couldn't collect stats"> 46 {{x-icon "warning" class="is-warning"}} 47 </span> 48 {{else}} 49 <div class="inline-chart is-small tooltip" role="tooltip" aria-label="{{cpu.used}} / {{taskStats.reservedCPU}} MHz"> 50 <progress 51 class="progress is-info is-small" 52 value="{{cpu.percent}}" 53 max="1"> 54 {{cpu.percent}} 55 </progress> 56 </div> 57 {{/if}} 58 {{/if}} 59 </td> 60 <td data-test-mem class="is-1 has-text-centered"> 61 {{#if task.isRunning}} 62 {{#if (and (not memory) fetchStats.isRunning)}} 63 ... 64 {{else if statsError}} 65 <span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats"> 66 {{x-icon "warning" class="is-warning"}} 67 </span> 68 {{else}} 69 <div class="inline-chart tooltip" role="tooltip" aria-label="{{format-bytes memory.used}} / {{taskStats.reservedMemory}} MiB"> 70 <progress 71 class="progress is-danger is-small" 72 value="{{memory.percent}}" 73 max="1"> 74 {{memory.percent}} 75 </progress> 76 </div> 77 {{/if}} 78 {{/if}} 79 </td>