#region ========================================================================= USING =====================================================================================
using Lumina.Domain.SharedKernel.Common.Enums.Scheduling;
using System;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.Responses.Scheduling;
///
/// Represents an execution of the task of a scheduled job.
///
/// The unique identifier of the execution.
/// The unique identifier of the scheduled job whose task was executed.
/// The type of the task that was executed.
/// when the execution was triggered by the execution cycle of the scheduled job, when it was a one time execution.
/// The date and time when the execution started.
/// The optional date and time when the execution completed.
[DebuggerDisplay("Id: {Id}; ScheduledJobId: {ScheduledJobId}")]
public record ScheduledJobExecutionResponse(
Guid Id,
Guid ScheduledJobId,
ScheduledTaskType TaskType,
bool IsCycleRun,
DateTime StartedOnUtc,
DateTime? CompletedOnUtc
);