Raw Data
DataModels Raw iOS
Raw Activity
Api MetricActivityApi
Data structure
public final class MetricActivity: Object {
@objc public dynamic var id: String = ""
@objc public dynamic var timestamp: String = ""
@objc public dynamic var date: Date = Date()
@objc public dynamic var bpm: Int = 0
@objc public dynamic var bpmQ: Int = 0
@objc public dynamic var lastSteps: Int = 0
@objc public dynamic var activityType: Int = 0
@objc public dynamic var speed: Int = 0
@objc public dynamic var skinProximity: Int = 0
@objc public dynamic var energyExp: Int = 0
@objc public dynamic var respirationRate: Int = 0
@objc public dynamic var respirationRateQuality: Int = 0
@objc public dynamic var temp1: Double = 0.0 // Core body temprature
@objc public dynamic var temp2: Double = 0.0 // Skin temprature
@objc public dynamic var pha: Int = 0 // stress_level_HRM
@objc public dynamic var phaQ: Int = 0 // stress_level_HRM quality
@objc public dynamic var wearing: Int = 0 // 0-4 - (0 means not wearing, and 4 means worn on the wrist)
@objc public dynamic var batteryLevel: Int = 0
@objc public dynamic var spo2: Int = 0 // only V2 bracelet
@objc public dynamic var spo2Quality: Int = 0 // only V2 bracelet
@objc public dynamic var syncedCloud: Bool = false // internal use
@objc public dynamic var bpmUpdated: Bool = true // internal use
@objc public dynamic var breathUpdated: Bool = true // internal use
@objc public dynamic var bodytempUpdated: Bool = true // internal use
@objc public dynamic var activityUpdated: Bool = true // internal use
}
Raw PPG
Data structure
public class MetricPPG: Object, Uploadable {
@Persisted public var id: String = ""
@Persisted public var timestamp: Int = 0
@Persisted public var date: String = ""
@Persisted public var ppg: Int = 0
@Persisted public var acc: Int = 0
@Persisted public var bpm: Int = 0
@Persisted public var bpmQ: Int = 0
@Persisted public var accX: Int = 0
@Persisted public var accY: Int = 0
@Persisted public var accZ: Int = 0
@Persisted public var crc: Int = 0
@Persisted public var syncedCloud: Bool = false
}
Raw HRV
Data structure
public class MetricHRV: Object {
@Persisted public var id: String = ""
@Persisted public var timestamp: Int = 0
@Persisted public var date: String = ""
@Persisted public var rr: Int = 0
@Persisted public var syncedCloud: Bool = false
}
Raw Workout
Data structure
public class MetricWorkout: Object {
@Persisted public var id: String = ""
@Persisted public var timestamp: String = ""
@Persisted public var date: Date = Date()
@Persisted public var bpm: Int = 0
@Persisted public var bpmQ: Int = 0
@Persisted public var lastSteps: Int = 0
@Persisted public var activityType: Int = 0
@Persisted public var speed: Int = 0
@Persisted public var energyExp: Int = 0
@Persisted public var respirationRate: Int = 0
@Persisted public var respirationRateQuality: Int = 0
@Persisted public var temp1: Double = 0.0
@Persisted public var temp2: Double = 0.0
@Persisted public var pha: Int = 0
@Persisted public var phaQ: Int = 0
@Persisted public var wearing: Int = 0
@Persisted public var rawBpm: Int = 0
@Persisted public var rawBpmQuality: Int = 0
@Persisted public var rawEnergyEx: Int = 0
@Persisted public var rawEnergyExQuality: Int = 0
@Persisted public var rawEnergyExIntermittent: Int = 0
@Persisted public var rawEnergyExIntermittentQuality: Int = 0
@Persisted public var rawCadence: Int = 0
@Persisted public var rawCadenceQuality: Int = 0
@Persisted public var rawRespiration: Int = 0
@Persisted public var rawRespirationQuality: Int = 0
@Persisted public var vo2Max: Int = 0
@Persisted public var vo2MaxQuality: Int = 0
@Persisted public var cfi: Int = 0
@Persisted public var cfiQuality: Int = 0
@Persisted public var syncedCloud: Bool = false
@Persisted public var spo2: Int = 0
@Persisted public var spo2Quality: Int = 0
}