From 004870f40d80f3796d56f322e1bde13abf72453a Mon Sep 17 00:00:00 2001 From: f-galland Date: Tue, 12 Nov 2024 14:52:50 -0300 Subject: [PATCH] Fix host custom schema --- .../fields/custom/host.yml | 48 ++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/ecs/states-inventory-hardware/fields/custom/host.yml b/ecs/states-inventory-hardware/fields/custom/host.yml index a0356d13da657..7df6e4dacae6d 100644 --- a/ecs/states-inventory-hardware/fields/custom/host.yml +++ b/ecs/states-inventory-hardware/fields/custom/host.yml @@ -3,4 +3,50 @@ reusable: top_level: true expected: - - { at: agent, as: host } \ No newline at end of file + - { at: agent, as: host } + fields: + - name: memory + description: > + Memory related data + type: object + level: custom + - name: memory.total + description: > + Total memory in MB + type: long + level: custom + - name: memory.free + description: > + Free memory in MB + type: long + level: custom + - name: memory.used + description: > + Used memory related data + type: object + level: custom + - name: memory.used.percentage + description: > + Used memory percentage + type: long + level: custom + - name: cpu + description: > + CPU related data + type: object + level: custom + - name: cpu.name + description: > + CPU Model name + type: keyword + level: custom + - name: cpu.cores + description: > + Number of CPU cores + type: long + level: custom + - name: cpu.speed + description: > + CPU clock speed + type: long + level: custom \ No newline at end of file