Attributes
AttributeSummary module-attribute ¶
AttributeSummary = Annotated[IntegerAttribute | FloatAttribute | BooleanAttribute | DateAttribute | NominalAttribute, Field(discriminator='type')]
Union type for all supported attribute summary structures.
This type is used as the return value for attribute summarization, where each attribute is represented by one of the specialized summary dataclasses depending on its inferred type.
The type field is used as a discriminator, enabling Pydantic to correctly parse the variant.
Possible variants
- IntegerAttribute
- FloatAttribute
- BooleanAttribute
- DateAttribute
- NominalAttribute
- References OCEL Managers Events
EventsManagerattribute_summary - References OCEL Managers Objects
ObjectsManagerattribute_summary
IntegerAttribute dataclass ¶
Summary information for an integer attribute.
Attributes:
| Name | Type | Description |
|---|---|---|
attribute | str | Name of the attribute. |
type | Literal['integer'] | The attribute’s inferred data type ("integer"). |
min | int | The minimum observed value. |
max | int | The maximum observed value. |
Source code in src/ocelescope/src/ocelescope/ocel/models/attributes.py
FloatAttribute dataclass ¶
Summary information for a floating-point numerical attribute.
Attributes:
| Name | Type | Description |
|---|---|---|
attribute | str | Name of the attribute. |
type | Literal['float'] | The attribute’s inferred data type ("float"). |
min | float | The minimum observed value. |
max | float | The maximum observed value. |
Source code in src/ocelescope/src/ocelescope/ocel/models/attributes.py
BooleanAttribute dataclass ¶
Summary information for a boolean attribute.
Attributes:
| Name | Type | Description |
|---|---|---|
attribute | str | Name of the attribute. |
type | Literal['boolean'] | The attribute’s inferred data type ("boolean"). |
true_count | int | Number of events or objects where the value was True. |
false_count | int | Number of events or objects where the value was False. |
Source code in src/ocelescope/src/ocelescope/ocel/models/attributes.py
DateAttribute dataclass ¶
Summary information for a date or timestamp attribute.
Attributes:
| Name | Type | Description |
|---|---|---|
attribute | str | Name of the attribute. |
type | Literal['date'] | The attribute’s inferred data type ("date"). |
min | str | The earliest observed value (ISO timestamp string). |
max | str | The latest observed value (ISO timestamp string). |
Source code in src/ocelescope/src/ocelescope/ocel/models/attributes.py
NominalAttribute dataclass ¶
Summary information for a categorical (nominal) attribute.
Attributes:
| Name | Type | Description |
|---|---|---|
attribute | str | Name of the attribute. |
type | Literal['nominal'] | The attribute’s inferred data type ("nominal"). |
num_unique | int | Number of distinct categories observed. |