Skip to content

Commit

Permalink
renamed metric to top hit
Browse files Browse the repository at this point in the history
  • Loading branch information
scampi committed Oct 17, 2016
1 parent 20be950 commit 20cbb12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ui/public/agg_types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AggTypesMetricsSumProvider from 'ui/agg_types/metrics/sum';
import AggTypesMetricsMedianProvider from 'ui/agg_types/metrics/median';
import AggTypesMetricsMinProvider from 'ui/agg_types/metrics/min';
import AggTypesMetricsMaxProvider from 'ui/agg_types/metrics/max';
import AggTypesMetricsTopProvider from 'ui/agg_types/metrics/top';
import AggTypesMetricsTopHitProvider from 'ui/agg_types/metrics/top_hit';
import AggTypesMetricsStdDeviationProvider from 'ui/agg_types/metrics/std_deviation';
import AggTypesMetricsCardinalityProvider from 'ui/agg_types/metrics/cardinality';
import AggTypesMetricsPercentilesProvider from 'ui/agg_types/metrics/percentiles';
Expand Down Expand Up @@ -34,7 +34,7 @@ export default function AggTypeService(Private) {
Private(AggTypesMetricsCardinalityProvider),
Private(AggTypesMetricsPercentilesProvider),
Private(AggTypesMetricsPercentileRanksProvider),
Private(AggTypesMetricsTopProvider)
Private(AggTypesMetricsTopHitProvider)
],
buckets: [
Private(AggTypesBucketsDateHistogramProvider),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function AggTypeMetricTopProvider(Private) {

return new MetricAggType({
name: 'top_hits',
title: 'Top',
title: 'Top Hit',
makeLabel: function (aggConfig) {
const prefix = aggConfig.params.sortOrder.val === 'desc' ? 'Last' : 'First';
return `${prefix} ${aggConfig.params.field.displayName}`;
Expand Down

0 comments on commit 20cbb12

Please sign in to comment.