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.

17 lines
616 B

  1. # -*- coding: utf-8 -*-
  2. # © 2015 Therp BV <http://therp.nl>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import fields, models
  5. class DeadMansSwitchLog(models.Model):
  6. _name = 'dead.mans.switch.log'
  7. _description = 'Instance log line'
  8. _order = 'create_date desc'
  9. _rec_name = 'create_date'
  10. instance_id = fields.Many2one(
  11. 'dead.mans.switch.instance', 'Instance', index=True)
  12. cpu = fields.Float('CPU', group_operator='avg')
  13. ram = fields.Float('RAM', group_operator='avg')
  14. user_count = fields.Integer('Users logged in', group_operator='avg')