{"$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "OCF", "$id": "https://smart-data-models.github.io/dataModel.OCF/Consumption/schema.json", "title": "Smart Data models - Consumption schema derived from the open connectivity foundation repository https://github.com/openconnectivityfoundation/IoTDataModels", "description": "This Resource describes Properties associated with the energy associated with the consumption of natural gasThe gas value is in kilowatt hours [kWh].The volume value is in metres cubed [m3].Provides the cumulative gas energy, the cumulative gas volume and the calorific value and conversion factor used/required to convert from gas volume (m3[TB1]) to gas energy (KWh).", "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. Resource Type", "items": {"maxLength": 64, "type": "string", "enum": ["oic.r.gas.consumption"]}, "minItems": 1, "uniqueItems": true, "readOnly": true, "type": "array"}, "if": {"description": "Property. The OCF Interfaces supported by this Resource", "items": {"enum": ["oic.if.r", "oic.if.baseline"], "type": "string"}, "minItems": 1, "readOnly": true, "uniqueItems": true, "type": "array"}, "n": {"type": "string", "maxLength": 64, "readOnly": true, "description": "Property. Friendly name of the Resource"}, "gas": {"description": "Property. gas energy consumed in kWh", "readOnly": true, "type": "number", "minimum": 0}, "precision": {"description": "Property. Accuracy granularity of the exposed value", "readOnly": true, "type": "number"}, "volume": {"description": "Property. gas volume consumed in m3 (metres cubed)", "readOnly": true, "type": "number", "minimum": 0}, "type": {"type": "string", "enum": ["Consumption"], "description": "Property. NGSI entity type. It has to be Consumption"}}}], "license": "https://openconnectivityfoundation.github.io/core/LICENSE.md", "derivedFrom": "https://raw.githubusercontent.com/openconnectivityfoundation/IoTDataModels/master/GasConsumptionResURI.swagger.json", "required": ["gas", "id", "type"]}