Skip to content

Commit 09b6ece

Browse files
authored
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.
1 parent 8018016 commit 09b6ece

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/aggregation/metric/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ pub enum PercentileValues {
107107
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
108108
/// The entry when requesting percentiles with keyed: false
109109
pub struct PercentileValuesVecEntry {
110-
key: f64,
111-
value: f64,
110+
/// Percentile
111+
pub key: f64,
112+
113+
/// Value at the percentile
114+
pub value: f64,
112115
}
113116

114117
/// Single-metric aggregations use this common result structure.

0 commit comments

Comments
 (0)