fix type errors

This commit is contained in:
Cody Lee 2024-04-03 12:17:24 -05:00
parent c1af2341ec
commit 7308a1c2e6
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ func (u *DatadogUnifi) batchIDS(r report, i *unifi.IDS) { // nolint:dupl
"usg_ip": i.USGIP,
"proto": i.Proto,
"key": i.Key,
"catname": i.Catname,
"catname": i.Catname.String(),
"app_proto": i.AppProto,
"action": i.InnerAlertAction,
}

View File

@ -60,7 +60,7 @@ func (u *InfluxUnifi) batchIDS(r report, i *unifi.IDS) { // nolint:dupl
"usgip": i.USGIP,
"proto": i.Proto,
"key": i.Key,
"catname": i.Catname,
"catname": i.Catname.String(),
"app_proto": i.AppProto,
"action": i.InnerAlertAction,
}),

View File

@ -24,7 +24,7 @@ func (r *Report) IDS(event *unifi.IDS, logs *Logs) {
"host": event.Host,
"site_name": event.SiteName,
"subsystem": event.Subsystem,
"category": event.Catname,
"category": event.Catname.String(),
"event_type": event.EventType,
"key": event.Key,
"app_protocol": event.AppProto,