forked from kaaproject/kaa-rfcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
0012-command-invocation-request.avsc
48 lines (48 loc) · 1.47 KB
/
0012-command-invocation-request.avsc
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
{
"namespace":"org.kaaproject.ipc.cip.gen.v1",
"type":"record",
"name":"CommandInvocationRequest",
"doc":"Command invocation request message.",
"fields":[
{
"name":"correlationId",
"type":"string",
"doc":"Message ID that is used for message processing tracking across services."
},
{
"name":"timestamp",
"type":"long",
"doc":"Message creation UNIX timestamp in milliseconds."
},
{
"name":"timeout",
"type":"long",
"default":0,
"doc":"Amount of milliseconds (since the timestamp) until the message expires. Value of 0 is reserved to indicate no expiration."
},
{
"name":"endpointId",
"type":"string",
"doc":"Identifier of the endpoint the command is invoked against."
},
{
"name":"commandType",
"type":"string",
"doc":"Command type."
},
{
"name":"commandId",
"type":"int",
"doc":"Unique command ID that is used for command correlation. (endpointId, commandType, commandId) tuple uniquely identifies a command instance."
},
{
"name":"payload",
"type":[
"null",
"bytes"
],
"default":null,
"doc":"The command payload to be interpreted by endpoint."
}
]
}