1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-15 17:51:15 +00:00
ctrl/doc/example-messages/create-startup-relay-central.json
2022-03-11 11:44:19 +01:00

19 lines
839 B
JSON

[
{
"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"
}
]