Files
n8n/flows/40.json

117 lines
2.3 KiB
JSON
Raw Normal View History

2022-06-27 21:00:30 +00:00
{
"id": 40,
"name": "uptime",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "uptime",
"options": {}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
460,
300
],
"webhookId": "80250329-a910-427d-ba04-3008cd4f9f42"
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "time",
"value": "={{$json[\"body\"][\"heartbeat\"][\"time\"]}}"
},
{
"name": "status",
"value": "={{$json[\"body\"][\"heartbeat\"][\"msg\"]}}"
},
{
"name": "name",
"value": "={{$json[\"body\"][\"monitor\"][\"name\"]}}"
}
],
"number": [
{
"name": "duration",
"value": "={{$json[\"body\"][\"heartbeat\"][\"duration\"]}}"
}
]
},
"options": {}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
680,
300
]
},
{
"parameters": {
"operation": "create",
"docId": "4jnAms4LS4ZWzrGWvRZC1w",
"tableId": "Records",
"dataToSend": "autoMapInputs"
},
"name": "Grist",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
900,
300
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Set": {
"main": [
[
{
"node": "Grist",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-27T07:09:37.336Z",
"updatedAt": "2022-06-27T07:46:40.820Z",
"settings": {},
"staticData": null,
"tags": []
}