-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.4.0
-
Component/s: Dataviz
-
Release Notes Summary:Percentiles metric is usable with nuxeo-search-data element.
-
Backlog priority:700
-
Sprint:nxGang Sprint 11.1.20
-
Story Points:5
When trying to use the percentile metric
<!-- Percentiles Response time --> <nuxeo-search-data class="data" start-date="[[startDate]]" end-date="[[endDate]]" metrics="percentiles(executionTimeMs)" data="{{percentilesResponseTime}}" page-provider="[[pageprovider]]"> </nuxeo-search-data>
At the API level, ES returns an object like the following:
aggregations: metrics: { values: {1.0: 11, 5.0: 19, 25.0: 36.75, 50.0: 66, 75.0: 120.25, 95.0: 345.5999999999997,…} } }
The _getMetrics function only supports "value" as a valid key inside the metrics object.
Thus the result is not accessible. the "data" property of nuxeo-search-data stays undefined.
- is related to
-
ELEMENTS-1059 Keep the raw response in nuxeo-aggregate-data-behavior
- Resolved