From b475db499fdb7d000132b0767982f5905bf97cf9 Mon Sep 17 00:00:00 2001 From: cryptooda Date: Mon, 15 Sep 2025 11:22:04 +0700 Subject: [PATCH] Add healthcheck for fiveMin/four hours --- src/Managing.Api/HealthChecks/CandleDataHealthCheck.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Managing.Api/HealthChecks/CandleDataHealthCheck.cs b/src/Managing.Api/HealthChecks/CandleDataHealthCheck.cs index 1b1c740c..ca4881ab 100644 --- a/src/Managing.Api/HealthChecks/CandleDataHealthCheck.cs +++ b/src/Managing.Api/HealthChecks/CandleDataHealthCheck.cs @@ -24,9 +24,11 @@ namespace Managing.Api.HealthChecks // Define timeframes to check with their appropriate start dates and expected freshness var timeframeChecks = new[] { - (timeframe: Timeframe.FifteenMinutes, startDate: now.AddDays(-1), maxAgeMins: 30.0), - (timeframe: Timeframe.OneHour, startDate: now.AddDays(-3), maxAgeMins: 120.0), - (timeframe: Timeframe.OneDay, startDate: now.AddDays(-30), maxAgeMins: 1440.0) + (timeframe: Timeframe.FiveMinutes, startDate: now.AddDays(-1), maxAgeMins: 7), + (timeframe: Timeframe.FifteenMinutes, startDate: now.AddDays(-1), maxAgeMins: 17), + (timeframe: Timeframe.OneHour, startDate: now.AddDays(-3), maxAgeMins: 62), + (timeframe: Timeframe.FourHour, startDate: now.AddDays(-7), maxAgeMins: 242), + (timeframe: Timeframe.OneDay, startDate: now.AddDays(-30), maxAgeMins: 1442) }; var results = new List>();