Add exmaples for json schema on log archive / task information
authorBoyeon <boyeon.son@samsung.com>
Fri, 17 May 2019 07:11:13 +0000 (16:11 +0900)
committer손보연/Tizen Platform Lab(SR)/Engineer/삼성전자 <boyeon.son@samsung.com>
Mon, 20 May 2019 09:50:08 +0000 (18:50 +0900)
schema/logArchiveRequestExample.json [new file with mode: 0644]
schema/logArchiveResultExample.json [new file with mode: 0644]
schema/taskRequestExample.json [new file with mode: 0644]
schema/taskResultExample.json [new file with mode: 0644]

diff --git a/schema/logArchiveRequestExample.json b/schema/logArchiveRequestExample.json
new file mode 100644 (file)
index 0000000..90eb38e
--- /dev/null
@@ -0,0 +1,8 @@
+{
+  "logPath": [
+    "/opt/usr/home/owner/apps_rw/org.example.devicemanagerservice/data//test1.log",
+    "/opt/usr/home/owner/apps_rw/org.example.devicemanagerservice/data//test2.log",
+    "/opt/usr/home/owner/apps_rw/org.example.devicemanagerservice/data//test3.log"
+  ],
+  "archiveFile": "/opt/usr/home/owner/apps_rw/org.example.devicemanagerservice/data//log_archive.zip"
+}
\ No newline at end of file
diff --git a/schema/logArchiveResultExample.json b/schema/logArchiveResultExample.json
new file mode 100644 (file)
index 0000000..5662210
--- /dev/null
@@ -0,0 +1,4 @@
+{
+  "archiveFile": "/opt/usr/home/owner/apps_rw/org.example.devicemanagerservice/data//log_archive.zip",
+  "md5Checksum": "328c120d56a1ced6ecb1eeeb429a5c76"
+}
\ No newline at end of file
diff --git a/schema/taskRequestExample.json b/schema/taskRequestExample.json
new file mode 100644 (file)
index 0000000..1c61aa4
--- /dev/null
@@ -0,0 +1,5 @@
+{
+  "type": 1,
+  "duration": 10,
+  "period": 1
+}
\ No newline at end of file
diff --git a/schema/taskResultExample.json b/schema/taskResultExample.json
new file mode 100644 (file)
index 0000000..d753d68
--- /dev/null
@@ -0,0 +1,23 @@
+{
+  "time": 1558075972790,
+  "status": [
+    {
+      "app_id": "com.samsung.tizen.smartthings-thing",
+      "cpu_snapshot": 0,
+      "cpu_average": 0,
+      "memory": 1188
+    },
+    {
+      "app_id": "org.example.devicemanagerservice",
+      "cpu_snapshot": 0,
+      "cpu_average": 7,
+      "memory": 764
+    },
+    {
+      "app_id": "org.tizen.update-agent",
+      "cpu_snapshot": 0.6129990118455929,
+      "cpu_average": 0,
+      "memory": 1028
+    }
+  ]
+}
\ No newline at end of file