def gen_HttpApiLog(source, action, target):
    """Generate a Http Api Log object from action and target."""
    httpapilog = {
        "@type": "HttpApiLog",
        "Subject": source,
        "Predicate": action,
        "Object": target
    }
    return httpapilog