2019-07-17 20:02:58 +00:00
|
|
|
{{title "Client " (or model.name model.shortId)}}
|
2019-11-19 06:36:07 +00:00
|
|
|
<section class="section with-headspace">
|
2019-11-02 07:55:01 +00:00
|
|
|
{{#if eligibilityError}}
|
2019-11-22 00:51:23 +00:00
|
|
|
<div data-test-eligibility-error class="columns">
|
2019-11-19 06:36:07 +00:00
|
|
|
<div class="column">
|
2019-11-22 00:51:23 +00:00
|
|
|
<div class="notification is-danger">
|
|
|
|
<h3 data-test-title class="title is-4">Eligibility Error</h3>
|
|
|
|
<p data-test-message>{{eligibilityError}}</p>
|
2019-11-19 06:36:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
2019-11-22 00:51:23 +00:00
|
|
|
<button data-test-dismiss class="button is-danger" onclick={{action (mut eligibilityError) ""}}>Okay</button>
|
2019-11-19 06:36:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if stopDrainError}}
|
2019-11-22 00:51:23 +00:00
|
|
|
<div data-test-stop-drain-error class="columns">
|
2019-11-19 06:36:07 +00:00
|
|
|
<div class="column">
|
2019-11-22 00:51:23 +00:00
|
|
|
<div class="notification is-danger">
|
|
|
|
<h3 data-test-title class="title is-4">Stop Drain Error</h3>
|
|
|
|
<p data-test-message>{{stopDrainError}}</p>
|
2019-11-19 06:36:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
2019-11-22 00:51:23 +00:00
|
|
|
<button data-test-dismiss class="button is-danger" onclick={{action (mut stopDrainError) ""}}>Okay</button>
|
2019-11-19 08:12:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if drainError}}
|
2019-11-22 00:51:23 +00:00
|
|
|
<div data-test-drain-error class="columns">
|
2019-11-19 08:12:34 +00:00
|
|
|
<div class="column">
|
2019-11-22 00:51:23 +00:00
|
|
|
<div class="notification is-danger">
|
|
|
|
<h3 data-test-title class="title is-4">Drain Error</h3>
|
|
|
|
<p data-test-message>{{drainError}}</p>
|
2019-11-19 08:12:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
2019-11-22 00:51:23 +00:00
|
|
|
<button data-test-dismiss class="button is-danger" onclick={{action (mut drainError) ""}}>Okay</button>
|
2019-11-19 06:36:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if showDrainStoppedNotification}}
|
|
|
|
<div class="notification is-info">
|
2019-11-22 00:51:23 +00:00
|
|
|
<div data-test-drain-stopped-notification class="columns">
|
2019-11-19 06:36:07 +00:00
|
|
|
<div class="column">
|
2019-11-22 00:51:23 +00:00
|
|
|
<h3 data-test-title class="title is-4">Drain Stopped</h3>
|
|
|
|
<p data-test-message>The drain has been stopped and the node has been set to ineligible.</p>
|
2019-11-19 06:36:07 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
2019-11-22 00:51:23 +00:00
|
|
|
<button data-test-dismiss class="button is-info" onclick={{action (mut showDrainStoppedNotification) false}}>Okay</button>
|
2019-11-19 06:36:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if showDrainUpdateNotification}}
|
|
|
|
<div class="notification is-info">
|
2019-11-22 00:51:23 +00:00
|
|
|
<div data-test-drain-updated-notification class="columns">
|
2019-11-19 06:36:07 +00:00
|
|
|
<div class="column">
|
2019-11-22 00:51:23 +00:00
|
|
|
<h3 data-test-title class="title is-4">Drain Updated</h3>
|
|
|
|
<p data-test-message>The new drain specification has been applied.</p>
|
2019-11-19 06:36:07 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
2019-11-22 00:51:23 +00:00
|
|
|
<button data-test-dismiss class="button is-info" onclick={{action (mut showDrainUpdateNotification) false}}>Okay</button>
|
2019-11-19 06:36:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-02 07:55:01 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-11-15 04:23:47 +00:00
|
|
|
{{#if showDrainNotification}}
|
|
|
|
<div class="notification is-info">
|
2019-11-22 00:51:23 +00:00
|
|
|
<div data-test-drain-complete-notification class="columns">
|
2019-11-15 04:23:47 +00:00
|
|
|
<div class="column">
|
2019-11-22 00:51:23 +00:00
|
|
|
<h3 data-test-title class="title is-4">Drain Complete</h3>
|
|
|
|
<p data-test-message>Allocations have been drained and the node has been set to ineligible.</p>
|
2019-11-15 04:23:47 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-centered is-minimum">
|
2019-11-22 00:51:23 +00:00
|
|
|
<button data-test-dimiss class="button is-info" onclick={{action (mut showDrainNotification) false}}>Okay</button>
|
2019-11-15 04:23:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-11-02 06:46:15 +00:00
|
|
|
<div class="toolbar">
|
|
|
|
<div class="toolbar-item is-top-aligned is-minimum">
|
|
|
|
<span class="title">
|
2020-01-24 01:58:58 +00:00
|
|
|
<span data-test-node-status="{{model.compositeStatus}}" class="node-status-light {{model.compositeStatus}}">
|
|
|
|
{{x-icon model.compositeStatusIcon}}
|
|
|
|
</span>
|
2019-11-02 06:46:15 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="toolbar-item">
|
|
|
|
<h1 data-test-title class="title with-subheading">
|
|
|
|
{{or model.name model.shortId}}
|
|
|
|
</h1>
|
|
|
|
<p>
|
2019-11-12 01:05:47 +00:00
|
|
|
<label class="is-interactive">
|
2019-11-19 09:35:05 +00:00
|
|
|
{{#toggle
|
2019-11-22 02:39:42 +00:00
|
|
|
data-test-eligibility-toggle
|
2019-11-19 09:35:05 +00:00
|
|
|
isActive=model.isEligible
|
2020-01-29 04:28:58 +00:00
|
|
|
isDisabled=(or setEligibility.isRunning model.isDraining (cannot "write client"))
|
2019-11-19 09:35:05 +00:00
|
|
|
onToggle=(perform setEligibility (not model.isEligible))}}
|
|
|
|
Eligible
|
|
|
|
{{/toggle}}
|
2019-11-02 07:55:01 +00:00
|
|
|
<span class="tooltip" aria-label="Only eligible clients can receive allocations">
|
2019-11-02 07:04:40 +00:00
|
|
|
{{x-icon "info-circle-outline" class="is-faded"}}
|
|
|
|
</span>
|
|
|
|
</label>
|
2019-12-05 00:54:36 +00:00
|
|
|
<span data-test-node-id class="tag is-hollow is-small no-text-transform">
|
2019-11-02 06:46:15 +00:00
|
|
|
{{model.id}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<CopyButton @clipboardText={{model.id}} />
|
2019-11-02 06:46:15 +00:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="toolbar-item is-right-aligned is-top-aligned">
|
2019-11-19 06:36:07 +00:00
|
|
|
{{#if model.isDraining}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<TwoStepButton
|
2019-12-07 07:45:00 +00:00
|
|
|
data-test-drain-stop
|
2020-06-01 19:03:56 +00:00
|
|
|
@idleText="Stop Drain"
|
|
|
|
@cancelText="Cancel"
|
|
|
|
@confirmText="Yes, Stop"
|
|
|
|
@confirmationMessage="Are you sure you want to stop this drain?"
|
|
|
|
@awaitingConfirmation={{stopDrain.isRunning}}
|
|
|
|
@onConfirm={{perform stopDrain}} />
|
2019-11-19 06:36:07 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="toolbar-item is-right-aligned is-top-aligned">
|
2020-06-01 19:03:56 +00:00
|
|
|
<DrainPopover
|
|
|
|
@client={{model}}
|
|
|
|
@isDisabled={{cannot "write client"}}
|
|
|
|
@onDrain={{action "drainNotify"}}
|
2020-06-12 13:22:46 +00:00
|
|
|
@onError={{action "setDrainError"}} />
|
2019-11-02 06:46:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2018-07-25 22:02:49 +00:00
|
|
|
<div class="boxed-section is-small">
|
|
|
|
<div class="boxed-section-body inline-definitions">
|
|
|
|
<span class="label">Client Details</span>
|
|
|
|
<span class="pair" data-test-status-definition>
|
|
|
|
<span class="term">Status</span>
|
|
|
|
<span class="status-text node-{{model.status}}">{{model.status}}</span>
|
|
|
|
</span>
|
|
|
|
<span class="pair" data-test-address-definition>
|
|
|
|
<span class="term">Address</span>
|
|
|
|
{{model.httpAddr}}
|
|
|
|
</span>
|
|
|
|
<span class="pair" data-test-datacenter-definition>
|
|
|
|
<span class="term">Datacenter</span>
|
|
|
|
{{model.datacenter}}
|
|
|
|
</span>
|
|
|
|
<span class="pair" data-test-driver-health>
|
|
|
|
<span class="term">Drivers</span>
|
|
|
|
{{#if model.unhealthyDrivers.length}}
|
|
|
|
{{x-icon "warning" class="is-text is-warning"}}
|
|
|
|
{{model.unhealthyDrivers.length}} of {{model.detectedDrivers.length}} {{pluralize "driver" model.detectedDrivers.length}} unhealthy
|
|
|
|
{{else}}
|
|
|
|
All healthy
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-11-13 00:10:53 +00:00
|
|
|
{{#if model.drainStrategy}}
|
2019-11-22 02:39:42 +00:00
|
|
|
<div data-test-drain-details class="boxed-section is-info">
|
2019-11-13 00:10:53 +00:00
|
|
|
<div class="boxed-section-head">
|
|
|
|
<div class="boxed-section-row">Drain Strategy</div>
|
|
|
|
<div class="boxed-section-row">
|
2019-11-13 01:07:13 +00:00
|
|
|
<div class="inline-definitions is-small">
|
|
|
|
{{#if (not model.drainStrategy.hasNoDeadline)}}
|
|
|
|
<span class="pair">
|
|
|
|
<span class="term">Duration</span>
|
2019-12-05 00:54:36 +00:00
|
|
|
{{#if model.drainStrategy.isForced}}
|
|
|
|
<span data-test-duration>--</span>
|
|
|
|
{{else}}
|
|
|
|
<span data-test-duration class="tooltip" aria-label={{format-duration model.drainStrategy.deadline}}>
|
|
|
|
{{format-duration model.drainStrategy.deadline}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2019-11-13 01:07:13 +00:00
|
|
|
</span>
|
|
|
|
{{/if}}
|
2019-11-13 00:10:53 +00:00
|
|
|
<span class="pair">
|
2019-11-13 01:07:13 +00:00
|
|
|
<span class="term">{{if model.drainStrategy.hasNoDeadline "Deadline" "Remaining"}}</span>
|
|
|
|
{{#if model.drainStrategy.hasNoDeadline}}
|
2019-12-05 00:54:36 +00:00
|
|
|
<span data-test-deadline>No deadline</span>
|
|
|
|
{{else if model.drainStrategy.isForced}}
|
|
|
|
<span data-test-deadline>--</span>
|
2019-11-13 01:07:13 +00:00
|
|
|
{{else}}
|
2019-11-22 02:39:42 +00:00
|
|
|
<span data-test-deadline class="tooltip" aria-label={{format-ts model.drainStrategy.forceDeadline}}>
|
2019-11-13 01:07:13 +00:00
|
|
|
{{moment-from-now model.drainStrategy.forceDeadline interval=1000 hideAffix=true}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2019-11-13 00:10:53 +00:00
|
|
|
</span>
|
2019-11-22 02:39:42 +00:00
|
|
|
<span data-test-force-drain-text class="pair">
|
2019-11-13 00:10:53 +00:00
|
|
|
<span class="term">Force Drain</span>
|
2019-11-13 01:07:13 +00:00
|
|
|
{{#if model.drainStrategy.isForced}}
|
|
|
|
{{x-icon "warning" class="is-text is-warning"}} Yes
|
|
|
|
{{else}}
|
|
|
|
No
|
|
|
|
{{/if}}
|
2019-11-13 00:10:53 +00:00
|
|
|
</span>
|
2019-11-22 02:39:42 +00:00
|
|
|
<span data-test-drain-system-jobs-text class="pair">
|
2019-11-13 00:10:53 +00:00
|
|
|
<span class="term">Drain System Jobs</span>
|
2019-11-13 01:07:13 +00:00
|
|
|
{{if model.drainStrategy.ignoreSystemJobs "No" "Yes"}}
|
2019-11-13 00:10:53 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
2019-11-19 08:12:34 +00:00
|
|
|
{{#if (not model.drainStrategy.isForced)}}
|
|
|
|
<div class="pull-right">
|
2020-06-01 19:03:56 +00:00
|
|
|
<TwoStepButton
|
2019-11-22 02:39:42 +00:00
|
|
|
data-test-force
|
2020-06-01 19:03:56 +00:00
|
|
|
@alignRight={{true}}
|
|
|
|
@isInfoAction={{true}}
|
|
|
|
@idleText="Force Drain"
|
|
|
|
@cancelText="Cancel"
|
|
|
|
@confirmText="Yes, Force Drain"
|
|
|
|
@confirmationMessage="Are you sure you want to force drain?"
|
|
|
|
@awaitingConfirmation={{forceDrain.isRunning}}
|
|
|
|
@onConfirm={{perform forceDrain}} />
|
2019-11-19 08:12:34 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-11-13 00:10:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column nowrap is-minimum">
|
|
|
|
<div class="metric-group">
|
|
|
|
<div class="metric is-primary">
|
|
|
|
<h3 class="label">Complete</h3>
|
2019-11-22 02:39:42 +00:00
|
|
|
<p data-test-complete-count class="value">{{model.completeAllocations.length}}</p>
|
2019-11-13 00:10:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="metric-group">
|
|
|
|
<div class="metric">
|
|
|
|
<h3 class="label">Migrating</h3>
|
2019-11-22 02:39:42 +00:00
|
|
|
<p data-test-migrating-count class="value">{{model.migratingAllocations.length}}</p>
|
2019-11-13 00:10:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="metric-group">
|
|
|
|
<div class="metric">
|
|
|
|
<h3 class="label">Remaining</h3>
|
2019-11-22 02:39:42 +00:00
|
|
|
<p data-test-remaining-count class="value">{{model.runningAllocations.length}}</p>
|
2019-11-13 00:10:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<h3 class="title is-4">Status</h3>
|
2019-11-15 01:26:20 +00:00
|
|
|
{{#if model.lastMigrateTime}}
|
2019-11-22 02:39:42 +00:00
|
|
|
<p data-test-status>{{moment-to-now model.lastMigrateTime interval=1000 hideAffix=true}} since an allocation was successfully migrated.</p>
|
2019-11-15 01:26:20 +00:00
|
|
|
{{else}}
|
2019-11-22 02:39:42 +00:00
|
|
|
<p data-test-status>No allocations migrated.</p>
|
2019-11-15 01:26:20 +00:00
|
|
|
{{/if}}
|
2019-11-13 00:10:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2018-09-13 23:33:44 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head is-hollow">
|
|
|
|
Resource Utilization
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
2020-06-01 19:03:56 +00:00
|
|
|
<PrimaryMetric @resource={{model}} @metric="cpu" />
|
2018-09-13 23:33:44 +00:00
|
|
|
</div>
|
|
|
|
<div class="column">
|
2020-06-01 19:03:56 +00:00
|
|
|
<PrimaryMetric @resource={{model}} @metric="memory" />
|
2018-09-13 23:33:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-07-25 22:02:49 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
2019-04-17 18:19:54 +00:00
|
|
|
<div>
|
|
|
|
Allocations
|
2019-04-22 23:39:07 +00:00
|
|
|
<button role="button" class="badge is-white" onclick={{action "setPreemptionFilter" false}} data-test-filter-all>
|
2019-04-17 18:19:54 +00:00
|
|
|
{{model.allocations.length}}
|
|
|
|
</button>
|
|
|
|
{{#if preemptions.length}}
|
2019-04-22 23:39:07 +00:00
|
|
|
<button role="button" class="badge is-warning" onclick={{action "setPreemptionFilter" true}} data-test-filter-preemptions>
|
2019-04-17 18:19:54 +00:00
|
|
|
{{preemptions.length}} {{pluralize "preemption" preemptions.length}}
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
<SearchBox
|
|
|
|
@searchTerm={{mut searchTerm}}
|
|
|
|
@onChange={{action resetPagination}}
|
|
|
|
@placeholder="Search allocations..."
|
|
|
|
@class="is-inline pull-right"
|
|
|
|
@inputClass="is-compact" />
|
2017-09-19 14:47:10 +00:00
|
|
|
</div>
|
2018-07-25 22:02:49 +00:00
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListPagination
|
|
|
|
@source={{sortedAllocations}}
|
|
|
|
@size={{pageSize}}
|
|
|
|
@page={{currentPage}} as |p|>
|
|
|
|
<ListTable
|
|
|
|
@source={{p.list}}
|
|
|
|
@sortProperty={{sortProperty}}
|
|
|
|
@sortDescending={{sortDescending}}
|
|
|
|
@class="with-foot" as |t|>
|
|
|
|
<t.head>
|
2018-07-25 22:02:49 +00:00
|
|
|
<th class="is-narrow"></th>
|
2020-06-01 19:03:56 +00:00
|
|
|
<t.sort-by @prop="shortId">ID</t.sort-by>
|
|
|
|
<t.sort-by @prop="modifyIndex" @title="Modify Index">Modified</t.sort-by>
|
|
|
|
<t.sort-by @prop="createIndex" @title="Create Index">Created</t.sort-by>
|
|
|
|
<t.sort-by @prop="statusIndex">Status</t.sort-by>
|
|
|
|
<t.sort-by @prop="job.name">Job</t.sort-by>
|
|
|
|
<t.sort-by @prop="jobVersion">Version</t.sort-by>
|
2020-02-11 04:51:59 +00:00
|
|
|
<th>Volume</th>
|
2018-07-25 22:02:49 +00:00
|
|
|
<th>CPU</th>
|
|
|
|
<th>Memory</th>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.head>
|
|
|
|
<t.body as |row|>
|
|
|
|
<AllocationRow
|
|
|
|
@allocation={{row.model}}
|
|
|
|
@context="node"
|
|
|
|
@onClick={{action "gotoAllocation" row.model}}
|
|
|
|
@data-test-allocation={{row.model.id}} />
|
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2018-07-25 22:02:49 +00:00
|
|
|
<div class="table-foot">
|
|
|
|
<nav class="pagination">
|
|
|
|
<div class="pagination-numbers">
|
|
|
|
{{p.startsAt}}–{{p.endsAt}} of {{sortedAllocations.length}}
|
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
<p.prev @class="pagination-previous"> < </p.prev>
|
|
|
|
<p.next @class="pagination-next"> > </p.next>
|
2018-07-25 22:02:49 +00:00
|
|
|
<ul class="pagination-list"></ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
</ListPagination>
|
2018-05-08 18:23:42 +00:00
|
|
|
</div>
|
2018-07-25 22:02:49 +00:00
|
|
|
</div>
|
2018-05-08 18:23:42 +00:00
|
|
|
|
2018-07-25 22:02:49 +00:00
|
|
|
<div data-test-client-events class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Client Events
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListTable @source={{sortedEvents}} @class="is-striped" as |t|>
|
|
|
|
<t.head>
|
2018-07-25 22:02:49 +00:00
|
|
|
<th class="is-2">Time</th>
|
|
|
|
<th class="is-2">Subsystem</th>
|
|
|
|
<th>Message</th>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.head>
|
|
|
|
<t.body as |row|>
|
2018-07-25 22:02:49 +00:00
|
|
|
<tr data-test-client-event>
|
2019-01-31 06:44:43 +00:00
|
|
|
<td data-test-client-event-time>{{format-ts row.model.time}}</td>
|
2018-07-25 22:02:49 +00:00
|
|
|
<td data-test-client-event-subsystem>{{row.model.subsystem}}</td>
|
|
|
|
<td data-test-client-event-message>
|
|
|
|
{{#if row.model.message}}
|
|
|
|
{{#if row.model.driver}}
|
|
|
|
<span class="badge is-secondary is-small">{{row.model.driver}}</span>
|
2018-05-09 01:09:20 +00:00
|
|
|
{{/if}}
|
2018-07-25 22:02:49 +00:00
|
|
|
{{row.model.message}}
|
|
|
|
{{else}}
|
|
|
|
<em>No message</em>
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2018-07-25 22:02:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-02-11 04:36:51 +00:00
|
|
|
{{#if sortedHostVolumes.length}}
|
|
|
|
<div data-test-client-host-volumes class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Host Volumes
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListTable @source={{sortedHostVolumes}} @class="is-striped" as |t|>
|
|
|
|
<t.head>
|
2020-02-11 04:36:51 +00:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Source</th>
|
|
|
|
<th>Permissions</th>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.head>
|
|
|
|
<t.body as |row|>
|
2020-02-11 04:36:51 +00:00
|
|
|
<tr data-test-client-host-volume>
|
|
|
|
<td data-test-name>{{row.model.name}}</td>
|
|
|
|
<td data-test-path><code>{{row.model.path}}</code></td>
|
|
|
|
<td data-test-permissions>{{if row.model.readOnly "Read" "Read/Write"}}</td>
|
|
|
|
</tr>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2020-02-11 04:36:51 +00:00
|
|
|
</div>
|
2020-02-11 03:12:12 +00:00
|
|
|
</div>
|
2020-02-11 04:36:51 +00:00
|
|
|
{{/if}}
|
2020-02-11 03:12:12 +00:00
|
|
|
|
2018-07-25 22:02:49 +00:00
|
|
|
<div data-test-driver-status class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Driver Status
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body">
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListAccordion @source={{sortedDrivers}} @key="name" as |a|>
|
|
|
|
<a.head @buttonLabel="details" @isExpandable={{a.item.detected}}>
|
2018-07-25 22:02:49 +00:00
|
|
|
<div class="columns inline-definitions {{unless a.item.detected "is-faded"}}">
|
|
|
|
<div class="column is-1">
|
|
|
|
<span data-test-name>{{a.item.name}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="column is-2">
|
|
|
|
{{#if a.item.detected}}
|
|
|
|
<span data-test-health>
|
|
|
|
<span class="color-swatch {{a.item.healthClass}}"></span>
|
|
|
|
{{if a.item.healthy "Healthy" "Unhealthy"}}
|
2018-05-09 01:09:20 +00:00
|
|
|
</span>
|
2018-07-25 22:02:49 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<span class="pair">
|
|
|
|
<span class="term">Detected</span>
|
|
|
|
<span data-test-detected>{{if a.item.detected "Yes" "No"}}</span>
|
|
|
|
</span>
|
|
|
|
<span class="is-pulled-right">
|
|
|
|
<span class="pair">
|
|
|
|
<span class="term">Last Updated</span>
|
2019-01-31 06:44:43 +00:00
|
|
|
<span data-test-last-updated class="tooltip" aria-label="{{format-ts a.item.updateTime}}">
|
2019-01-30 17:57:55 +00:00
|
|
|
{{moment-from-now a.item.updateTime interval=1000}}
|
|
|
|
</span>
|
2018-05-09 01:09:20 +00:00
|
|
|
</span>
|
2018-07-25 22:02:49 +00:00
|
|
|
</span>
|
2018-05-09 01:09:20 +00:00
|
|
|
</div>
|
2018-07-25 22:02:49 +00:00
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
</a.head>
|
|
|
|
<a.body>
|
2018-07-25 22:02:49 +00:00
|
|
|
<p data-test-health-description class="message">{{a.item.healthDescription}}</p>
|
|
|
|
<div data-test-driver-attributes class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
{{capitalize a.item.name}} Attributes
|
|
|
|
</div>
|
|
|
|
{{#if a.item.attributes.attributesStructured}}
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-06-01 19:03:56 +00:00
|
|
|
<AttributesTable
|
|
|
|
@attributes={{a.item.attributesShort}}
|
|
|
|
@class="attributes-table" />
|
2018-05-09 01:09:20 +00:00
|
|
|
</div>
|
2018-07-25 22:02:49 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div class="empty-message">
|
|
|
|
<h3 class="empty-message-headline">No Driver Attributes</h3>
|
2018-05-09 01:09:20 +00:00
|
|
|
</div>
|
2018-07-25 22:02:49 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
</a.body>
|
|
|
|
</ListAccordion>
|
2018-05-09 01:09:20 +00:00
|
|
|
</div>
|
2018-07-25 22:02:49 +00:00
|
|
|
</div>
|
2018-05-09 01:09:20 +00:00
|
|
|
|
2018-07-25 22:02:49 +00:00
|
|
|
<div class="boxed-section">
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Attributes
|
|
|
|
</div>
|
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-06-01 19:03:56 +00:00
|
|
|
<AttributesTable
|
2018-07-25 22:02:49 +00:00
|
|
|
data-test-attributes
|
2020-06-01 19:03:56 +00:00
|
|
|
@attributes={{model.attributes.attributesStructured}}
|
|
|
|
@class="attributes-table" />
|
2018-07-25 22:02:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="boxed-section-head">
|
|
|
|
Meta
|
|
|
|
</div>
|
|
|
|
{{#if model.meta.attributesStructured}}
|
2017-09-19 14:47:10 +00:00
|
|
|
<div class="boxed-section-body is-full-bleed">
|
2020-06-01 19:03:56 +00:00
|
|
|
<AttributesTable
|
2018-07-25 22:02:49 +00:00
|
|
|
data-test-meta
|
2020-06-01 19:03:56 +00:00
|
|
|
@attributes={{model.meta.attributesStructured}}
|
|
|
|
@class="attributes-table" />
|
2017-09-19 14:47:10 +00:00
|
|
|
</div>
|
2018-07-25 22:02:49 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div data-test-empty-meta-message class="empty-message">
|
|
|
|
<h3 class="empty-message-headline">No Meta Attributes</h3>
|
|
|
|
<p class="empty-message-body">This client is configured with no meta attributes.</p>
|
2018-02-27 00:35:41 +00:00
|
|
|
</div>
|
2018-07-25 22:02:49 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</section>
|