public ConsecutiveHealthMonitor(IClock clock, IWatchdogStatusGetter watchdogStatusGetter, IOptions <WatchdogHealthzOptions> options) { this.clock = clock; this.watchdogStatusGetter = watchdogStatusGetter; this.firstHealthyProbe = new Dictionary <PodIdentifier, DateTimeOffset>(); this.minTimeHealthy = TimeSpan.FromSeconds(options.Value.MinReadySeconds.GetValueOrDefault()); }
public GetWatchdogService(IWatchdogStatusGetter watchdogStatusGetter, IOptions <PodIdentifierOptions> podIdentifier) { this.watchdogStatusGetter = watchdogStatusGetter; this.pod = podIdentifier; }