This data type defines exercise data of the user.
Property | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
"datauuid" | string | [Mandatory] Unique ID for each health data. This value should be format of UUID, the 32 hexadecimal digits displayed in five groups separated by hyphens in the form 8-4-4-4-12. It is highly encouraged to generate it using random UUID generator.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"create_time" | long | [Mandatory] UTC milliseconds when a data is created in the health data store. It is different with "start_time" that indicates the start time for measurement.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"update_time" | long | [Mandatory] UTC milliseconds when a data is updated. You don't need to set its value. When a new data is inserted, it is assigned as the same value with "create_time" by the system. Then it is replaced to the updated time by the system if existing health data is updated.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"pkg_name" | string | [Mandatory] Package name which provides a data. You don't need to set its value because it is assigned by the system when a new data is inserted.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"deviceuuid" | string | [Mandatory] Device identifier of the source device which provides a health data.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"start_time" | long | [Mandatory] UTC milliseconds when the measurement is started. "time_off" needs to set for showing the data's measured time properly.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"end_time" | long | [Mandatory] UTC milliseconds after the measurement has ended. "time_off" needs to set for showing the data's measured time properly.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"time_offset" | long | [Mandatory] Time offset in milliseconds which considers the time zone and daylight saving time. E.g. Tehran (UTC+3:30) is presented as 12600000 (3.5 * 60 * 60 * 1000). It affects to "start_time" to show the measured time properly to the user.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"calorie" | float | [Mandatory] Burned calorie during the activity in kilocalories.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"duration" | long | [Mandatory] Duration of this exercise in milliseconds.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"exercise_type" | int | Predefined exercise type. Your application's exercise data is shown on Samsung Health if the data sets this value.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"exercise_custom_type" | text | Custom exercise type. Define its value as FQDN, e.g. "com.yourcompany.exercise.type.exercise_name". This property has to be used only when you cannot find a required exercise type in predefined types. If this custom type is used, set the value of EXERCISE_TYPE as 0. Your custom health data is inserted to the health data store but it is not shown in Samsung Health.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"distance" | float | Distance covered during the exercise in meters.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"altitude_gain" | long | Duration of this exercise in milliseconds.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"altitude_loss" | float | Decreased altitude during the activity in meters.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"count" | int | Count of a repetitive action, such as the revolution count of the bicycle pedal or striding count of a runner or walker.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"count_type" | int | Type of the count.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"max_speed" | float | Maximum speed in meters per second.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"mean_speed" | float | Mean speed in meters per second.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"max_caloricburn_rate" | float | Maximum rate of burned calories in kilocalories per hour.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"mean_caloricburn_rate" | float | Mean rate of burned calories in kilocalories per hour.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"max_cadence" | float | Maximum cadence rate per minute.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"mean_cadence" | float | Mean cadence rate per minute.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"max_heart_rate" | float | Maximum heart rate per minute.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"mean_heart_rate" | float | Mean heart rate per minute.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"min_heart_rate" | float | Minimum heart rate per minute.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"max_altitude" | float | Maximum altitude in meters.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"min_altitude" | float | Minimum altitude in meters.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"incline_distance" | float | Uphill distance during the activity in meters.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"decline_distance" | float | Downhill distance during the activity in meters.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"max_power" | float | Maximum power in watts.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"mean_power" | float | Mean power in watts.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
max_rpm" | float | Max RPM (Revolutions Per Minute).
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"mean_rpm" | float | Mean RPM (Revolutions Per Minute).
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"live_data" | blob | Live data (e.g. heart rate, speed, power, and so on) during exercise which is formatted with JSON and compressed data.
E.g. Samsung Health starts the exercise data record when the user starts a specified exercise. It makes several segments to live data for each specific period. When the user tabs the 'stop' button finally it finishes the exercise data record. Each segment is composed of the following JSON keys.
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"location_data" | blob | Location (trajectory) data during exercise which is formatted with JSON and compressed data. It follows WGS 84.
Each segment is composed of the following JSON Keys
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"additional" | Additional info to express exercise's details. It is formatted with JSON and compressed data. It's different for each exercise kind. Swimming's Additional Info Swimming's detailed information is defined with the following JSON keys.
A length is the distance from one end of a swimming pool to the other.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"comment" | string | Comment for data.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
"custom" | blob | Custom info which is formatted with JSON and compressed data. |