Partager via


SessionEntry (JSON)

Contains data for a fitness session.

SessionEntry

The SessionEntry object has the following specification.

Member Type Description
durationInSeconds 32-bit signed integer Duration—in seconds—of the session.
joules 32-bit signed integer Energy—in joules—burned in the session.
met single-precision floating-point number Average met value over the session duration. The MET value is the ratio of an individual's metabolic rate during an activity relative to the individual's metabolic rate at rest. Because the metabolic rate for resting is 1.0 regardless of an individual's weight, and MET values are relative to an individual's resting metabolic rate, they can be used to compare the intensity of an activity being performed by individuals of different weights.
serverTimestamp DateTime Time—based on UTC—entry was entered on server.
source 8-bit unsigned integer Session source.
timestamp DateTime Time—based on Coordinated Universal Time (UTC)—entry was created on the client.
titleId 64-bit unsigned integer Title—in decimal—that created the entry.

Sample JSON syntax

{
   "titleId" : "1234567",
   "timestamp" : "2011-11-18T08:08:46Z",
   "serverTimestamp" : "2011-11-20T04:04:23Z",
   "durationInSeconds" : 240,
   "joules" :  1600,
   "met" :  "124"
   "source" :  "1"
}
    

See also

Parent

JavaScript Object Notation (JSON) Object Reference