fix type errors
This commit is contained in:
parent
c1af2341ec
commit
7308a1c2e6
|
|
@ -54,7 +54,7 @@ func (u *DatadogUnifi) batchIDS(r report, i *unifi.IDS) { // nolint:dupl
|
||||||
"usg_ip": i.USGIP,
|
"usg_ip": i.USGIP,
|
||||||
"proto": i.Proto,
|
"proto": i.Proto,
|
||||||
"key": i.Key,
|
"key": i.Key,
|
||||||
"catname": i.Catname,
|
"catname": i.Catname.String(),
|
||||||
"app_proto": i.AppProto,
|
"app_proto": i.AppProto,
|
||||||
"action": i.InnerAlertAction,
|
"action": i.InnerAlertAction,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ func (u *InfluxUnifi) batchIDS(r report, i *unifi.IDS) { // nolint:dupl
|
||||||
"usgip": i.USGIP,
|
"usgip": i.USGIP,
|
||||||
"proto": i.Proto,
|
"proto": i.Proto,
|
||||||
"key": i.Key,
|
"key": i.Key,
|
||||||
"catname": i.Catname,
|
"catname": i.Catname.String(),
|
||||||
"app_proto": i.AppProto,
|
"app_proto": i.AppProto,
|
||||||
"action": i.InnerAlertAction,
|
"action": i.InnerAlertAction,
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ func (r *Report) IDS(event *unifi.IDS, logs *Logs) {
|
||||||
"host": event.Host,
|
"host": event.Host,
|
||||||
"site_name": event.SiteName,
|
"site_name": event.SiteName,
|
||||||
"subsystem": event.Subsystem,
|
"subsystem": event.Subsystem,
|
||||||
"category": event.Catname,
|
"category": event.Catname.String(),
|
||||||
"event_type": event.EventType,
|
"event_type": event.EventType,
|
||||||
"key": event.Key,
|
"key": event.Key,
|
||||||
"app_protocol": event.AppProto,
|
"app_protocol": event.AppProto,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue