Methods
list
Query events with flexible filtering options.Parameters
Filter events by recording ID
Filter events by device ID
Filter events by type (e.g., “safety”, “anomaly”, “detection”)
Filter events by severity level (e.g., “low”, “medium”, “high”, “critical”)
Maximum number of events to return per page
Pagination cursor for fetching the next page
Returns
List of event objects
Unique event identifier
Recording ID this event belongs to
Device ID that created this event
Event type category
Human-readable event label
Detailed event description
When the event occurred
Event duration in milliseconds
Event severity level
Tags associated with the event
Custom metadata dictionary
Event creation timestamp
Last update timestamp
Whether more results are available
Cursor for fetching the next page
create
Create a new event for a recording.Parameters
ID of the recording this event belongs to
ID of the device that generated this event
Short, human-readable label for the event
Event type category
ISO 8601 timestamp when the event occurred
Severity level (e.g., “low”, “medium”, “high”, “critical”)
Detailed description of the event
Duration of the event in milliseconds
Tags for categorizing the event
Custom metadata as key-value pairs
Returns
Returns aFleetEvent object with all fields populated.
create_batch
Create multiple events in a single request for better performance.Parameters
List of event parameter dictionaries. Each event must have:
recording(string, required): Recording IDdevice(string, required): Device IDlabel(string, required): Event labeltype(string, required): Event typetimestamp(string, required): ISO 8601 timestampseverity(string, optional): Severity leveldescription(string, optional): Descriptionduration_ms(integer, optional): Duration in millisecondstags(list[string], optional): Tagsmetadata(dict, optional): Custom metadata
Returns
Returns an integer representing the number of events successfully created.get
Retrieve details for a specific event.Parameters
The unique identifier of the event
Returns
Returns aFleetEvent object.
delete
Permanently delete an event.Parameters
The unique identifier of the event to delete
Returns
ReturnsNone on success.