Alert data model JSON Schema


An alert generated by a user or device in a given location

Type: object

Type: object

Property. Unique identifier of the entity

Type: string

Property. Identifier format of any NGSI entity

Must match regular expression: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$

Must be at least 1 characters long

Must be at most 256 characters long

Type: stringFormat: uri

Property. Identifier format of any NGSI entity

Type: stringFormat: date-time

Property. Entity creation timestamp. This will usually be allocated by the storage platform.

Type: stringFormat: date-time

Property. Timestamp of the last modification of the entity. This will usually be allocated by the storage platform.

Type: string

Property. A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object.

Type: string

Property. The name of this item.

Type: string

Property. An alternative name for this item

Type: string

Property. A description of this item

Type: string

Property. A sequence of characters identifying the provider of the harmonised data entity.

Type: array

Property. A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)

Each item of this array must be:

Type: object

Property. Unique identifier of the entity

Same definition as id


Property. list of uri pointing to additional resources about the item

Type: array of string

Must contain a minimum of 1 items

Each item of this array must be:

Type: stringFormat: uri
Type: stringFormat: uri
Type: object


GeoProperty. Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon

Type: object

GeoProperty. Geojson reference to the item. Point

Type: enum (of string)

Must be one of:

  • "Point"

Type: array of number

Must contain a minimum of 2 items

Each item of this array must be:

Type: array of number

Must contain a minimum of 4 items

Each item of this array must be:

Type: object

GeoProperty. Geojson reference to the item. LineString

Type: enum (of string)

Must be one of:

  • "LineString"

Type: array of array

Must contain a minimum of 2 items

Each item of this array must be:

Type: array of number

Must contain a minimum of 2 items

Each item of this array must be:

Type: array of number

Must contain a minimum of 4 items

Each item of this array must be:

Type: object

GeoProperty. Geojson reference to the item. Polygon

Type: enum (of string)

Must be one of:

  • "Polygon"

Type: array of array

Each item of this array must be:

Type: array of array

Must contain a minimum of 4 items

Each item of this array must be:

Type: array of number

Must contain a minimum of 4 items

Each item of this array must be:

Type: object

GeoProperty. Geojson reference to the item. MultiPoint

Type: enum (of string)

Must be one of:

  • "MultiPoint"

Type: array of array

Each item of this array must be:

Type: array of number

Must contain a minimum of 2 items

Each item of this array must be:

Type: array of number

Must contain a minimum of 4 items

Each item of this array must be:

Type: object

GeoProperty. Geojson reference to the item. MultiLineString

Type: enum (of string)

Must be one of:

  • "MultiLineString"

Type: array of array

Each item of this array must be:

Type: array of array

Must contain a minimum of 2 items

Each item of this array must be:

Type: array of number

Must contain a minimum of 4 items

Each item of this array must be:

Type: object

GeoProperty. Geojson reference to the item. MultiLineString

Type: enum (of string)

Must be one of:

  • "MultiPolygon"

Type: array of array

Each item of this array must be:

Type: array of number

Must contain a minimum of 4 items

Each item of this array must be:

Type: object

Property. The mailing address. Model:'https://schema.org/address'

Type: string

Property. The street address. Model:'https://schema.org/streetAddress'

Type: string

Property. The locality in which the street address is, and which is in the region. Model:'https://schema.org/addressLocality'

Type: string

Property. The region in which the locality is, and which is in the country. Model:'https://schema.org/addressRegion'

Type: string

Property. The country. For example, Spain. Model:'https://schema.org/addressCountry'

Type: string

Property. The postal code. For example, 24004. Model:'https://schema.org/https://schema.org/postalCode'

Type: string

Property. The post office box number for PO box addresses. For example, 03578. Model:'https://schema.org/postOfficeBoxNumber'

Type: string

Number identifying a specific property on a public street.

Type: string

A district is a type of administrative division that, in some countries, is managed by the local government.

Type: string

Property. The geographic area where a service or offered item is provided. Model:'https://schema.org/Text'

Type: object

Type: enum (of string)

Property. NGSI Entity type. It has to be Alert.

Must be one of:

  • "Alert"

Type: stringFormat: date-time

Property. Model:'https://schema.org/DateTime'. The date and time the item was issued in ISO8601 UTC format.

Type: stringFormat: date-time

Property. Model:'https://schema.org/DateTime'. The start of the validity period for this forecast as a ISO8601 format

Type: stringFormat: date-time

Property. Model:'https://schema.org/DateTime'. The end of the validity period for this forecast as a ISO8601 format

Type: enum (of string)

Property. Severity of the Alarm

Must be one of:

  • "informational"
  • "low"
  • "medium"
  • "high"
  • "critical"

Type: enum (of string)

Property. Category of the Alert. Enum:'traffic, naturalDisaster, weather, environment, health, security, agriculture'

Must be one of:

  • "traffic"
  • "naturalDisaster"
  • "weather"
  • "environment"
  • "health"
  • "security"
  • "agriculture"


Relationship. Source of the alert. Model:'http://schema.org/URL'.

Type: string

Property. Identifier format of any NGSI entity

Must match regular expression: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$

Must be at least 1 characters long

Must be at most 256 characters long

Type: stringFormat: uri

Property. Identifier format of any NGSI entity

Type: object

Property. Payload containing the data retrieved.

Type: object


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

Type: enum (of string)

Must be one of:

  • "trafficJam"
  • "carAccident"
  • "carWrongDirection"
  • "carStopped"
  • "pothole"
  • "roadClosed"
  • "roadWorks"
  • "hazardOnRoad"
  • "injuredBiker"
  • "pedestrianOnRoad"
  • "bikerOnRoad"
  • "tramApproaching"
  • "crowdRisk"
  • "flood"
  • "tsunami"
  • "coastalEvent"
  • "earthquake"
  • "rainfall"
  • "highTemperature"
  • "lowTemperature"
  • "lowHumidity"
  • "highHumidity"
  • "highAtmosphericPressure"
  • "losAtmosphericPressure"
  • "heatWave"
  • "coldWave"
  • "ice"
  • "snow"
  • "wind"
  • "fog"
  • "tornado"
  • "tropicalCyclone"
  • "hurricane"
  • "snow/ice"
  • "badSeaState"
  • "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"
Type: enum (of string)

Property. Weather categories. Enum:' avalanches,coastalEvent, coldWave, flood, fog, forestFire, heatWave, highTemperature, hurricane, ice, lowTemperature, rainfall, rainflood, snow, snowice, thunderstorms, tornado, tropicalCyclone, tsunami, wind'

Must be one of:

  • "avalanches"
  • "coastalEvent"
  • "coldWave"
  • "flood"
  • "fog"
  • "forestFire"
  • "heatWave"
  • "highTemperature"
  • "hurricane"
  • "ice"
  • "lowTemperature"
  • "rainfall"
  • "rain_flood"
  • "snow"
  • "snow_ice"
  • "thunderstorms"
  • "tornado"
  • "tropicalCyclone"
  • "tsunami"
  • "wind"

The following properties are required: