def METHOD_NAME(logfile) -> Any:
    try:
        global diagd_host
        response = requests.get(
            f"http://{diagd_host}/_internal/v0/events",
            headers={"X-Ambassador-Diag-IP": "127.0.0.1"},
        )
        if response.status_code != 200:
            logfile.write(f"events: wanted 200 but got {response.status_code} {response.text}\n")
            return None
        data = response.json()
        return data
    except Exception as e:
        logfile.write(f"events: could not do HTTP: {e}\n")
        return None