M14: add n8n execution health telemetry
This commit is contained in:
@@ -69,6 +69,33 @@
|
||||
"maxTries": 3,
|
||||
"waitBetweenTries": 1000
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"method": "POST",
|
||||
"url": "http://192.168.10.150:1236/api/v1/integrations/n8n/heartbeat",
|
||||
"authentication": "genericCredentialType",
|
||||
"genericAuthType": "httpHeaderAuth",
|
||||
"sendBody": true,
|
||||
"contentType": "json",
|
||||
"specifyBody": "keypair",
|
||||
"bodyParameters": { "parameters": [
|
||||
{ "name": "workflow_id", "value": "={{ $workflow.id }}" },
|
||||
{ "name": "workflow_name", "value": "={{ $workflow.name }}" },
|
||||
{ "name": "execution_id", "value": "={{ $execution.id }}" },
|
||||
{ "name": "status", "value": "succeeded" }
|
||||
]},
|
||||
"options": { "timeout": 15000 }
|
||||
},
|
||||
"id": "heartbeat-node",
|
||||
"name": "Report workflow heartbeat",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4.2,
|
||||
"position": [980, 300],
|
||||
"credentials": { "httpHeaderAuth": { "name": "Fleet Ops Service Token" } },
|
||||
"retryOnFail": true,
|
||||
"maxTries": 3,
|
||||
"waitBetweenTries": 1000
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"respondWith": "json",
|
||||
@@ -79,7 +106,7 @@
|
||||
"name": "Return result",
|
||||
"type": "n8n-nodes-base.respondToWebhook",
|
||||
"typeVersion": 1.4,
|
||||
"position": [1020, 300]
|
||||
"position": [1220, 300]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
@@ -90,6 +117,9 @@
|
||||
"main": [[{ "node": "Record follow-up", "type": "main", "index": 0 }]]
|
||||
},
|
||||
"Record follow-up": {
|
||||
"main": [[{ "node": "Report workflow heartbeat", "type": "main", "index": 0 }]]
|
||||
},
|
||||
"Report workflow heartbeat": {
|
||||
"main": [[{ "node": "Return result", "type": "main", "index": 0 }]]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user