Add healthcheck for fiveMin/four hours

This commit is contained in:
2025-09-15 11:22:04 +07:00
parent 7d9263ccf6
commit b475db499f

View File

@@ -24,9 +24,11 @@ namespace Managing.Api.HealthChecks
// Define timeframes to check with their appropriate start dates and expected freshness // Define timeframes to check with their appropriate start dates and expected freshness
var timeframeChecks = new[] var timeframeChecks = new[]
{ {
(timeframe: Timeframe.FifteenMinutes, startDate: now.AddDays(-1), maxAgeMins: 30.0), (timeframe: Timeframe.FiveMinutes, startDate: now.AddDays(-1), maxAgeMins: 7),
(timeframe: Timeframe.OneHour, startDate: now.AddDays(-3), maxAgeMins: 120.0), (timeframe: Timeframe.FifteenMinutes, startDate: now.AddDays(-1), maxAgeMins: 17),
(timeframe: Timeframe.OneDay, startDate: now.AddDays(-30), maxAgeMins: 1440.0) (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<Dictionary<string, object>>(); var results = new List<Dictionary<string, object>>();