def METHOD_NAME(
    event: performance_fn.PerformanceThresholdAlertEvent,
) -> None:
    """Publishes a message to Discord whenever a performance threshold alert is fired."""
    # [END v2PerformanceAlertTrigger]
    # [START v2PerformanceEventPayload]
    # Construct a helpful message to send to Discord.
    app_id = event.app_id
    perf = event.data.payload
    message = f"""