dev.sensorthings.observationBatch

lexicon.store View official

Documentation

A batch of observations for a single Datastream, covering a contiguous time window. Trades individual addressability for reduced commit overhead.

main record

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 items
windowEnd string datetime Required

An RFC 3339 formatted timestamp.

windowStart string datetime Required

An RFC 3339 formatted timestamp.

View raw schema
{
  "key": "any",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "datastream",
      "windowStart",
      "windowEnd",
      "observations"
    ],
    "properties": {
      "windowEnd": {
        "type": "string",
        "format": "datetime"
      },
      "datastream": {
        "type": "string",
        "format": "at-uri"
      },
      "windowStart": {
        "type": "string",
        "format": "datetime"
      },
      "observations": {
        "type": "array",
        "items": {
          "ref": "#batchEntry",
          "type": "ref"
        },
        "maxLength": 1440,
        "description": "Array of observations in chronological order"
      }
    }
  },
  "description": "A batch of observations for a single Datastream, covering a contiguous time window. Trades individual addressability for reduced commit overhead."
}
batchEntry object

No description available.

Properties

q string Optional

No description available.

Known values: dev.sensorthings.quality#good, dev.sensorthings.quality#suspect, dev.sensorthings.quality#missing
t string datetime Required

phenomenonTime

View raw schema
{
  "type": "object",
  "required": [
    "t",
    "result"
  ],
  "properties": {
    "q": {
      "type": "string",
      "knownValues": [
        "dev.sensorthings.quality#good",
        "dev.sensorthings.quality#suspect",
        "dev.sensorthings.quality#missing"
      ]
    },
    "t": {
      "type": "string",
      "format": "datetime",
      "description": "phenomenonTime"
    },
    "result": {
      "refs": [
        "dev.sensorthings.observation#numericResult",
        "dev.sensorthings.observation#categoryResult",
        "dev.sensorthings.observation#booleanResult",
        "dev.sensorthings.observation#arrayResult",
        "dev.sensorthings.observation#geoPointResult"
      ],
      "type": "union",
      "description": "Observation result, same union as dev.sensorthings.observation"
    }
  }
}

Lexicon Garden

@