heatmap.hbs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div class="heatmap">
  19. <div class="container-fluid">
  20. <div class="row-fluid">
  21. <div class="span2 legend-column">
  22. <div class="btn-group">
  23. <button class="btn">{{t charts.heatmap.selectMetric}}</button>
  24. <button class="btn dropdown-toggle" data-toggle="dropdown">
  25. <span class="caret"></span>
  26. </button>
  27. <ul class="dropdown-menu">
  28. {{#each category in controller.allMetrics}}
  29. <li class="dropdown-submenu">
  30. <a tabindex="-1" >{{category.label}}</a>
  31. <ul class="dropdown-menu">
  32. {{#each metric in category.items}}
  33. <li>
  34. <a tabindex="-1" {{action showHeatMapMetric metric target="controller"}}>{{metric.name}}</a>
  35. </li>
  36. {{/each}}
  37. </ul>
  38. </li>
  39. {{/each}}
  40. </ul>
  41. </div>
  42. {{#if controller.selectedMetric}}
  43. <table class="legend">
  44. {{#each slot in controller.selectedMetric.slotDefinitions}}
  45. <tr>
  46. <td>
  47. <div class="tile" {{bindAttr style="slot.cssStyle"}}></div>
  48. </td>
  49. <td>{{slot.label}}</td>
  50. </tr>
  51. {{/each}}
  52. </table>
  53. {{t common.maximum}}:
  54. <div>
  55. {{view Ember.TextField type="text" valueBinding="controller.selectedMetric.maximumValue" class="span6"}}
  56. {{controller.selectedMetric.units}}
  57. </div>
  58. {{/if}}
  59. </div>
  60. <div class="span10">
  61. <h4 id="heatmap-metric-loading">
  62. <span id="heatmap-metric-title">{{controller.selectedMetric.name}}</span>
  63. </h4>
  64. <div class="row-fluid">
  65. {{#each rack in controller.cluster.racks}}
  66. <div {{bindAttr class="controller.rackClass"}}>
  67. {{view App.MainChartsHeatmapRackView rackBinding="rack" }}
  68. </div>
  69. {{/each}}
  70. </div>
  71. {{view App.MainChartsHeatmapHostDetailView}}
  72. </div>
  73. </div>
  74. </div>
  75. </div>