From 70541222875aea9a97bccac3042ace89c0e828a4 Mon Sep 17 00:00:00 2001 From: RuteSantos <1160663@isep.ipp.pt> Date: Tue, 7 Feb 2023 22:41:58 +0000 Subject: [PATCH] include json tags in HealthStatus --- pkg/healthstatus.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/healthstatus.go b/pkg/healthstatus.go index 3482512..1169921 100644 --- a/pkg/healthstatus.go +++ b/pkg/healthstatus.go @@ -1,9 +1,9 @@ package pkg type HealthStatus struct { - CPU float64 - CPUPercentage float64 - RAM float64 - RAMPercentage float64 - RAMMax float64 + CPU float64 `json:"cpu"` + CPUPercentage float64 `json:"cpuPercentage"` + RAM float64 `json:"ram"` + RAMPercentage float64 `json:"ramPercentage"` + RAMMax float64 `json:"ramMax"` }