dev.sensorthings.observationBatch
A batch of observations for a single Datastream, covering a contiguous time window. Trades individual addressability for reduced commit overhead.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | sensorthings.dev |
| Indexed |
Showing version bafyreibfajmipmluohecwmpzfixs6p47gqdhvzbqi4sbtn3spfhvwxfvtu. Show the latest
Checks
Validunlimited-stringdefs.batchEntry.properties.qNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"batchEntry": {
"properties": {
"q": {
"knownValues": [
"dev.sensorthings.quality#good",
"dev.sensorthings.quality#suspect",
"dev.sensorthings.quality#missing"
],
"type": "string"
},
"result": {
"description": "Observation result, same union as dev.sensorthings.observation",
"refs": [
"dev.sensorthings.observation#numericResult",
"dev.sensorthings.observation#categoryResult",
"dev.sensorthings.observation#booleanResult",
"dev.sensorthings.observation#arrayResult",
"dev.sensorthings.observation#geoPointResult"
],
"type": "union"
},
"t": {
"description": "phenomenonTime",
"format": "datetime",
"type": "string"
}
},
"required": [
"t",
"result"
],
"type": "object"
},
"main": {
"description": "A batch of observations for a single Datastream, covering a contiguous time window. Trades individual addressability for reduced commit overhead.",
"key": "any",
"record": {
"properties": {
"datastream": {
"format": "at-uri",
"type": "string"
},
"observations": {
"description": "Array of observations in chronological order",
"items": {
"ref": "#batchEntry",
"type": "ref"
},
"maxLength": 1440,
"type": "array"
},
"windowEnd": {
"format": "datetime",
"type": "string"
},
"windowStart": {
"format": "datetime",
"type": "string"
}
},
"required": [
"datastream",
"windowStart",
"windowEnd",
"observations"
],
"type": "object"
},
"type": "record"
}
},
"id": "dev.sensorthings.observationBatch",
"lexicon": 1,
"revision": 1
}