Skip to content

Commit

Permalink
[ML] Explain Log Rate Spikes: Add tooltip for group columns and adjus…
Browse files Browse the repository at this point in the history
…t copy to reflect groups in ot… (#141687) (#141760)

Updates the groups table column tooltips to reflect group language and adds a tooltip to the Group column for clarification of column values.

(cherry picked from commit 24b7d34)

Co-authored-by: Melissa Alvarez <melissa.alvarez@elastic.co>
  • Loading branch information
kibanamachine and alvarezmelissa87 authored Sep 26, 2022
1 parent 874a6b9 commit 3109f6d
Showing 1 changed file with 23 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,26 @@ export const SpikeAnalysisGroupsTable: FC<SpikeAnalysisTableProps> = ({
{
'data-test-subj': 'aiopsSpikeAnalysisGroupsTableColumnGroup',
field: 'group',
name: i18n.translate('xpack.aiops.explainLogRateSpikes.spikeAnalysisTableGroups.groupLabel', {
defaultMessage: 'Group',
}),
name: (
<EuiToolTip
position="top"
content={i18n.translate(
'xpack.aiops.explainLogRateSpikes.spikeAnalysisTableGroups.groupColumnTooltip',
{
defaultMessage:
'Displays field values unique to the group. Expand row to see all values.',
}
)}
>
<>
<FormattedMessage
id="xpack.aiops.explainLogRateSpikes.spikeAnalysisTableGroups.groupLabel"
defaultMessage="Group"
/>
<EuiIcon size="s" color="subdued" type="questionInCircle" className="eui-alignTop" />
</>
</EuiToolTip>
),
render: (_, { group, repeatedValues }) => {
const valuesBadges = [];
for (const fieldName in group) {
Expand Down Expand Up @@ -287,7 +304,7 @@ export const SpikeAnalysisGroupsTable: FC<SpikeAnalysisTableProps> = ({
'xpack.aiops.explainLogRateSpikes.spikeAnalysisTableGroups.logRateColumnTooltip',
{
defaultMessage:
'A visual representation of the impact of the field on the message rate difference',
'A visual representation of the impact of the group on the message rate difference',
}
)}
>
Expand Down Expand Up @@ -361,9 +378,9 @@ export const SpikeAnalysisGroupsTable: FC<SpikeAnalysisTableProps> = ({
<EuiToolTip
position="top"
content={i18n.translate(
'xpack.aiops.explainLogRateSpikes.spikeAnalysisTable.impactLabelColumnTooltip',
'xpack.aiops.explainLogRateSpikes.spikeAnalysisTableGroups.impactLabelColumnTooltip',
{
defaultMessage: 'The level of impact of the field on the message rate difference',
defaultMessage: 'The level of impact of the group on the message rate difference',
}
)}
>
Expand Down

0 comments on commit 3109f6d

Please sign in to comment.