func GetInterfaceStats(c *NitroClient, querystring string) (NSAPIResponse, error) {
	stats, err := c.GetStats("interface", querystring)
	if err != nil {
		return NSAPIResponse{}, err
	}
	var response = new(NSAPIResponse)
	err = json.Unmarshal(stats, &response)
	if err != nil {
		return NSAPIResponse{}, errors.Wrap(err, "error unmarshalling response body")
	}
	return *response, nil
}
GetInterfaceStats queries the Nitro API for interface stats
package netscaler
import (
	"encoding/json"
	"github.com/pkg/errors"
)
type InterfaceStats struct {
	ID                      string `json:"id"`
	TotalReceivedBytes      string `json:"totrxbytes"`
	TotalTransmitBytes      string `json:"tottxbytes"`
	TotalReceivedPackets    string `json:"totrxpkts"`
	TotalTransmitPackets    string `json:"tottxpkts"`
	JumboPacketsReceived    string `json:"jumbopktsreceived"`
	JumboPacketsTransmitted string `json:"jumbopktstransmitted"`
	ErrorPacketsReceived    string `json:"errpktrx"`
	Alias                   string `json:"interfacealias"`
}