kaloricketabulky.sdk.models.snapshot¶
kaloricketabulky.sdk.models.snapshot
¶
Long-term statistic snapshots (energy, nutrients, drink, weight, optional).
SnapshotType
¶
Bases: StrEnum
The statistic kind requested from /statistic/{type}/.../get.
SnapshotTableRow
pydantic-model
¶
Bases: ApiModel
A value/target pair as shown in the snapshot table.
Fields:
-
value(MeasurementPoint | None) -
target(MeasurementPoint | None)
NutrientsPoint
pydantic-model
¶
Bases: ApiModel
A dated fat/protein/carbs triplet (nutrients snapshot).
Fields:
-
created_date(EpochDateTime) -
fat(MeasurementPoint | None) -
protein(MeasurementPoint | None) -
carbs(MeasurementPoint | None)
NutrientsTableRow
pydantic-model
¶
Bases: ApiModel
Value/target macro pairs as shown in the nutrients snapshot table.
Fields:
-
fat_target(MeasurementPoint | None) -
protein_target(MeasurementPoint | None) -
carbs_target(MeasurementPoint | None) -
fat_value(MeasurementPoint | None) -
protein_value(MeasurementPoint | None) -
carbs_value(MeasurementPoint | None)
Snapshot
pydantic-model
¶
Bases: ApiModel
One statistic series over a date range.
Flat metrics (energy/drink/weight) use values/target/table_data; the
nutrients metric uses the nutrients_* triplets instead. The type field is
the metric name, or the custom metric label for optional snapshots.
Fields:
-
type(str) -
unit(str | None) -
valid_from(EpochDateTime) -
valid_to(EpochDateTime) -
guid(str | None) -
min(float | None) -
max(float | None) -
values(_PointList) -
target(_PointList) -
table_data(list[SnapshotTableRow]) -
nutrients_values(list[NutrientsPoint]) -
nutrients_target(list[NutrientsPoint]) -
nutrients_table_data(list[NutrientsTableRow])