"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://tizen.org/logArchiveRequest.json",
"title": "Log Archive Request",
- "description": "Generating and saving the archive file of logs",
+ "description": "Schema for generating and saving the archive file of logs",
"type": "object",
"required": [
"logPath",
"type": "string",
"examples": [
[
- "/home/owner/org.example.test/data/logs1",
- "/home/owner/org.example.test/data/logs2"
- ],
- [
- "/home/owner/org.example.test/data/log1",
- "/home/owner/org.example.test/data/log2/logFile.log"
+ "/home/owner/org.example.test/data/logs1",
+ "/home/owner/org.example.test/data/logs2",
+ "/home/owner/org.example.test/data/logs3/logFile.log"
]
]
}
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://tizen.org/logArchiveResult.json",
"title": "Log Archive Result",
- "description": "Getting the result of log archive",
+ "description": "Schema for getting the result of log archive",
"type": "object",
"required": [
"logPath",
--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft-07/schema",
+ "$id": "http://tizen.org/taskRequest.json",
+ "title": "Task Request",
+ "description": "Schema for making task request",
+ "type": "object",
+ "required": [
+ "type",
+ "duration",
+ "period"
+ ],
+ "properties": {
+ "type": {
+ "$id": "#/properties/type",
+ "description": "Type of the task",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ },
+ "duration": {
+ "$id": "#/properties/duration",
+ "description": "How long the task to be performed for (in sec)",
+ "type": "integer",
+ "examples": [
+ 30
+ ]
+ },
+ "period": {
+ "$id": "#/properties/period",
+ "description": "How frequent the task to be repeated (in sec)",
+ "type": "integer",
+ "examples": [
+ 1
+ ]
+ }
+ }
+}
\ No newline at end of file