From 4c3b639e65395d675aee970ceb6b6011251eff21 Mon Sep 17 00:00:00 2001 From: postmannen Date: Wed, 19 Apr 2023 08:07:03 +0200 Subject: [PATCH] updated doc example messages --- .../clicommand-to-console.json | 4 +--- doc/example-messages/copy-files.json | 13 ++++++++----- .../create-startup-relay-central.json | 19 ------------------- doc/example-messages/http-get-scheduled.json | 5 +++-- 4 files changed, 12 insertions(+), 29 deletions(-) delete mode 100644 doc/example-messages/create-startup-relay-central.json diff --git a/doc/example-messages/clicommand-to-console.json b/doc/example-messages/clicommand-to-console.json index 64d2614..69e102d 100644 --- a/doc/example-messages/clicommand-to-console.json +++ b/doc/example-messages/clicommand-to-console.json @@ -13,8 +13,6 @@ "replyACKTimeout": 5, "replyRetries": 5, "methodTimeout": 5, - "replyMethodTimeout": 120, - "directory": "debug", - "fileName": "test.txt" + "replyMethodTimeout": 120 } ] \ No newline at end of file diff --git a/doc/example-messages/copy-files.json b/doc/example-messages/copy-files.json index 6d35c90..d04e4a9 100644 --- a/doc/example-messages/copy-files.json +++ b/doc/example-messages/copy-files.json @@ -2,9 +2,12 @@ { "directory": "copy", "fileName": "copy.log", - "toNodes": ["ship1"], - "method":"REQCopyFileFrom", - "methodArgs": ["./tmp2.txt","ship2","/tmp/tmp2.txt"], - "replyMethod":"REQToFileAppend" + "toNodes": ["central"], + "method":"REQCopySrc", + "methodArgs": ["./testbinary","ship1","./apekatt/testbinary-copied","900000","60","0700"], + "methodTimeout": 10, + "retryWait" : 5, + "retries" : 3, + "replyMethod":"REQToConsole" } -] \ No newline at end of file +] diff --git a/doc/example-messages/create-startup-relay-central.json b/doc/example-messages/create-startup-relay-central.json deleted file mode 100644 index 8658caa..0000000 --- a/doc/example-messages/create-startup-relay-central.json +++ /dev/null @@ -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" - } -] diff --git a/doc/example-messages/http-get-scheduled.json b/doc/example-messages/http-get-scheduled.json index 98487f7..9c3d544 100644 --- a/doc/example-messages/http-get-scheduled.json +++ b/doc/example-messages/http-get-scheduled.json @@ -1,7 +1,7 @@ [ { "toNodes": ["ship1"], - "method": "REQHttpGetScheduled", + "method": "REQHttpGet", "methodArgs": [ "https://vg.no","10","1" ], @@ -13,6 +13,7 @@ "methodTimeout": 5, "replyMethodTimeout": 120, "directory": "test", - "fileName": "test.txt" + "fileName": "test.txt", + "schedule": [2,5] } ] \ No newline at end of file