-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshelf.json
More file actions
71 lines (71 loc) · 1.8 KB
/
shelf.json
File metadata and controls
71 lines (71 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"@id": "dtmi:com:example:Shelf;1",
"@type": "Interface",
"@context": "dtmi:dtdl:context;2",
"displayName": "Shelf",
"contents": [
{
"@type": "Property",
"name": "shelfId",
"schema": "string",
"description": "The unique identifier for the shelf"
},
{
"@type": "Property",
"name": "capacity",
"schema": "integer",
"description": "The maximum capacity of the shelf in number of items"
},
{
"@type": "Property",
"name": "itemCount",
"schema": "integer",
"description": "The current number of items on the shelf"
},
{
"@type": "Property",
"name": "shelfType",
"schema": {
"@type": "Enum",
"valueSchema": "string",
"enumValues": [
{
"name": "standard",
"displayName": "Standard",
"enumValue": "standard"
},
{
"name": "heavyDuty",
"displayName": "Heavy Duty",
"enumValue": "heavyDuty"
},
{
"name": "refrigerated",
"displayName": "Refrigerated",
"enumValue": "refrigerated"
}
]
},
"description": "The type of the shelf"
},
{
"@type": "Relationship",
"name": "hasSensor",
"target": "dtmi:com:example:Sensor;1",
"properties": [
{
"@type": "Property",
"name": "sensorId",
"schema": "string"
}
],
"description": "Relationship to sensors monitoring the shelf"
},
{
"@type": "Telemetry",
"name": "loadPercentage",
"schema": "double",
"description": "The current load of the shelf as a percentage of its capacity"
}
]
}