up
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace StellaOps.Policy.Engine.Orchestration;
|
||||
|
||||
internal sealed record WorkerResultItem(
|
||||
[property: JsonPropertyName("component_purl")] string ComponentPurl,
|
||||
[property: JsonPropertyName("advisory_id")] string AdvisoryId,
|
||||
[property: JsonPropertyName("status")] string Status,
|
||||
[property: JsonPropertyName("trace_ref")] string TraceRef);
|
||||
|
||||
internal sealed record WorkerRunResult(
|
||||
[property: JsonPropertyName("job_id")] string JobId,
|
||||
[property: JsonPropertyName("worker_id")] string WorkerId,
|
||||
[property: JsonPropertyName("started_at")] DateTimeOffset StartedAt,
|
||||
[property: JsonPropertyName("completed_at")] DateTimeOffset CompletedAt,
|
||||
[property: JsonPropertyName("results")] IReadOnlyList<WorkerResultItem> Results,
|
||||
[property: JsonPropertyName("result_hash")] string ResultHash);
|
||||
|
||||
internal sealed record WorkerRunRequest(
|
||||
[property: JsonPropertyName("job_id")] string JobId,
|
||||
[property: JsonPropertyName("worker_id")] string? WorkerId = null);
|
||||
Reference in New Issue
Block a user