maas-schemas

iot-thing-shadow Schema

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

iot-thing-shadow Properties

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

desired

desired Type

object with following properties:

| Property | Type | Required | | ——– | —- | ——– |

reported

reported

reported Type

object with following properties:

Property Type Required
leg object Optional
location object Optional

leg

leg

leg Type

object with following properties:

Property Type Required
id string Optional
state string Optional
timestamp integer Optional

id

Universally unique identifier, see https://en.wikipedia.org/wiki/Universally_unique_identifier

id

id Type

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}$
id Example
4828507e-683f-41bf-9d87-689808fbf958

state

The life-cycle state of a leg

state

The value of this property must be equal to one of the known values below.

state Known Values

| Value | Description | | —– | ———– |

timestamp

POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time

timestamp

timestamp Type

integer

location

location

location Type

object with following properties:

Property Type Required
lat number Optional
legId string Optional
lon number Optional
timestamp integer Optional

lat

Geographic latitude (north-south axis) in WGS-84 system, see https://en.wikipedia.org/wiki/World_Geodetic_System

lat

lat Type

number

legId

Universally unique identifier, see https://en.wikipedia.org/wiki/Universally_unique_identifier

legId

legId Type

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}$
legId Example
4828507e-683f-41bf-9d87-689808fbf958

lon

Geographic longitude (east-west axis) in WGS-84 system, see https://en.wikipedia.org/wiki/World_Geodetic_System

lon

lon Type

number

timestamp

POSIX time in milliseconds, https://en.wikipedia.org/wiki/Unix_time

timestamp

timestamp Type

integer