Trigger
This hook is triggered when:- A new proctoring incident is created (e.g., AI detection or manual flag).
- An incident’s status changes (e.g., from
TRIGGEREDtoRESOLVED). - Severity or Resolution Notes are updated by a proctor or administrator.
Sample Payload
Payload Definition
Event Envelope
| Field | Definition | Type | Notes |
|---|---|---|---|
event_type | Logical name of the emitted event. | String | incident.instance.create or incident.instance.updated |
meta.version | Schema version for the payload. | Integer | Current value: 1. |
meta.sent_at | Timestamp when the event was published. | ISO 8601 | Always present in UTC. |
Incident Payload
| Field | Definition | Type | Typical Values / Notes |
|---|---|---|---|
id | Unique identifier of the incident. | Integer | Positive auto-increment. |
description | Detailed incident narrative. | JSON | Null until rich-text notes are added. |
status | Lifecycle state of the incident. | Enum | TRIGGERED, RESOLVED, DISMISSED, REOPENED. |
severity | Impact level assigned. | Enum | LOW, MEDIUM, HIGH. |
start_time | When the incident began. | UTC Timestamp | Always populated. |
end_time | When the incident closed. | UTC Timestamp | Set when resolved or dismissed. |
resolution_notes | Post-incident summary. | JSON | Null until added by a responder. |
tenant_id | Owning tenant for scoping. | Integer | Maps to customer tenant identifier. |
created_at | Record creation time. | UTC Timestamp | Set automatically. |
updated_at | Last update time. | UTC Timestamp | Updates on every change. |
Session Snapshot
| Field | Definition | Type | Typical Values / Notes |
|---|---|---|---|
id | ID of the related session. | Integer | Internal primary key. |
uuid | Globally unique session ID. | UUID | Stable for the session lifetime. |
status | Session lifecycle status. | Enum | CREATED, IN_PROGRESS, PAUSED, STOPPED, SUSPENDED, COMPLETED. |
score | Assessment score. | Integer | Null until scoring completes. |
created_at | Session creation time. | UTC Timestamp | Set when provisioned. |
updated_at | Last session update time. | UTC Timestamp | Reflects most recent status/data change. |

