blob: 15cd9973c40b8b9ab67ebfed5f8cce397a160d25 [file] [log] [blame]
Michael Davisaeedf9e2017-04-06 14:35:56 -05001<div id="sensors">
2 <div class="row column">
3 <h1>Fan Speed Sensors</h1>
4 </div>
5 <section class="row column">
6 <div class="page-header">
7 <h2 class="inline h4">Sensors present in the system</h2>
Iftekharul Islamd2269e22017-05-02 09:32:45 -05008 <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 Davisaeedf9e2017-04-06 14:35:56 -05009 </div>
10 </section>
11
12 <!-- Filters -->
13 <section class="row column">
14 <!-- search -->
15 <div class="content__search">
16 <label for="content__search-input">Sensors Search</label>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050017 <input id="content__search-input" type="text" placeholder="Filter issues" ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/>
18 <input id="content__search-submit" type="submit" class="btn btn-secondary" value="Submit" ng-click="doSearchOnClick()"/>
Michael Davisaeedf9e2017-04-06 14:35:56 -050019 </div>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050020
Michael Davisaeedf9e2017-04-06 14:35:56 -050021 <div class="toggle-filter">
Iftekharul Islamd2269e22017-05-02 09:32:45 -050022 <button class="inline first btn-primary" ng-click="toggleSeverityAll()"
23 ng-class="selectedSeverity.all ? 'btn-primary' : 'btn-secondary'">All
Michael Davisaeedf9e2017-04-06 14:35:56 -050024 </button>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050025 <button class="inline " ng-click="toggleSeverity('critical')"
26 ng-class="selectedSeverity.critical ? 'btn-primary' : 'btn-secondary'">Critical
Michael Davisaeedf9e2017-04-06 14:35:56 -050027 </button>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050028 <button class="inline" ng-click="toggleSeverity('warning')"
29 ng-class="selectedSeverity.warning ? 'btn-primary' : 'btn-secondary'">Warning
Michael Davisaeedf9e2017-04-06 14:35:56 -050030 </button>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050031 <button class="inline last" ng-click="toggleSeverity('normal')"
32 ng-class="selectedSeverity.normal ? 'btn-primary' : 'btn-secondary'">Normal
Michael Davisaeedf9e2017-04-06 14:35:56 -050033 </button>
34 </div>
35 </section> <!-- end filter -->
36
37 <section class="row column">
38 <div id="back-link">
Iftekharul Islamcd789502017-04-19 14:37:55 -050039 <a href="#/server-health/sensors-overview">Back to Sensor Overview</a>
Michael Davisaeedf9e2017-04-06 14:35:56 -050040 </div>
41 </section>
42
Iftekharul Islamd2269e22017-05-02 09:32:45 -050043 <section id="sensor__details" class="row column" ng-hide="!data.display_headers">
Michael Davisaeedf9e2017-04-06 14:35:56 -050044 <div class="row column header-row">
Iftekharul Islamcd789502017-04-19 14:37:55 -050045 <div class="column small-10 large-11 header__actions-bar">
Iftekharul Islam06229be2017-05-05 09:17:54 -050046 <p class="inline priority-tag-circ" ng-class="{'high-priority': data.status == 'critical', 'medium-priority': data.status == 'warning', 'low-priority': data.status == 'normal'}" aria-label="High Priority"></p>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050047 <p class="inline sensor__heading sensor__category">{{data.display_headers[0]}}</p>
48 <p class="inline sensor__heading middle">{{data.display_headers[1]}}</p>
49 <p class="inline float-right sensor__heading right">{{data.display_headers[2]}}</p>
Michael Davisaeedf9e2017-04-06 14:35:56 -050050 </div>
51 <div class="column small-2 large-1 sensor__heading trigger-col"></div>
52 </div>
53
54 <!-- Sensor -->
Iftekharul Islamd2269e22017-05-02 09:32:45 -050055 <div ng-repeat="sensor in (filteredSensorData = (data.data|filter:filterBySeverity|filter:filterBySearchTerms))" class="row column accord-row" ng-class="{'active': sensors__metadatarow, 'selected': sensors__selected}">
Michael Davisaeedf9e2017-04-06 14:35:56 -050056 <div class="row">
57 <div class="column small-10 large-11 sensor__info" ng-click="sensors__metadatarow = ! sensors__metadatarow">
Iftekharul Islam06229be2017-05-05 09:17:54 -050058 <p 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"></p>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050059 <p class="inline sensor__title">{{sensor.title}}</p>
60 <p class="inline sensor__reading">{{sensor.reading}}</p>
61 <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>
Michael Davisaeedf9e2017-04-06 14:35:56 -050062 </div>
63 <div class="column small-2 large-1">
64 <button class="accord-trigger" ng-class="{'active': sensors__metadatarow}" ng-click="sensors__metadatarow = ! sensors__metadatarow"></button>
65 </div>
66 </div>
67 <div class="row sensors__metadata-row" ng-class="{'active': sensors__metadatarow}">
68 <div class="column small-12">
69 <div class="threshold-chart__wrapper">
70 <span class="threshold__label low">Low</span>
71 <div class="threshold-chart">
Iftekharul Islamd2269e22017-05-02 09:32:45 -050072 <span class="threshold__marker" ng-class="{'thresh__high-critical': sensor.status == 'critical', 'thresh__low-warn': sensor.status == 'warning', 'thresh__normal': sensor.status == 'normal'}" style="left: {{sensor.indicator}};"><span class="threshold__value">{{sensor.reading}}</span></span>
Michael Davisaeedf9e2017-04-06 14:35:56 -050073 <span class="threshold thresh__low-critical"></span>
74 <span class="threshold thresh__low-warn"></span>
75 <span class="threshold thresh__normal"></span>
76 <span class="threshold thresh__high-warn"></span>
77 <span class="threshold thresh__high-critical"></span>
78 </div>
79 <span class="threshold__label high">High</span>
80 </div>
81 </div>
82 </div>
83 </div>
84
Michael Davisaeedf9e2017-04-06 14:35:56 -050085 </section>
Michael Davisaeedf9e2017-04-06 14:35:56 -050086</div> <!-- end event log -->