Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Oct 8, 2020
1 parent 284139f commit 2d2348c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/server/lib/apm/get_apm_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function getApmInfo(req, apmIndexPattern, { clusterUuid, apmUuid, s
inner_hits: {
name: 'first_hit',
size: 1,
sort: { 'beats_stats.timestamp': 'asc' },
sort: { 'beats_stats.timestamp': { order: 'asc', unmapped_type: 'long' } },
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/server/lib/apm/get_apms.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export async function getApms(req, apmIndexPattern, clusterUuid) {
inner_hits: {
name: 'earliest',
size: 1,
sort: [{ 'beats_stats.timestamp': 'asc' }],
sort: [{ 'beats_stats.timestamp': { order: 'asc', unmapped_type: 'long' } }],
},
},
sort: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export async function getBeatSummary(
inner_hits: {
name: 'first_hit',
size: 1,
sort: { 'beats_stats.timestamp': 'asc' },
sort: { 'beats_stats.timestamp': { order: 'asc', unmapped_type: 'long' } },
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function buildRequest(req, config, esIndexPattern) {
field: 'ccr_stats.follower_index',
inner_hits: {
name: 'by_shard',
sort: [{ timestamp: 'desc' }],
sort: [{ timestamp: { order: 'desc', unmapped_type: 'long' } }],
size: maxBucketSize,
collapse: {
field: 'ccr_stats.shard_id',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async function getCcrStat(req, esIndexPattern, filters) {
inner_hits: {
name: 'oldest',
size: 1,
sort: [{ timestamp: 'asc' }],
sort: [{ timestamp: { order: 'asc', unmapped_type: 'long' } }],
},
},
},
Expand Down

0 comments on commit 2d2348c

Please sign in to comment.