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