You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
3.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="server_monitor_database_tree_view">
  5. <field name="name">Server Monitor Database form view</field>
  6. <field name="model">server.monitor.database</field>
  7. <field name="arch" type="xml">
  8. <tree string="Server Monitor" version="7.0">
  9. <field name='name'/>
  10. </tree>
  11. </field>
  12. </record>
  13. <record model="ir.ui.view" id="server_monitor_database_form_view">
  14. <field name="name">Server Monitor Database tree view</field>
  15. <field name="model">server.monitor.database</field>
  16. <field name="arch" type="xml">
  17. <form string="Server Monitor" version="7.0">
  18. <sheet>
  19. <field name="name"/>
  20. <notebook>
  21. <page string="Nb rows">
  22. <group>
  23. <field name='table_nb_row_ids' nolabel="1">
  24. <tree>
  25. <field name='name'/>
  26. <field name='count'/>
  27. </tree>
  28. </field>
  29. </group>
  30. </page>
  31. <page string="Table size">
  32. <group>
  33. <field name='table_size_ids' nolabel="1">
  34. <tree>
  35. <field name='name'/>
  36. <field name='hsize'/>
  37. </tree>
  38. </field>
  39. </group>
  40. </page>
  41. <page string="Table reads">
  42. <group>
  43. <field name='table_activity_read_ids' nolabel="1">
  44. <tree>
  45. <field name='name'/>
  46. <field name='disk_reads'/>
  47. <field name='cache_reads'/>
  48. <field name='total_reads'/>
  49. </tree>
  50. </field>
  51. </group>
  52. </page>
  53. <page string="Table updates">
  54. <group>
  55. <field name='table_activity_update_ids' nolabel="1">
  56. <tree>
  57. <field name='name'/>
  58. <field name='seq_scan'/>
  59. <field name='idx_scan'/>
  60. <field name='lines_read_total'/>
  61. <field name='num_insert'/>
  62. <field name='num_update'/>
  63. <field name='num_delete'/>
  64. </tree>
  65. </field>
  66. </group>
  67. </page>
  68. </notebook>
  69. <group>
  70. <field name='info' string="Information"/>
  71. </group>
  72. </sheet>
  73. </form>
  74. </field>
  75. </record>
  76. <record model="ir.actions.act_window" id="server_monitor_database_info">
  77. <field name="name">Database Info</field>
  78. <field name="res_model">server.monitor.database</field>
  79. <field name="view_mode">tree,form</field>
  80. </record>
  81. <menuitem name="Database Info"
  82. parent="server_monitoring"
  83. id="server_monitor_database_menu"
  84. action="server_monitor_database_info"
  85. sequence="20"/>
  86. </data>
  87. </openerp>