crowdsec/pkg/types/event_sequence.go

24 lines
630 B
Go
Raw Normal View History

2020-05-15 09:39:16 +00:00
package types
import (
"time"
"github.com/jinzhu/gorm"
)
//EventSequence is used to represent the summarized version of events that lead to overflow
type EventSequence struct {
gorm.Model `json:"-"`
Time time.Time
Source Source `json:"-"`
/*for db only :/ */
Source_ip string
Source_range string
Source_AutonomousSystemNumber string
Source_AutonomousSystemOrganization string
Source_Country string
/*stop db only */
SignalOccurenceID uint //unique ID for the hasMany relation
Serialized string //the serialized dict
}