Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #9 from palavrapasse/8-bug-define-json-tags-in-hea…
Browse files Browse the repository at this point in the history
…lthstatus

bug: define json tags in HealthStatus
  • Loading branch information
rutesantos4 authored Feb 7, 2023
2 parents bd095fb + 7054122 commit e2cead4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/healthstatus.go
Original file line number Diff line number Diff line change
@@ -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"`
}

0 comments on commit e2cead4

Please sign in to comment.