Monitoring
monitoring · OCA/server-tools
Health
41/100
poor
-
Security25/25No findings
-
Activity6/25Last human commit 34 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 15.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.05 MB
Module directory on disk
Code analysis
6 migration notes
2 models
4 views
1 HTTP endpoint
Migration considerations
Monitoring— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceMonitoringScript— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcecron_monitoring— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · sourceview_monitoring_script_form— 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 · sourceview_monitoring_script_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_monitoring_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_monitoring_form |
monitoring | form | New | |
view_monitoring_script_form |
monitoring.script | form | New | |
view_monitoring_script_tree |
monitoring.script | tree | New | |
view_monitoring_tree |
monitoring | tree | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/monitoring/<string:token> |
MonitoringHome.monitoring |
none | http | ALL | sudo |
Models touched 2
New fields (8)
-
activeBooleandefault=True -
mail_sentBoolean -
mail_template_idMany2one → mail.templatedomain=[('model', '=', 'monitoring')]help='Set a mail template to send a mail if the state is warning or critical.' args: 'mail.template' -
nameChar -
script_idsMany2many → monitoring.scriptargs: 'monitoring.script' -
stateSelectioncompute='_compute_state'default='unknown' args: '_get_states' -
tokenCharcopy=Falsedefault=<expr>help='Token to use for the API'readonly=True -
verboseBooleanhelp='Send the information about all scripts'
-
action_validate(self) -
cron_validate(self, send_mail=True) -
validate(self, send_mail=False)
New fields (9)
-
activeBooleandefault=True -
check_typeSelectionhelp='`Expect False` .. The result must be False to be not critical\n`Expect True` .. The result must be True to be not critical\n`Expect Lower` .. The result must be lower than the thresholds\n`Expect Higher` .. The result must be higher than the thresholds\n'required=True args: '_get_types' -
criticalFloathelp='Threshold for critical' -
monitoring_idsMany2many → monitoringargs: 'monitoring' -
nameCharrequired=True -
snippetTexthelp='Monitoring script. Put the result into the variable `result`. With `env` you get an extra environment with OdooBot access levels.'required=True -
stateSelectionargs: '_get_states' -
tokenCharcopy=Falsedefault=<expr>help='Token to use for the API'readonly=True -
warningFloathelp='Threshold for warning'
-
validate(self, verbose=False)