From fcd65bd3edbfe0455aac8793226470270a1424db Mon Sep 17 00:00:00 2001 From: Justin Kambic Date: Tue, 26 Nov 2024 09:07:13 -0500 Subject: [PATCH] Fix regression that ignores stale SLO settings. --- .../slo/server/services/get_slos_overview.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/observability_solution/slo/server/services/get_slos_overview.ts b/x-pack/plugins/observability_solution/slo/server/services/get_slos_overview.ts index 9f4abd0764263..fcc94072c7bb4 100644 --- a/x-pack/plugins/observability_solution/slo/server/services/get_slos_overview.ts +++ b/x-pack/plugins/observability_solution/slo/server/services/get_slos_overview.ts @@ -57,7 +57,7 @@ export class GetSLOsOverview { filter: { range: { summaryUpdatedAt: { - lt: 'now-48h', + lt: `now-${settings.staleThresholdInHours}h`, }, }, }, @@ -66,7 +66,7 @@ export class GetSLOsOverview { filter: { range: { summaryUpdatedAt: { - gte: 'now-48h', + gte: `now-${settings.staleThresholdInHours}h`, }, }, },