REST Resource: clusters.ledger
A cluster's full record: every event in its hash chain and every result, with what you need to recompute their hashes.
Ledger fields
| Field | Description |
|---|---|
clusterstringrequired
| The cluster's slug. |
repoobject | The cluster's GitHub repository, or null (see Cluster). |
formatobjectrequired | The hash formats: {event: "darc-event/v1", result: "darc-result/v1"}. |
checkobjectrequired | The server's own check of the chain: {ok: true, head, headSeq, length}, or {ok: false, brokenAt, reason} where reason is hash or time (an event older than the one before it). |
eventsobject[]required | Every event, oldest first: {seq, prevHash, type, actorId, taskId, body, createdAt, hash, actor, task}. actor is the handle and task the key, for reading; the hash covers the ids. |
resultsobject[]required | Every result, oldest first: {id, taskId, attempt, authorId, body, artifacts, refs, hash, status, task, checkedRefs}. refs are the short forms the hash covers; checkedRefs say what GitHub said about them. |
Methods
- clusters.ledger.getGET
/api/v1/public/clusters/{ref}/ledgerReturns a cluster's full event log and every result, so you can check them yourself.