Move the two live-validated workflows into n8n/workflows/ (credential- based auth referenced by name only, no secret values), add a manifest covering all 4 canonical workflows and a read-only drift-check script against n8n's Public API. Retire the pre-integration root-level starter files that still carried the literal-token pattern, and repoint the Unraid deploy scripts, Makefile targets and runbook at the new files. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
86 lines
2.2 KiB
JSON
86 lines
2.2 KiB
JSON
{
|
|
"id": "mobilityops-scheduled-quality-scan",
|
|
"name": "Fleet Ops — Scheduled Data Quality Scan",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"rule": {
|
|
"interval": [
|
|
{
|
|
"field": "hours",
|
|
"hoursInterval": 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": "schedule-node",
|
|
"name": "Hourly schedule",
|
|
"type": "n8n-nodes-base.scheduleTrigger",
|
|
"typeVersion": 1.2,
|
|
"position": [240, 220]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "manual-node",
|
|
"name": "Manual test trigger",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"typeVersion": 1,
|
|
"position": [240, 400]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"method": "POST",
|
|
"url": "http://192.168.10.150:1236/api/v1/integrations/n8n/scheduled-scan",
|
|
"authentication": "genericCredentialType",
|
|
"genericAuthType": "httpHeaderAuth",
|
|
"sendHeaders": true,
|
|
"headerParameters": {
|
|
"parameters": []
|
|
},
|
|
"options": {
|
|
"timeout": 15000
|
|
}
|
|
},
|
|
"id": "scan-node",
|
|
"name": "Run quality scan",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.2,
|
|
"position": [520, 300],
|
|
"credentials": {
|
|
"httpHeaderAuth": {
|
|
"name": "Fleet Ops Service Token"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"jsCode": "const created = $json.created ?? {};\nconst total = Object.values(created).reduce((a, b) => a + b, 0);\nreturn [{json: {total_created: total, created_by_rule: created}}];"
|
|
},
|
|
"id": "summarize-node",
|
|
"name": "Summarize result",
|
|
"type": "n8n-nodes-base.code",
|
|
"typeVersion": 2,
|
|
"position": [780, 300]
|
|
}
|
|
],
|
|
"connections": {
|
|
"Hourly schedule": {
|
|
"main": [[{ "node": "Run quality scan", "type": "main", "index": 0 }]]
|
|
},
|
|
"Manual test trigger": {
|
|
"main": [[{ "node": "Run quality scan", "type": "main", "index": 0 }]]
|
|
},
|
|
"Run quality scan": {
|
|
"main": [[{ "node": "Summarize result", "type": "main", "index": 0 }]]
|
|
}
|
|
},
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"active": true,
|
|
"meta": {
|
|
"templateCredsSetupCompleted": false
|
|
},
|
|
"tags": []
|
|
}
|