Files
MobilityOps/n8n/workflows/fleet-ops-data-quality-scan.json
NuklearRabbit 24dcb3494c
MobilityOps acceptance / backend (push) Failing after 47s
MobilityOps acceptance / frontend (push) Successful in 29s
MobilityOps acceptance / e2e (push) Skipped
M41: harden trust boundaries and delivery
2026-08-21 17:06:59 +02:00

119 lines
3.4 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": "https://fleetops.itworx.tech/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"
}
},
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 1000
},
{
"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]
},
{
"parameters": {
"method": "POST",
"url": "https://fleetops.itworx.tech/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": [1020, 300],
"credentials": { "httpHeaderAuth": { "name": "Fleet Ops Service Token" } },
"retryOnFail": true,
"maxTries": 3,
"waitBetweenTries": 1000
}
],
"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 }]]
},
"Summarize result": {
"main": [[{ "node": "Report workflow heartbeat", "type": "main", "index": 0 }]]
}
},
"settings": {
"executionOrder": "v1"
},
"active": true,
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}