func GetUriFilteringTrafficPerPort(engine *xorm.Engine, telePreMitigationId int64, trafficType string) (trafficList []UriFilteringTrafficPerPort, err error) {
	trafficList = []UriFilteringTrafficPerPort{}
	err = engine.Where("tele_pre_mitigation_id = ? AND traffic_type = ?", telePreMitigationId, trafficType).OrderBy("id ASC").Find(&trafficList)
	return
}
Get uri filtering traffic per port
package db_models
import "time"
import "github.com/go-xorm/xorm"
type UriFilteringTrafficPerPort struct {
	Id                  int64     `xorm:"'id' pk autoincr"`
	TelePreMitigationId int64     `xorm:"'tele_pre_mitigation_id' not null"`
	TrafficType         string    `xorm:"'traffic_type' enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') not null"`
	Unit                string    `xorm:"'unit' enum('PACKETS_PS','BITS_PS','BYTES_PS','KILOPACKETS_PS','KILOBITS_PS','KILOBYTES_PS','MEGAPACKETS_PS','MEGABITS_PS','MEGABYTES_PS','GIGAPACKETS_PS','GIGABITS_PS','GIGABYTES_PS','TERAPACKETS_PS','TERABITS_PS','TERABYTES_PS') not null"`
	Port                int       `xorm:"'port' not null"`
	LowPercentileG      int       `xorm:"'low_percentile_g'"`
	MidPercentileG      int       `xorm:"'mid_percentile_g'"`
	HighPercentileG     int       `xorm:"'high_percentile_g'"`
	PeakG               int       `xorm:"'peak_g'"`
	Created             time.Time `xorm:"created"`
	Updated             time.Time `xorm:"updated"`
}