Guest User

Untitled

a guest
Sep 8th, 2011
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. <tal:block tal:define="
  2. tableName string:cpuutilreport;
  3. tm here/ZenTableManager;
  4. tableState python:tm.getTableState(tableName, sortedHeader='cpuPercent',
  5. sortedSence='desc');
  6.  
  7. sts python:here.ZenTableManager.setReqTableState;
  8. zem python:here.dmd.ZenEventManager;
  9. startDate python:sts(tableName, 'startDate',
  10. zem.defaultAvailabilityStart());
  11. endDate python:sts(tableName, 'endDate',
  12. zem.defaultAvailabilityEnd());
  13. how python:sts(tableName, 'how', 'AVERAGE');
  14. summaryOptions python:('AVERAGE', 'MAXIMUM', 'MINIMUM', 'LAST');
  15. deviceClass python:sts(tableName, 'deviceClass', '/');
  16. deviceFilter python:sts(tableName, 'deviceFilter', '');
  17.  
  18. objects python:here.ReportServer.plugin('cpu', tableState);
  19. objects python: (hasattr(request, 'doExport') and list(objects)) or objects;
  20. exportFields python:['device', 'ssCpuRawWait', 'cpuPercent'];
  21. batch python:here.ZenTableManager.getBatch(tableName,objects,sortedHeader='cpuPercent', sortedSence='desc');
  22. ">
  23. <tal:block metal:use-macro="here/reportMacros/macros/exportableReport">
  24. <tal:block metal:fill-slot="report">
  25.  
  26. <tal:block metal:use-macro="here/templates/macros/page1">
  27. <tal:block metal:fill-slot="breadCrumbPane">
  28. <span metal:use-macro="here/miscmacros/macros/reportBreadCrumbsList"/>
  29. </tal:block>
  30. <tal:block metal:fill-slot="contentPane">
  31.  
  32. <tal:block metal:use-macro="here/reportMacros/macros/utilizationForm"/>
  33.  
  34.  
  35. <form method="POST" tal:attributes="action request/URL"
  36. tal:define="tabletitle string:CPU Utilization;
  37. showfilterbox python:True;
  38. tblcolspan string:3">
  39. <tal:block metal:use-macro="here/zenuimacros/macros/zentable">
  40. <tal:block metal:fill-slot="zentablecontents">
  41.  
  42. <tr>
  43. <th tal:replace="structure python:here.ZenTableManager.getTableHeader(
  44. tableName,'deviceName','Device')"/>
  45. <th tal:replace="structure python:here.ZenTableManager.getTableHeader(
  46. tableName,'ssCpuRawWait','% CPU wait')"/>
  47. <th tal:replace="structure python:here.ZenTableManager.getTableHeader(
  48. tableName,'cpuPercent','% Util')"/>
  49. </tr>
  50. <tal:block tal:repeat="r batch">
  51. <tr tal:define="odd repeat/r/odd"
  52. tal:attributes="class python:test(odd,'odd','even')">
  53. <td><a tal:attributes="href python:r.device.getPrimaryUrlPath()+'/devicedetail#deviceDetailNav:graphs'"
  54. tal:content="python:r.deviceName"/></td>
  55. <td tal:content="python: r.percentString(r.ssCpuRawWait, 1)"/>
  56. <td tal:content="python: r.percentString(r.cpuPercent, 1)"/>
  57. </tr>
  58. </tal:block>
  59. <tr>
  60. <td colspan="3" class="tableheader" align='center'>
  61. <form metal:use-macro="here/zenTableNavigation/macros/navtool"/>
  62. </td>
  63. </tr>
  64.  
  65. </tal:block>
  66. </tal:block>
  67. </form>
  68.  
  69. </tal:block>
  70. </tal:block>
  71.  
  72. </tal:block>
  73. </tal:block>
  74. </tal:block>
Advertisement
Add Comment
Please, Sign In to add comment