def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4701,
            event.deep_get("TaskName", default="")
            == "\\Microsoft\\Windows\\Defrag\\ScheduledDefrag",
        ]
    ):
        return True
    return False
