From 274bac23ce038619b338741a369f8a2e84bfb0cd Mon Sep 17 00:00:00 2001 From: Rohit Agarwal Date: Thu, 16 Nov 2017 15:20:55 -0800 Subject: [PATCH] Fix accelerator stats API to follow API conventions. --- pkg/kubelet/apis/stats/v1alpha1/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/kubelet/apis/stats/v1alpha1/types.go b/pkg/kubelet/apis/stats/v1alpha1/types.go index ebe65861d82..00d5c58f876 100644 --- a/pkg/kubelet/apis/stats/v1alpha1/types.go +++ b/pkg/kubelet/apis/stats/v1alpha1/types.go @@ -203,15 +203,15 @@ type AcceleratorStats struct { // Total accelerator memory. // unit: bytes - MemoryTotal uint64 `json:"memory_total"` + MemoryTotal uint64 `json:"memoryTotal"` // Total accelerator memory allocated. // unit: bytes - MemoryUsed uint64 `json:"memory_used"` + MemoryUsed uint64 `json:"memoryUsed"` // Percent of time over the past sample period (10s) during which // the accelerator was actively processing. - DutyCycle uint64 `json:"duty_cycle"` + DutyCycle uint64 `json:"dutyCycle"` } // VolumeStats contains data about Volume filesystem usage.