def METHOD_NAME(ret):
    """
    Send an mattermost message with the data
    """
    _options = _get_options(ret)
    api_url = _options.get("api_url")
    channel = _options.get("channel")
    username = _options.get("username")
    hook = _options.get("hook")
    if not hook:
        log.error("mattermost.hook not defined in salt config")
        return
    returns = ret.get("return")
    message = "id: {}\r\nfunction: {}\r\nfunction args: {}\r\njid: {}\r\nreturn: {}\r\n".format(
        ret.get("id"), ret.get("fun"), ret.get("fun_args"), ret.get("jid"), returns
    )
    mattermost = post_message(channel, message, username, api_url, hook)
    return mattermost