feat: complete cmpp gateway delivery recovery workflows
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
"queuePriority",
|
||||
"route",
|
||||
"cmpp",
|
||||
"upstream",
|
||||
"retry"
|
||||
],
|
||||
"properties": {
|
||||
@@ -78,6 +79,19 @@
|
||||
"feeType": { "type": "string" }
|
||||
}
|
||||
},
|
||||
"upstream": {
|
||||
"type": "object",
|
||||
"required": ["gatewayHost", "gatewayPort", "account", "passwordCipher", "cmppVersion"],
|
||||
"properties": {
|
||||
"gatewayHost": { "type": "string", "minLength": 1 },
|
||||
"gatewayPort": { "type": "integer", "minimum": 1, "maximum": 65535 },
|
||||
"account": { "type": "string", "minLength": 1 },
|
||||
"passwordCipher": { "type": "string", "minLength": 1 },
|
||||
"cmppVersion": { "enum": ["2.0", "3.0"] },
|
||||
"desiredConnections": { "type": "integer", "minimum": 1, "maximum": 32 },
|
||||
"windowSize": { "type": "integer", "minimum": 1, "maximum": 1024 }
|
||||
}
|
||||
},
|
||||
"retry": {
|
||||
"type": "object",
|
||||
"required": ["attempt", "maxAttempts"],
|
||||
@@ -103,7 +117,24 @@
|
||||
"submitStatus": { "enum": ["accepted", "rejected", "timeout"] },
|
||||
"errorCode": { "type": "string" },
|
||||
"errorMessage": { "type": "string" },
|
||||
"submittedAt": { "type": "string", "format": "date-time" }
|
||||
"submittedAt": { "type": "string", "format": "date-time" },
|
||||
"segments": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["segmentTotal", "segmentIndex", "sequenceId", "gatewayMessageId", "submitStatus", "submittedAt"],
|
||||
"properties": {
|
||||
"segmentTotal": { "type": "integer", "minimum": 1 },
|
||||
"segmentIndex": { "type": "integer", "minimum": 1 },
|
||||
"sequenceId": { "type": "integer", "minimum": 0 },
|
||||
"gatewayMessageId": { "type": "string", "minLength": 1 },
|
||||
"submitStatus": { "enum": ["accepted", "rejected", "timeout"] },
|
||||
"errorCode": { "type": "string" },
|
||||
"errorMessage": { "type": "string" },
|
||||
"submittedAt": { "type": "string", "format": "date-time" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user