bb310664bdbe4bd967848d4ef30f2ae5d5f4f766
[apps/native/iot-device-manager.git] / schema / taskResult.json
1 {
2   "$schema": "http://json-schema.org/draft-07/schema",
3   "$id": "http://tizen.org/taskResult.json",
4   "title": "Task Result",
5   "description": "Result of task information request",
6   "type": "object",
7   "required": [
8     "time",
9     "status"
10   ],
11   "properties": {
12     "time": {
13       "$id": "#/properties/time",
14       "description": "Time when the task information was created (in unix timestamp)",
15       "type": "integer",
16       "examples": [
17         100000000
18       ]
19     },
20     "status": {
21       "$id": "#/properties/status",
22       "description": "Status of the task information",
23       "type": "array",
24       "items": {
25         "$id": "#/properties/status/items",
26         "type": "object",
27         "required": [
28           "appId",
29           "cpuSnapshot",
30           "cpuAverage",
31           "memory"
32         ],
33         "properties": {
34           "appId": {
35             "$id": "#/properties/status/items/properties/appId",
36             "description": "ID of the application running at the time",
37             "type": "string",
38             "examples": [
39               "com.example.example1"
40             ]
41           },
42           "cpuSnapshot": {
43             "$id": "#/properties/status/items/properties/cpuSnapshot",
44             "description": "Percentage of the CPU usage at a certain period",
45             "type": "integer",
46             "examples": [
47               5
48             ]
49           },
50           "cpuAverage": {
51             "$id": "#/properties/status/items/properties/cpuAverage",
52             "description": "Percentage of the average CPU usage after the application is launched",
53             "type": "integer",
54             "examples": [
55               15
56             ]
57           },
58           "memory": {
59             "$id": "#/properties/status/items/properties/memory",
60             "description": "Memory usage of the application (in kilobyte)",
61             "type": "integer",
62             "examples": [
63               1024
64             ]
65           }
66         }
67       }
68     }
69   }
70 }