Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data.search.aggs]: Expression functions for metric agg types #64914

Merged
merged 16 commits into from
May 5, 2020

Conversation

VladLasitsa
Copy link
Contributor

@VladLasitsa VladLasitsa commented Apr 30, 2020

Closes #63760

Summary

In this PR new expression functions were created for the following metric agg types:

  • count
  • avg
  • sum
  • median
  • min
  • max
  • std_deviation
  • cardinality
  • precentiles
  • percentile_ranks
  • top_hit
  • derivative
  • cumulative_sum
  • moving_avg
  • serial_diff
  • bucket_avg
  • bucket_sum
  • bucket_min
  • bucket_max
  • geo_bounds
  • geo_centroid

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@VladLasitsa VladLasitsa requested a review from alexwizp April 30, 2020 15:23
@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@VladLasitsa VladLasitsa self-assigned this May 4, 2020
@VladLasitsa VladLasitsa added Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:AppArch v7.8.0 v8.0.0 labels May 4, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

Copy link
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a full review. @VladLasitsa please check all again

@VladLasitsa VladLasitsa requested a review from alexwizp May 5, 2020 09:32
@VladLasitsa VladLasitsa requested a review from lukeelmers May 5, 2020 09:32
@VladLasitsa VladLasitsa marked this pull request as ready for review May 5, 2020 10:29
@VladLasitsa VladLasitsa requested a review from a team as a code owner May 5, 2020 10:29
Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I am going to go ahead and merge so we can get a backport into 7.x today.

@VladLasitsa I added one nit on the help text, which can be addressed as a follow-up later.

types: ['number'],
multi: true,
help: i18n.translate('data.search.aggs.metrics.percentiles.percents.help', {
defaultMessage: 'Range of percentiles ranks',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
defaultMessage: 'Range of percentiles ranks',
defaultMessage: 'Range of percentiles',

Copy link
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data.search.aggs]: Expression functions for metric agg types
5 participants