namespace OrpaonVision.Core.Training.Contracts;
///
/// 创建运行时部署快照结果。
///
public sealed class CreateRuntimeDeploymentSnapshotResultDto
{
///
/// 快照ID。
///
public Guid SnapshotId { get; init; }
///
/// 快照名称。
///
public string Name { get; init; } = string.Empty;
///
/// 创建状态。
///
public RuntimeDeploymentSnapshotOperationStatus Status { get; init; }
///
/// 操作消息。
///
public string Message { get; init; } = string.Empty;
///
/// 创建时间(UTC)。
///
public DateTime CreatedAtUtc { get; init; }
///
/// 创建者。
///
public string CreatedBy { get; init; } = string.Empty;
}
///
/// 激活运行时部署快照结果。
///
public sealed class ActivateRuntimeDeploymentSnapshotResultDto
{
///
/// 快照ID。
///
public Guid SnapshotId { get; init; }
///
/// 激活状态。
///
public RuntimeDeploymentSnapshotOperationStatus Status { get; init; }
///
/// 操作消息。
///
public string Message { get; init; } = string.Empty;
///
/// 前一个激活的快照ID。
///
public Guid? PreviousSnapshotId { get; init; }
///
/// 激活时间(UTC)。
///
public DateTime ActivatedAtUtc { get; init; }
///
/// 激活者。
///
public string ActivatedBy { get; init; } = string.Empty;
}
///
/// 回滚到运行时部署快照结果。
///
public sealed class RollbackToRuntimeDeploymentSnapshotResultDto
{
///
/// 目标快照ID。
///
public Guid TargetSnapshotId { get; init; }
///
/// 回滚前快照ID。
///
public Guid? PreviousSnapshotId { get; init; }
///
/// 回滚状态。
///
public RuntimeDeploymentSnapshotOperationStatus Status { get; init; }
///
/// 操作消息。
///
public string Message { get; init; } = string.Empty;
///
/// 回滚时间(UTC)。
///
public DateTime RolledBackAtUtc { get; init; }
///
/// 回滚者。
///
public string RolledBackBy { get; init; } = string.Empty;
}
///
/// 运行时部署快照操作状态。
///
public enum RuntimeDeploymentSnapshotOperationStatus
{
///
/// 操作中。
///
InProgress,
///
/// 成功。
///
Succeeded,
///
/// 失败。
///
Failed,
///
/// 部分成功。
///
PartiallySucceeded
}