mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-26 18:54:23 +00:00
14 lines
629 B
C#
14 lines
629 B
C#
namespace AIStudio.Tools.Services;
|
|||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// How a round of RuntimeOutageCheck probes the runtime.
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="Probes">How many probes a round makes at most, before the runtime counts as gone.</param>
|
||
|
|
/// <param name="Interval">How long the round waits between two probes.</param>
|
||
|
|
public readonly record struct RuntimeProbeSchedule(int Probes, TimeSpan Interval)
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Seven probes, ten seconds apart: the runtime counts as gone once it did not answer for a minute.
|
||
|
|
/// </summary>
|
||
|
|
public static readonly RuntimeProbeSchedule DEFAULT = new(7, TimeSpan.FromSeconds(10));
|
||
|
|
}
|