diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_overview/slo_overview_alerts.tsx b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_overview/slo_overview_alerts.tsx index 1edfba0fffb4e..cd2dff2a8d042 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_overview/slo_overview_alerts.tsx +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/components/slos_overview/slo_overview_alerts.tsx @@ -8,7 +8,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText, EuiTitle, EuiPanel } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import { GetOverviewResponse } from '@kbn/slo-schema/src/rest_specs/routes/get_overview'; +import { GetSLOStatsOverviewResponse } from '@kbn/slo-schema/src/rest_specs/routes/get_slo_stats_overview'; import { rulesLocatorID, RulesParams } from '@kbn/observability-plugin/public'; import { useAlertsUrl } from '../../../../hooks/use_alerts_url'; import { useKibana } from '../../../../hooks/use_kibana'; @@ -18,7 +18,7 @@ export function SLOOverviewAlerts({ data, isLoading, }: { - data?: GetOverviewResponse; + data?: GetSLOStatsOverviewResponse; isLoading: boolean; }) { const { diff --git a/x-pack/solutions/observability/plugins/slo/public/pages/slos/hooks/use_fetch_slos_overview.ts b/x-pack/solutions/observability/plugins/slo/public/pages/slos/hooks/use_fetch_slos_overview.ts index 4308b30571621..24d6cfdfc7e0c 100644 --- a/x-pack/solutions/observability/plugins/slo/public/pages/slos/hooks/use_fetch_slos_overview.ts +++ b/x-pack/solutions/observability/plugins/slo/public/pages/slos/hooks/use_fetch_slos_overview.ts @@ -6,7 +6,7 @@ */ import { buildQueryFromFilters, Filter } from '@kbn/es-query'; import { i18n } from '@kbn/i18n'; -import { GetOverviewResponse } from '@kbn/slo-schema/src/rest_specs/routes/get_overview'; +import { GetSLOStatsOverviewResponse } from '@kbn/slo-schema/src/rest_specs/routes/get_slo_stats_overview'; import { useQuery } from '@tanstack/react-query'; import { useMemo } from 'react'; import { SUMMARY_DESTINATION_INDEX_PATTERN } from '../../../../common/constants'; @@ -29,7 +29,7 @@ interface UseFetchSloGroupsResponse { isRefetching: boolean; isSuccess: boolean; isError: boolean; - data: GetOverviewResponse | undefined; + data: GetSLOStatsOverviewResponse | undefined; } export function useFetchSLOsOverview({