Summary
Task to introduce delay then ping.
Description
After waiting [input parameter] seconds, it will try and ping the device: after connection was verified, it will confirm reachability for X seconds. To be used after reload to verify device is back.
Route
POST /mop/ping
Roles
admin
engineering
support
apiread
Parameters
Details Example Schema
Name
Type
Required
Description
device
string
yes
-
delayInMinutes
number
yes
-
numberOfTries
number
yes
-
secondsConsideredStable
number
yes
-
Copied to Clipboard
{
"device": "device1",
"delayInMinutes": -94487750,
"numberOfTries": -3951573,
"secondsConsideredStable": -71778162
}
Copied to Clipboard
{
"type": "object",
"properties": {
"device": {
"$ref": "mopTemplateDoc#/definitions/device"
},
"delayInMinutes": {
"title": "delayInMinutes",
"type": "integer"
},
"numberOfTries": {
"title": "numberOfTries",
"type": "integer"
},
"secondsConsideredStable": {
"title": "secondsConsideredStable",
"type": "integer"
}
},
"required": [
"device",
"delayInMinutes",
"numberOfTries",
"secondsConsideredStable"
],
"additionalProperties": false
}
Return
Details Example Schema
Name
Type
Description
result
object
Response from ping command
Copied to Clipboard
{
"result": {
"command": "show clock",
"result": "[object Object]\n\n> [object Object]\r\n---------^\r\nsyntax error: expecting \r\n autowizard - Automatically query for mandatory elements\r\n cd"
},
"device": "device1",
"verbal": "reached connactivity for 2 seconds, after 1 times waiting 0 minutes (out of max 2)"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"command": {
"type": "string",
"examples": [
"show clock"
]
},
"result": {
"type": "string",
"examples": [
"[object Object]\n\n> [object Object]\r\n---------^\r\nsyntax error: expecting \r\n autowizard - Automatically query for mandatory elements\r\n cd"
]
}
}
},
"device": {
"$ref": "mopTemplateDoc#/definitions/device"
},
"verbal": {
"type": "string",
"examples": [
"reached connactivity for 2 seconds, after 1 times waiting 0 minutes (out of max 2)"
]
}
}
}