Rename Feedser to Concelier
This commit is contained in:
29
src/StellaOps.Concelier.WebService/Jobs/JobRunResponse.cs
Normal file
29
src/StellaOps.Concelier.WebService/Jobs/JobRunResponse.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using StellaOps.Concelier.Core.Jobs;
|
||||
|
||||
namespace StellaOps.Concelier.WebService.Jobs;
|
||||
|
||||
public sealed record JobRunResponse(
|
||||
Guid RunId,
|
||||
string Kind,
|
||||
JobRunStatus Status,
|
||||
string Trigger,
|
||||
DateTimeOffset CreatedAt,
|
||||
DateTimeOffset? StartedAt,
|
||||
DateTimeOffset? CompletedAt,
|
||||
string? Error,
|
||||
TimeSpan? Duration,
|
||||
IReadOnlyDictionary<string, object?> Parameters)
|
||||
{
|
||||
public static JobRunResponse FromSnapshot(JobRunSnapshot snapshot)
|
||||
=> new(
|
||||
snapshot.RunId,
|
||||
snapshot.Kind,
|
||||
snapshot.Status,
|
||||
snapshot.Trigger,
|
||||
snapshot.CreatedAt,
|
||||
snapshot.StartedAt,
|
||||
snapshot.CompletedAt,
|
||||
snapshot.Error,
|
||||
snapshot.Duration,
|
||||
snapshot.Parameters);
|
||||
}
|
||||
Reference in New Issue
Block a user