db_models

package
v0.0.0-...-e8c9bfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ParameterValueFieldTrafficProtocol = "TrafficProtocol"
View Source
const ParameterValueTypeAliasName = "ALIAS_NAME"
View Source
const ParameterValueTypeFqdn = "FQDN"
View Source
const ParameterValueTypeTargetProtocol = "TARGET_PROTOCOL"
View Source
const ParameterValueTypeTrafficProtocol = "TRAFFIC_PROTOCOL"
View Source
const ParameterValueTypeUri = "URI"
View Source
const PortRangeTypeSourcePort = "SOURCE_PORT"
View Source
const PortRangeTypeTargetPort = "TARGET_PORT"
View Source
const PrefixTypeAddressRange = "ADDRESS_RANGE"
View Source
const PrefixTypeDestinationIpv4Network = "DESTINATION_IPV4_NETWORK"
View Source
const PrefixTypeIp = "IP"
View Source
const PrefixTypeIpAddress = "IP_ADDRESS"
View Source
const PrefixTypePrefix = "PREFIX"
View Source
const PrefixTypeSourceIpv4Network = "SOURCE_IPV4_NETWORK"
View Source
const PrefixTypeSourcePrefix = "SOURCE_PREFIX"
View Source
const PrefixTypeTargetIp = "TARGET_IP"
View Source
const PrefixTypeTargetPrefix = "TARGET_PREFIX"
View Source
const TELEMETRY = "TELEMETRY"
View Source
const TELEMETRY_SETUP = "TELEMETRY_SETUP"

Variables

View Source
var TableLists []interface{}

Functions

func CreateIpAddress

func CreateIpAddress(addr string, prefixLen int) (ipAddress string)

func DeleteBaselineById

func DeleteBaselineById(session *xorm.Session, id int64) (err error)

Delete baseline by id

func DeleteControlFiltering

func DeleteControlFiltering(session *xorm.Session, mitigationScopeId int64) (err error)

func DeleteCustomerParameterValue

func DeleteCustomerParameterValue(session *xorm.Session, customerId int) (err error)

func DeleteCustomerPrefix

func DeleteCustomerPrefix(session *xorm.Session, customerId int) (err error)

func DeleteMitigationScopeICMPTypeRange

func DeleteMitigationScopeICMPTypeRange(session *xorm.Session, mitigationScopeId int64) (err error)

* Delete icmp type range by mitigation scope id

func DeleteMitigationScopeParameterValue

func DeleteMitigationScopeParameterValue(session *xorm.Session, mitigationScopeId int64) (err error)

func DeleteMitigationScopePortRange

func DeleteMitigationScopePortRange(session *xorm.Session, mitigationScopeId int64) (err error)

* Delete port range by mitigation scope id

func DeleteMitigationScopePrefix

func DeleteMitigationScopePrefix(session *xorm.Session, mitigationScopeId int64) (err error)

func DeleteTelemetryAttackDetailById

func DeleteTelemetryAttackDetailById(session *xorm.Session, id int64) (err error)

Delete telemetry attack-detail by Id

func DeleteTelemetryConfigurationById

func DeleteTelemetryConfigurationById(session *xorm.Session, id int64) (err error)

Delete telemetry configuration by id

func DeleteTelemetryParameterValue

func DeleteTelemetryParameterValue(session *xorm.Session, tType string, typeId int64) (err error)

Delete telemetry parameter value

func DeleteTelemetryPortRange

func DeleteTelemetryPortRange(session *xorm.Session, tType string, typeId int64, prefixType string) (err error)

Delete telemetry port range

func DeleteTelemetryPrefix

func DeleteTelemetryPrefix(session *xorm.Session, tType string, typeId int64, prefixType string) (err error)

Delete telemetry prefix

func DeleteTelemetrySetupById

func DeleteTelemetrySetupById(session *xorm.Session, id int64) (err error)

Delete telemetry setup by id

func DeleteTelemetrySourceCountByTeleAttackDetailId

func DeleteTelemetrySourceCountByTeleAttackDetailId(session *xorm.Session, teleAdId int64) (err error)

Delete attack-detail by Id

func DeleteTelemetrySourceICMPTypeRange

func DeleteTelemetrySourceICMPTypeRange(session *xorm.Session, teleTopTalkerId int64) (err error)

Delete telemetry source icmp type range by telemetry top talker id

func DeleteTelemetrySourcePortRange

func DeleteTelemetrySourcePortRange(session *xorm.Session, teleTopTalkerId int64) (err error)

Delete telemetry source port range

func DeleteTelemetrySourcePrefix

func DeleteTelemetrySourcePrefix(session *xorm.Session, teleTopTalkerId int64) (err error)

Delete telemetry source prefix

func DeleteTelemetryTopTalkerById

func DeleteTelemetryTopTalkerById(session *xorm.Session, id int64) (err error)

Delete telemetry top-talker by Id

func DeleteTelemetryTotalAttackConnection

func DeleteTelemetryTotalAttackConnection(session *xorm.Session, prefixType string, prefixTypeId int64) (err error)

Delete telemetry total attack connection (by mitigation)

func DeleteTelemetryTraffic

func DeleteTelemetryTraffic(session *xorm.Session, prefixType string, prefixTypeId int64, trafficType string) (err error)

Delete telemetry traffic (by mitigation)

func DeleteTotalConnectionCapacityByTeleBaselineId

func DeleteTotalConnectionCapacityByTeleBaselineId(session *xorm.Session, teleBaselineId int64) (err error)

Delete total connection capacity by teleBaselineId

func DeleteTotalConnectionCapacityPerPortByTeleBaselineId

func DeleteTotalConnectionCapacityPerPortByTeleBaselineId(session *xorm.Session, teleBaselineId int64) (err error)

Delete total connection capacity per port by teleBaselineId

func DeleteTotalPipeCapacityById

func DeleteTotalPipeCapacityById(session *xorm.Session, id int64) (err error)

Delete total pipe capacity by id

func DeleteTraffic

func DeleteTraffic(session *xorm.Session, tType string, typeId int64, prefixType string) (err error)

Delete traffic

func DeleteTrafficPerPort

func DeleteTrafficPerPort(session *xorm.Session, tType string, typeId int64) (err error)

Delete traffic per port

func DeleteTrafficPerProtocol

func DeleteTrafficPerProtocol(session *xorm.Session, tType string, typeId int64) (err error)

Delete traffic per protocol

func DeleteUnitConfigurationByTeleConfigId

func DeleteUnitConfigurationByTeleConfigId(session *xorm.Session, tcid int64) (err error)

Delete unit configuration by teleConfigId

func DeleteUriFilteringAttackDetailByTelePreMitigationId

func DeleteUriFilteringAttackDetailByTelePreMitigationId(session *xorm.Session, telePreMitigationId int64) (err error)

Delete uri filtering attack-detail by TelePreMitigationId

func DeleteUriFilteringIcmpTypeRange

func DeleteUriFilteringIcmpTypeRange(session *xorm.Session, teleTopTalkerId int64) (err error)

Delete uri filtering icmp type range by telemetry top talker id

func DeleteUriFilteringSourceCountByTeleAttackDetailId

func DeleteUriFilteringSourceCountByTeleAttackDetailId(session *xorm.Session, teleAdId int64) (err error)

Delete uri filtering attack-detail by Id

func DeleteUriFilteringSourcePortRange

func DeleteUriFilteringSourcePortRange(session *xorm.Session, teleTopTalkerId int64) (err error)

Delete uri filtering source port range

func DeleteUriFilteringSourcePrefix

func DeleteUriFilteringSourcePrefix(session *xorm.Session, teleTopTalkerId int64) (err error)

Delete uri filtering source prefix

func DeleteUriFilteringTelemetryPreMitigationByTmid

func DeleteUriFilteringTelemetryPreMitigationByTmid(session *xorm.Session, tmid int) (err error)

Delete uri filtering telemetry pre-mitigtaion by tmid

func DeleteUriFilteringTopTalkerByAttackDetailId

func DeleteUriFilteringTopTalkerByAttackDetailId(session *xorm.Session, teleAttackDetailId int64) (err error)

Delete uri filtering top-talker by Id

func DeleteUriFilteringTotalAttackConnectionPort

func DeleteUriFilteringTotalAttackConnectionPort(session *xorm.Session, telePreMitigationId int64) (err error)

Delete uri filtering total attack connection port

func DeleteUriFilteringTotalAttackConnectionProtocol

func DeleteUriFilteringTotalAttackConnectionProtocol(session *xorm.Session, prefixType string, prefixTypeId int64) (err error)

Delete uri filtering total attack connection protocol

func DeleteUriFilteringTraffic

func DeleteUriFilteringTraffic(session *xorm.Session, prefixType string, prefixTypeId int64) (err error)

Delete uri filtering traffic

func DeleteUriFilteringTrafficPerPort

func DeleteUriFilteringTrafficPerPort(session *xorm.Session, telePreMitigationId int64) (err error)

Delete uri filtering traffic per port

func DeleteUriFilteringTrafficPerProtocol

func DeleteUriFilteringTrafficPerProtocol(session *xorm.Session, telePreMitigationId int64) (err error)

Delete uri filtering traffic per protocol

func GetAliasNameValue

func GetAliasNameValue(param *ParameterValue) string

func GetFqdnValue

func GetFqdnValue(param *ParameterValue) string

func GetTargetProtocolValue

func GetTargetProtocolValue(param *ParameterValue) int

func GetTrafficProtocolValue

func GetTrafficProtocolValue(param *ParameterValue) int

func GetUriValue

func GetUriValue(param *ParameterValue) string

Types

type AristaParameter

type AristaParameter struct {
	Id               int64     `xorm:"'id' pk autoincr"`
	ProtectionId     int64     `xorm:"'protection_id' not null"`
	AclType          string    `xorm:"'acl_type' not null"`
	AclFilteringRule string    `xorm:"'acl_filtering_rule' not null"`
	Created          time.Time `xorm:"created"`
	Updated          time.Time `xorm:"updated"`
}

type Baseline

type Baseline struct {
	Id          int64     `xorm:"'id' pk autoincr"`
	TeleSetupId int64     `xorm:"'tele_setup_id' not null"`
	BaselineId  int       `xorm:"'baseline_id' not null"`
	Created     time.Time `xorm:"created"`
	Updated     time.Time `xorm:"updated"`
}

func GetBaselineByTeleSetupId

func GetBaselineByTeleSetupId(engine *xorm.Engine, teleSetupId int64) (baselineList []Baseline, err error)

Get baseline by teleSetupId

type Blocker

type Blocker struct {
	Id          int64     `xorm:"'id' pk autoincr"`
	BlockerType string    `xorm:"'blocker_type' not null"`
	Capacity    int       `xorm:"'capacity' not null"`
	Load        int       `xorm:"'load' not null index(idx_load)"`
	Created     time.Time `xorm:"created"`
	Updated     time.Time `xorm:"updated"`
}

type BlockerConfiguration

type BlockerConfiguration struct {
	Id          int64     `xorm:"'id' pk autoincr"`
	CustomerId  int       `xorm:"'customer_id' not null"`
	TargetType  string    `xorm:"'target_type' not null"`
	BlockerType string    `xorm:"'blocker_type' not null"`
	Created     time.Time `xorm:"created"`
	Updated     time.Time `xorm:"updated"`
}

type BlockerConfigurationParameter

type BlockerConfigurationParameter struct {
	Id                     int64     `xorm:"'id' pk autoincr"`
	BlockerConfigurationId int64     `xorm:"'blocker_configuration_id' not null"`
	Key                    string    `xorm:"'key' not null"`
	Value                  string    `xorm:"'value' not null"`
	Created                time.Time `xorm:"created"`
	Updated                time.Time `xorm:"updated"`
}

type BlockerParameter

type BlockerParameter struct {
	Id        int64     `xorm:"'id' pk autoincr"`
	BlockerId int64     `xorm:"'blocker_id' not null"`
	Key       string    `xorm:"'key' not null"`
	Value     string    `xorm:"'value' not null"`
	Created   time.Time `xorm:"created"`
	Updated   time.Time `xorm:"updated"`
}

type ControlFiltering

type ControlFiltering struct {
	Id                int64     `xorm:"'id' pk autoincr"`
	MitigationScopeId int64     `xorm:"'mitigation_scope_id'"`
	AclName           string    `xorm:"'acl_name'"`
	Created           time.Time `xorm:"created"`
	Updated           time.Time `xorm:"updated"`
}

func CreateControlFiltering

func CreateControlFiltering(aclName string) (controlFiltering *ControlFiltering)

type Customer

type Customer struct {
	Id         int       `xorm:"'id' pk autoincr"`
	CommonName string    `xorm:"'common_name' not null"`
	Created    time.Time `xorm:"created"`
	Updated    time.Time `xorm:"updated"`
}

type FlowSpecParameter

type FlowSpecParameter struct {
	Id           int64     `xorm:"'id' pk autoincr"`
	ProtectionId int64     `xorm:"'protection_id' not null"`
	FlowType     string    `xorm:"'flow_type' not null"`
	FlowSpec     []byte    `xorm:"'flow_specification' not null"`
	Created      time.Time `xorm:"created"`
	Updated      time.Time `xorm:"updated"`
}

type GoBgpParameter

type GoBgpParameter struct {
	Id            int64     `xorm:"'id' pk autoincr"`
	ProtectionId  int64     `xorm:"'protection_id' not null"`
	TargetAddress string    `xorm:"'target_address' not null"`
	Created       time.Time `xorm:"created"`
	Updated       time.Time `xorm:"updated"`
}

type IcmpTypeRange

type IcmpTypeRange struct {
	Id                int64     `xorm:"'id' pk autoincr"`
	MitigationScopeId int64     `xorm:"'mitigation_scope_id'"`
	LowerType         int       `xorm:"'lower_type'"`
	UpperType         int       `xorm:"'upper_type'"`
	Created           time.Time `xorm:"created"`
	Updated           time.Time `xorm:"updated"`
}

func CreateSourceICMPTypeRangeParam

func CreateSourceICMPTypeRangeParam(lowerType int, upperType int) (typeRange *IcmpTypeRange)

* Create source icmp type range

type MitigationScope

type MitigationScope struct {
	Id                     int64     `xorm:"'id' pk autoincr"`
	CustomerId             int       `xorm:"'customer_id'"`
	ClientIdentifier       string    `xorm:"'client_identifier'"`
	ClientDomainIdentifier string    `xorm:"'client_domain_identifier'"`
	MitigationId           int       `xorm:"'mitigation_id'"`
	Status                 int       `xorm:"'status'"`
	Lifetime               int       `xorm:"'lifetime'"`
	TriggerMitigation      bool      `xorm:"'trigger-mitigation'"`
	AttackStatus           int       `xorm:"'attack-status'"`
	AclName                string    `xorm:"'acl_name'"`
	Created                time.Time `xorm:"created"`
	Updated                time.Time `xorm:"updated"`
}

type ParameterValue

type ParameterValue struct {
	Id                int64     `xorm:"'id' pk autoincr"`
	CustomerId        int       `xorm:"'customer_id'"`
	MitigationScopeId int64     `xorm:"'mitigation_scope_id'"`
	Type              string    `xorm:"'type' enum('FQDN','URI','TRAFFIC_PROTOCOL','ALIAS_NAME','TARGET_PROTOCOL') not null"`
	StringValue       string    `xorm:"'string_value'"`
	IntValue          int       `xorm:"'int_value'"`
	Created           time.Time `xorm:"created"`
	Updated           time.Time `xorm:"updated"`
}

func CreateAliasNameParam

func CreateAliasNameParam(aliasName string) (param *ParameterValue)

func CreateFqdnParam

func CreateFqdnParam(fqdn string) (param *ParameterValue)

func CreateParameterValue

func CreateParameterValue(value interface{}, typeString string) *ParameterValue

func CreateTargetProtocolParam

func CreateTargetProtocolParam(targetProtocol int) (param *ParameterValue)

func CreateTrafficProtocolParam

func CreateTrafficProtocolParam(trafficProtocol int) (param *ParameterValue)

func CreateUriParam

func CreateUriParam(uri string) (param *ParameterValue)

type PortRange

type PortRange struct {
	Id                int64     `xorm:"'id' pk autoincr"`
	MitigationScopeId int64     `xorm:"'mitigation_scope_id'"`
	Type              string    `xorm:"'type' enum('TARGET_PORT','SOURCE_PORT') not null"`
	LowerPort         int       `xorm:"'lower_port'"`
	UpperPort         int       `xorm:"'upper_port'"`
	Created           time.Time `xorm:"created"`
	Updated           time.Time `xorm:"updated"`
}

func CreateSourcePortRangeParam

func CreateSourcePortRangeParam(lowerPort int, upperPort int) (portRange *PortRange)

* Create source port range

func CreateTargetPortRangeParam

func CreateTargetPortRangeParam(lowerPort int, upperPort int) (portRange *PortRange)

* Create target port range

type Prefix

type Prefix struct {
	Id                int64     `xorm:"'id' pk autoincr"`
	CustomerId        int       `xorm:"'customer_id'"`
	MitigationScopeId int64     `xorm:"'mitigation_scope_id'"`
	Type              string    `` /* 164-byte string literal not displayed */
	Addr              string    `xorm:"'addr'"`
	PrefixLen         int       `xorm:"'prefix_len'"`
	Created           time.Time `xorm:"created"`
	Updated           time.Time `xorm:"updated"`
}

func CreateAddressRangeParam

func CreateAddressRangeParam(addr string, prefixLen int) (prefix *Prefix)

func CreateDestinationIpv4NetworkParam

func CreateDestinationIpv4NetworkParam(addr string, prefixLen int) (prefix *Prefix)

func CreateIpAddressParam

func CreateIpAddressParam(addr string, prefixLen int) (prefix *Prefix)

func CreateIpParam

func CreateIpParam(addr string, prefixLen int) (prefix *Prefix)

func CreatePrefixParam

func CreatePrefixParam(addr string, prefixLen int) (prefix *Prefix)

func CreateSourceIpv4NetworkParam

func CreateSourceIpv4NetworkParam(addr string, prefixLen int) (prefix *Prefix)

func CreateSourcePrefixParam

func CreateSourcePrefixParam(addr string, prefixLen int) (prefix *Prefix)

func CreateTargetIpParam

func CreateTargetIpParam(addr string, prefixLen int) (prefix *Prefix)

func CreateTargetPrefixParam

func CreateTargetPrefixParam(addr string, prefixLen int) (prefix *Prefix)

type Protection

type Protection struct {
	Id                int64     `xorm:"'id' pk autoincr"`
	CustomerId        int       `xorm:"'customer_id' not null"`
	TargetId          int64     `xorm:"'target_id' not null"`
	TargetType        string    `xorm:"'target_type' not null"`
	AclName           string    `xorm:"'acl_name'"`
	IsEnabled         bool      `xorm:"'is_enabled' not null"`
	ProtectionType    string    `xorm:"'protection_type' not null"`
	TargetBlockerId   int64     `xorm:"'target_blocker_id'"`
	StartedAt         time.Time `xorm:"'started_at'"`
	FinishedAt        time.Time `xorm:"'finished_at'"`
	RecordTime        time.Time `xorm:"'record_time'"`
	DroppedDataInfoId int64     `xorm:"'dropped_data_info_id'"`
	Created           time.Time `xorm:"created"`
	Updated           time.Time `xorm:"updated"`
}

type ProtectionParameter

type ProtectionParameter struct {
	Id           int64     `xorm:"'id' pk autoincr"`
	ProtectionId int64     `xorm:"'protection_id' not null"`
	Key          string    `xorm:"'key' not null"`
	Value        string    `xorm:"'value' not null"`
	Created      time.Time `xorm:"created"`
	Updated      time.Time `xorm:"updated"`
}

type ProtectionStatus

type ProtectionStatus struct {
	Id             int64     `xorm:"'id' pk autoincr"`
	BytesDropped   int       `xorm:"'bytes_dropped'"`
	PacketsDropped int       `xorm:"'pkts_dropped'"`
	BpsDropped     int       `xorm:"'bps_dropped'"`
	PpsDropped     int       `xorm:"'pps_dropped'"`
	Created        time.Time `xorm:"created"`
	Updated        time.Time `xorm:"updated"`
}

type SignalSessionConfiguration

type SignalSessionConfiguration struct {
	Id                    int64     `xorm:"'id' pk autoincr"`
	CustomerId            int       `xorm:"'customer_id' not null index(idx_customer_id)"`
	SessionId             int       `xorm:"'session_id' not null index(idx_session_id)"`
	HeartbeatInterval     int       `xorm:"'heartbeat_interval'"`
	MissingHbAllowed      int       `xorm:"'missing_hb_allowed'"`
	MaxRetransmit         int       `xorm:"'max_retransmit'"`
	AckTimeout            float64   `xorm:"'ack_timeout'"`
	AckRandomFactor       float64   `xorm:"'ack_random_factor'"`
	MaxPayload            int       `xorm:"max_payload"`
	NonMaxRetransmit      int       `xorm:"non_max_retransmit"`
	NonTimeout            float64   `xorm:"non_timeout"`
	NonReceiveTimeout     float64   `xorm:"non_receive_timeout"`
	NonProbingWait        float64   `xorm:"non_probing_wait"`
	NonPartialWait        float64   `xorm:"non_partial_wait"`
	HeartbeatIntervalIdle int       `xorm:"'heartbeat_interval_idle'"`
	MissingHbAllowedIdle  int       `xorm:"'missing_hb_allowed_idle'"`
	MaxRetransmitIdle     int       `xorm:"'max_retransmit_idle'"`
	AckTimeoutIdle        float64   `xorm:"'ack_timeout_idle'"`
	AckRandomFactorIdle   float64   `xorm:"'ack_random_factor_idle'"`
	MaxPayloadIdle        int       `xorm:"max_payload_idle"`
	NonMaxRetransmitIdle  int       `xorm:"non_max_retransmit_idle"`
	NonTimeoutIdle        float64   `xorm:"non_timeout_idle"`
	NonReceiveTimeoutIdle float64   `xorm:"non_receive_timeout_idle"`
	NonProbingWaitIdle    float64   `xorm:"non_probing_wait_idle"`
	NonPartialWaitIdle    float64   `xorm:"non_partial_wait_idle"`
	Created               time.Time `xorm:"created"`
	Updated               time.Time `xorm:"updated"`
}

type TelemetryAttackDetail

type TelemetryAttackDetail struct {
	Id                int64     `xorm:"'id' pk autoincr"`
	MitigationScopeId int64     `xorm:"'mitigation_scope_id' not null"`
	VendorId          int       `xorm:"vendor_id"`
	AttackId          int       `xorm:"'attack_id' not null"`
	AttackDescription string    `xorm:"attack_description"`
	AttackSeverity    string    `xorm:"'attack_severity' enum('none','low','medium','high','unknown') not null"`
	StartTime         uint64    `xorm:"start_time"`
	EndTime           uint64    `xorm:"end_time"`
	Created           time.Time `xorm:"created"`
	Updated           time.Time `xorm:"updated"`
}

func GetTelemetryAttackDetailByMitigationScopeId

func GetTelemetryAttackDetailByMitigationScopeId(engine *xorm.Engine, mitigationScopeId int64) ([]TelemetryAttackDetail, error)

Get telemetry attack-detail by MitigationScopeId

type TelemetryConfiguration

type TelemetryConfiguration struct {
	Id                        int64     `xorm:"'id' pk autoincr"`
	TeleSetupId               int64     `xorm:"'tele_setup_id' not null"`
	MeasurementInterval       string    `xorm:"'measurement_interval' enum('5-minutes','10-minutes','30-minutes','hour','day','week','month') not null"`
	MeasurementSample         string    `` /* 130-byte string literal not displayed */
	LowPercentile             float64   `xorm:"'low_percentile'"`
	MidPercentile             float64   `xorm:"'mid_percentile'"`
	HighPercentile            float64   `xorm:"'high_percentile'"`
	ServerOriginatedTelemetry bool      `xorm:"'server_originated_telemetry' not null"`
	TelemetryNotifyInterval   int       `xorm:"'telemetry_notify_interval'"`
	Created                   time.Time `xorm:"created"`
	Updated                   time.Time `xorm:"updated"`
}

func GetTelemetryConfigurationByTeleSetupId

func GetTelemetryConfigurationByTeleSetupId(engine *xorm.Engine, teleSetupId int64) (telemetryConfiguration TelemetryConfiguration, err error)

Get telemetry configuration by teleSetupId

type TelemetryParameterValue

type TelemetryParameterValue struct {
	Id            int64     `xorm:"'id' pk autoincr"`
	Type          string    `xorm:"'type' enum('TELEMETRY','TELEMETRY_SETUP') not null"`
	TypeId        int64     `xorm:"'type_id' not null"`
	ParameterType string    `xorm:"'parameter_type' enum('TARGET_PROTOCOL','FQDN','URI','ALIAS_NAME') not null"`
	StringValue   string    `xorm:"'string_value'"`
	IntValue      int       `xorm:"'int_value'"`
	Created       time.Time `xorm:"created"`
	Updated       time.Time `xorm:"updated"`
}

func GetTelemetryParameterValue

func GetTelemetryParameterValue(engine *xorm.Engine, tType string, typeId int64, parameterType string) (parameterList []TelemetryParameterValue, err error)

Get telemetry parameter value

type TelemetryPortRange

type TelemetryPortRange struct {
	Id         int64     `xorm:"'id' pk autoincr"`
	Type       string    `xorm:"'type' enum('TELEMETRY','TELEMETRY_SETUP') not null"`
	TypeId     int64     `xorm:"'type_id' not null"`
	PrefixType string    `xorm:"'prefix_type' enum('TARGET_PREFIX','SOURCE_PREFIX') not null"`
	LowerPort  int       `xorm:"'lower_port' not null"`
	UpperPort  int       `xorm:"'upper_port'"`
	Created    time.Time `xorm:"created"`
	Updated    time.Time `xorm:"updated"`
}

func GetTelemetryPortRange

func GetTelemetryPortRange(engine *xorm.Engine, tType string, typeId int64, prefixType string) (portRangeList []TelemetryPortRange, err error)

Get telemetry port range

type TelemetryPrefix

type TelemetryPrefix struct {
	Id         int64     `xorm:"'id' pk autoincr"`
	Type       string    `xorm:"'type' enum('TELEMETRY','TELEMETRY_SETUP') not null"`
	TypeId     int64     `xorm:"'type_id' not null"`
	PrefixType string    `xorm:"'prefix_type' enum('TARGET_PREFIX','SOURCE_PREFIX') not null"`
	Addr       string    `xorm:"'addr'"`
	PrefixLen  int       `xorm:"'prefix_len'"`
	Created    time.Time `xorm:"created"`
	Updated    time.Time `xorm:"updated"`
}

func GetTelemetryPrefix

func GetTelemetryPrefix(engine *xorm.Engine, tType string, typeId int64, prefixType string) (prefixList []TelemetryPrefix, err error)

Get telemetry prefix

type TelemetrySetup

type TelemetrySetup struct {
	Id         int64     `xorm:"'id' pk autoincr"`
	CustomerId int       `xorm:"'customer_id' not null"`
	Cuid       string    `xorm:"'cuid' not null"`
	Cdid       string    `xorm:"'cdid'"`
	Tsid       int       `xorm:"'tsid' not null"`
	SetupType  string    `xorm:"'setup_type' enum('TELEMETRY_CONFIGURATION','PIPE','BASLINE') not null"`
	Created    time.Time `xorm:"created"`
	Updated    time.Time `xorm:"updated"`
}

type TelemetrySourceCount

type TelemetrySourceCount struct {
	Id                 int64     `xorm:"'id' pk autoincr"`
	TeleAttackDetailId int64     `xorm:"'tele_attack_detail_id' not null"`
	LowPercentileG     uint64    `xorm:"low_percentile_g"`
	MidPercentileG     uint64    `xorm:"mid_percentile_g"`
	HighPercentileG    uint64    `xorm:"high_percentile_g"`
	PeakG              uint64    `xorm:"peak_g"`
	CurrentG           uint64    `xorm:"current_g"`
	Created            time.Time `xorm:"created"`
	Updated            time.Time `xorm:"updated"`
}

func GetTelemetrySourceCountByTeleAttackDetailId

func GetTelemetrySourceCountByTeleAttackDetailId(engine *xorm.Engine, teleAdId int64) (*TelemetrySourceCount, error)

Get telemetry source-count by TeleAttackDetailId

type TelemetrySourceIcmpTypeRange

type TelemetrySourceIcmpTypeRange struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	TeleTopTalkerId int64     `xorm:"'tele_top_talker_id' not null"`
	LowerType       int       `xorm:"'lower_type'"`
	UpperType       int       `xorm:"'upper_type'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetTelemetrySourceIcmpTypeRange

func GetTelemetrySourceIcmpTypeRange(engine *xorm.Engine, teleTopTalkerId int64) (icmpTypeRangeList []TelemetrySourceIcmpTypeRange, err error)

Get telemetry source icmp type range

type TelemetrySourcePortRange

type TelemetrySourcePortRange struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	TeleTopTalkerId int64     `xorm:"'tele_top_talker_id' not null"`
	LowerPort       int       `xorm:"'lower_port' not null"`
	UpperPort       int       `xorm:"'upper_port'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetTelemetrySourcePortRange

func GetTelemetrySourcePortRange(engine *xorm.Engine, teleTopTalkerId int64) (portRangeList []TelemetrySourcePortRange, err error)

Get telemetry source port range

type TelemetrySourcePrefix

type TelemetrySourcePrefix struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	TeleTopTalkerId int64     `xorm:"'tele_top_talker_id' not null"`
	Addr            string    `xorm:"'addr'"`
	PrefixLen       int       `xorm:"'prefix_len'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetTelemetrySourcePrefix

func GetTelemetrySourcePrefix(engine *xorm.Engine, teleTopTalkerId int64) (prefixList TelemetrySourcePrefix, err error)

Get telemetry source prefix

type TelemetryTopTalker

type TelemetryTopTalker struct {
	Id                 int64     `xorm:"'id' pk autoincr"`
	TeleAttackDetailId int64     `xorm:"'tele_attack_detail_id' not null"`
	SpoofedStatus      bool      `xorm:"spoofed_status"`
	Created            time.Time `xorm:"created"`
	Updated            time.Time `xorm:"updated"`
}

func GetTelemetryTopTalkerByTeleAttackDetailId

func GetTelemetryTopTalkerByTeleAttackDetailId(engine *xorm.Engine, teleAdId int64) (topTalkerList []TelemetryTopTalker, err error)

Get telemetry top-talker by TeleAttackDetailId

type TelemetryTotalAttackConnection

type TelemetryTotalAttackConnection struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	PrefixType      string    `xorm:"'prefix_type' enum('TARGET_PREFIX','SOURCE_PREFIX') not null"`
	PrefixTypeId    int64     `xorm:"'prefix_type_id' not null"`
	Type            string    `xorm:"'type' enum('CONNECTION-C','EMBRYONIC-C','CONNECTION-PS-C','REQUEST-PS-C','PARTIAL-REQUEST-C') not null"`
	LowPercentileG  uint64    `xorm:"low_percentile_g"`
	MidPercentileG  uint64    `xorm:"mid_percentile_g"`
	HighPercentileG uint64    `xorm:"high_percentile_g"`
	PeakG           uint64    `xorm:"peak_g"`
	CurrentG        uint64    `xorm:"current_g"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetTelemetryTotalAttackConnection

func GetTelemetryTotalAttackConnection(engine *xorm.Engine, prefixType string, prefixTypeId int64) (ttacList []TelemetryTotalAttackConnection, err error)

Get telemetry total attack connection (by mitigation)

type TelemetryTraffic

type TelemetryTraffic struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	PrefixType      string    `xorm:"'prefix_type' enum('TARGET_PREFIX','SOURCE_PREFIX') not null"`
	PrefixTypeId    int64     `xorm:"'prefix_type_id' not null"`
	TrafficType     string    `xorm:"'traffic_type' enum('TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') not null"`
	Unit            string    `` /* 232-byte string literal not displayed */
	LowPercentileG  uint64    `xorm:"'low_percentile_g'"`
	MidPercentileG  uint64    `xorm:"'mid_percentile_g'"`
	HighPercentileG uint64    `xorm:"'high_percentile_g'"`
	CurrentG        uint64    `xorm:"current_g"`
	PeakG           uint64    `xorm:"'peak_g'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetTelemetryTraffic

func GetTelemetryTraffic(engine *xorm.Engine, prefixType string, prefixTypeId int64, trafficType string) (trafficList []TelemetryTraffic, err error)

Get telemetry traffic (by mitigation)

type TotalConnectionCapacity

type TotalConnectionCapacity struct {
	Id                      int64     `xorm:"'id' pk autoincr"`
	TeleBaselineId          int64     `xorm:"'tele_baseline_id' not null"`
	Protocol                int       `xorm:"'protocol' not null"`
	Connection              uint64    `xorm:"'connection'"`
	ConnectionClient        uint64    `xorm:"'connection_client'"`
	Embryonic               uint64    `xorm:"'embryonic'"`
	EmbryonicClient         uint64    `xorm:"'embryonic_client'"`
	ConnectionPs            uint64    `xorm:"'connection_ps'"`
	ConnectionClientPs      uint64    `xorm:"'connection_client_ps'"`
	RequestPs               uint64    `xorm:"'request_ps'"`
	RequestClientPs         uint64    `xorm:"'request_client_ps'"`
	PartialRequestMax       uint64    `xorm:"'partial_request_max'"`
	PartialRequestClientMax uint64    `xorm:"'partial_request_client_max'"`
	Created                 time.Time `xorm:"created"`
	Updated                 time.Time `xorm:"updated"`
}

func GetTotalConnectionCapacityByTeleBaselineId

func GetTotalConnectionCapacityByTeleBaselineId(engine *xorm.Engine, teleBaselineId int64) (tccList []TotalConnectionCapacity, err error)

Get total connection capacity by teleBaselineId

type TotalConnectionCapacityPerPort

type TotalConnectionCapacityPerPort struct {
	Id                      int64     `xorm:"'id' pk autoincr"`
	TeleBaselineId          int64     `xorm:"'tele_baseline_id' not null"`
	Protocol                int       `xorm:"'protocol' not null"`
	Port                    int       `xorm:"'port' not null"`
	Connection              uint64    `xorm:"'connection'"`
	ConnectionClient        uint64    `xorm:"'connection_client'"`
	Embryonic               uint64    `xorm:"'embryonic'"`
	EmbryonicClient         uint64    `xorm:"'embryonic_client'"`
	ConnectionPs            uint64    `xorm:"'connection_ps'"`
	ConnectionClientPs      uint64    `xorm:"'connection_client_ps'"`
	RequestPs               uint64    `xorm:"'request_ps'"`
	RequestClientPs         uint64    `xorm:"'request_client_ps'"`
	PartialRequestMax       uint64    `xorm:"'partial_request_max'"`
	PartialRequestClientMax uint64    `xorm:"'partial_request_client_max'"`
	Created                 time.Time `xorm:"created"`
	Updated                 time.Time `xorm:"updated"`
}

func GetTotalConnectionCapacityPerPortByTeleBaselineId

func GetTotalConnectionCapacityPerPortByTeleBaselineId(engine *xorm.Engine, teleBaselineId int64) (tccList []TotalConnectionCapacityPerPort, err error)

Get total connection capacity per port by teleBaselineId

type TotalPipeCapacity

type TotalPipeCapacity struct {
	Id          int64     `xorm:"'id' pk autoincr"`
	TeleSetupId int64     `xorm:"'tele_setup_id' not null"`
	LinkId      string    `xorm:"'link_id' not null"`
	Capacity    uint64    `xorm:"'capacity'"`
	Unit        string    `` /* 232-byte string literal not displayed */
	Created     time.Time `xorm:"created"`
	Updated     time.Time `xorm:"updated"`
}

func GetTotalPipeCapacityByTeleSetupId

func GetTotalPipeCapacityByTeleSetupId(engine *xorm.Engine, teleSetupId int64) (pipeList []TotalPipeCapacity, err error)

Get total pipe capacity by teleSetupId

type Traffic

type Traffic struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	Type            string    `xorm:"'type' enum('TELEMETRY','TELEMETRY_SETUP') not null"`
	PrefixType      string    `xorm:"'prefix_type' enum('TARGET_PREFIX','SOURCE_PREFIX') not null"`
	TypeId          int64     `xorm:"'type_id' not null"`
	TrafficType     string    `xorm:"'traffic_type' enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') not null"`
	Unit            string    `` /* 232-byte string literal not displayed */
	LowPercentileG  uint64    `xorm:"'low_percentile_g'"`
	MidPercentileG  uint64    `xorm:"'mid_percentile_g'"`
	HighPercentileG uint64    `xorm:"'high_percentile_g'"`
	PeakG           uint64    `xorm:"'peak_g'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetTraffic

func GetTraffic(engine *xorm.Engine, tType string, typeId int64, prefixType string, trafficType string) (trafficList []Traffic, err error)

Get traffic

type TrafficPerPort

type TrafficPerPort struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	Type            string    `xorm:"'type' enum('TELEMETRY','TELEMETRY_SETUP') not null"`
	TypeId          int64     `xorm:"'type_id' not null"`
	TrafficType     string    `xorm:"'traffic_type' enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') not null"`
	Unit            string    `` /* 232-byte string literal not displayed */
	Port            int       `xorm:"'port' not null"`
	LowPercentileG  uint64    `xorm:"'low_percentile_g'"`
	MidPercentileG  uint64    `xorm:"'mid_percentile_g'"`
	HighPercentileG uint64    `xorm:"'high_percentile_g'"`
	PeakG           uint64    `xorm:"'peak_g'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetTrafficPerPort

func GetTrafficPerPort(engine *xorm.Engine, tType string, typeId int64, trafficType string) (trafficList []TrafficPerPort, err error)

Get traffic per port

type TrafficPerProtocol

type TrafficPerProtocol struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	Type            string    `xorm:"'type' enum('TELEMETRY','TELEMETRY_SETUP') not null"`
	TypeId          int64     `xorm:"'type_id' not null"`
	TrafficType     string    `xorm:"'traffic_type' enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') not null"`
	Unit            string    `` /* 232-byte string literal not displayed */
	Protocol        int       `xorm:"'protocol' not null"`
	LowPercentileG  uint64    `xorm:"'low_percentile_g'"`
	MidPercentileG  uint64    `xorm:"'mid_percentile_g'"`
	HighPercentileG uint64    `xorm:"'high_percentile_g'"`
	PeakG           uint64    `xorm:"'peak_g'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetTrafficPerProtocol

func GetTrafficPerProtocol(engine *xorm.Engine, tType string, typeId int64, trafficType string) (trafficList []TrafficPerProtocol, err error)

Get traffic per protocol

type UnitConfiguration

type UnitConfiguration struct {
	Id           int64     `xorm:"'id' pk autoincr"`
	TeleConfigId int64     `xorm:"'tele_config_id' not null"`
	Unit         string    `xorm:"'unit' enum('packet-ps','bit-ps','byte-ps') not null"`
	UnitStatus   bool      `xorm:"'unit_status'"`
	Created      time.Time `xorm:"created"`
	Updated      time.Time `xorm:"updated"`
}

func CreateUnitConfiguration

func CreateUnitConfiguration(tcid int64, unit string, unitStatus bool) (unitConfig *UnitConfiguration)

create unit configuration

type UriFilteringAttackDetail

type UriFilteringAttackDetail struct {
	Id                  int64     `xorm:"'id' pk autoincr"`
	TelePreMitigationId int64     `xorm:"tele_pre_mitigation_id"`
	VendorId            int       `xorm:"vendor_id"`
	AttackId            int       `xorm:"'attack_id' not null"`
	DescriptionLang     string    `xorm:"description_lang"`
	AttackDescription   string    `xorm:"attack_description"`
	AttackSeverity      string    `xorm:"'attack_severity' enum('none','low','medium','high','unknown') not null"`
	StartTime           uint64    `xorm:"start_time"`
	EndTime             uint64    `xorm:"end_time"`
	Created             time.Time `xorm:"created"`
	Updated             time.Time `xorm:"updated"`
}

func GetUriFilteringAttackDetailByTelePreMitigationId

func GetUriFilteringAttackDetailByTelePreMitigationId(engine *xorm.Engine, telePreMitigationId int64) ([]UriFilteringAttackDetail, error)

Get uri filtering attack-detail by TelePreMitigationId

type UriFilteringIcmpTypeRange

type UriFilteringIcmpTypeRange struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	TeleTopTalkerId int64     `xorm:"'tele_top_talker_id' not null"`
	LowerType       int       `xorm:"'lower_type'"`
	UpperType       int       `xorm:"'upper_type'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetUriFilteringIcmpTypeRange

func GetUriFilteringIcmpTypeRange(engine *xorm.Engine, teleTopTalkerId int64) (icmpTypeRangeList []UriFilteringIcmpTypeRange, err error)

Get uri filtering icmp type range

type UriFilteringSourceCount

type UriFilteringSourceCount struct {
	Id                 int64     `xorm:"'id' pk autoincr"`
	TeleAttackDetailId int64     `xorm:"'tele_attack_detail_id' not null"`
	LowPercentileG     uint64    `xorm:"low_percentile_g"`
	MidPercentileG     uint64    `xorm:"mid_percentile_g"`
	HighPercentileG    uint64    `xorm:"high_percentile_g"`
	PeakG              uint64    `xorm:"peak_g"`
	CurrentG           uint64    `xorm:"current_g"`
	Created            time.Time `xorm:"created"`
	Updated            time.Time `xorm:"updated"`
}

func GetUriFilteringSourceCountByTeleAttackDetailId

func GetUriFilteringSourceCountByTeleAttackDetailId(engine *xorm.Engine, teleAdId int64) (*UriFilteringSourceCount, error)

Get uri filtering source-count by TeleAttackDetailId

type UriFilteringSourcePortRange

type UriFilteringSourcePortRange struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	TeleTopTalkerId int64     `xorm:"'tele_top_talker_id' not null"`
	LowerPort       int       `xorm:"'lower_port' not null"`
	UpperPort       int       `xorm:"'upper_port'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetUriFilteringSourcePortRange

func GetUriFilteringSourcePortRange(engine *xorm.Engine, teleTopTalkerId int64) (portRangeList []UriFilteringSourcePortRange, err error)

Get uri filtering source port range

type UriFilteringSourcePrefix

type UriFilteringSourcePrefix struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	TeleTopTalkerId int64     `xorm:"'tele_top_talker_id' not null"`
	Addr            string    `xorm:"'addr'"`
	PrefixLen       int       `xorm:"'prefix_len'"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetUriFilteringSourcePrefix

func GetUriFilteringSourcePrefix(engine *xorm.Engine, teleTopTalkerId int64) (prefixList UriFilteringSourcePrefix, err error)

Get uri filtering source prefix

type UriFilteringTelemetryPreMitigation

type UriFilteringTelemetryPreMitigation struct {
	Id             int64     `xorm:"'id' pk autoincr"`
	CustomerId     int       `xorm:"'customer_id' not null"`
	Cuid           string    `xorm:"'cuid' not null"`
	Cdid           string    `xorm:"'cdid'"`
	Tmid           int       `xorm:"'tmid' not null"`
	TargetPrefix   string    `xorm:"target_prefix"`
	LowerPort      int       `xorm:"lower_port"`
	UpperPort      int       `xorm:"upper_port"`
	TargetProtocol int       `xorm:"target_protocol"`
	TargetFqdn     string    `xorm:"target_fqdn"`
	AliasName      string    `xorm:"alias_name"`
	Created        time.Time `xorm:"created"`
	Updated        time.Time `xorm:"updated"`
}

func GetUriFilteringTelemetryPreMitigationByCuid

func GetUriFilteringTelemetryPreMitigationByCuid(engine *xorm.Engine, customerId int, cuid string) ([]UriFilteringTelemetryPreMitigation, error)

Get uri filtering telemetry pre-mitigation by cuid

func GetUriFilteringTelemetryPreMitigationByTmid

func GetUriFilteringTelemetryPreMitigationByTmid(engine *xorm.Engine, customerId int, cuid string, tmid int) ([]UriFilteringTelemetryPreMitigation, error)

Get uri filtering telemetry pre-mitigation by tmid

type UriFilteringTopTalker

type UriFilteringTopTalker struct {
	Id                 int64     `xorm:"'id' pk autoincr"`
	TeleAttackDetailId int64     `xorm:"'tele_attack_detail_id' not null"`
	SpoofedStatus      bool      `xorm:"spoofed_status"`
	Created            time.Time `xorm:"created"`
	Updated            time.Time `xorm:"updated"`
}

func GetUriFilteringTopTalkerByTeleAttackDetailId

func GetUriFilteringTopTalkerByTeleAttackDetailId(engine *xorm.Engine, teleAdId int64) (topTalkerList []UriFilteringTopTalker, err error)

Get uri filtering top-talker by TeleAttackDetailId

type UriFilteringTotalAttackConnectionPort

type UriFilteringTotalAttackConnectionPort struct {
	Id                  int64     `xorm:"'id' pk autoincr"`
	TelePreMitigationId int64     `xorm:"'tele_pre_mitigation_id' not null"`
	Protocol            int       `xorm:"'protocol' not null"`
	Port                int       `xorm:"'port' not null"`
	Type                string    `xorm:"'type' enum('CONNECTION-C','EMBRYONIC-C','CONNECTION-PS-C','REQUEST-PS-C','PARTIAL-REQUEST-C')"`
	LowPercentileG      uint64    `xorm:"low_percentile_g"`
	MidPercentileG      uint64    `xorm:"mid_percentile_g"`
	HighPercentileG     uint64    `xorm:"high_percentile_g"`
	PeakG               uint64    `xorm:"peak_g"`
	CurrentG            uint64    `xorm:"current_g"`
	Created             time.Time `xorm:"created"`
	Updated             time.Time `xorm:"updated"`
}

func GetUriFilteringTotalAttackConnectionPort

func GetUriFilteringTotalAttackConnectionPort(engine *xorm.Engine, telePreMitigationId int64) (tac []UriFilteringTotalAttackConnectionPort, err error)

Get uri filtering total attack connection port

type UriFilteringTotalAttackConnectionProtocol

type UriFilteringTotalAttackConnectionProtocol struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	PrefixType      string    `xorm:"'prefix_type' enum('TARGET_PREFIX','SOURCE_PREFIX') not null"`
	PrefixTypeId    int64     `xorm:"'prefix_type_id' not null"`
	Protocol        int       `xorm:"'protocol' not null"`
	Type            string    `xorm:"'type' enum('CONNECTION-C','EMBRYONIC-C','CONNECTION-PS-C','REQUEST-PS-C','PARTIAL-REQUEST-C')"`
	LowPercentileG  uint64    `xorm:"low_percentile_g"`
	MidPercentileG  uint64    `xorm:"mid_percentile_g"`
	HighPercentileG uint64    `xorm:"high_percentile_g"`
	PeakG           uint64    `xorm:"peak_g"`
	CurrentG        uint64    `xorm:"current_g"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetUriFilteringTotalAttackConnectionProtocol

func GetUriFilteringTotalAttackConnectionProtocol(engine *xorm.Engine, prefixType string, prefixTypeId int64) (tac []UriFilteringTotalAttackConnectionProtocol, err error)

Get uri filtering total attack connection protocol

type UriFilteringTraffic

type UriFilteringTraffic struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	PrefixType      string    `xorm:"'prefix_type' enum('TARGET_PREFIX','SOURCE_PREFIX') not null"`
	PrefixTypeId    int64     `xorm:"'prefix_type_id' not null"`
	TrafficType     string    `xorm:"'traffic_type' enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') not null"`
	Unit            string    `` /* 232-byte string literal not displayed */
	LowPercentileG  uint64    `xorm:"'low_percentile_g'"`
	MidPercentileG  uint64    `xorm:"'mid_percentile_g'"`
	HighPercentileG uint64    `xorm:"'high_percentile_g'"`
	PeakG           uint64    `xorm:"'peak_g'"`
	CurrentG        uint64    `xorm:"current_g"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

func GetUriFilteringTraffic

func GetUriFilteringTraffic(engine *xorm.Engine, prefixType string, prefixTypeId int64, trafficType string) (trafficList []UriFilteringTraffic, err error)

Get uri filtering traffic

type UriFilteringTrafficPerPort

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    `` /* 232-byte string literal not displayed */
	Port                int       `xorm:"'port' not null"`
	LowPercentileG      uint64    `xorm:"'low_percentile_g'"`
	MidPercentileG      uint64    `xorm:"'mid_percentile_g'"`
	HighPercentileG     uint64    `xorm:"'high_percentile_g'"`
	PeakG               uint64    `xorm:"'peak_g'"`
	CurrentG            uint64    `xorm:"current_g"`
	Created             time.Time `xorm:"created"`
	Updated             time.Time `xorm:"updated"`
}

func GetUriFilteringTrafficPerPort

func GetUriFilteringTrafficPerPort(engine *xorm.Engine, telePreMitigationId int64, trafficType string) (trafficList []UriFilteringTrafficPerPort, err error)

Get uri filtering traffic per port

type UriFilteringTrafficPerProtocol

type UriFilteringTrafficPerProtocol 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    `` /* 232-byte string literal not displayed */
	Protocol            int       `xorm:"'protocol' not null"`
	LowPercentileG      uint64    `xorm:"'low_percentile_g'"`
	MidPercentileG      uint64    `xorm:"'mid_percentile_g'"`
	HighPercentileG     uint64    `xorm:"'high_percentile_g'"`
	PeakG               uint64    `xorm:"'peak_g'"`
	CurrentG            uint64    `xorm:"current_g"`
	Created             time.Time `xorm:"created"`
	Updated             time.Time `xorm:"updated"`
}

func GetUriFilteringTrafficPerProtocol

func GetUriFilteringTrafficPerProtocol(engine *xorm.Engine, telePreMitigationId int64, trafficType string) (trafficList []UriFilteringTrafficPerProtocol, err error)

Get uri filtering traffic per protocol

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL