crowdsec/pkg/types/event_sequence.go
Thibault "bui" Koechlin 177480cff7
updated mysql plugin support (#135)
* add support for plugin, support mysql & so on

* fix queries

Co-authored-by: erenJag <erenJag>
Co-authored-by: AlteredCoder <AlteredCoder>
2020-07-16 16:05:03 +02:00

24 lines
650 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 `gorm:"size:65535"` //the serialized dict
}