def METHOD_NAME(data):
    create_client()
    daddr = inet_ntop(AF_INET, pack("I", data.daddr)).encode()
    saddr = inet_ntop(AF_INET, pack("I", data.saddr)).encode()
    json_body = [
        {
            "measurement": "delay_analysis_out",
            "fields": {
                "SADDR": saddr,
                "SPORT": data.sport,
                "DADDR": daddr,
                "DPORT": data.dport,
                "SEQ": data.seq,
                "ACK": data.ack,
                "TIME_TOTAL": int(data.total_time/1000),
                "TIME_QDisc": int(data.qdisc_time/1000),
                "TIME_IP": int(data.ip_time/1000),
                "TIME_TCP": int(data.tcp_time/1000),
            }
        }
    ]
    client.write_points(json_body)