Upload files to "/"
This commit is contained in:
164
n8n_dashboard_workflow.json
Normal file
164
n8n_dashboard_workflow.json
Normal file
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"name": "Export Workflow and Execution Count",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {
|
||||
"path": "9aee365b-a20a-4a63-9e90-cbc8425b16b0",
|
||||
"responseMode": "responseNode",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
0,
|
||||
64
|
||||
],
|
||||
"id": "b284835a-53a8-4ae2-8147-cacbd3a5284f",
|
||||
"name": "Webhook",
|
||||
"webhookId": "9aee365b-a20a-4a63-9e90-cbc8425b16b0"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"filters": {},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.n8n",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
288,
|
||||
0
|
||||
],
|
||||
"id": "cebc1615-1306-4864-b70c-a91aa0b11295",
|
||||
"name": "Get many workflows",
|
||||
"credentials": {}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "execution",
|
||||
"filters": {},
|
||||
"options": {},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.n8n",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
288,
|
||||
160
|
||||
],
|
||||
"id": "3a674b64-97f9-454d-9271-f9f2cce07160",
|
||||
"name": "Get many executions",
|
||||
"credentials": {}
|
||||
},
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 3.2,
|
||||
"position": [
|
||||
544,
|
||||
64
|
||||
],
|
||||
"id": "7e75e805-508b-4df7-9373-82299f5a2202",
|
||||
"name": "Merge"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.respondToWebhook",
|
||||
"typeVersion": 1.5,
|
||||
"position": [
|
||||
944,
|
||||
64
|
||||
],
|
||||
"id": "5093ee20-84ef-4f63-aaea-517df38f54a6",
|
||||
"name": "Respond to Webhook"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"jsCode": "const workflows = $(\"Get many workflows\").all();\nconst executions = $(\"Get many executions\").all();\n\nreturn {\n \"item\": \"n8n Stats\",\n \"data\": [\n {\n \"label\": \"Workflows\",\n \"value\": workflows.length.toString(),\n \"units\": \"\"\n },\n {\n \"label\": \"Executions\",\n \"value\": executions.length.toString(),\n \"units\": \"\"\n }\n ]\n};"
|
||||
},
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
736,
|
||||
64
|
||||
],
|
||||
"id": "cb3a1e92-8bc2-4a67-9753-61ed8a4c6b29",
|
||||
"name": "Code in JavaScript"
|
||||
}
|
||||
],
|
||||
"pinData": {},
|
||||
"connections": {
|
||||
"Webhook": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Get many workflows",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Get many executions",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get many workflows": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get many executions": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Code in JavaScript",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Code in JavaScript": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Respond to Webhook",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": true,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "25fe6b28-f35a-4017-adc3-2d910ebb0f70",
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true,
|
||||
"instanceId": "94199e74ac3566a1332ef5ebc4dfc62b9bb34e96a0188a82b5967f449f5edefd"
|
||||
},
|
||||
"id": "ppp4nNLDyPuP3RiI",
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user