38 lines
801 B
JSON
38 lines
801 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "SCUMCompanionHealthSnapshot",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["status", "observedAt"],
|
|
"properties": {
|
|
"status": {
|
|
"type": "string",
|
|
"enum": ["online", "degraded", "offline"]
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 40
|
|
},
|
|
"observedAt": {
|
|
"type": "string",
|
|
"maxLength": 64,
|
|
"format": "date-time"
|
|
},
|
|
"latencyMs": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 30000
|
|
},
|
|
"capabilities": {
|
|
"type": "array",
|
|
"maxItems": 16,
|
|
"items": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9.-]{0,79}$"
|
|
},
|
|
"uniqueItems": true
|
|
}
|
|
}
|
|
}
|