This commit is contained in:
Cody Lee 2024-04-19 15:43:00 -05:00
parent 1367ddbd38
commit 4bd56677c9
No known key found for this signature in database
6 changed files with 7 additions and 7 deletions

View File

@ -53,7 +53,7 @@ func (u *DatadogUnifi) batchAlarms(r report, event *unifi.Alarm) { // nolint:dup
"usg_ip": event.USGIP,
"proto": event.Proto,
"key": event.Key,
"catname": event.Catname,
"catname": event.Catname.String(),
"app_proto": event.AppProto,
"action": event.InnerAlertAction,
}

View File

@ -113,7 +113,7 @@ func (u *DatadogUnifi) batchEvent(r report, i *unifi.Event) { // nolint: funlen
"gw_name": i.GwName,
"sw": i.Sw,
"sw_name": i.SwName,
"catname": i.Catname,
"catname": i.Catname.String(),
"radio": i.Radio,
"radio_from": i.RadioFrom,
"radio_to": i.RadioTo,

View File

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

View File

@ -123,7 +123,7 @@ func (u *InfluxUnifi) batchEvent(r report, i *unifi.Event) { // nolint: funlen
"gw_name": i.GwName,
"sw": i.Sw,
"sw_name": i.SwName,
"catname": i.Catname,
"catname": i.Catname.String(),
"radio": i.Radio,
"radio_from": i.RadioFrom,
"radio_to": i.RadioTo,

View File

@ -24,7 +24,7 @@ func (r *Report) Alarm(event *unifi.Alarm, logs *Logs) {
"source": event.SourceName,
"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,

View File

@ -34,7 +34,7 @@ func (r *Report) Event(event *unifi.Event, logs *Logs) {
"gw_name": event.GwName,
"sw": event.Sw,
"sw_name": event.SwName,
"category": event.Catname,
"category": event.Catname.String(),
"radio": event.Radio,
"radio_from": event.RadioFrom,
"radio_to": event.RadioTo,