feat(api): ApplicationInWorkValidator добававлена валидация настроек планировщика

This commit is contained in:
Mikhail Kuznetsov
2024-03-28 16:21:22 +10:00
parent 81123a5424
commit 2042db8d4b
3 changed files with 64 additions and 3 deletions

View File

@@ -23,5 +23,21 @@
public int? AgentTimeOutSec { get; set; }
public string? AgentScript { get; set; }
public required ScheduleRequest Schedule { get; set; }
}
public class ScheduleRequest
{
public DateTimeOffset NextRun { get; set; }
//public DateTimeOffset? LastRun { get; set; }
//public string Timezone { get; set; } = string.Empty;
public required int TypeScheduleId { get; set; }
public List<Guid> Values { get; set; } = new List<Guid>();
}
}