Define archive control v1 protocol
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"protocolVersion": {
|
||||
"major": 1,
|
||||
"minor": 0
|
||||
},
|
||||
"messageId": "9c62fcda-5f83-4286-80cf-a628001e44d3",
|
||||
"sentAt": "2026-07-22T12:05:00Z",
|
||||
"command": {
|
||||
"commandId": "daf7ebaf-f3fa-4ff9-979e-1c0c95e08376",
|
||||
"createdAt": "2026-07-22T12:05:00Z",
|
||||
"assignJob": {
|
||||
"job": {
|
||||
"jobId": "5e76f086-79ed-41e5-9306-c4a0312e4d26",
|
||||
"idempotencyKey": "evict-confirmation-c9c04a",
|
||||
"operation": "JOB_OPERATION_EVICT_CACHE",
|
||||
"resourceId": {
|
||||
"infoHashV1Hex": "0123456789abcdef0123456789abcdef01234567"
|
||||
},
|
||||
"resourceDisplayName": "Resource A",
|
||||
"createdAt": "2026-07-22T12:05:00Z",
|
||||
"eviction": {
|
||||
"cacheClientId": "x1",
|
||||
"filesToEvict": {
|
||||
"ranges": [
|
||||
{
|
||||
"first": 0,
|
||||
"last": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"cachePlacementGeneration": "8",
|
||||
"archiveCoverage": [
|
||||
{
|
||||
"archiveClientId": "lithium",
|
||||
"coveredFiles": {
|
||||
"ranges": [
|
||||
{
|
||||
"first": 0,
|
||||
"last": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"placementGeneration": "4"
|
||||
},
|
||||
{
|
||||
"archiveClientId": "cold2",
|
||||
"coveredFiles": {
|
||||
"ranges": [
|
||||
{
|
||||
"first": 5,
|
||||
"last": 6
|
||||
}
|
||||
]
|
||||
},
|
||||
"placementGeneration": "2"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"expectedLastEventSequence": "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user