def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 3008,
            any(
                [
                    "api.put.io" in event.deep_get("QueryName", default=""),
                    "upload.put.io" in event.deep_get("QueryName", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
