-
Notifications
You must be signed in to change notification settings - Fork 49
/
envelope.json
83 lines (83 loc) · 1.74 KB
/
envelope.json
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
72
73
74
75
76
77
78
79
80
81
82
83
{
"$udmi_version": "1.5.0",
"title": "Envelope",
"description": "The UDMI `envelope` is not a message itself, per se, but the attributes and other information that is delivered along with a message. [Message Envelope Documentation](../docs/messages/envelope.md)",
"$section": "Messages",
"additionalProperties": true,
"properties": {
"deviceId": {
"type": "string",
"pattern": "^[A-Z]{2,6}-[0-9]{1,6}$"
},
"deviceNumId": {
"type": "string",
"pattern": "^[0-9]+$"
},
"deviceRegistryId": {
"type": "string",
"pattern": "^[a-zA-Z][-a-zA-Z0-9._+~%]*[a-zA-Z0-9]$"
},
"deviceRegistryLocation": {
"type": "string",
"pattern": "^[a-z]+-[a-z]+1$"
},
"projectId": {
"type": "string",
"pattern": "^([.a-z]+:)?[a-z][-a-z0-9]*[a-z0-9]$"
},
"payload": {
"type": "string"
},
"source": {
"type": "string"
},
"gatewayId": {
"type": "string",
"pattern": "^[A-Z]{2,6}-[0-9]{1,6}$"
},
"transactionId": {
"type": "string"
},
"publishTime": {
"type": "string",
"format": "date-time"
},
"subFolder": {
"enum": [
"udmi",
"update",
"invalid",
"error",
"cloud",
"discovery",
"mapping",
"system",
"gateway",
"swarm",
"localnet",
"pointset",
"validation",
"blobset",
"monitoring"
]
},
"subType": {
"enum": [
"invalid",
"event",
"command",
"config",
"state",
"query",
"reply",
"model"
]
}
},
"required": [
"projectId",
"deviceRegistryId",
"deviceId",
"subFolder"
]
}