Add API field and right for HeartbeatSeconds

This commit is contained in:
Jordan Brown
2020-05-10 21:27:21 -04:00
parent 72395d664d
commit 84a4f92fe5
2 changed files with 12 additions and 1 deletions
@@ -41,6 +41,12 @@ namespace Tgstation.Server.Api.Models.Internal
[Required]
public uint? StartupTimeout { get; set; }
/// <summary>
/// The number of seconds between each watchdog heartbeat. 0 disables.
/// </summary>
[Required]
public uint? HeartbeatSeconds { get; set; }
/// <summary>
/// Check if we match a given set of <paramref name="otherParameters"/>
/// </summary>
@@ -71,6 +71,11 @@ namespace Tgstation.Server.Api.Rights
/// <summary>
/// User can change <see cref="Models.Internal.DreamDaemonLaunchParameters.StartupTimeout"/>
/// </summary>
SetStartupTimeout = 2048
SetStartupTimeout = 2048,
/// <summary>
/// User can change <see cref="Models.Internal.DreamDaemonLaunchParameters.HeartbeatSeconds"/>
/// </summary>
SetHeartbeatInterval = 4096,
}
}