def METHOD_NAME(line):
    j = json.loads(line.split("|", maxsplit=1)[1].split(":", maxsplit=1)[1])
    counts = {
        "startTime": datetime.datetime.fromtimestamp(j["start_time_ms"] / 1000),
        "endTime": datetime.datetime.fromtimestamp(j["end_time_ms"] / 1000),
    }
    sizes = counts.copy()
    for k, v in j["ringbuffer_messages"].items():
        counts[k] = v["count"]
        sizes[k] = v["bytes"]
    return counts, sizes