| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <div class="etcd-container etcd-stats {{columns}} {{tableVisibility}}">
- <div class="etcd-body">
- <div class="etcd-format-selector">
- <div class="etcd-selector-item etcd-selector-graph" ng-click="show_graph()">
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- preserveAspectRatio="xMinYMin" viewBox="0 0 60 60.007" enable-background="new 0 0 60 60.007" xml:space="preserve">
- <path fill="#1D1D1B" d="M30-0.091c-16.621,0-30.094,13.474-30.094,30.094c0,16.621,13.474,30.094,30.094,30.094
- s30.094-13.474,30.094-30.094C60.094,13.383,46.621-0.091,30-0.091z M30,47.239c-9.519,0-17.235-7.716-17.235-17.235
- S20.481,12.768,30,12.768c9.519,0,17.235,7.716,17.235,17.235S39.519,47.239,30,47.239z"/>
- </svg>
- </div>
- <div class="etcd-selector-item etcd-selector-table" ng-click="show_table()">
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- preserveAspectRatio="xMinYMin" viewBox="0 0 59.496 59.503" enable-background="new 0 0 59.496 59.503" xml:space="preserve">
- <rect x="0" y="0" fill="#1D1D1B" width="59.496" height="13.111"/>
- <rect x="0" y="23.196" fill="#1D1D1B" width="59.496" height="13.111"/>
- <rect x="0" y="46.392" fill="#1D1D1B" width="59.496" height="13.111"/>
- </svg>
- </div>
- </div>
- <div class="etcd-graph">
- <h2>Follower Latency</h2>
- <div class="etcd-graph-container" id="latency">
- </div>
- </div>
- <div class="etcd-list">
- <h2>Follower List</h2>
- <table cellpadding="0" cellspacing="0">
- <thead>
- <td class="etcd-name-header">Machine Name</td>
- <td class="etcd-latency">Latency</td>
- </thead>
- <tbody>
- <tr ng-repeat="follower in followers">
- <td>{{follower.name}}</td>
- <td>
- <div class="etcd-square ng-class: {'etcd-square-green': follower.latency.current < 2, 'etcd-square-orange': follower.latency.current < 5, 'etcd-square-red': follower.latency.current >= 10}"></div>
- <div class="etcd-latency-value">{{follower.latency.current | number:1 }} ms</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
|