def METHOD_NAME(certificate):
    return {
        "title": certificate["name"],
        "title_link": create_certificate_url(certificate["name"]),
        "fields": [
            {"title": "Owner", "value": certificate["owner"], "short": True},
            {
                "title": "Expires",
                "value": arrow.get(certificate["validityEnd"]).format(
                    "dddd, MMMM D, YYYY"
                ),
                "short": True,
            },
            {
                "title": "Endpoints Rotated",
                "value": len(certificate["endpoints"]),
                "short": True,
            },
        ],
    }