HostHealthResult
Estrutura de dados do contrato OpenAPI.
Estrutura de dados do contrato OpenAPI.
Campos
| Campo | Tipo | Presença | Descrição |
|---|---|---|---|
ageSeconds | number / null | obrigatório | — |
errors | array<string> / null | obrigatório | — |
snapshot | object / null | obrigatório | — |
status | string | obrigatório | Valores: "ok", "degraded", "stale", "unavailable" |
Definição OpenAPI
json
{
"additionalProperties": true,
"properties": {
"ageSeconds": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
},
"errors": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
]
},
"snapshot": {
"anyOf": [
{
"$ref": "#/components/schemas/HostHealthSnapshot"
},
{
"type": "null"
}
]
},
"status": {
"enum": [
"ok",
"degraded",
"stale",
"unavailable"
],
"type": "string"
}
},
"required": [
"status",
"ageSeconds",
"snapshot",
"errors"
],
"type": "object"
}