{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "OCF", "$id": "https://smart-data-models.github.io/dataModel.IoTDataModels/ImpactSensor/schema.json", "title": "Impact Sensor", "description": "Smart Data Models Program adaptation of the original IoTData data Models. This Resource provides a status and properties of an impact sensor. Included is the current status (boolean), horizontal and vertical direction (in degrees) and impact level (g force).", "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": { "rt": { "description": "Property. The Resource Type.", "items": { "maxLength": 64, "type": "string", "enum": [ "oic.r.impactsensor" ] }, "minItems": 1, "uniqueItems": true, "readOnly": true, "type": "array" }, "impactstatus": { "type": "boolean", "readOnly": true, "description": "Property. The 'impactstatus' Property indicates the impact as: 'true' A physical impact is detected, 'false' Normal status, an impact is not detected." }, "impactlevel": { "type": "number", "readOnly": true, "description": "Property. The 'impactlevel' Property provides the level of impact. The unit is in 'G' (G-force)." }, "impactdirectionhorizontal": { "type": "number", "readOnly": true, "description": "Property. The 'impactdirectionhorizontal' Property shows a horizontal direction where the impact comes from. The value is 0 to 360 degrees. 0 is the front of the sensor and clockwise increment.", "minimum": 0, "maximum": 360 }, "impactdirectionvertical": { "type": "number", "readOnly": true, "description": "Property. The 'impactdirectionvertical' Property shows a vertical direction where the impact comes from. The value is 0 to 360 degrees. 0 is the front of the sensor and upward increment.", "minimum": 0, "maximum": 360 }, "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": 2, "uniqueItems": true, "readOnly": true, "type": "array" }, "type": { "type": "string", "enum": [ "ImpactSensor" ], "description": "Property. NGSI entity type. It has to be ImpactSensor" } } } ], "derivedFrom": "https://github.com/OpenInterConnect/IoTDataModels/blob/master/ImpactSensorResURI.swagger.json", "license": "https://github.com/OpenInterConnect/IoTDataModels/blob/master/README.md", "required": [ "id", "type" ] }