Skip to content

Commit

Permalink
expand gpus information resources
Browse files Browse the repository at this point in the history
  • Loading branch information
dusanstanis committed Jun 28, 2024
1 parent 3a264e3 commit 3f50e2e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions go/inventory/v1/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
)

type ResourcesMetric struct {
CPU uint64 `json:"cpu"`
GPU uint64 `json:"gpu"`
Memory uint64 `json:"memory"`
StorageEphemeral uint64 `json:"storage_ephemeral"`
CPU uint64 `json:"cpu"`
GPU uint64 `json:"gpu"`
GPU_infos GPUInfoS `json:"gpu_infos"`

Check failure on line 12 in go/inventory/v1/metrics.go

View workflow job for this annotation

GitHub Actions / proto

var-naming: don't use underscores in Go names; struct field GPU_infos should be GPUInfos (revive)

Check failure on line 12 in go/inventory/v1/metrics.go

View workflow job for this annotation

GitHub Actions / proto

var-naming: don't use underscores in Go names; struct field GPU_infos should be GPUInfos (revive)
Memory uint64 `json:"memory"`
StorageEphemeral uint64 `json:"storage_ephemeral"`
}

type NodeMetrics struct {
Expand Down

0 comments on commit 3f50e2e

Please sign in to comment.