Dead man's switch (server)
dead_mans_switch_server · OCA/server-tools
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 88 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
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
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
DeadMansSwitchInstance— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceDeadMansSwitchInstance— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceDeadMansSwitchInstance— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (7 methods) migration-api-multi-one · sourcecron_server— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · sourcedead.mans.switch.instance— Migrating to 13.0: `track_visibility` was replaced by `tracking`; the old kwarg is ignored. Fields: user_id. migration-track-visibilityform_dead_mans_switch_instance— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcetree_dead_mans_switch_instance— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcetree_dead_mans_switch_log— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
dead.mans.switch.log— Migrating to 18.0: the field kwarg `group_operator` was renamed to `aggregator`. Fields: cpu, ram, user_count. migration-group-operator
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/dead_mans_switch/alive |
Main.alive |
none | json | ALL | sudo |
Models touched 2
New fields (15)
-
aliveBooleancompute='_compute_alive'search='_search_alive' args: 'Alive' -
alive_max_delayIntegerdefault=600help='The amount of seconds without notice after which the instance is considered dead' args: 'Alive delay' -
database_uuidCharreadonly=Truerequired=True args: 'Database id' -
descriptionCharargs: 'Description' -
last_cpuFloatcompute='_compute_last_log' args: 'CPU' -
last_cpu_sparklineTextcompute='_compute_last_log' args: 'CPU' -
last_ramFloatcompute='_compute_last_log' args: 'RAM' -
last_ram_sparklineTextcompute='_compute_last_log' args: 'RAM' -
last_seenDatetimecompute='_compute_last_log' args: 'Last seen' -
last_user_countIntegercompute='_compute_last_log' args: 'Active users' -
last_user_count_sparklineTextcompute='_compute_last_log' args: 'Active users' -
log_idsOne2many → dead.mans.switch.logstring='Log lines' args: 'dead.mans.switch.log', 'instance_id' -
partner_idMany2one → res.partnerdomain=[('is_company', '=', True), ('customer', '=', True)] args: 'res.partner', 'Customer' -
stateSelectiondefault='new' args: [('new', 'New'), ('active', 'Active'), ('suspended', 'Suspended')], 'State' -
user_idMany2one → res.userstrack_visibility='onchange' args: 'res.users', 'Responsible user'
-
button_active(self)@api.multi -
button_logs(self)@api.multi -
button_suspended(self)@api.multi -
check_alive(self)@api.modelhandle cronjob -
name_get(self)@api.multi -
panic(self)@api.multioverride for custom handling
New fields (4)
-
cpuFloatgroup_operator='avg' args: 'CPU' -
instance_idMany2one → dead.mans.switch.instanceindex=True args: 'dead.mans.switch.instance', 'Instance' -
ramFloatgroup_operator='avg' args: 'RAM' -
user_countIntegergroup_operator='avg' args: 'Users logged in'
No public methods.