def METHOD_NAME(
    incident: Incident,
    new_status: IncidentStatus,
    metric_value=None,
    notification_uuid=None,
    referrer="metric_alert",
):
    alert_rule = incident.alert_rule
    status = INCIDENT_STATUS[new_status]
    if metric_value is None:
        metric_value = get_metric_count_from_incident(incident)
    text = get_incident_status_text(alert_rule, metric_value)
    title = f"{status}: {alert_rule.name}"
    title_link_params = {
        "alert": str(incident.identifier),
        "referrer": referrer,
    }
    if notification_uuid:
        title_link_params["notification_uuid"] = notification_uuid
    title_link = alert_rule.organization.absolute_url(
        reverse(
            "sentry-metric-alert-details",
            kwargs={
                "organization_slug": alert_rule.organization.slug,
                "alert_rule_id": alert_rule.id,
            },
        ),
        query=parse.urlencode(title_link_params),
    )
    return {
        "title": title,
        "text": text,
        "logo_url": LOGO_URL,
        "status": status,
        "ts": incident.date_started,
        "title_link": title_link,
    }