1428375e8SMichael Davis<loader loading="loading"></loader>
21f690f3eSDerick Montague<div id="sensors" class="sensors">
32c16effeSMichael Davis  <h1>Sensors</h1>
4cd789508SIftekharul Islam  <div class="page-header">
5615a2f89SGunnar Mills    <h2 class="inline">All sensors present in the system</h2>
6c86ce3c9SYoshie Muranaka      <a ng-href="data:text/json;charset=utf-8,{{export_data}}" class="btn btn-tertiary float-right" download="{{export_name}}"><icon file="icon-export.svg"></icon>Export</a>
7cd789508SIftekharul Islam  </div>
81f690f3eSDerick Montague
91f690f3eSDerick Montague  <div>
108947e701SIftekharul Islam    <p class="content-label" aria-label="sensors filter">Filter sensors</p>
11cd789508SIftekharul Islam    <div class="content__search">
122c16effeSMichael Davis      <label for="content__search-input">Sensors Search</label>
138947e701SIftekharul Islam      <input id="content__search-input" type="text" ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/>
148b527990SMichael Davis      <div class="search-submit__wrapper">
15db1e89edSDixsie Wolmers        <button class="btn" type="button" aria-label="clear filter" ng-click="clear()">
16db1e89edSDixsie Wolmers            <icon file="icon-close.svg" aria-hidden="true"></icon>
17db1e89edSDixsie Wolmers        </button>
188b527990SMichael Davis        <input id="content__search-submit" type="submit" class="btn btn-primary content__search-submit" value="Filter" ng-click="doSearchOnClick()"/>
198b527990SMichael Davis      </div>
201f690f3eSDerick Montague    </div>
21a547ff42SIftekharul Islam
22cd789508SIftekharul Islam    <div class="toggle-filter">
238947e701SIftekharul Islam      <p class="content-label">FILTER BY SEVERITY</p>
24c86ce3c9SYoshie Muranaka      <button class="btn" ng-click="toggleSeverityAll()"
25d2269e22SIftekharul Islam          ng-class="selectedSeverity.all ? 'btn-primary' : 'btn-secondary'">All
26cd789508SIftekharul Islam      </button>
27c86ce3c9SYoshie Muranaka      <button class="btn" ng-click="toggleSeverity('critical')"
28d2269e22SIftekharul Islam          ng-class="selectedSeverity.critical ? 'btn-primary' : 'btn-secondary'">Critical
29cd789508SIftekharul Islam      </button>
30c86ce3c9SYoshie Muranaka      <button class="btn" ng-click="toggleSeverity('warning')"
31d2269e22SIftekharul Islam          ng-class="selectedSeverity.warning ? 'btn-primary' : 'btn-secondary'">Warning
32cd789508SIftekharul Islam      </button>
33c86ce3c9SYoshie Muranaka      <button class="btn" ng-click="toggleSeverity('normal')"
34615a2f89SGunnar Mills          ng-class="selectedSeverity.normal ? 'btn-primary' : 'btn-secondary'">Normal
3513ac3af4SIftekharul Islam      </button>
36cd789508SIftekharul Islam    </div>
371f690f3eSDerick Montague  </div>
38615a2f89SGunnar Mills
391f690f3eSDerick Montague  <div ng-show="filteredSensorData.length == 0">
4081a49deaSIftekharul Islam    <span ng-if="selectedSeverity.all">{{messages.NO_SENSOR_DATA}}</span>
4181a49deaSIftekharul Islam    <span ng-if="selectedSeverity.critical">{{messages.CRITICAL_NO_SENSOR_DATA}}</span>
4281a49deaSIftekharul Islam    <span ng-if="selectedSeverity.warning">{{messages.WARNING_NO_SENSOR_DATA}}</span>
43615a2f89SGunnar Mills    <span ng-if="selectedSeverity.normal">{{messages.NORMAL_NO_SENSOR_DATA}}</span>
441f690f3eSDerick Montague  </div>
45615a2f89SGunnar Mills
461f690f3eSDerick Montague  <table id="sensor-categories" class="sensors__table" cellpadding="0" cellspacing="0" ng-show="filteredSensorData.length">
471f690f3eSDerick Montague    <thead class="sensors__thead fixed-table-header">
481f690f3eSDerick Montague      <tr class="sensors__thead-row">
491f690f3eSDerick Montague        <th class="sensors__thead-cell">Sensors ({{filteredSensorData.length}})<th>
501f690f3eSDerick Montague        <th class="sensors__thead-cell">Low critical<th>
511f690f3eSDerick Montague        <th class="sensors__thead-cell">Low warning<th>
521f690f3eSDerick Montague        <th class="sensors__thead-cell sensor__heading-current">Current<th>
531f690f3eSDerick Montague        <th class="sensors__thead-cell">High warning<th>
541f690f3eSDerick Montague        <th class="sensors__thead-cell">High critical<th>
551f690f3eSDerick Montague      </tr>
561f690f3eSDerick Montague    </thead>
571f690f3eSDerick Montague    <tbody class="sensors__tbody">
581f690f3eSDerick Montague      <tr class="sensors__tbody-row" ng-repeat="sensor in data|filter:filterBySeverity|filter:filterBySearchTerms|orderBy:'+custom_order' as filteredSensorData">
591f690f3eSDerick Montague        <th class="sensors__tbody-header">
60*4b366b5aSYoshie Muranaka          <status-icon status="{{ sensor.status == 'critical' ? 'error' :
61*4b366b5aSYoshie Muranaka                                  sensor.status == 'warning' ? 'warn' : null }}"
62*4b366b5aSYoshie Muranaka                       aria-label="Sensor status: {{sensor.status}}">
63*4b366b5aSYoshie Muranaka          </status-icon>
641f690f3eSDerick Montague          <span>{{sensor.title}}</span>
651f690f3eSDerick Montague        </th>
661f690f3eSDerick Montague        <td class="sensors__tbody-cell">
671f690f3eSDerick Montague          <span class="sensors__tbody-cell__title">Low critical</span>
681f690f3eSDerick Montague          <span class="sensors__tbody-cell__content">
691f690f3eSDerick Montague              <span class="sensors__tbody-info">{{sensor.CriticalLow}}</span>
701f690f3eSDerick Montague              <span class="sensors__tbody-degree" ng-if="sensor.unit == 'C'">&deg;</span>
711f690f3eSDerick Montague            <span class="sensors__tbody-unit">{{sensor.unit}}</span>
721f690f3eSDerick Montague          </span>
731f690f3eSDerick Montague        </td>
741f690f3eSDerick Montague        <td class="sensors__tbody-cell">
751f690f3eSDerick Montague          <span class="sensors__tbody-cell__title">Low warning</span>
761f690f3eSDerick Montague          <span class="sensors__tbody-cell__content">
771f690f3eSDerick Montague              <span class="sensors__tbody-info">{{sensor.WarningLow}}</span>
781f690f3eSDerick Montague              <span class="sensors__tbody-degree" ng-if="sensor.unit == 'C'">&deg;</span>
791f690f3eSDerick Montague            <span class="sensors__tbody-unit">{{sensor.unit}}</span>
801f690f3eSDerick Montague          </span>
811f690f3eSDerick Montague        </td>
821f690f3eSDerick Montague        <td class="sensors__tbody-cell sensors__tbody-current" ng-class="{'sensors__tbody-current--critical': sensor.status == 'critical', 'sensors__tbody-current--warn': sensor.status == 'warning', 'sensors__tbody-current--normal': sensor.status == 'normal'}">
831f690f3eSDerick Montague          <span class="sensors__tbody-cell__title">Current</span>
841f690f3eSDerick Montague          <span class="sensors__tbody-cell__content">
851f690f3eSDerick Montague              <span class="sensors__tbody-info">{{sensor.Value}}</span>
861f690f3eSDerick Montague              <span class="sensors__tbody-degree" ng-if="sensor.unit == 'C'">&deg;</span>
871f690f3eSDerick Montague            <span class="sensors__tbody-unit">{{sensor.unit}}</span>
881f690f3eSDerick Montague          </span>
891f690f3eSDerick Montague        </td>
901f690f3eSDerick Montague        <td class="sensors__tbody-cell">
911f690f3eSDerick Montague          <span class="sensors__tbody-cell__title">High warning</span>
921f690f3eSDerick Montague          <span class="sensors__tbody-cell__content">
931f690f3eSDerick Montague            <span class="sensors__tbody-info">{{sensor.WarningHigh}}</span>
941f690f3eSDerick Montague            <span class="sensors__tbody-degree" ng-if="sensor.unit == 'C'">&deg;</span>
951f690f3eSDerick Montague            <span class="sensors__tbody-unit">{{sensor.unit}}</span>
961f690f3eSDerick Montague          </span>
971f690f3eSDerick Montague        </td>
981f690f3eSDerick Montague        <td class="sensors__tbody-cell">
991f690f3eSDerick Montague          <span class="sensors__tbody-cell__title">High critical</span>
1001f690f3eSDerick Montague          <span class="sensors__tbody-cell__content">
1011f690f3eSDerick Montague            <span class="sensors__tbody-info">{{sensor.CriticalHigh}}</span>
1021f690f3eSDerick Montague            <span class="sensors__tbody-degree" ng-if="sensor.unit == 'C'">&deg;</span>
1031f690f3eSDerick Montague            <span class="sensors__tbody-unit">{{sensor.unit}}</span>
1041f690f3eSDerick Montague          </span>
1051f690f3eSDerick Montague        </td>
1061f690f3eSDerick Montague      </tr>
1071f690f3eSDerick Montague    </tbody>
1081f690f3eSDerick Montague  </table>
109cd789508SIftekharul Islam</div>
110