Skip to content
Health
35/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 88 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.64 MB
Module directory on disk
Code analysis 13 migration notes 2 models 7 views 1 HTTP endpoint

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 7

XML IDNameModelTypeStatus
form_dead_mans_switch_instance dead.mans.switch.instance form New
graph_dead_mans_switch_log dead.mans.switch.log graph New
kanban_dead_mans_switch_instance dead.mans.switch.instance kanban New
search_dead_mans_switch_instance dead.mans.switch.instance search New
search_dead_mans_switch_log dead.mans.switch.log search New
tree_dead_mans_switch_instance dead.mans.switch.instance tree New
tree_dead_mans_switch_log dead.mans.switch.log tree New

HTTP endpoints 1

Route(s)HandlerAuthTypeMethodsFlags
/dead_mans_switch/alive Main.alive none json ALL sudo

Models touched 2

New fields (15)
  • alive Boolean
    compute='_compute_alive' search='_search_alive' args: 'Alive'
  • alive_max_delay Integer
    default=600 help='The amount of seconds without notice after which the instance is considered dead' args: 'Alive delay'
  • database_uuid Char
    readonly=True required=True args: 'Database id'
  • description Char
    args: 'Description'
  • last_cpu Float
    compute='_compute_last_log' args: 'CPU'
  • last_cpu_sparkline Text
    compute='_compute_last_log' args: 'CPU'
  • last_ram Float
    compute='_compute_last_log' args: 'RAM'
  • last_ram_sparkline Text
    compute='_compute_last_log' args: 'RAM'
  • last_seen Datetime
    compute='_compute_last_log' args: 'Last seen'
  • last_user_count Integer
    compute='_compute_last_log' args: 'Active users'
  • last_user_count_sparkline Text
    compute='_compute_last_log' args: 'Active users'
  • log_ids One2many → dead.mans.switch.log
    string='Log lines' args: 'dead.mans.switch.log', 'instance_id'
  • partner_id Many2one → res.partner
    domain=[('is_company', '=', True), ('customer', '=', True)] args: 'res.partner', 'Customer'
  • state Selection
    default='new' args: [('new', 'New'), ('active', 'Active'), ('suspended', 'Suspended')], 'State'
  • user_id Many2one → res.users
    track_visibility='onchange' args: 'res.users', 'Responsible user'
Public methods (6)
  • button_active(self)
    @api.multi
  • button_logs(self)
    @api.multi
  • button_suspended(self)
    @api.multi
  • check_alive(self)
    @api.model
    handle cronjob
  • name_get(self)
    @api.multi
  • panic(self)
    @api.multi
    override for custom handling

New fields (4)
  • cpu Float
    group_operator='avg' args: 'CPU'
  • instance_id Many2one → dead.mans.switch.instance
    index=True args: 'dead.mans.switch.instance', 'Instance'
  • ram Float
    group_operator='avg' args: 'RAM'
  • user_count Integer
    group_operator='avg' args: 'Users logged in'
Public methods (0)

No public methods.