-
Notifications
You must be signed in to change notification settings - Fork 5
/
measurement.json
69 lines (69 loc) · 1.9 KB
/
measurement.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
{
"type": "object",
"required": [
"version",
"tag_type",
"tagged_id",
"taxonomy",
"producer",
"measured_at",
"tags"
],
"additionalProperties": false,
"properties": {
"version": {
"type": "string",
"enum": ["1"]
},
"tag_type": {
"type": "string"
},
"tagged_id": {
"type": "integer"
},
"taxonomy": {
"oneOf": [
{"type": "integer"},
{"type": "string", "minLength": 1}
]
},
"producer": {
"type": "string",
"minLength": 1
},
"measured_at": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]+)?$"
},
"tags": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["tag"],
"properties": {
"tag": {
"oneOf": [
{"type": "integer"},
{"type": "string", "minLength": 1}
]
},
"value": {
"oneOf": [
{"type": "integer"},
{"type": "string", "minLength": 1}
]
},
"description": {"type": "string"},
"extras": {
"type": "object",
"additionalProperties": true
}
}
}
},
"measurement_id": { "type": "string" },
"autogenerate_tags": {"type": "boolean"},
"autogenerate_values": {"type": "boolean"}
}
}