Skip to content

Commit fbd9889

Browse files
more ubiquiti type changes be more flexible
1 parent ced5276 commit fbd9889

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ids.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ type IDS struct { //nolint:revive
1515
Datetime time.Time `fake:"{recent_time}" json:"datetime"`
1616
DestIP string `fake:"{ipv4address}" json:"dest_ip"`
1717
DestIPGeo IPGeo `json:"dstipGeo"`
18-
DestPort int `fake:"{port}" json:"dest_port,omitempty"`
18+
DestPort FlexInt `fake:"{port}" json:"dest_port,omitempty"`
1919
DstIPASN string `fake:"{address}" json:"dstipASN"`
2020
DstIPCountry string `fake:"{country}" json:"dstipCountry"`
2121
DstMAC string `fake:"{macaddress}" json:"dst_mac"`
2222
EventType string `json:"event_type"`
23-
FlowID int64 `json:"flow_id"`
23+
FlowID FlexInt `json:"flow_id"`
2424
Host string `json:"host"`
2525
ID string `fake:"{uuid}" json:"_id"`
2626
InIface string `json:"in_iface"`
2727
InnerAlertAction string `json:"inner_alert_action"`
2828
InnerAlertCategory string `json:"inner_alert_category"`
29-
InnerAlertGID int64 `json:"inner_alert_gid"`
30-
InnerAlertRev int64 `json:"inner_alert_rev"`
31-
InnerAlertSeverity int64 `json:"inner_alert_severity"`
29+
InnerAlertGID FlexInt `json:"inner_alert_gid"`
30+
InnerAlertRev FlexInt `json:"inner_alert_rev"`
31+
InnerAlertSeverity FlexInt `json:"inner_alert_severity"`
3232
InnerAlertSignature string `json:"inner_alert_signature"`
33-
InnerAlertSignatureID int64 `json:"inner_alert_signature_id"`
33+
InnerAlertSignatureID FlexInt `json:"inner_alert_signature_id"`
3434
Key string `fake:"{uuid}" json:"key"`
3535
Msg string `fake:"{buzzword}" json:"msg"`
3636
Proto string `json:"proto"`
@@ -42,10 +42,10 @@ type IDS struct { //nolint:revive
4242
SrcIPASN string `fake:"{address}" json:"srcipASN"`
4343
SrcIPCountry string `fake:"{country}" json:"srcipCountry"`
4444
SrcMAC string `fake:"{macaddress}" json:"src_mac"`
45-
SrcPort int `fake:"{port}" json:"src_port,omitempty"`
45+
SrcPort FlexInt `fake:"{port}" json:"src_port,omitempty"`
4646
Subsystem string `json:"subsystem"`
47-
Time int64 `fake:"{timestamp}" json:"time"`
48-
Timestamp int64 `fake:"{timestamp}" json:"timestamp"`
47+
Time FlexInt `fake:"{timestamp}" json:"time"`
48+
Timestamp FlexInt `fake:"{timestamp}" json:"timestamp"`
4949
USGIP string `fake:"{ipv4address}" json:"usgip"`
5050
USGIPASN string `fake:"{address}" json:"usgipASN"`
5151
USGIPCountry string `fake:"{country}" json:"usgipCountry"`

0 commit comments

Comments
 (0)