A batch of observations for a single Datastream, covering a contiguous time window. Trades individual addressability for reduced commit overhead.
Record Key
any
Any valid record key
Properties
datastream
string
at-uri
Required
An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).
observations
array
of
ref
#batchEntry
Required
Array of observations in chronological order
maxLength: 1440 itemswindowEnd
string
datetime
Required
An RFC 3339 formatted timestamp.
windowStart
string
datetime
Required
An RFC 3339 formatted timestamp.
View raw schema
{
"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"
}