def METHOD_NAME(self, es_json: JSON, context: ApiContext) -> JSON:
    """
    Returns details from the run, @metadata, and host_tools_info subdocuments
    of the Elasticsearch run document. The Elasticsearch information can
    be enriched with Dataset DB metadata based on the "metadata" JSON
    parameter values, if specified.
    [
        {
            "runMetadata": {
                "file-name": "/pbench/archive/fs-version-001/dhcp31-187.example.com/fio_rhel8_kvm_perf43_preallocfull_nvme_run4_iothread_isolcpus_2020.04.29T12.49.13.tar.xz",
                "file-size": 216319392,
                "md5": "12fb1e952fd826727810868c9327254f",
                [...]
            },
            "hostTools": [
                {
                    "hostname": "dhcp31-187",
                    "tools": {
                        "iostat": "--interval=3",
                        [...]
                    }
                },
            ],
            "serverMetadata": {
                "server.deletion": "2222-02-22",
                "dashboard.saved": False,
                "dataset.access": "public"
            }
        }
    ]
    """
    hits = es_json["hits"]["hits"]
    # NOTE: we're expecting just one. We're matching by just the
    # dataset name, which ought to be unique.
    if len(hits) == 0:
        raise PostprocessError(
            HTTPStatus.BAD_REQUEST, "The specified dataset has gone missing"
        )
    elif len(hits) > 1:
        raise PostprocessError(
            HTTPStatus.BAD_REQUEST, "Too many hits for a unique query"
        )
    src = hits[0]["_source"]
    # We're merging the "run" and "@metadata" sub-documents into
    # one dictionary, and then tacking on the host tools info in
    # its original form.
    run_metadata = src["run"]
    run_metadata.update(src["@metadata"])
    result = {
        "runMetadata": run_metadata,
        "hostTools": src["host_tools_info"],
    }
    try:
        dataset = Dataset.query(resource_id=(src["run"]["id"]))
        m = self._get_dataset_metadata(dataset, context["metadata"])
    except DatasetNotFound:
        raise APIAbort(
            HTTPStatus.BAD_REQUEST, f"Dataset {src['run']['id']} not found"
        )
    except MetadataError as e:
        raise APIAbort(HTTPStatus.BAD_REQUEST, str(e))
    if m:
        result["serverMetadata"] = m
    # construct response object
    return jsonify(result)