Occurrence
Тип: object additionalProperties: false
| Поле | Обязательное | Тип | Описание и ограничения |
|---|---|---|---|
id | Да | string | format: "uuid" |
schedule_id | Да | string | format: "uuid" |
trigger | Да | OccurrenceTrigger | |
scheduled_at | Да | string | Плановое время по cron или время принятия ручной команды. Не является временем начала выполнения. format: "date-time" |
state | Да | OccurrenceState | |
created_at | Да | string | format: "date-time" |
updated_at | Да | string | format: "date-time" |
session_id | Да | string / null | format: "uuid" |
run_id | Да | string / null | format: "uuid" |
run_status | Да | string / null | |
observed_at | Да | string / null | format: "date-time" |
execution_started_at | Да | string / null | format: "date-time" |
finished_at | Да | string / null | format: "date-time" |
run_error_code | Да | string / null | |
sync_error_code | Да | string / null | |
error_code | Да | string / null | |
attempts | Да | integer | minimum: 0 |
next_attempt_at | Да | string / null | format: "date-time" |
JSON Schema
json
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"schedule_id",
"trigger",
"scheduled_at",
"state",
"created_at",
"updated_at",
"session_id",
"run_id",
"run_status",
"observed_at",
"execution_started_at",
"finished_at",
"run_error_code",
"sync_error_code",
"error_code",
"attempts",
"next_attempt_at"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"schedule_id": {
"type": "string",
"format": "uuid"
},
"trigger": {
"$ref": "#/components/schemas/OccurrenceTrigger"
},
"scheduled_at": {
"type": "string",
"format": "date-time",
"description": "Cron due time for a scheduled occurrence, or command acceptance time for a manual occurrence. This is not the execution start time."
},
"state": {
"$ref": "#/components/schemas/OccurrenceState"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"session_id": {
"type": "string",
"nullable": true,
"format": "uuid"
},
"run_id": {
"type": "string",
"nullable": true,
"format": "uuid"
},
"run_status": {
"type": "string",
"nullable": true
},
"observed_at": {
"type": "string",
"nullable": true,
"format": "date-time"
},
"execution_started_at": {
"type": "string",
"nullable": true,
"format": "date-time"
},
"finished_at": {
"type": "string",
"nullable": true,
"format": "date-time"
},
"run_error_code": {
"type": "string",
"nullable": true
},
"sync_error_code": {
"type": "string",
"nullable": true
},
"error_code": {
"type": "string",
"nullable": true
},
"attempts": {
"type": "integer",
"minimum": 0
},
"next_attempt_at": {
"type": "string",
"nullable": true,
"format": "date-time"
}
}
}