Skip to content

Commit

Permalink
Update _apm_stats.js
Browse files Browse the repository at this point in the history
  • Loading branch information
igoristic authored Apr 28, 2021
1 parent a84d665 commit 1d42f28
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x-pack/plugins/monitoring/server/lib/apm/_apm_stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ export const apmUuidsAgg = (maxBucketSize) => ({
export const apmAggResponseHandler = (response) => {
const apmTotal = get(response, 'aggregations.total.value', null);

const eventsTotalMax = get(response, 'aggregations.max_events_total.value', 0);
const eventsTotalMin = get(response, 'aggregations.min_events_total.value', 0);
const memRssMax = get(response, 'aggregations.max_mem_rss_total.value', 0);
const memRssMin = get(response, 'aggregations.min_mem_rss_total.value', 0);
const memTotal = get(response, 'aggregations.max_mem_total_total.value', 0);
const eventsTotalMax = get(response, 'aggregations.max_events_total.value', null);
const eventsTotalMin = get(response, 'aggregations.min_events_total.value', null);
const memRssMax = get(response, 'aggregations.max_mem_rss_total.value', null);
const memRssMin = get(response, 'aggregations.min_mem_rss_total.value', null);
const memTotal = get(response, 'aggregations.max_mem_total_total.value', null);
const versions = get(response, 'aggregations.versions.buckets', []).map(({ key }) => key);

return {
Expand Down

0 comments on commit 1d42f28

Please sign in to comment.