diff --git a/x-pack/plugins/observability_solution/observability/public/pages/alerts/components/rule_stats.tsx b/x-pack/plugins/observability_solution/observability/public/pages/alerts/components/rule_stats.tsx index 005ba7ccaec82..81743ca011938 100644 --- a/x-pack/plugins/observability_solution/observability/public/pages/alerts/components/rule_stats.tsx +++ b/x-pack/plugins/observability_solution/observability/public/pages/alerts/components/rule_stats.tsx @@ -48,6 +48,16 @@ const getStatCount = (stats: RuleStatsState, status: Status) => { return stats[status]; }; +const disabledLabel = i18n.translate('xpack.observability.alerts.ruleStats.disabled', { + defaultMessage: 'Disabled', +}); +const snoozedLabel = i18n.translate('xpack.observability.alerts.ruleStats.muted', { + defaultMessage: 'Snoozed', +}); +const errorsLabel = i18n.translate('xpack.observability.alerts.ruleStats.errors', { + defaultMessage: 'Errors', +}); + export const renderRuleStats = ( ruleStats: RuleStatsState, manageRulesHref: string, @@ -76,6 +86,7 @@ export const renderRuleStats = ( condition={ruleStats.disabled > 0} wrap={(wrappedChildren) => ( handleNavigateToRules(ruleStats, 'disabled')} > @@ -85,9 +96,7 @@ export const renderRuleStats = ( > 0 ? 'primary' : ''} titleSize="xs" @@ -102,6 +111,7 @@ export const renderRuleStats = ( condition={ruleStats.muted + ruleStats.snoozed > 0} wrap={(wrappedChildren) => ( handleNavigateToRules(ruleStats, 'snoozed')} > @@ -111,9 +121,7 @@ export const renderRuleStats = ( > 0 ? 'primary' : ''} titleSize="xs" @@ -128,6 +136,7 @@ export const renderRuleStats = ( condition={ruleStats.error > 0} wrap={(wrappedChildren) => ( handleNavigateToRules(ruleStats, 'error')} > @@ -137,9 +146,7 @@ export const renderRuleStats = ( > 0 ? 'primary' : ''} titleSize="xs"