Occurrence
Type: object additionalProperties: false
| Field | Required | Type | Description and constraints |
|---|---|---|---|
id | Yes | string | format: "uuid" |
schedule_id | Yes | string | format: "uuid" |
trigger | Yes | OccurrenceTrigger | |
scheduled_at | Yes | string | Cron due time for a scheduled occurrence, or command acceptance time for a manual occurrence. This is not the execution start time. format: "date-time" |
state | Yes | OccurrenceState | |
created_at | Yes | string | format: "date-time" |
updated_at | Yes | string | format: "date-time" |
session_id | Yes | string / null | format: "uuid" |
run_id | Yes | string / null | format: "uuid" |
run_status | Yes | string / null | |
observed_at | Yes | string / null | format: "date-time" |
execution_started_at | Yes | string / null | format: "date-time" |
finished_at | Yes | string / null | format: "date-time" |
run_error_code | Yes | string / null | |
sync_error_code | Yes | string / null | |
error_code | Yes | string / null | |
attempts | Yes | integer | minimum: 0 |
next_attempt_at | Yes | 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"
}
}
}