diff --git a/seats/node-backup/seat.json b/seats/node-backup/seat.json index e9a8efe..a2b0ece 100644 --- a/seats/node-backup/seat.json +++ b/seats/node-backup/seat.json @@ -68,6 +68,70 @@ "class": "act" } ], + "events": [ + { + "name": "item-started", + "subject": "item-started...", + "keep": { + "max-age-days": 7, + "last-per-subject": true + }, + "body": { + "type": "object", + "description": "the holder started backing up one item of a module on its node, said before it reads the recovery module's restore-started and restored (design 47 G 554, 563)", + "required": [ + "at" + ], + "properties": { + "at": { + "type": "string", + "format": "date-time", + "description": "when the item started, RFC 3339" + } + } + } + }, + { + "name": "item-ended", + "subject": "item-ended...", + "keep": { + "max-age-days": 7, + "last-per-subject": true + }, + "body": { + "type": "object", + "description": "the holder ended one item: done, failed (error stopped for an item it said started and never ended, at its start) or put-off while a restore of the recovery module runs, the item started again when that restore's restored is heard (design 47 G 554, 563)", + "required": [ + "at", + "outcome" + ], + "properties": { + "at": { + "type": "string", + "format": "date-time", + "description": "when the item ended, RFC 3339" + }, + "outcome": { + "type": "string", + "enum": [ + "done", + "failed", + "put-off" + ], + "description": "how the item ended; a put-off item is that night's backup once it runs, neither failed nor missed" + }, + "restore": { + "type": "string", + "description": "with put-off, the act of the recovery module's restore the item gave way to" + }, + "error": { + "type": "string", + "description": "with failed, why, in words; stopped for an item ended at the holder's start" + } + } + } + } + ], "receives": [ { "kind": "backup",