Skip to content

Commit

Permalink
Adding total event to each query
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Mar 11, 2024
1 parent 41f0c18 commit 4948c31
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ function createDiscoverLocator(
},
query: customBadFilter as Record<string, any>,
});

filters.push({
$state: { store: FilterStateStore.APP_STATE },
meta: {
type: 'custom',
alias: i18n.translate('xpack.observability.slo.sloDetails.totalFilterLabel', {
defaultMessage: 'Total events',
}),
value: JSON.stringify(customBadFilter),
index: indexId,
},
query: customTotalFilter as Record<string, any>,
});
}

const groupBy = [slo.groupBy].flat();
Expand Down

0 comments on commit 4948c31

Please sign in to comment.