mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Edit UI text for "exclude previous hits" check box in Elasticsearch query rule (#140146)
This commit is contained in:
parent
abfca67f6b
commit
2115309d0a
8 changed files with 23 additions and 33 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue