Skip to content

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:

NutrientsPoint pydantic-model

Bases: ApiModel

A dated fat/protein/carbs triplet (nutrients snapshot).

Fields:

NutrientsTableRow pydantic-model

Bases: ApiModel

Value/target macro pairs as shown in the nutrients snapshot table.

Fields:

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])