From 09b6ececa72ddff34e8d5c03a60a0627fc9a7365 Mon Sep 17 00:00:00 2001 From: Metin Dumandag <29387993+mdumandag@users.noreply.github.com> Date: Wed, 11 Feb 2026 13:31:07 +0300 Subject: [PATCH] Export fields of the PercentileValuesVecEntry (#2833) Otherwise, there is no way to access these fields when not using the json serialized form of the aggregation results. This simple data struct is part of the public api, so its fields should be accessible as well. --- src/aggregation/metric/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/aggregation/metric/mod.rs b/src/aggregation/metric/mod.rs index d3a448a38..517a2b9df 100644 --- a/src/aggregation/metric/mod.rs +++ b/src/aggregation/metric/mod.rs @@ -107,8 +107,11 @@ pub enum PercentileValues { #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] /// The entry when requesting percentiles with keyed: false pub struct PercentileValuesVecEntry { - key: f64, - value: f64, + /// Percentile + pub key: f64, + + /// Value at the percentile + pub value: f64, } /// Single-metric aggregations use this common result structure.