// ListContainerStats returns stats of all running containers.
ListContainerStats returns stats of all running containers.
// ListContainerStats returns stats of all running containers .
func (p *PrivilegedRuntime) ListContainerStats(filter *kubeapi.ContainerStatsFilter) ([]*kubeapi.ContainerStats, error) {
	request := &kubeapi.ListContainerStatsRequest{
		Filter: filter,
	}
	logrus.Debugf("ListContainerStatsRequest: %v", request)
	r, err := runtimeClient.ListContainerStats(context.Background(), request)
	logrus.Debugf("ListContainerResponse: %v", r)
	if err != nil {
		return nil, err
	}
	return r.Stats, nil
}
func ( p * PrivilegedRuntime ) ListContainerStats ( filter * kubeapi . ContainerStatsFilter ) ( [ ] * kubeapi . ContainerStats , error ) { request := & kubeapi . ListContainerStatsRequest { Filter : filter , } logrus . Debugf ( " " , request ) r , err := runtimeClient . ListContainerStats ( context . Background ( ) , request ) logrus . Debugf ( " " , r ) if err != nil { return nil , err } return r . Stats , nil }
ListContainerStats returns stats of all running containers.
ListContainerStats returns stats of all running containers .