blob: 6a8f3c43d6cb171fcd95ada7d0b6c4fc8a030e9c [file] [log] [blame]
Michael Davisaeedf9e2017-04-06 14:35:56 -05001<div id="sensors-overview">
2 <div class="row column">
3 <h1>Sensors Data</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 <section class="row column">
13 <!-- search -->
14 <div class="content__search">
15 <label for="content__search-input">Event Log Search</label>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050016 <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 Davisaeedf9e2017-04-06 14:35:56 -050018 </div>
19 <div class="toggle-filter">
Iftekharul Islamd2269e22017-05-02 09:32:45 -050020 <button class="inline first btn-primary" ng-click="toggleSeverityAll()"
21 ng-class="selectedSeverity.all ? 'btn-primary' : 'btn-secondary'">All
Michael Davisaeedf9e2017-04-06 14:35:56 -050022 </button>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050023 <button class="inline " ng-click="toggleSeverity('critical')"
24 ng-class="selectedSeverity.critical ? 'btn-primary' : 'btn-secondary'">Critical
Michael Davisaeedf9e2017-04-06 14:35:56 -050025 </button>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050026 <button class="inline" ng-click="toggleSeverity('warning')"
27 ng-class="selectedSeverity.warning ? 'btn-primary' : 'btn-secondary'">Warning
Michael Davisaeedf9e2017-04-06 14:35:56 -050028 </button>
Iftekharul Islamd2269e22017-05-02 09:32:45 -050029 <button class="inline last" ng-click="toggleSeverity('normal')"
30 ng-class="selectedSeverity.normal ? 'btn-primary' : 'btn-secondary'">Normal
Michael Davisaeedf9e2017-04-06 14:35:56 -050031 </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 Islamd2269e22017-05-02 09:32:45 -050043
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 high-priority" 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>
45
Michael Davisaeedf9e2017-04-06 14:35:56 -050046 </section>
47</div>