LiamBurke | 4d438ce | 2019-02-14 13:24:52 +0000 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema", |
| 3 | "$id": "metadata.schema.json", |
| 4 | "title": "DataRouter PM File Metadata", |
| 5 | "description": "Metadata for 3GPP PM files that are placed on the DMaaP Data Router by the Data File Collector (VES 7.1)", |
| 6 | "type": "object", |
| 7 | |
| 8 | "properties": { |
| 9 | "productName": { |
| 10 | "description": "from the FileReady event eventName", |
| 11 | "type": "string" |
| 12 | }, |
| 13 | |
| 14 | "vendorName": { |
| 15 | "description": "from the FileReady event eventName", |
| 16 | "type": "string" |
| 17 | }, |
| 18 | |
| 19 | "lastEpochMicrosec": { |
| 20 | "description": "the latest unix epoch time associated with the FileReady event", |
| 21 | "type": "string" |
| 22 | }, |
| 23 | |
| 24 | "sourceName": { |
| 25 | "description": "the name of the entity experiencing the event", |
| 26 | "type": "string" |
| 27 | }, |
| 28 | |
| 29 | "startEpochMicrosec": { |
| 30 | "description": "the earliest unix epoch time associated with the FileReady event", |
| 31 | "type": "string" |
| 32 | }, |
| 33 | |
| 34 | "timeZoneOffset": { |
| 35 | "description": "the timezone offset from UTC", |
| 36 | "type": "string", |
| 37 | "pattern": "^(?:(?:[a-zA-Z]{3})[+-](?:[01][0-9]|2[0-3]).[0-5][0-9])$" |
| 38 | }, |
| 39 | |
| 40 | "location": { |
| 41 | "description": "follows the format <protocol>://<ip address>:<port>/<path>/<filename>, the IP address is the node ip address, the port of the protocol server", |
| 42 | "type": "string" |
| 43 | }, |
| 44 | |
| 45 | "compression": { |
| 46 | "description": "specifies if the file is compressed", |
| 47 | "type": "string", |
| 48 | "enum": [ "gzip" ] |
| 49 | }, |
| 50 | |
| 51 | "fileFormatType": { |
| 52 | "description": "the file format", |
| 53 | "type": "string" |
| 54 | }, |
| 55 | |
| 56 | "fileFormatVersion": { |
| 57 | "description": "the version of the file format", |
| 58 | "type": "string" |
| 59 | } |
| 60 | }, |
| 61 | |
| 62 | "required": [ |
| 63 | "productName", |
| 64 | "vendorName", |
| 65 | "lastEpochMicrosec", |
| 66 | "sourceName", |
| 67 | "startEpochMicrosec", |
| 68 | "timeZoneOffset", |
| 69 | "location", |
| 70 | "compression", |
| 71 | "fileFormatType", |
| 72 | "fileFormatVersion" |
| 73 | ] |
| 74 | } |