aboutsummaryrefslogtreecommitdiffstats
path: root/tests/usecases-5G-bulkpm/5G-bulkpm/assets/metadata.schema.json
blob: a41b3544a29400484cc80dd0da859c52d6245fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
    "$schema":  "http://json-schema.org/draft-07/schema",
    "$id": "metadata.schema.json",
    "title": "DataRouter PM File Metadata",
    "description": "Metadata for 3GPP PM files that are placed on the DMaaP Data Router by the Data File Collector (VES 7.1)",
    "type": "object",

    "properties": {
        "productName": {
            "description": "from the FileReady event eventName",
            "type": "string"
        },

        "vendorName": {
            "description": "from the FileReady event eventName",
            "type": "string"
        },

        "lastEpochMicrosec": {
            "description": "the latest unix epoch time associated with the FileReady event",
            "type": "string"
        },

        "sourceName": {
            "description": "the name of the entity experiencing the event",
            "type": "string"
        },

        "startEpochMicrosec": {
            "description": "the earliest unix epoch time associated with the FileReady event",
            "type": "string"
        },

        "timeZoneOffset": {
            "description": "the timezone offset from UTC",
            "type": "string",
            "pattern": "^(?:(?:[a-zA-Z]{3})[+-](?:[01][0-9]|2[0-3]).[0-5][0-9])$"
        },

        "location": {
            "description": "follows the format <protocol>://<ip address>:<port>/<path>/<filename>, the IP address is the node ip address, the port of the protocol server",
            "type": "string"
        },

        "compression": {
            "description": "specifies if the file is compressed",
            "type": "string",
            "enum": [ "gzip" ]
        },

        "fileFormatType": {
            "description": "the file format",
            "type": "string"
        },

        "fileFormatVersion": {
            "description": "the version of the file format",
            "type": "string"
        }
    },

    "required": [
        "productName",
        "vendorName",
        "lastEpochMicrosec",
        "sourceName",
        "startEpochMicrosec",
        "timeZoneOffset",
        "location",
        "compression",
        "fileFormatType",
        "fileFormatVersion"
    ]
}