Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1058

Cannot use percentiles metric with nuxeo-search-data

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.18, 3.0.0
    • Component/s: Dataviz

      Description

      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.

      https://github.com/nuxeo/nuxeo-dataviz-elements/blob/686ed2ded85482a2abc7082527a4b87195045af4/nuxeo-aggregate-data-behavior.html#L343

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.