HostHealthSnapshot
Estrutura de dados do contrato OpenAPI.
Estrutura de dados do contrato OpenAPI.
Campos
| Campo | Tipo | Presença | Descrição |
|---|---|---|---|
cpu | object | obrigatório | Modelo: HostHealthCPU. |
diskIO | object | obrigatório | Modelo: HostHealthDiskIO. |
errors | array<string> / null | obrigatório | — |
intervalSeconds | number / null | obrigatório | — |
load | object | obrigatório | Modelo: HostHealthLoad. |
memory | object | obrigatório | Modelo: HostHealthMemory. |
network | object | obrigatório | Modelo: HostHealthNetwork. |
operations | object / null | opcional | — |
rootFilesystem | object | obrigatório | Modelo: HostHealthFilesystem. |
sampledAt | string | obrigatório | Formato: date-time |
schemaVersion | integer | obrigatório | Valor fixo: 1. Mínimo: 0 |
source | string | obrigatório | Valores: "host" |
swap | object | obrigatório | Modelo: HostHealthSwap. |
uptimeSeconds | number / null | obrigatório | — |
validForSeconds | integer | obrigatório | Mínimo: 1. Máximo: 3600 |
Definição OpenAPI
json
{
"additionalProperties": true,
"properties": {
"cpu": {
"$ref": "#/components/schemas/HostHealthCPU"
},
"diskIO": {
"$ref": "#/components/schemas/HostHealthDiskIO"
},
"errors": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
]
},
"intervalSeconds": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
},
"load": {
"$ref": "#/components/schemas/HostHealthLoad"
},
"memory": {
"$ref": "#/components/schemas/HostHealthMemory"
},
"network": {
"$ref": "#/components/schemas/HostHealthNetwork"
},
"operations": {
"anyOf": [
{
"$ref": "#/components/schemas/HostHealthOperations"
},
{
"type": "null"
}
]
},
"rootFilesystem": {
"$ref": "#/components/schemas/HostHealthFilesystem"
},
"sampledAt": {
"format": "date-time",
"type": "string"
},
"schemaVersion": {
"const": 1,
"minimum": 0,
"type": "integer"
},
"source": {
"enum": [
"host"
],
"type": "string"
},
"swap": {
"$ref": "#/components/schemas/HostHealthSwap"
},
"uptimeSeconds": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
]
},
"validForSeconds": {
"maximum": 3600,
"minimum": 1,
"type": "integer"
}
},
"required": [
"schemaVersion",
"source",
"sampledAt",
"validForSeconds",
"intervalSeconds",
"uptimeSeconds",
"cpu",
"memory",
"swap",
"load",
"rootFilesystem",
"network",
"diskIO",
"errors"
],
"type": "object"
}