Commit 8b3f3fef authored by Frantisek Mikulu's avatar Frantisek Mikulu

Upgrade mngScheduler_AddTask-request-1-0-0.json remove mngScheduler_PeriodicTask-request-1-0-0.json

parent 34f9c639
{
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "mngScheduler_AddTask-request",
"format": "jsonschema",
"version": "1-0-0"
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "mngScheduler_AddTask-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Scheduler management - Add Task request.",
"enum": [
"mngScheduler_AddTask"
]
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Scheduler management - Add Task request.",
"enum": [
"mngScheduler_AddTask"
]
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
"req": {
"type": "object",
"properties": {
"clientId": {
"type": "string",
"description": "Client identifier."
},
"timeSpec": {
"type": "object",
"properties": {
"cronTime": {
"type": "array",
"minItems": 7,
"maxItems": 7,
"items": {
"type": "string"
},
"description": "7 items of cron syntax..."
},
"exactTime": {
"type": "boolean",
"description": "If true it specify one shot task. Parameter startTime must be set.",
"default": false
},
"periodic": {
"type": "boolean",
"description": "If true it specify periodic timer. Parameter parameter period must be > 0.",
"default": false
},
"req": {
"type": "object",
"properties": {
"clientId": {
"type": "string",
"description": "Client identifier."
},
"task": {
"type": "object",
"description": "Scheduled task."
},
"cronTime": {
"type": "array",
"minItems": 7,
"maxItems": 7,
"items": {
"type": "string"
},
"description": "7 items of cron syntax..."
},
"persist": "boolean"
},
"required": [
"clientId",
"task",
"cronTime"
]
"period": {
"type": "number",
"description": "Period of the timer.",
"default": 0
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
"startTime": {
"type": "string",
"default": "2018-11-21T21:21:16.103930"
}
},
"required": [
"cronTime",
"exactTime",
"periodic",
"period",
"startTime"
]
},
"required": [
"msgId",
"req"
]
"task": {
"type": "object",
"description": "Scheduled task."
},
"persist": "boolean"
},
"required": [
"clientId",
"task",
"timeSpec"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"mType",
"data"
]
},
"required": [
"msgId",
"req"
]
}
},
"required": [
"mType",
"data"
]
}
{
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "mngScheduler_PeriodicTask-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Scheduler management - Per Task request.",
"enum": [
"mngScheduler_PeriodicTask"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"req": {
"type": "object",
"properties": {
"clientId": {
"type": "string",
"description": "Client identifier."
},
"timePeriod": {
"type": "integer",
"description": "Period in miliseconds"
},
"timePoint": {
"type": "string",
"description": "Delayed start in seconds in timestamp format '2018-01-03T16:00:09.859515'"
},
"task": {
"type": "object",
"description": "Task."
},
"persist": "boolean"
},
"required": [
"clientId",
"timePeriod",
"task"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId",
"req"
]
}
},
"required": [
"mType",
"data"
]
}
{
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "mngScheduler_PeriodicTask-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Scheduler management - Per Task response.",
"enum": [
"mngScheduler_PeriodicTask"
]
},
"data": {
"type": "object",
"properties": {
"msgId": {
"type": "string",
"description": "Message identification for binding request with response."
},
"rsp": {
"type": "object",
"properties": {
"clientId": {
"type": "string",
"description": "Client identifier."
},
"taskId": {
"type": "integer",
"description": "Task identifier."
}
},
"required": [
"clientId",
"taskId"
]
},
"insId": {
"type": "string",
"description": "IQRF GW daemon instance identification."
},
"status": {
"type": "integer",
"description": "IQRF GW daemon API (general or mType) status."
},
"statusStr": {
"type": "string",
"description": "IQRF GW daemon API (general or mType) status in string form."
}
},
"required": [
"msgId",
"rsp",
"status"
]
}
},
"required": [
"mType",
"data"
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment