forked from nmsa/tma-framework-m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatmosphere_tma-m_schema.json
98 lines (96 loc) · 3.25 KB
/
atmosphere_tma-m_schema.json
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"title": "tma-m_schema_0_4",
"$id": "http://atmosphere-eubrazil.eu/tma-m_schema_v0.4.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"probeId": {
"$id": "/properties/probeId",
"type": "integer",
"default": -1,
"minimum": 0
},
"resourceId": {
"$id": "/properties/resourceId",
"type": "integer",
"default": -1,
"minimum": 0
},
"messageId": {
"$id": "/properties/messageId",
"type": "integer",
"default": -1,
"minimum": 0
},
"sentTime": {
"$id": "/properties/sentTime",
"type": "integer",
"default": -1,
"minimum": 0
},
"data": {
"$id": "/properties/data",
"type": "array",
"minItems": 1,
"items": {
"$id": "/properties/data/items",
"type": "object",
"properties": {
"type": {
"$id": "/properties/data/items/properties/type",
"type": "string",
"default": "measurement",
"enum": [
"measurement",
"event"
]
},
"descriptionId": {
"$id": "/properties/data/items/properties/descriptionId",
"type": "integer",
"default": -10,
"minimum": 0
},
"observations": {
"$id": "/properties/data/items/properties/observations",
"type": "array",
"minItems": 1,
"items": {
"$id": "/properties/data/items/properties/observations/items",
"type": "object",
"properties": {
"time": {
"$id": "/properties/data/items/properties/observations/items/properties/time",
"type": "integer",
"default": -1,
"minimum": 0
},
"value": {
"$id": "/properties/data/items/properties/observations/items/properties/value",
"type": "number",
"default": 0
}
},
"required": [
"time",
"value"
]
}
}
},
"required": [
"type",
"descriptionId",
"observations"
]
}
}
},
"required": [
"probeId",
"resourceId",
"messageId",
"sentTime",
"data"
]
}