identity.html 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <div class="row" style="margin-left: 1px; margin-top:10px; height: 50px;">
  2. <div class="col-md-6" style="margin-bottom: 10px;">
  3. <span style="font-size: 30px;font-weight: bold;">{{app}}</span>
  4. </div>
  5. </div>
  6. <div class="separator"></div>
  7. <div class="container-fluid">
  8. <div class="row" style="margin-top: 20px; margin-bottom: 20px;">
  9. <div class="col-md-12">
  10. <div class="card">
  11. <div class="inputs-header">
  12. <span class="brand" style="font-size: 13px;">请求链路</span>
  13. <button class="btn btn-primary" style="float: right; margin-right: 10px; height: 30px;font-size: 12px;" ng-click="queryIdentities()">刷新</button>
  14. <input class="form-control witdh-200" placeholder="关键字" ng-model="searchKey" ng-change="searchChange(searchKey)">
  15. <div class="control-group" style="float:right;margin-right: 10px;margin-bottom: -10px;">
  16. <selectize id="gsInput" class="selectize-input-200" config="macsInputConfig" options="macsInputOptions" ng-model="macInputModel"
  17. placeholder="机器"></selectize>
  18. </div>
  19. </div>
  20. <!--.tools-header -->
  21. <div class="card-body" style="padding: 0px 0px;">
  22. <table rz-table id="identities" class="table" style="border-left: none; border-right:none;margin-top: 10px;">
  23. <thead>
  24. <thead>
  25. <tr style="background: #F3F5F7;">
  26. <td style="width: 34%;">
  27. API 名称
  28. </td>
  29. <td style="width: 8%;">
  30. API 类型
  31. </td>
  32. <td style="width: 7%;">通过 QPS</td>
  33. <td style="width: 7%;">拒绝 QPS</td>
  34. <td style="width: 5%;">线程数</td>
  35. <td style="width: 6%;">平均 RT</td>
  36. <td style="width: 6%;">分钟通过</td>
  37. <td style="width: 6%;">分钟拒绝</td>
  38. <td style="width: 20%">操作</td>
  39. </tr>
  40. <tr></tr>
  41. </thead>
  42. <tbody>
  43. <tr dir-paginate="resource in identities | itemsPerPage: pageSize" current-page="currentPage" pagination-id="entriesPagination"
  44. data-tt-id="{{resource.ttId}}" data-tt-parent-id="{{resource.parentTtId}}" data-tt-visible="{{resource.visible}}">
  45. <td style="white-space: normal; text-align: left;">
  46. <span style="word-wrap:break-word;word-break:break-all;">{{resource.resource}}</span>
  47. </td>
  48. <td>
  49. <span ng-if="apiNames.indexOf(resource.resource) == -1">Route ID</span>
  50. <span ng-if="apiNames.indexOf(resource.resource) != -1">自定义 API</span>
  51. </td>
  52. <td>{{resource.passQps}}</td>
  53. <td>{{resource.blockQps}}</td>
  54. <td>{{resource.threadNum}}</td>
  55. <td>{{resource.averageRt}}</td>
  56. <td>{{resource.oneMinutePass}}</td>
  57. <td ng-if="$index==pageSize-1 || (currentPage>=identities.length/pageSize && $index==identities.length%pageSize-1)" ng-init="initTreeTable()">
  58. {{resource.oneMinuteBlock}}</td>
  59. <td ng-if="!($index==pageSize-1 || (currentPage>=identities.length/pageSize && $index==identities.length%pageSize-1))"> {{resource.oneMinuteBlock}}</td>
  60. <td>
  61. <div class="control-group">
  62. <button class="btn btn-xs btn-default" type="button" ng-click="addNewGatewayFlowRule(resource.resource)" style="font-size: 12px; height:25px;">
  63. <i class="fa fa-plus"></i>&nbsp;流控</button>
  64. <button class="btn btn-xs btn-default" type="button" ng-click="addNewDegradeRule(resource.resource)" style="font-size: 12px; height:25px;">
  65. <i class="fa fa-plus"></i>&nbsp;降级</button>
  66. </div>
  67. </td>
  68. </tr>
  69. </tbody>
  70. </table>
  71. </div>
  72. <!-- .card-body -->
  73. <div class="pagination-footer">
  74. <dir-pagination-controls boundary-links="true" template-url="app/views/pagination.tpl.html" pagination-id="entriesPagination"
  75. on-page-change="">
  76. </dir-pagination-controls>
  77. <div class="tools">
  78. <span>共 {{totalCount}} 条记录, </span>
  79. <span>
  80. 每页
  81. <input class="form-control" ng-model="pageSize"> 条记录
  82. </span>
  83. <!--<span>第 {{currentPage}} / {{totalPage}} 页</span>-->
  84. </div>
  85. <!-- .tools -->
  86. </div>
  87. <!-- pagination-footer -->
  88. </div>
  89. <!-- .card -->
  90. </div>
  91. <!-- .col-md-12 -->
  92. </div>
  93. <!-- -->
  94. </div>
  95. <!-- .container-fluid -->