Werk #14168: Activate changes: Added additional central site hook: post-snapshop-creation

Component Setup
Title Activate changes: Added additional central site hook: post-snapshop-creation
Date Aug 16, 2022
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p28 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

This hook can be used by custom plugins to further modify the snapshot content for the remote site. The registered function gets the site_snapshot_settings as argument.

site_snapshot_settings: Dict[SiteId, SnapshotSettings]

SnapshotSettings = NamedTuple(
    "SnapshotSettings",
    [
        ("snapshot_path", str),
        ("work_dir", str),
        ("snapshot_components", List[ReplicationPath]),
        ("component_names", Set[str]),
        ("site_config", SiteConfiguration),
        ("create_pre_17_snapshot", bool),
    ])

Please keep in mind that the entire hook mechanism is intended only for very specialized tasks and experienced users. If you make a mistake, things will break/disappear.

To the list of all Werks