air_sdk.endpoints.history
air_sdk.endpoints.history
Classes
Module Contents
Bases: air_sdk.air_model.AirModel
Represents a history entry in the Air API.
History entries track actions and events for Air resources (simulations, nodes, etc.). They are immutable and read-only - history is created automatically by the Air API.
History entries cannot be created, updated, or deleted via the SDK. They are automatically generated by the Air API.
ID of the entity this history entry is about (e.g., a simulation ID)
Type of entity being tracked (e.g., ‘simulation’)
Timestamp when the history entry was created
Email or identifier of the user who performed the action
Human-readable description of what happened
Category of the event. Values: ‘INFO’, ‘ERROR’
Returns the respective AirModelAPI type for this model
Refresh the history entry.
History entries are read-only and created automatically by the Air API. They cannot be modified or refreshed.
Raises:
NotImplementedError– History entries are immutable and cannot be refreshed
Bases: air_sdk.endpoints.mixins.ListApiMixin[air_sdk.endpoints.history.History], air_sdk.air_model.BaseEndpointAPI[air_sdk.endpoints.history.History]
API for querying history entries.
History entries are read-only records of actions and events for Air resources. Use this endpoint to track changes and audit activity.
This endpoint only supports list() operations. History entries cannot be created, updated, or deleted via the API.
List history entries with optional filtering and pagination.
Parameters:
model– Entity type to get history for (required). Values: ‘simulation’object_id– Filter by the ID of the entity being tracked (e.g., a specific simulation’s ID)actor– Filter by actor email or identifiercategory– Filter by event category. Values: ‘INFO’, ‘ERROR’search– Search for substrings in actor or description fieldsordering– Order by field (prefix with ’-’ for descending). Available fields: actor, category, created, model, object_idlimit– Maximum number of results to return per pageoffset– Number of results to skip (for pagination)
Yields:
History instances
Example: