def rule(event):
    if all(
        [
            event.deep_get("cs-method", default="") == "GET",
            any(
                [
                    event.deep_get("c-uri", default="").endswith("/api/Core/Command/Init"),
                    event.deep_get("c-uri", default="").endswith("/api/Core/Command/Restart"),
                ]
            ),
        ]
    ):
        return True
    return False
