def METHOD_NAME(self):
    keys = {}
    event_type = self.payload.get("type")
    if event_type in ("install", "removal"):
        name = self.payload.get("name")
        if name:
            keys["munki_pkginfo_name"] = [(name,)]
            version = self.payload.get("version")
            if version:
                keys["munki_pkginfo"] = [(name, version)]
    return keys