-
Notifications
You must be signed in to change notification settings - Fork 4
/
black-box-latest-data-query-schema.json
81 lines (73 loc) · 2 KB
/
black-box-latest-data-query-schema.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
{
"id": "ropod-cmd-schema.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"title" : "Black Box Latest Data Query Schema",
"description": "Retrieve latest datum for each of a set of variables logged on a black box",
"type": "object",
"properties":
{
"header":
{
"allOf":
[
{ "$ref": "ropod-msg-schema.json#/definitions/header" },
{ "$ref": "#/definitions/header" }
]
},
"payload":
{
"allOf":
[
{ "$ref": "ropod-msg-schema.json#/definitions/payload" },
{ "$ref": "#/definitions/bbLatestDataQueryPayload" }
]
}
},
"required": [ "header", "payload" ],
"additionalProperties": true,
"definitions":
{
"header":
{
"type": "object",
"description": "More specific definition (than the definition of ropod-msg-schema.json). Only the type field is further specified.",
"properties":
{
"type": { "enum": [ "LATEST-DATA-QUERY" ] }
},
"required": [ "type"],
"additionalProperties": true
},
"bbLatestDataQueryPayload":
{
"type": "object",
"description": "Data associated with a black box data query (e.g. who is requesting the data, and variables for which to retrieve data).",
"properties":
{
"senderId": { "$ref": "#/definitions/senderId" },
"ropodId": { "$ref": "#/definitions/ropodId" },
"variables": { "$ref": "#/definitions/variables" },
},
"required": [ "senderId", "ropodId", "variables"],
"additionalProperties": false
},
"senderId":
{
"description": "ID uniquely specifying the client that requests black box data."
},
"ropodId":
{
"type": "string",
"description": "ID of the ropod to which the queried black box is attached."
},
"variables":
{
"type": "array",
"items":
{
"type": "string"
},
"description": "A list of variables names for which data should be retrieved."
}
}
}