code: func (c *StatsConnection) GetSystemStats() (*api.SystemStats, error) {
  	stats, err := c.statsClient.DumpStats(SystemStatsPrefix)
  	if err != nil {
  		return nil, err
  	}
  
  	sysStats := &api.SystemStats{}
  
  	for _, stat := range stats {
  		switch stat.Name {
  		case SystemStats_VectorRate:
  			sysStats.VectorRate = scalarStatToFloat64(stat.Data)
  		case SystemStats_InputRate:
  			sysStats.InputRate = scalarStatToFloat64(stat.Data)
  		case SystemStats_LastUpdate:
  			sysStats.LastUpdate = scalarStatToFloat64(stat.Data)
  		case SystemStats_LastStatsClear:
  			sysStats.LastStatsClear = scalarStatToFloat64(stat.Data)
  		case SystemStats_Heartbeat:
  			sysStats.Heartbeat = scalarStatToFloat64(stat.Data)
  		}
  	}
  
  	return sysStats, nil
  }
docs: // GetSystemStats retrieves VPP system stats.