diff --git a/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate/burn_rates.tsx b/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate_panel/burn_rate_panel.tsx similarity index 98% rename from x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate/burn_rates.tsx rename to x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate_panel/burn_rate_panel.tsx index 545c462dc53c9..a68601877e768 100644 --- a/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate/burn_rates.tsx +++ b/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate_panel/burn_rate_panel.tsx @@ -20,7 +20,7 @@ interface Props { isAutoRefreshing?: boolean; } -export function BurnRates({ slo, isAutoRefreshing }: Props) { +export function BurnRatePanel({ slo, isAutoRefreshing }: Props) { const burnRateWindows = useFetchBurnRateWindows(slo); const [selectedWindow, setSelectedwindow] = useState(burnRateWindows[0]); const { isLoading, data } = useFetchSloBurnRates({ diff --git a/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate/burn_rate.test.tsx b/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate_panel/burn_rate_status.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate/burn_rate.test.tsx rename to x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate_panel/burn_rate_status.test.tsx diff --git a/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate/burn_rate_status.tsx b/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate_panel/burn_rate_status.tsx similarity index 100% rename from x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate/burn_rate_status.tsx rename to x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/burn_rate_panel/burn_rate_status.tsx diff --git a/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/slo_details.tsx b/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/slo_details.tsx index 6078fee023f92..498123b0d633c 100644 --- a/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/slo_details.tsx +++ b/x-pack/plugins/observability_solution/slo/public/pages/slo_details/components/slo_details.tsx @@ -9,7 +9,7 @@ import { EuiFlexGroup } from '@elastic/eui'; import { SLOWithSummaryResponse } from '@kbn/slo-schema'; import moment from 'moment'; import React, { useEffect, useState } from 'react'; -import { BurnRates } from './burn_rate/burn_rates'; +import { BurnRatePanel } from './burn_rate_panel/burn_rate_panel'; import { EventsChartPanel } from './events_chart_panel'; import { HistoricalDataCharts } from './historical_data_charts'; import { SLODetailsHistory } from './history/slo_details_history'; @@ -68,7 +68,7 @@ export function SloDetails({ slo, isAutoRefreshing, selectedTabId }: Props) { - + { useEffect(() => { if (!isLoading && rules && rules[sloId]) { setBurnRateWindows( - rules[sloId][0].params?.windows?.map((window) => ({ + rules[sloId][0]?.params?.windows?.map((window) => ({ name: window.actionGroup, threshold: window.burnRateThreshold, longWindow: window.longWindow,