Skip to content

Commit

Permalink
Thanks to @benironside for the improvements to the Alerts setting in …
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-goldstein committed Dec 21, 2023
1 parent d294730 commit 05ba636
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ const AlertsSettingsComponent = ({ knowledgeBase, setUpdatedKnowledgeBaseSetting
<EuiSpacer size="xs" />

<EuiFlexGroup direction="column" gutterSize="none">
<EuiFlexItem grow={false}>
<EuiText color="subdued" size="xs">
<span>{i18n.ASK_QUESTIONS_ABOUT}</span>
</EuiText>
</EuiFlexItem>

<EuiFlexItem
css={css`
width: ${RANGE_CONTAINER_WIDTH}px;
Expand Down Expand Up @@ -106,7 +100,7 @@ const AlertsSettingsComponent = ({ knowledgeBase, setUpdatedKnowledgeBaseSetting

<EuiFlexItem grow={false}>
<EuiText color="subdued" size="xs">
<span>{i18n.LATEST_AND_RISKIEST_OPEN_ALERTS}</span>
<span>{i18n.LATEST_AND_RISKIEST_OPEN_ALERTS(knowledgeBase.latestAlerts)}</span>
</EuiText>
</EuiFlexItem>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,27 @@ export const ASK_QUESTIONS_ABOUT = i18n.translate(
}
);

export const LATEST_AND_RISKIEST_OPEN_ALERTS = i18n.translate(
'xpack.elasticAssistant.assistant.settings.knowledgeBaseSettings.latestAndRiskiestOpenAlertsLabel',
{
defaultMessage: 'latest and riskiest open and acknowledged alerts in your environment.',
}
);
export const LATEST_AND_RISKIEST_OPEN_ALERTS = (alertsCount: number) =>
i18n.translate(
'xpack.elasticAssistant.assistant.settings.knowledgeBaseSettings.latestAndRiskiestOpenAlertsLabel',
{
defaultMessage:
'Send AI Assistant information about your {alertsCount} newest and riskiest open or acknowledged alerts.',
values: { alertsCount },
}
);

export const YOUR_ANONYMIZATION_SETTINGS = i18n.translate(
'xpack.elasticAssistant.assistant.settings.knowledgeBaseSettings.yourAnonymizationSettingsLabel',
{
defaultMessage: 'Your Anonymization settings will be applied to the alerts.',
defaultMessage: 'Your anonymization settings will apply to these alerts.',
}
);

export const SELECT_FEWER_ALERTS = i18n.translate(
'xpack.elasticAssistant.assistant.settings.knowledgeBaseSettings.selectFewerAlertsLabel',
{
defaultMessage:
"Select fewer alerts if the model's maximum context length is frequently exceeded.",
defaultMessage: "Send fewer alerts if the model's context window is too small.",
}
);

Expand Down

0 comments on commit 05ba636

Please sign in to comment.