Kubernetes input: Handle null startTime for stopped pods (#2335)

This commit is contained in:
James Gregory
2017-02-02 01:41:04 +11:00
committed by Cameron Sparr
parent c65d74d54e
commit f0f913ab41
2 changed files with 43 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ type CPUMetrics struct {
// PodMetrics contains metric data on a given pod
type PodMetrics struct {
PodRef PodReference `json:"podRef"`
StartTime time.Time `json:"startTime"`
StartTime *time.Time `json:"startTime"`
Containers []ContainerMetrics `json:"containers"`
Network NetworkMetrics `json:"network"`
Volumes []VolumeMetrics `json:"volume"`