Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tal:block tal:define="
- tableName string:cpuutilreport;
- tm here/ZenTableManager;
- tableState python:tm.getTableState(tableName, sortedHeader='cpuPercent',
- sortedSence='desc');
- sts python:here.ZenTableManager.setReqTableState;
- zem python:here.dmd.ZenEventManager;
- startDate python:sts(tableName, 'startDate',
- zem.defaultAvailabilityStart());
- endDate python:sts(tableName, 'endDate',
- zem.defaultAvailabilityEnd());
- how python:sts(tableName, 'how', 'AVERAGE');
- summaryOptions python:('AVERAGE', 'MAXIMUM', 'MINIMUM', 'LAST');
- deviceClass python:sts(tableName, 'deviceClass', '/');
- deviceFilter python:sts(tableName, 'deviceFilter', '');
- objects python:here.ReportServer.plugin('cpu', tableState);
- objects python: (hasattr(request, 'doExport') and list(objects)) or objects;
- exportFields python:['device', 'ssCpuRawWait', 'cpuPercent'];
- batch python:here.ZenTableManager.getBatch(tableName,objects,sortedHeader='cpuPercent', sortedSence='desc');
- ">
- <tal:block metal:use-macro="here/reportMacros/macros/exportableReport">
- <tal:block metal:fill-slot="report">
- <tal:block metal:use-macro="here/templates/macros/page1">
- <tal:block metal:fill-slot="breadCrumbPane">
- <span metal:use-macro="here/miscmacros/macros/reportBreadCrumbsList"/>
- </tal:block>
- <tal:block metal:fill-slot="contentPane">
- <tal:block metal:use-macro="here/reportMacros/macros/utilizationForm"/>
- <form method="POST" tal:attributes="action request/URL"
- tal:define="tabletitle string:CPU Utilization;
- showfilterbox python:True;
- tblcolspan string:3">
- <tal:block metal:use-macro="here/zenuimacros/macros/zentable">
- <tal:block metal:fill-slot="zentablecontents">
- <tr>
- <th tal:replace="structure python:here.ZenTableManager.getTableHeader(
- tableName,'deviceName','Device')"/>
- <th tal:replace="structure python:here.ZenTableManager.getTableHeader(
- tableName,'ssCpuRawWait','% CPU wait')"/>
- <th tal:replace="structure python:here.ZenTableManager.getTableHeader(
- tableName,'cpuPercent','% Util')"/>
- </tr>
- <tal:block tal:repeat="r batch">
- <tr tal:define="odd repeat/r/odd"
- tal:attributes="class python:test(odd,'odd','even')">
- <td><a tal:attributes="href python:r.device.getPrimaryUrlPath()+'/devicedetail#deviceDetailNav:graphs'"
- tal:content="python:r.deviceName"/></td>
- <td tal:content="python: r.percentString(r.ssCpuRawWait, 1)"/>
- <td tal:content="python: r.percentString(r.cpuPercent, 1)"/>
- </tr>
- </tal:block>
- <tr>
- <td colspan="3" class="tableheader" align='center'>
- <form metal:use-macro="here/zenTableNavigation/macros/navtool"/>
- </td>
- </tr>
- </tal:block>
- </tal:block>
- </form>
- </tal:block>
- </tal:block>
- </tal:block>
- </tal:block>
- </tal:block>
Advertisement
Add Comment
Please, Sign In to add comment