Event
Estrutura de dados do contrato OpenAPI.
Estrutura de dados do contrato OpenAPI.
Campos
| Campo | Tipo | Presença | Descrição |
|---|---|---|---|
id | string | obrigatório | Formato: uuid |
seq | integer | obrigatório | — |
type | string | obrigatório | — |
payload | object | obrigatório | Evento interno; o envelope HTTP entregue ao consumidor é uma projeção. Ver EVENTS.md. |
createdAt | string | obrigatório | RFC 3339. Formato: date-time |
attempts | integer | obrigatório | — |
status | string | obrigatório | Valores: "pending", "delivered", "dead" |
deliveredAt | string | opcional | RFC 3339. Formato: date-time |
deadAt | string | opcional | RFC 3339. Formato: date-time |
lastAttemptAt | string | opcional | RFC 3339. Formato: date-time |
lastStatus | integer | opcional | — |
lastError | string | opcional | — |
nextAttemptAt | string | opcional | RFC 3339. Formato: date-time |
Definição OpenAPI
json
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"seq": {
"type": "integer"
},
"type": {
"type": "string"
},
"payload": {
"type": "object",
"description": "Evento interno; o envelope HTTP entregue ao consumidor é uma projeção. Ver EVENTS.md."
},
"createdAt": {
"type": "string",
"description": "RFC 3339.",
"format": "date-time"
},
"attempts": {
"type": "integer"
},
"status": {
"type": "string",
"enum": [
"pending",
"delivered",
"dead"
]
},
"deliveredAt": {
"type": "string",
"description": "RFC 3339.",
"format": "date-time"
},
"deadAt": {
"type": "string",
"description": "RFC 3339.",
"format": "date-time"
},
"lastAttemptAt": {
"type": "string",
"description": "RFC 3339.",
"format": "date-time"
},
"lastStatus": {
"type": "integer"
},
"lastError": {
"type": "string"
},
"nextAttemptAt": {
"type": "string",
"description": "RFC 3339.",
"format": "date-time"
}
},
"required": [
"id",
"seq",
"type",
"payload",
"createdAt",
"attempts",
"status"
]
}