micro-analytics / micro-analytics-cli

Public analytics as a Node.js microservice. No sysadmin experience required! 📈
MIT License
734 stars 39 forks source link

Healthcheck endpoint #55

Closed relekang closed 7 years ago

relekang commented 7 years ago

GET - /_health

{
  health: "ok" | "critical" | "unknown", 
  version: "2.0.0",
  adapter: {
    name: "flat-file-db",
    version: "1.0.0"
  }
}

The endpoint should call db.health that should return "ok" | "critical" | "unknown". If adapter has implemented health it should offload to that function if not it should return"unknown".