Add healthcheck for fiveMin/four hours
This commit is contained in:
@@ -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<Dictionary<string, object>>();
|
||||
|
||||
Reference in New Issue
Block a user