// ContainerStats returns stats of the container.
ContainerStats returns stats of the container.
// ContainerStats returns stats of the container .
func (p *PrivilegedRuntime) ContainerStats(containerID string) (*kubeapi.ContainerStats, error) {
	request := &kubeapi.ContainerStatsRequest{
		ContainerId: containerID,
	}
	logrus.Debugf("ListContainerStatsRequest: %v", request)
	r, err := runtimeClient.ContainerStats(context.Background(), request)
	logrus.Debugf("ListContainerResponse: %v", r)
	if err != nil {
		return nil, err
	}
	return r.Stats, nil
}
func ( p * PrivilegedRuntime ) ContainerStats ( containerID string ) ( * kubeapi . ContainerStats , error ) { request := & kubeapi . ContainerStatsRequest { ContainerId : containerID , } logrus . Debugf ( " " , request ) r , err := runtimeClient . ContainerStats ( context . Background ( ) , request ) logrus . Debugf ( " " , r ) if err != nil { return nil , err } return r . Stats , nil }
ContainerStats returns stats of the container.
ContainerStats returns stats of the container .