def METHOD_NAME(self, data, rules, event: Event | GroupEvent, group: Group | None):
    payload = {
        "message": event.message or event.title,
        "source": "Sentry",
        "details": {
            "Triggering Rules": ", ".join([rule.label for rule in rules]),
            "Release": data.release,
        },
        "tags": [f'{str(x).replace(",", "")}:{str(y).replace(",", "")}' for x, y in event.tags],
    }
    if group:
        rule_urls = self._get_rule_urls(group, rules)
        payload["alias"] = f"sentry: {group.id}"
        payload["entity"] = group.culprit if group.culprit else ""
        payload["details"] = {
            "Sentry ID": str(group.id),
            "Sentry Group": getattr(group, "title", group.message).encode("utf-8"),
            "Project ID": group.project.slug,
            "Project Name": group.project.name,
            "Logger": group.logger,
            "Level": group.get_level_display(),
            "Issue URL": group.get_absolute_url(),
            "Triggering Rules": ", ".join([rule.label for rule in rules]),
            "Triggering Rule URLs": "\n".join(rule_urls),
            "Release": data.release,
        }
    return payload