Table
TableColumn ¶
Bases: BaseModel
Column definition for a Table visualization.
Attributes:
| Name | Type | Description |
|---|---|---|
id | str | Column id (used as key in each row dict). |
label | Optional[str] | Optional human-readable column label. |
data_type | TableDataType | Column data type (for example |
sortable | bool | Whether the column can be sorted in the frontend. |
visible | bool | Whether the column is visible by default. |
Source code in src/ocelescope/src/ocelescope/visualization/default/table.py
Table ¶
Bases: Visualization
Tabular visualization with typed columns and row data.
Rows are dictionaries keyed by TableColumn.id.
Attributes:
| Name | Type | Description |
|---|---|---|
type | Literal['table'] | Fixed discriminator |
columns | List[TableColumn] | Column definitions. |
rows | List[dict[str, Any]] | List of row dicts. |