Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Dec 2, 2024
1 parent 643e04f commit 7758052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,7 @@ const MemoAlertSummaryWidget = React.memo(
<AlertSummaryWidget
chartProps={chartProps}
ruleTypeIds={INFRA_RULE_TYPE_IDS}
consumers={[
AlertConsumers.INFRASTRUCTURE,
AlertConsumers.ALERTS,
AlertConsumers.OBSERVABILITY,
]}
consumers={INFRA_ALERT_CONSUMERS}
filter={alertsQuery}
fullSize
timeRange={summaryTimeRange}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import React from 'react';
import { EuiIcon, EuiLoadingSpinner, EuiBadge, EuiToolTip } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { AlertConsumers } from '@kbn/rule-data-utils';
import { INFRA_ALERT_CONSUMERS } from '../../../../../../common/constants';
import { INFRA_RULE_TYPE_IDS } from '../../../../../../common/alerting/metrics/types';
import { useAlertsCount } from '../../../../../hooks/use_alerts_count';
import { useAlertsQuery } from '../../hooks/use_alerts_query';
Expand All @@ -17,7 +17,7 @@ export const AlertsTabBadge = () => {

const { alertsCount, loading, error } = useAlertsCount({
ruleTypeIds: INFRA_RULE_TYPE_IDS,
consumers: [AlertConsumers.INFRASTRUCTURE, AlertConsumers.ALERTS, AlertConsumers.OBSERVABILITY],
consumers: INFRA_ALERT_CONSUMERS,
query: alertsEsQuery,
});

Expand Down

0 comments on commit 7758052

Please sign in to comment.