dp3.common.attrspec ¶
AttrType ¶
ObservationsHistoryParams ¶
Bases: BaseModel
History parameters field of observations attribute
TimeseriesTSParams ¶
Bases: BaseModel
Timeseries parameters field of timeseries attribute
TimeseriesSeries ¶
Bases: BaseModel
Series of timeseries attribute
AttrSpecGeneric ¶
Bases: SpecModel
Base of attribute specification
Parent of other AttrSpec
classes.
Attributes:
Name | Type | Description |
---|---|---|
ttl |
Optional[ParsedTimedelta]
|
Optional extension of TTL of the entity - will be ignored if lifetime setting does not match. |
AttrSpecClassic ¶
Bases: AttrSpecGeneric
Parent of non-timeseries AttrSpec
classes.
relation_to
property
¶
Returns linked entity id. Raises ValueError if attribute is not a link.
AttrSpecPlain ¶
AttrSpecReadOnly ¶
Bases: AttrSpecPlain
Read-only plain attribute specification. Used for internal attributes.
Source code in dp3/common/attrspec.py
AttrSpecObservations ¶
AttrSpecTimeseries ¶
Bases: AttrSpecGeneric
Timeseries attribute specification
Source code in dp3/common/attrspec.py
AttrSpec ¶
Factory for AttrSpec
classes