Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 1 | <div id="sensors-overview"> |
| 2 | <div class="row column"> |
Michael Davis | e126be7 | 2017-05-08 11:20:12 -0500 | [diff] [blame^] | 3 | <h1>Sensors data</h1> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 4 | </div> |
| 5 | <section class="row column"> |
| 6 | <div class="page-header"> |
| 7 | <h2 class="inline h4">Sensors present in the system</h2> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 8 | <a ng-href="data:text/json;charset=utf-8,{{export_data}}" class="inline btn-export float-right" download="{{export_name}}" ng-show="filteredSensorData.length">Export</a> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 9 | </div> |
| 10 | </section> |
| 11 | |
| 12 | <section class="row column"> |
| 13 | <!-- search --> |
| 14 | <div class="content__search"> |
| 15 | <label for="content__search-input">Event Log Search</label> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 16 | <input id="content__search-input" type="text" placeholder="Filter issues" ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/> |
| 17 | <input id="content__search-submit" type="submit" class="btn btn-secondary" value="Submit" ng-click="doSearchOnClick()"/> |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 18 | </div> |
| 19 | <div class="toggle-filter"> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 20 | <button class="inline first btn-primary" ng-click="toggleSeverityAll()" |
| 21 | ng-class="selectedSeverity.all ? 'btn-primary' : 'btn-secondary'">All |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 22 | </button> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 23 | <button class="inline " ng-click="toggleSeverity('critical')" |
| 24 | ng-class="selectedSeverity.critical ? 'btn-primary' : 'btn-secondary'">Critical |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 25 | </button> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 26 | <button class="inline" ng-click="toggleSeverity('warning')" |
| 27 | ng-class="selectedSeverity.warning ? 'btn-primary' : 'btn-secondary'">Warning |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 28 | </button> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 29 | <button class="inline last" ng-click="toggleSeverity('normal')" |
| 30 | ng-class="selectedSeverity.normal ? 'btn-primary' : 'btn-secondary'">Normal |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 31 | </button> |
| 32 | </div> |
| 33 | |
| 34 | </section> <!-- end search --> |
| 35 | |
| 36 | <section id="sensor-categories" class="row column"> |
| 37 | <div class="row column header-row"> |
| 38 | <div class="column large-12 header__actions-bar"> |
| 39 | <p class="inline sensor__heading sensor__category">Sensors</p> |
| 40 | <p class="inline float-right sensor__heading right">State</p> |
| 41 | </div> |
| 42 | </div> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 43 | |
Iftekharul Islam | 06229be | 2017-05-05 09:17:54 -0500 | [diff] [blame] | 44 | <a ng-repeat="sensor in (filteredSensorData = data.sensors|filter:filterBySeverity|filter:filterBySearchTerms)" class="sensor__group" href="#/server-health/sensors/{{sensor.type}}"> <span class="inline priority-tag-circ" ng-class="{'high-priority': sensor.status == 'critical', 'medium-priority': sensor.status == 'warning', 'low-priority': sensor.status == 'normal'}" aria-label="High Priority"></span>{{sensor.title}} ({{sensor.data.length}}) <p class="inline float-right" ng-class="{'sensor__critical-label': sensor.status == 'critical', 'sensor__warning-label': sensor.status == 'warning', 'sensor__normal-label': sensor.status == 'normal'}">{{sensor.status}}</p></a> |
Iftekharul Islam | d2269e2 | 2017-05-02 09:32:45 -0500 | [diff] [blame] | 45 | |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 46 | </section> |
| 47 | </div> |