{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.3", "modelTags": "", "$id": "https://smart-data-models.github.io/dataModel.Alert/alert/schema.json", "title": "Alert data model JSON Schema", "description": "An alert generated by a user or device in a given location", "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" }, { "$ref": "https://smart-data-models.github.io/dataModel.Alert/alert-schema.json#/definitions/Common-Alert" }, { "type": "object", "properties": { "subCategory": { "type": "string", "description": "Property. Describe the sub category of alert. Enum:'trafficJam, carAccident, carWrongDirection, carStopped, pothole, roadClosed, roadWorks, hazardOnRoad, injuredBiker, pedestrianOnRoad, bikerOnRoad, tramApproaching, flood, tsunami, coastalEvent, earthquake, rainfall, highTemperature, lowTemperature, heatWave, coldWave, ice, snow, wind, fog, tornado, tropicalCyclone, hurricane, snow/ice, thunderstorms, fireRisk, avalancheRisk, floodRisk, airPollution, waterPollution, pollenConcentration, asthmaAttack, bumpedPatient, fallenPatient, heartAttack, suspiciousAction, robbery, assault, civilDisorder, buildingFire, forestFire, noxiousWeed, snail, insect, rodent, bacteria, microbe, fungus,mite, virus, nematodes, irrigation, fertilisation", "anyOf": [ { "enum": [ "airPollution", "assault", "asthmaAttack", "avalancheRisk", "bacteria", "badSeaState", "bikerOnRoad", "buildingFire", "bumpedPatient", "carAccident", "carStopped", "carWrongDirection", "coastalEvent", "civilDisorder", "coldWave", "crowdRisk", "earthquake", "fallenPatient", "fertilisation", "fireRisk", "flood", "floodRisk", "fog", "forestFire", "fungus", "hazardOnRoad", "heartAttack", "heatWave", "highAtmosphericPressure", "highHumidity", "highTemperature", "hurricane", "ice", "injuredBiker", "insect", "irrigation", "lowAtmosphericPressure", "lowHumidity", "lowTemperature", "microbe", "mite", "nematodes", "noxiousWeed", "pedestrianOnRoad", "pollenConcentration", "pothole", "rainfall", "roadClosed", "roadWorks", "robbery", "rodent", "snail", "snow", "snow/ice", "suspiciousAction", "thunderstorms", "tornado", "trafficJam", "tramApproaching", "tropicalCyclone", "tsunami", "virus", "waterPollution", "wind" ] }, { "$ref": "https://smart-data-models.github.io/dataModel.Weather/weather-schema.json#/definitions/WeatherAlertCategories" } ] } } } ], "required": [ "id", "type", "alertSource", "category", "dateIssued" ] }