# HostHealthSnapshot Estrutura de dados do contrato OpenAPI. ## Campos | Campo | Tipo | Presença | Descrição | |---|---|---|---| | `cpu` | `object` | obrigatório | Modelo: [HostHealthCPU](https://wpp.atendro.cloud/docs/modelos/host-health-cpu.md). | | `diskIO` | `object` | obrigatório | Modelo: [HostHealthDiskIO](https://wpp.atendro.cloud/docs/modelos/host-health-disk-io.md). | | `errors` | `array / null` | obrigatório | — | | `intervalSeconds` | `number / null` | obrigatório | — | | `load` | `object` | obrigatório | Modelo: [HostHealthLoad](https://wpp.atendro.cloud/docs/modelos/host-health-load.md). | | `memory` | `object` | obrigatório | Modelo: [HostHealthMemory](https://wpp.atendro.cloud/docs/modelos/host-health-memory.md). | | `network` | `object` | obrigatório | Modelo: [HostHealthNetwork](https://wpp.atendro.cloud/docs/modelos/host-health-network.md). | | `operations` | `object / null` | opcional | — | | `rootFilesystem` | `object` | obrigatório | Modelo: [HostHealthFilesystem](https://wpp.atendro.cloud/docs/modelos/host-health-filesystem.md). | | `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](https://wpp.atendro.cloud/docs/modelos/host-health-swap.md). | | `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" } ```