def rule(event):
    if event.deep_get("DeviceDetail", "isCompliant", default="") == "false":
        return True
    return False
