Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for criInterfaceToSummary (0.14 sec)

  1. pkg/kubelet/stats/cri_stats_provider_linux.go

    		Time:           metav1.NewTime(time.Unix(0, criNetwork.Timestamp)),
    		InterfaceStats: criInterfaceToSummary(criNetwork.DefaultInterface),
    		Interfaces:     make([]statsapi.InterfaceStats, 0, len(criNetwork.Interfaces)),
    	}
    	for _, iface := range criNetwork.Interfaces {
    		iStats.Interfaces = append(iStats.Interfaces, criInterfaceToSummary(iface))
    	}
    	ps.Network = &iStats
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 16 11:09:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/cri_stats_provider.go

    		id = strings.TrimSuffix(id, systemdSuffix)
    		components := strings.Split(id, "-")
    		if len(components) > 1 {
    			id = components[len(components)-1]
    		}
    	}
    	return id
    }
    
    func criInterfaceToSummary(criIface *runtimeapi.NetworkInterfaceUsage) statsapi.InterfaceStats {
    	return statsapi.InterfaceStats{
    		Name:     criIface.Name,
    		RxBytes:  valueOfUInt64Value(criIface.RxBytes),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
Back to top