// This file is autogenerated, DO NOT EDIT
// aggregations/metrics/percentile-aggregation.asciidoc:370

[source, python]
----
resp = client.search(
    index="latency",
    size=0,
    aggs={
        "load_time_outlier": {
            "percentiles": {
                "field": "load_time",
                "percents": [
                    95,
                    99,
                    99.9
                ],
                "hdr": {
                    "number_of_significant_value_digits": 3
                }
            }
        }
    },
)
print(resp)
----
