Skip to content

dp3.api.internal.models

EntityId module-attribute

EntityId = Annotated[Union[tuple(entity_id_models)], Field(discriminator='type')]

Dummy model for entity id

Attributes:

Name Type Description
type

Entity type

id

Entity ID

DataPoint

Bases: BaseModel

Data-point for API

Contains single raw data value received on API. This is generic class for plain, observation and timeseries datapoints.

Provides front line of validation for this data value.

This differs slightly compared to DataPoint from DP3 in naming of attributes due to historic reasons.

After validation of this schema, datapoint is validated using attribute-specific validator to ensure full compilance.