{"$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "OCF", "$id": "https://smart-data-models.github.io/dataModel.OCF/Activity/schema.json", "title": "Smart Data models - Activity schema derived from the open connectivity foundation repository https://github.com/openconnectivityfoundation/IoTDataModels", "description": "This Resource describes the Properties associated with a person's physical activity. All Properties are read-only values that are provided by the server. When range (from 'oic.r.baseresource') is omitted the default is 0 to +MAXFLOAT.", "type": "object", "allOf": [{"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"}, {"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"}, {"properties": {"activity": {"description": "Property. This Property describes the recognized current activity type of user", "type": "string", "enum": ["sleep", "sit", "stand", "walk", "run", "unknown"], "readOnly": true}, "steps_day": {"description": "Property. This Property describes the user's step count that measures the number of steps the user has taken since the beginning of the day.", "type": "integer", "minimum": 0, "readOnly": true}, "steps_reset": {"description": "Property. This Property describes the user's step count that measures the number of steps the user has taken since the last reset.", "type": "integer", "minimum": 0, "readOnly": true}, "ccal_day": {"description": "Property. This Property describes the burned off calories of user since the beginning of the day.", "type": "number", "minimum": 0.0, "readOnly": true}, "ccal_reset": {"description": "Property. This Property describes the burned off calories of user since the last reset.", "type": "number", "minimum": 0.0, "readOnly": true}, "rt": {"description": "Property. The Resource Type.", "items": {"enum": ["oic.r.activity"], "type": "string"}, "minItems": 1, "uniqueItems": true, "readOnly": true, "type": "array"}, "n": {"type": "string", "maxLength": 64, "readOnly": true, "description": "Property. Friendly name of the Resource"}, "if": {"description": "Property. The OCF Interface set supported by this Resource.", "items": {"enum": ["oic.if.s", "oic.if.baseline"], "type": "string"}, "minItems": 1, "uniqueItems": true, "readOnly": true, "type": "array"}, "steps_day_range": {"type": "array", "description": "Property. Property. The valid range for the Property in the Resource as an integer. The first value in the array is the minimum value, the second value in the array is the maximum value.", "readOnly": true, "minItems": 2, "maxItems": 2, "items": {"type": "integer"}}, "steps_day_step": {"description": "Property. Property. Step value across the defined range when the range is an integer. This is the increment for valid values across the range; so if range is 0..10 and step is 2 then valid values are 0,2,4,6,8,10.", "readOnly": true, "type": "integer"}, "steps_reset_range": {"type": "array", "description": "Property. Property. The valid range for the Property in the Resource as an integer. The first value in the array is the minimum value, the second value in the array is the maximum value.", "readOnly": true, "minItems": 2, "maxItems": 2, "items": {"type": "integer"}}, "steps_reset_step": {"description": "Property. Property. Step value across the defined range when the range is an integer. This is the increment for valid values across the range; so if range is 0..10 and step is 2 then valid values are 0,2,4,6,8,10.", "readOnly": true, "type": "integer"}, "ccal_day_range": {"type": "array", "description": "Property. Property. The valid range for the Property in the Resource as a number. The first value in the array is the minimum value, the second value in the array is the maximum value.", "readOnly": true, "minItems": 2, "maxItems": 2, "items": {"type": "number"}}, "ccal_day_step": {"description": "Property. Property. Step value across the defined range an integer when the range is a number. This is the increment for valid values across the range; so if range is 0.0..10.0 and step is 2.5 then valid values are 0.0,2.5,5.0,7.5,10.0.", "readOnly": true, "type": "number"}, "ccal_day_precision": {"type": "number", "readOnly": true, "description": "Property. Property. When exposed the value in 'precision' provides a +/- tolerance against the Properties in the Resource. Thus if a Property is UPDATED to a value and that Property then RETRIEVED, the RETRIEVED value is valid if in the range of the set value +/- precision"}, "ccal_reset_range": {"type": "array", "description": "Property. Property. The valid range for the Property in the Resource as a number. The first value in the array is the minimum value, the second value in the array is the maximum value.", "readOnly": true, "minItems": 2, "maxItems": 2, "items": {"type": "number"}}, "ccal_reset_step": {"description": "Property. Property. Step value across the defined range an integer when the range is a number. This is the increment for valid values across the range; so if range is 0.0..10.0 and step is 2.5 then valid values are 0.0,2.5,5.0,7.5,10.0.", "readOnly": true, "type": "number"}, "ccal_reset_precision": {"type": "number", "readOnly": true, "description": "Property. Property. When exposed the value in 'precision' provides a +/- tolerance against the Properties in the Resource. Thus if a Property is UPDATED to a value and that Property then RETRIEVED, the RETRIEVED value is valid if in the range of the set value +/- precision"}, "type": {"type": "string", "enum": ["Activity"], "description": "Property. NGSI entity type. It has to be Activity"}}}], "license": "https://github.com/openconnectivityfoundation/core/blob/e28a9e0a92e17042ba3e83661e4c0fbce8bdc4ba/LICENSE.md", "derivedFrom": "https://raw.githubusercontent.com/openconnectivityfoundation/IoTDataModels/master/Activity.swagger.json", "required": ["activity", "id", "type"]}