mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
updated doc example messages
This commit is contained in:
parent
88532f4a6e
commit
4c3b639e65
4 changed files with 12 additions and 29 deletions
|
@ -13,8 +13,6 @@
|
||||||
"replyACKTimeout": 5,
|
"replyACKTimeout": 5,
|
||||||
"replyRetries": 5,
|
"replyRetries": 5,
|
||||||
"methodTimeout": 5,
|
"methodTimeout": 5,
|
||||||
"replyMethodTimeout": 120,
|
"replyMethodTimeout": 120
|
||||||
"directory": "debug",
|
|
||||||
"fileName": "test.txt"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -2,9 +2,12 @@
|
||||||
{
|
{
|
||||||
"directory": "copy",
|
"directory": "copy",
|
||||||
"fileName": "copy.log",
|
"fileName": "copy.log",
|
||||||
"toNodes": ["ship1"],
|
"toNodes": ["central"],
|
||||||
"method":"REQCopyFileFrom",
|
"method":"REQCopySrc",
|
||||||
"methodArgs": ["./tmp2.txt","ship2","/tmp/tmp2.txt"],
|
"methodArgs": ["./testbinary","ship1","./apekatt/testbinary-copied","900000","60","0700"],
|
||||||
"replyMethod":"REQToFileAppend"
|
"methodTimeout": 10,
|
||||||
|
"retryWait" : 5,
|
||||||
|
"retries" : 3,
|
||||||
|
"replyMethod":"REQToConsole"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -1,19 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"relayViaNode": "central",
|
|
||||||
"relayReplyMethod": "REQToConsole",
|
|
||||||
"toNodes": ["ship1"],
|
|
||||||
"method": "REQCliCommand",
|
|
||||||
"methodArgs": [
|
|
||||||
"bash","-c","cat <<< $'[{\"directory\": \"metrics\",\"fileName\": \"edgeHub.prom\",\"fromNode\":\"metrics\",\"toNode\": \"ship1\",\"method\":\"REQHttpGetScheduled\",\"methodArgs\": [\"http://127.0.0.1:9602/metrics\",\"60\",\"5000000\"],\"replyMethod\":\"REQToFile\",\"ACKTimeout\":10,\"retries\": 3,\"methodTimeout\": 3}]'>/usr/local/steward/startup/scrape-edge-hub.msg && systemctl restart steward"
|
|
||||||
],
|
|
||||||
"replyMethod": "REQToFile",
|
|
||||||
"ACKTimeout": 5,
|
|
||||||
"retries": 3,
|
|
||||||
"replyACKTimeout": 5,
|
|
||||||
"replyRetries": 3,
|
|
||||||
"methodTimeout": 5,
|
|
||||||
"directory": "system",
|
|
||||||
"fileName": "system.log"
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,7 +1,7 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"toNodes": ["ship1"],
|
"toNodes": ["ship1"],
|
||||||
"method": "REQHttpGetScheduled",
|
"method": "REQHttpGet",
|
||||||
"methodArgs": [
|
"methodArgs": [
|
||||||
"https://vg.no","10","1"
|
"https://vg.no","10","1"
|
||||||
],
|
],
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
"methodTimeout": 5,
|
"methodTimeout": 5,
|
||||||
"replyMethodTimeout": 120,
|
"replyMethodTimeout": 120,
|
||||||
"directory": "test",
|
"directory": "test",
|
||||||
"fileName": "test.txt"
|
"fileName": "test.txt",
|
||||||
|
"schedule": [2,5]
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Reference in a new issue