dev.sensorthings.observationBatch
Schema Diff
+2 -1
Compatibility Analysis
Backward Compatible
No changes detected.
1
1
{
2
2
"id": "dev.sensorthings.observationBatch",
3
3
"defs": {
4
4
"main": {
5
5
"key": "any",
6
6
"type": "record",
7
7
"record": {
8
8
"type": "object",
9
9
"required": [
10
10
"datastream",
11
11
"windowStart",
12
12
"windowEnd",
13
13
"observations"
14
14
],
15
15
"properties": {
16
16
"windowEnd": {
17
17
"type": "string",
18
18
"format": "datetime"
19
19
},
20
20
"datastream": {
21
21
"type": "string",
22
22
"format": "at-uri"
23
23
},
24
24
"windowStart": {
25
25
"type": "string",
26
26
"format": "datetime"
27
27
},
28
28
"observations": {
29
29
"type": "array",
30
30
"items": {
31
31
"ref": "#batchEntry",
32
32
"type": "ref"
33
33
},
34
34
"maxLength": 1440,
35
35
"description": "Array of observations in chronological order"
36
36
}
37
37
}
38
38
},
39
39
"description": "A batch of observations for a single Datastream, covering a contiguous time window. Trades individual addressability for reduced commit overhead."
40
40
},
41
41
"batchEntry": {
42
42
"type": "object",
43
43
"required": [
44
44
"t",
45
45
"result"
46
46
],
47
47
"properties": {
48
48
"q": {
49
49
"type": "string",
50
50
"knownValues": [
51
51
"dev.sensorthings.quality#good",
52
52
"dev.sensorthings.quality#suspect",
53
53
"dev.sensorthings.quality#missing"
54
54
]
55
55
},
56
56
"t": {
57
57
"type": "string",
58
58
"format": "datetime",
59
59
"description": "phenomenonTime"
60
60
},
61
61
"result": {
62
62
"refs": [
63
63
"dev.sensorthings.observation#numericResult",
64
64
"dev.sensorthings.observation#categoryResult",
65
65
"dev.sensorthings.observation#booleanResult",
66
66
"dev.sensorthings.observation#arrayResult",
67
67
"dev.sensorthings.observation#geoPointResult"
68
68
],
69
69
"type": "union",
70
70
"description": "Observation result, same union as dev.sensorthings.observation"
71
71
}
72
72
}
73
73
}
74
74
},
75
75
"$type": "com.atproto.lexicon.schema",
76
-
"lexicon": 1
76
+
"lexicon": 1,
77
+
"revision": 1
77
78
}