{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "services-health-schema", "type": "object", "title": "The root schema", "description": "The root schema comprises the entire JSON document.", "properties": { "id": { "type": "string", "examples": [ "AdminEssentials" ] }, "package_id": { "$ref": "services-schema#/properties/model" }, "version": { "type": "string", "examples": [ "0.0.1", "0.1.0", "1.0.0", "1.1.1-2020.1.0" ] }, "type": { "type": "string", "enum": [ "Adapter", "Application" ] }, "description": { "type": "string", "examples": [ "A basic description" ] }, "state": { "type": "string", "enum": [ "DEAD", "STOPPED", "RUNNING", "DELETED" ] }, "connection": { "type": "object", "oneOf": [ { "const": null }, { "properties": { "state": { "type": "string", "examples": [ "ONLINE" ] } } } ] }, "uptime": { "type": "number", "examples": [ "2245.9722" ] }, "memoryUsage": { "type": "object", "properties": { "rss": { "type": "integer", "examples": [ "7125982" ] }, "heapTotal": { "type": "integer", "examples": [ "7125982" ] }, "heapUsed": { "type": "integer", "examples": [ "7125982" ] }, "external": { "type": "integer", "examples": [ "7125982" ] } } }, "cpuUsage": { "type": "object", "properties": { "user": { "type": "integer", "examples": [ "7125982" ] }, "system": { "type": "integer", "examples": [ "7125982" ] } } }, "pid": { "type": "integer", "examples": [ "7125982" ] }, "logger": { "type": "object", "properties": { "console": { "$ref": "services-schema#/definitions/log_level" }, "file": { "$ref": "services-schema#/definitions/log_level" }, "syslog": { "$ref": "services-schema#/properties/syslog" } } }, "routePrefix": { "type": "string", "examples": [ "admin", "search" ] }, "prevUptime": { "type": "number", "examples": [ "2245.9722" ] } } }