http://maasglobal.com/core/iot-thing-shadow.json
Schema for MaaS thing shadow
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | No | Develop | No | Forbidden | Permitted | core/iot-thing-shadow.json |
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
desired | object |
Optional | No | iot-thing-shadow (this schema) |
reported | object |
Optional | No | iot-thing-shadow (this schema) |
* |
any | Additional | Yes | this schema allows additional properties |
desired
object
object
with following properties:
| Property | Type | Required | | ——– | —- | ——– |
reported
object
object
with following properties:
Property | Type | Required |
---|---|---|
leg |
object | Optional |
location |
object | Optional |
leg
object
object
with following properties:
Property | Type | Required |
---|---|---|
id |
string | Optional |
state |
string | Optional |
timestamp |
integer | Optional |
Universally unique identifier, see https://en.wikipedia.org/wiki/Universally_unique_identifier
id
string
All instances must conform to this regular expression
^[A-Fa-f0-9]{8}(-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}$
4828507e-683f-41bf-9d87-689808fbf958
The life-cycle state of a leg
state
The value of this property must be equal to one of the known values below.
| Value | Description | | —– | ———– |
POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time
timestamp
integer
1451606400
9007199254740991
location
object
object
with following properties:
Property | Type | Required |
---|---|---|
lat |
number | Optional |
legId |
string | Optional |
lon |
number | Optional |
timestamp |
integer | Optional |
Geographic latitude (north-south axis) in WGS-84 system, see https://en.wikipedia.org/wiki/World_Geodetic_System
lat
number
-90
90
Universally unique identifier, see https://en.wikipedia.org/wiki/Universally_unique_identifier
legId
string
All instances must conform to this regular expression
^[A-Fa-f0-9]{8}(-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}$
4828507e-683f-41bf-9d87-689808fbf958
Geographic longitude (east-west axis) in WGS-84 system, see https://en.wikipedia.org/wiki/World_Geodetic_System
lon
number
-180
180
POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time
timestamp
integer
1451606400
9007199254740991