{ "$schema": "http://json-schema.org/schema#", "id": "https://fiware.github.io/dataModels/specs/Media/MediaEvent/schema.json", "title": "Smart Data Models - Media / Media Event", "description": "Base for all events raised by elements in the media server", "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" }, { "$ref": "https://smart-data-models.github.io/dataModel.Multimedia/Multimedia-schema.json#/definitions/mediaCommons" }, { "properties": { "type": { "type": "string", "enum": [ "MediaEvent" ], "description": "Property. NGSI Entity type. It has to be MediaEvent" }, "eventType": { "type": "string", "description": "Property. Model:'https://schema.org/Text'. Type of event that was raised. (ie: PlateDetectionEvent, ColourDetectionEvent, etc." }, "data": { "type": "object", "description": "Property. Model:'https://schema.org/StructuredValue'. Model:'http://schema.org/StructuredValue'. Any serializable object that is attached to the event. Eg:plate-number + Attribute type" }, "deviceSource": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. Model:'https://schema.org/URL'. Link to the device providing the data source " }, "observedEntities": { "type": "array", "description": "Property. Model:'https://schema.org/StructuredValue'. Array of model Entities created updated or just observed by this event.", "items": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ] } } } } ], "required": [ "id", "type", "eventType", "dateCreated" ], "$schemaVersion": "0.0.1" }