def build_notification_text(text_parameters) -> str:
    """Create and format the contents of the notification."""
    nr_changed = len(text_parameters["metrics"])
    plural_s = "s" if nr_changed > 1 else ""
    report_link = f'[{text_parameters["report_title"]}]({text_parameters["url"]})'

    result = f'{report_link} has {nr_changed} metric{plural_s} that changed status:\n\n'
    for metric in text_parameters["metrics"]:
        name = metric["metric_name"]
        unit = metric["metric_unit"]
        unit = unit if unit.startswith("%") else f" {unit}"
        result += f'* {name} status is {metric["new_metric_status"]}, was {metric["old_metric_status"]}. ' \
                  f'Value is {metric["new_metric_value"]}{unit}, was {metric["old_metric_value"]}{unit}.\n'
    return result