Edit UI text for "exclude previous hits" check box in Elasticsearch query rule (#140146)

This commit is contained in:
Lisa Cawley 2022-09-07 08:34:35 -07:00 committed by GitHub
parent abfca67f6b
commit 2115309d0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 23 additions and 33 deletions

View file

@ -145,7 +145,7 @@ export const RuleCommonExpressions: React.FC<RuleCommonExpressionsProps> = ({
onChangeExcludeHitsFromPreviousRun(event.target.checked);
}}
label={i18n.translate('xpack.stackAlerts.esQuery.ui.excludePreviousHitsExpression', {
defaultMessage: 'Exclude the hits from previous rule runs',
defaultMessage: 'Exclude matches from previous runs',
})}
/>
</EuiFormRow>

View file

@ -6,14 +6,7 @@
*/
import React, { Component } from 'react';
import {
EuiButtonIcon,
EuiPopover,
EuiPopoverTitle,
EuiText,
EuiCallOut,
EuiSpacer,
} from '@elastic/eui';
import { EuiButtonIcon, EuiPopover, EuiPopoverTitle, EuiText } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n-react';
import { i18n } from '@kbn/i18n';
import { css } from '@emotion/react';
@ -66,16 +59,16 @@ export class QueryThresholdHelpPopover extends Component<{}, State> {
}}
/>
</p>
<p>
<FormattedMessage
id="xpack.stackAlerts.esQuery.ui.thresholdHelp.duplicateMatches"
defaultMessage="If {excludePrevious} is turned on, a document that matches the query in multiple runs will be used in only the first threshold calculation."
values={{
excludePrevious: <b>Exclude matches from previous runs</b>,
}}
/>
</p>
</EuiText>
<EuiSpacer size="m" />
<EuiCallOut
iconType="pin"
size="s"
title={i18n.translate('xpack.stackAlerts.esQuery.ui.thresholdHelp.duplicateMatches', {
defaultMessage:
"If the 'Exclude the hits from previous rule runs' option is checked and the time window is greater than the check interval, a document that matches the query in multiple runs will be used in only the first threshold calculation.",
})}
/>
</div>
);
}