Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: 4c942b98cd19a58e30b53774bfab3373a1089de5
https://github.com/Checkmk/checkmk/commit/4c942b98cd19a58e30b53774bfab3373a…
Author: Simon Jess <simon.jess(a)checkmk.com>
Date: 2024-09-26 (Thu, 26 Sep 2024)
Changed paths:
M cmk/gui/graphing/_artwork.py
Log Message:
-----------
Inline mirroring
Change-Id: I7fe247ec59a64d65533d501aa459eb1ed323d416
Commit: 52515f7de3c8c39ef29374ae88ddec980fb1eb26
https://github.com/Checkmk/checkmk/commit/52515f7de3c8c39ef29374ae88ddec980…
Author: Simon Jess <simon.jess(a)checkmk.com>
Date: 2024-09-26 (Thu, 26 Sep 2024)
Changed paths:
M cmk/gui/graphing/_artwork.py
Log Message:
-----------
Use list comprehension instead of func+map
Change-Id: I3c7cc1d8264afb10736443bf52a9535be6e27ef3
Commit: d9b91e37443923720ed33c3e201bb5e6e882152b
https://github.com/Checkmk/checkmk/commit/d9b91e37443923720ed33c3e201bb5e6e…
Author: Moritz Kiemer <moritz.kiemer(a)checkmk.com>
Date: 2024-09-26 (Thu, 26 Sep 2024)
Changed paths:
M cmk/gui/plugins/wato/check_parameters/etherbox.py
M cmk/plugins/collection/agent_based/etherbox.py
A cmk/plugins/collection/rulesets/etherbox.py
M tests/unit/cmk/plugins/collection/agent_based/test_etherbox.py
Log Message:
-----------
PRO TIP: migrate check_levels from v1 to v2
The parameters that are accepted by the v2.check_levels
are exactly as created by the new [Simple]Levels form spec.
In order to start using the new API's check_levels, the
ruleset needs to be migrated to the new API.
The heavy lifting is done by the migration function
passed in line 41 of the new file. It will convert all
existing configurations upon update.
There are four such functions exposed by the rulesets API:
* migrate_to_float_simple_levels
* migrate_to_float_levels
* migrate_to_integer_simple_levels
* migrate_to_integer_levels
In our case we are dealing with a simple tuple of floats
(and no predictive levels), so we chose
`migrate_to_float_simple_levels`.
More on the migration of rulesets can be found in
commit 4b3bd78f013a86cf8da710ec42ef1fc7eee06ba8.
In the check plugin, we only replaced the `check_levels`
function, and slightly adopted the default parameters.
More on the allowed values for the levels can be found
in the Sphinx documentation on the agent based API and
the ruleset API. The Sphinx documantation can be found
in a running site, in the "Plugin API reference" section
of the "Help" menu.
Change-Id: I8f529a9ad5bc5a0145489cc22436850f9f548b40
Compare:
https://github.com/Checkmk/checkmk/compare/2f1503d883c4...d9b91e374439
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications