PlugCheckup v0.2.1 PlugCheckup.Check.Formatter View Source

Format the given checks into a list of maps which respects the following JSON schema

{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "title": "Health check list",
  "type": "array",
  "items": {
    "title": "Check",
    "type": "object",
    "properties": {
      "name": {
        "description": "The name of this check, for example: 'redis', or 'postgres'",
        "type": "string"
      },
      "healthy": {
        "description": "If the check was successful or not",
        "type" : "boolean"
      },
      "time": {
        "description": "How long the check took to run",
        "type": "integer"
      },
      "error": {
        "description": "The error reason in case the check fails",
        "type": "string"
      }
    }
  }
}

Link to this section Summary

Link to this section Functions