R/health.R

Defines functions health

#* Basic health diagnostics
#* 
#* @get /health
health <- function() {
  redis_status <- "NOT DETECTED"
  
  if (!is.null(getRedisClient())) {
    redis_status <- "OK"
  }
  
  list(
    server = "OK", 
    redis = redis_status
  )
}
AntoniosBarotsis/ATP-API documentation built on Dec. 17, 2021, 9:41 a.m.