[APM] Fix occurrence typo (#27571)

This commit is contained in:
Søren Louv-Jansen 2018-12-20 13:12:44 +01:00 committed by GitHub
parent d03df07a68
commit 2e44885e82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ exports[`DetailView should render Discover button 1`] = `
iconType="discoverApp"
type="button"
>
View 10 occurences in Discover
View 10 occurrences in Discover
</EuiButtonEmpty>
</DiscoverErrorButton>
`;

View file

@ -136,11 +136,11 @@ export function DetailView({ errorGroup, urlParams, location }: Props) {
<Container>
<HeaderContainer>
<EuiTitle size="s">
<h3>Error occurence</h3>
<h3>Error occurrence</h3>
</EuiTitle>
<DiscoverErrorButton error={error} kuery={urlParams.kuery}>
<EuiButtonEmpty iconType="discoverApp">
{`View ${occurrencesCount} occurences in Discover`}
{`View ${occurrencesCount} occurrences in Discover`}
</EuiButtonEmpty>
</DiscoverErrorButton>
</HeaderContainer>

View file

@ -94,7 +94,7 @@ export async function getErrorGroups({
params.body.query.bool.filter.push(esFilterQuery);
}
// sort buckets by last occurence of error
// sort buckets by last occurrence of error
if (sortField === 'latestOccurrenceAt') {
params.body.aggs.error_groups.terms.order = {
max_timestamp: sortDirection