telegraf/plugins/inputs/kubernetes/kubernetes_pods.go

18 lines
368 B
Go
Raw Normal View History

package kubernetes
type Pods struct {
Kind string `json:"kind"`
ApiVersion string `json:"apiVersion"`
Items []Item `json:"items"`
}
type Item struct {
Metadata Metadata `json:"metadata"`
}
type Metadata struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Labels map[string]string `json:"labels"`
}