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