full diff

dev.sensorthings.observation

From
bafyreiawpa4imnxrprvevjsxi7h5mcnyqku277izsxeq54ubqrlaezjljq indexed 2026-03-27 18:59 UTC View this version
To
bafyreibqo7zzhbsf3nopmqk5dxipezcqcgoib7qxh56wjb2mvcddhood7i indexed 2026-07-26 20:10 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "arrayResult": {
55 "description": "Array of scaled integer values sharing the parent Datastream's resultScaleFactor. Used for wave spectra (energy at frequency bins), current profiles (speed at depth bins), and similar array-valued observations.",
66 "properties": {
77 "labels": {
88 "description": "Optional labels identifying each element (e.g. frequency bin edges in Hz, depth bin centres in m). Must be same length as values if present.",
99 "items": {
1010 "maxLength": 32,
1111 "type": "string"
1212 },
1313 "maxLength": 1024,
1414 "type": "array"
1515 },
1616 "values": {
1717 "description": "Ordered array of scaled integer values",
1818 "items": {
1919 "type": "integer"
2020 },
2121 "maxLength": 1024,
2222 "type": "array"
2323 }
2424 },
2525 "required": [
2626 "values"
2727 ],
2828 "type": "object"
2929 },
3030 "booleanResult": {
3131 "description": "True/false observation. Used for threshold exceedances, detection flags, binary sensor states.",
3232 "properties": {
3333 "value": {
3434 "type": "boolean"
3535 }
3636 },
3737 "required": [
3838 "value"
3939 ],
4040 "type": "object"
4141 },
4242 "categoryResult": {
4343 "description": "Categorical observation from a controlled vocabulary. Used for weather codes, flood alert levels, land cover classes, sea state.",
4444 "properties": {
4545 "value": {
4646 "description": "Code or label from the vocabulary",
4747 "maxLength": 256,
4848 "type": "string"
4949 },
5050 "vocabulary": {
5151 "description": "URI of the code list or vocabulary (e.g. https://codes.wmo.int/306/4677 for WMO present weather codes)",
5252 "format": "uri",
5353 "type": "string"
5454 }
5555 },
5656 "required": [
5757 "value"
5858 ],
5959 "type": "object"
6060 },
6161 "geoPointResult": {
6262 "description": "Geographic position result for position-as-observation (e.g. GPS fix from a drifting buoy). Uses the same encoding as Thing.location.",
6363 "properties": {
6464 "altMm": {
6565 "description": "Altitude in mm above WGS84 ellipsoid",
6666 "type": "integer"
6767 },
6868 "latE7": {
6969 "maximum": 900000000,
7070 "minimum": -900000000,
7171 "type": "integer"
7272 },
7373 "lonE7": {
7474 "maximum": 1800000000,
7575 "minimum": -1800000000,
7676 "type": "integer"
7777 }
7878 },
7979 "required": [
8080 "latE7",
8181 "lonE7"
8282 ],
8383 "type": "object"
8484 },
8585 "main": {
8686 "description": "A single act of observation. The result type is determined by the $type discriminator on the result object.",
8787 "key": "any",
8888 "record": {
8989 "properties": {
9090 "datastream": {
9191 "description": "AT-URI of the parent Datastream",
9292 "format": "at-uri",
9393 "type": "string"
9494 },
9595 "derivedFrom": {
9696 "description": "AT-URIs of source observations or datastreams from which this observation was derived (e.g. tidal residual derived from observed and predicted level datastreams)",
9797 "items": {
9898 "format": "at-uri",
9999 "type": "string"
100100 },
101101 "maxLength": 16,
102102 "type": "array"
103103 },
104104 "featureOfInterest": {
105105 "description": "AT-URI of the feature being observed, if different from the Thing's location",
106106 "format": "at-uri",
107107 "type": "string"
108108 },
109109 "parameters": {
110110 "description": "Additional name-value pairs (e.g. depth, height above ground)",
111111 "type": "unknown"
112112 },
113113 "phenomenonTime": {
114114 "description": "Time the phenomenon was observed (ISO 8601). Start of interval if phenomenonTimeEnd is present.",
115115 "format": "datetime",
116116 "type": "string"
117117 },
118118 "phenomenonTimeEnd": {
119119 "description": "End of observation interval (ISO 8601). If absent, the observation is an instant. Used for aggregates (daily means), processing windows (wave burst statistics), and accumulations (hourly rainfall).",
120120 "format": "datetime",
121121 "type": "string"
122122 },
123123 "result": {
124124 "description": "The observation result. Type determined by $type discriminator.",
125125 "refs": [
126126 "#numericResult",
127127 "#categoryResult",
128128 "#booleanResult",
129129 "#arrayResult",
130130 "#geoPointResult"
131131 ],
132132 "type": "union"
133133 },
134134 "resultQuality": {
135135 "description": "Quality flag as a token reference",
136136 "knownValues": [
137137 "dev.sensorthings.quality#good",
138138 "dev.sensorthings.quality#suspect",
139139 "dev.sensorthings.quality#missing"
140140 ],
141141 "maxLength": 64,
142142 "type": "string"
143143 },
144144 "resultTime": {
145145 "description": "Time the result became available (if different from phenomenonTime)",
146146 "format": "datetime",
147147 "type": "string"
148148 }
149149 },
150150 "required": [
151151 "datastream",
152152 "result",
153153 "phenomenonTime"
154154 ],
155155 "type": "object"
156156 },
157157 "type": "record"
158158 },
159159 "numericResult": {
160160 "description": "Scaled integer result. Real value = value × 10^(−resultScaleFactor). The common case for continuous measurements.",
161161 "properties": {
162162 "value": {
163163 "type": "integer"
164164 }
165165 },
166166 "required": [
167167 "value"
168168 ],
169169 "type": "object"
170170 }
171171 },
172172 "id": "dev.sensorthings.observation",
173 "lexicon": 1
173 "lexicon": 1,
174 "revision": 1
174175}

Compare other versions