terra.models.v2.activity_sample

 1#  Copyright 2022 Terra Enabling Developers Limited
 2#
 3#  Licensed under the Apache License, Version 2.0 (the "License");
 4#  you may not use this file except in compliance with the License.
 5#  You may obtain a copy of the License at
 6#
 7#      http://www.apache.org/licenses/LICENSE-2.0
 8#
 9#  Unless required by applicable law or agreed to in writing, software
10#  distributed under the License is distributed on an "AS IS" BASIS,
11#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12#  See the License for the specific language governing permissions and
13#  limitations under the License.
14import dataclasses
15import typing
16
17from terra.models import base_model
18
19__all__ = ["ActivitySample"]
20
21
22@dataclasses.dataclass
23class ActivitySample(base_model.TerraDataModel):
24    timestamp: typing.Optional[str] = dataclasses.field(default=None)
25    active_duration_seconds: typing.Optional[int] = dataclasses.field(default=None)
26    altitude_in_meters: typing.Optional[float] = dataclasses.field(default=None)
27    calories: typing.Optional[float] = dataclasses.field(default=None)
28    distance_in_km: typing.Optional[float] = dataclasses.field(default=None)
29    heartrate_bpm: typing.Optional[float] = dataclasses.field(default=None)
30    coordinates_lat_lng: typing.List[float] = dataclasses.field(default_factory=list)
31    rep_count: typing.Optional[int] = dataclasses.field(default=None)
32    resting_duration_seconds: typing.Optional[int] = dataclasses.field(default=None)
33    speed_in_meters_per_seconds: typing.Optional[float] = dataclasses.field(default=None)
34    spo2_percentage: typing.Optional[float] = dataclasses.field(default=None)
35    status: typing.Optional[str] = dataclasses.field(default=None)
36    swimming_laps: typing.Optional[float] = dataclasses.field(default=None)
37    swimming_strokes: typing.Optional[int] = dataclasses.field(default=None)
38    vo2_volume_ml_per_min_per_kg: typing.Optional[float] = dataclasses.field(default=None)
39    vo2_max_volume_ml_per_min_per_kg: typing.Optional[float] = dataclasses.field(default=None)
@dataclasses.dataclass
class ActivitySample(terra.models.base_model.TerraDataModel):
23@dataclasses.dataclass
24class ActivitySample(base_model.TerraDataModel):
25    timestamp: typing.Optional[str] = dataclasses.field(default=None)
26    active_duration_seconds: typing.Optional[int] = dataclasses.field(default=None)
27    altitude_in_meters: typing.Optional[float] = dataclasses.field(default=None)
28    calories: typing.Optional[float] = dataclasses.field(default=None)
29    distance_in_km: typing.Optional[float] = dataclasses.field(default=None)
30    heartrate_bpm: typing.Optional[float] = dataclasses.field(default=None)
31    coordinates_lat_lng: typing.List[float] = dataclasses.field(default_factory=list)
32    rep_count: typing.Optional[int] = dataclasses.field(default=None)
33    resting_duration_seconds: typing.Optional[int] = dataclasses.field(default=None)
34    speed_in_meters_per_seconds: typing.Optional[float] = dataclasses.field(default=None)
35    spo2_percentage: typing.Optional[float] = dataclasses.field(default=None)
36    status: typing.Optional[str] = dataclasses.field(default=None)
37    swimming_laps: typing.Optional[float] = dataclasses.field(default=None)
38    swimming_strokes: typing.Optional[int] = dataclasses.field(default=None)
39    vo2_volume_ml_per_min_per_kg: typing.Optional[float] = dataclasses.field(default=None)
40    vo2_max_volume_ml_per_min_per_kg: typing.Optional[float] = dataclasses.field(default=None)

ActivitySample(timestamp: Optional[str] = None, active_duration_seconds: Optional[int] = None, altitude_in_meters: Optional[float] = None, calories: Optional[float] = None, distance_in_km: Optional[float] = None, heartrate_bpm: Optional[float] = None, coordinates_lat_lng: List[float] = , rep_count: Optional[int] = None, resting_duration_seconds: Optional[int] = None, speed_in_meters_per_seconds: Optional[float] = None, spo2_percentage: Optional[float] = None, status: Optional[str] = None, swimming_laps: Optional[float] = None, swimming_strokes: Optional[int] = None, vo2_volume_ml_per_min_per_kg: Optional[float] = None, vo2_max_volume_ml_per_min_per_kg: Optional[float] = None)

ActivitySample( timestamp: Optional[str] = None, active_duration_seconds: Optional[int] = None, altitude_in_meters: Optional[float] = None, calories: Optional[float] = None, distance_in_km: Optional[float] = None, heartrate_bpm: Optional[float] = None, coordinates_lat_lng: List[float] = <factory>, rep_count: Optional[int] = None, resting_duration_seconds: Optional[int] = None, speed_in_meters_per_seconds: Optional[float] = None, spo2_percentage: Optional[float] = None, status: Optional[str] = None, swimming_laps: Optional[float] = None, swimming_strokes: Optional[int] = None, vo2_volume_ml_per_min_per_kg: Optional[float] = None, vo2_max_volume_ml_per_min_per_kg: Optional[float] = None)
timestamp: Optional[str] = None
active_duration_seconds: Optional[int] = None
altitude_in_meters: Optional[float] = None
calories: Optional[float] = None
distance_in_km: Optional[float] = None
heartrate_bpm: Optional[float] = None
rep_count: Optional[int] = None
resting_duration_seconds: Optional[int] = None
speed_in_meters_per_seconds: Optional[float] = None
spo2_percentage: Optional[float] = None
status: Optional[str] = None
swimming_laps: Optional[float] = None
swimming_strokes: Optional[int] = None
vo2_volume_ml_per_min_per_kg: Optional[float] = None
vo2_max_volume_ml_per_min_per_kg: Optional[float] = None