flume.hbs 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. <!-- Flume Agents -->
  19. <div id="flume-summary">
  20. <a href="#" {{action filterHosts view.flumeHandlerComponent}}>{{view.summaryHeader}}</a>
  21. <div class="btn-group display-inline-block flume-agents-actions pull-right">
  22. <a {{bindAttr class=":btn :dropdown-toggle view.isActionsDisabled:disabled"}} data-toggle="dropdown" href="javascript:void(null)">{{t common.actions}}
  23. <span class="caret"></span>
  24. </a>
  25. <ul class="pull-left dropdown-menu">
  26. <li {{bindAttr class="view.isStartAgentDisabled:disabled"}}>
  27. <a href="javascript:void(null)"
  28. {{bindAttr class="view.isStartAgentDisabled:disabled"}}
  29. {{action startFlumeAgent target="controller"}}>
  30. {{t services.service.summary.flume.startAgent}}</a>
  31. </li>
  32. <li {{bindAttr class="view.isStopAgentDisabled:disabled"}}>
  33. <a href="javascript:void(null)"
  34. {{bindAttr class="view.isStopAgentDisabled:disabled"}}
  35. {{action stopFlumeAgent target="controller"}}>
  36. {{t services.service.summary.flume.stopAgent}}</a>
  37. </li>
  38. </ul>
  39. </div>
  40. <div class="scrollable-container">
  41. <table class="table table-hover table-bordered table-striped" id="flume-agents-table">
  42. <thead>
  43. {{#view view.sortView contentBinding="view.filteredContent" class="label-row"}}
  44. {{view view.parentView.statusSort}}
  45. {{view view.parentView.agentSort}}
  46. {{view view.parentView.hostSort}}
  47. {{view view.parentView.sourceSort}}
  48. {{view view.parentView.channelSort}}
  49. {{view view.parentView.sinkSort}}
  50. {{/view}}
  51. </thead>
  52. <tbody>
  53. {{#if view.pageContent}}
  54. {{#each agent in view.pageContent}}
  55. {{#view view.agentView contentBinding="agent"}}
  56. <td class="agent-status">
  57. <span {{bindAttr class="agent.healthClass"}}></span>
  58. </td>
  59. <td class="agent-name">
  60. {{agent.name}}
  61. </td>
  62. <td class="agent-host-name">
  63. <a href="javascript:void(null)" {{action showDetails agent.host}}>
  64. {{agent.hostName}}
  65. </a>
  66. </td>
  67. <td>
  68. {{agent.sourcesCount}}
  69. </td>
  70. <td>
  71. {{agent.channelsCount}}
  72. </td>
  73. <td>
  74. {{agent.sinksCount}}
  75. </td>
  76. {{/view}}
  77. {{/each}}
  78. {{else}}
  79. <tr>
  80. <td colspan="6" class="empty-label">
  81. {{t services.service.summary.flume.noAgents}}
  82. </td>
  83. </tr>
  84. {{/if}}
  85. </tbody>
  86. </table>
  87. </div>
  88. </div>