         static let alarmType = "alarmType"
         static let heartbeat = "heartbeat"
         static let baseURL = "baseURL"
+        static let thresholds = "thresholds"
         
     }
     func encode() -> [String : AnyObject] {

            return nil
        }
        

        
        let site = Site(url: url, uuid: uuid)
        
        return site
    }

        
        let sgvs = json[JSONPropertyKey.sgvs]
        print("sgv count: \(sgvs.count)")
        
        for (_, subJson) in sgvs {
            // print("working on sgv[\(index)]")
            
            if let deviceString = subJson[SensorGlucoseValue.JSONKey.device].string, rssi = subJson[SensorGlucoseValue.JSONKey.rssi].int, unfiltered = subJson[SensorGlucoseValue.JSONKey.unfiltered].double, directionString = subJson[SensorGlucoseValue.JSONKey.direction].string, filtered = subJson[SensorGlucoseValue.JSONKey.filtered].double, noiseInt = subJson[SensorGlucoseValue.JSONKey.noise].int, mills = subJson[SensorGlucoseValue.JSONKey.mills].double, mgdl = subJson[SensorGlucoseValue.JSONKey.mgdl].double {
                
                let device = Device(rawValue: deviceString) ?? Device.Unknown
