// This file is autogenerated, DO NOT EDIT
// aggregations/metrics/t-test-aggregation.asciidoc:32

[source, python]
----
resp = client.search(
    index="node_upgrade",
    size=0,
    aggs={
        "startup_time_ttest": {
            "t_test": {
                "a": {
                    "field": "startup_time_before"
                },
                "b": {
                    "field": "startup_time_after"
                },
                "type": "paired"
            }
        }
    },
)
print(resp)
----
