API health monitoring (Cron → HTTP Request → IF → Slack + log)
Quick summary
Trigger
Cron - Every 15 minutes
Steps
6
Step outline
Cron - Every 15 minutes → HTTP Request - Healthcheck Endpoint → IF: Response OK? → Slack - Post Failure Alert → Google Sheets - Append Row (Uptime log)
Lanes
4
Integrations
API, Google Sheets, n8n, Slack
FlowZap Code
schedule { # Schedule
n1: rectangle label:"Cron - Every 15 minutes" system:"n8n"
n2: rectangle label:"HTTP Request - Healthcheck Endpoint" system:"API"
n1.handle(right) -> n2.handle(left) [label="Ping"]
}
decision { # Decision
n3: diamond label:"IF: Response OK?" system:"n8n"
schedule.n2.handle(right) -> decision.n3.handle(left) [label="Status code"]
}
notify { # Notify
n4: rectangle label:"Slack - Post Failure Alert" system:"Slack"
n5: rectangle label:"Slack - Post Recovery Notice" system:"Slack"
decision.n3.handle(bottom) -> notify.n4.handle(top) [label="No → Alert"]
decision.n3.handle(right) -> notify.n5.handle(left) [label="Yes → OK"]
}
audit { # Audit
n6: rectangle label:"Google Sheets - Append Row (Uptime log)" system:"Google Sheets"
notify.n4.handle(bottom) -> audit.n6.handle(top) [label="Log incident"]
notify.n5.handle(bottom) -> audit.n6.handle(top) [label="Log OK"]
}