crowdsec/pkg/types/event_sequence.go
Thibault bui Koechlin 2016167654 initial import
2020-05-15 11:39:16 +02:00

24 lines
630 B
Go

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
}