fix type
This commit is contained in:
		
							parent
							
								
									1367ddbd38
								
							
						
					
					
						commit
						4bd56677c9
					
				|  | @ -53,7 +53,7 @@ func (u *DatadogUnifi) batchAlarms(r report, event *unifi.Alarm) { // nolint:dup | ||||||
| 		"usg_ip":                event.USGIP, | 		"usg_ip":                event.USGIP, | ||||||
| 		"proto":                 event.Proto, | 		"proto":                 event.Proto, | ||||||
| 		"key":                   event.Key, | 		"key":                   event.Key, | ||||||
| 		"catname":               event.Catname, | 		"catname":               event.Catname.String(), | ||||||
| 		"app_proto":             event.AppProto, | 		"app_proto":             event.AppProto, | ||||||
| 		"action":                event.InnerAlertAction, | 		"action":                event.InnerAlertAction, | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | @ -113,7 +113,7 @@ func (u *DatadogUnifi) batchEvent(r report, i *unifi.Event) { // nolint: funlen | ||||||
| 		"gw_name":               i.GwName, | 		"gw_name":               i.GwName, | ||||||
| 		"sw":                    i.Sw, | 		"sw":                    i.Sw, | ||||||
| 		"sw_name":               i.SwName, | 		"sw_name":               i.SwName, | ||||||
| 		"catname":               i.Catname, | 		"catname":               i.Catname.String(), | ||||||
| 		"radio":                 i.Radio, | 		"radio":                 i.Radio, | ||||||
| 		"radio_from":            i.RadioFrom, | 		"radio_from":            i.RadioFrom, | ||||||
| 		"radio_to":              i.RadioTo, | 		"radio_to":              i.RadioTo, | ||||||
|  |  | ||||||
|  | @ -59,7 +59,7 @@ func (u *InfluxUnifi) batchAlarms(r report, event *unifi.Alarm) { // nolint:dupl | ||||||
| 			"usgip":      event.USGIP, | 			"usgip":      event.USGIP, | ||||||
| 			"proto":      event.Proto, | 			"proto":      event.Proto, | ||||||
| 			"key":        event.Key, | 			"key":        event.Key, | ||||||
| 			"catname":    event.Catname, | 			"catname":    event.Catname.String(), | ||||||
| 			"app_proto":  event.AppProto, | 			"app_proto":  event.AppProto, | ||||||
| 			"action":     event.InnerAlertAction, | 			"action":     event.InnerAlertAction, | ||||||
| 		}), | 		}), | ||||||
|  |  | ||||||
|  | @ -123,7 +123,7 @@ func (u *InfluxUnifi) batchEvent(r report, i *unifi.Event) { // nolint: funlen | ||||||
| 			"gw_name":      i.GwName, | 			"gw_name":      i.GwName, | ||||||
| 			"sw":           i.Sw, | 			"sw":           i.Sw, | ||||||
| 			"sw_name":      i.SwName, | 			"sw_name":      i.SwName, | ||||||
| 			"catname":      i.Catname, | 			"catname":      i.Catname.String(), | ||||||
| 			"radio":        i.Radio, | 			"radio":        i.Radio, | ||||||
| 			"radio_from":   i.RadioFrom, | 			"radio_from":   i.RadioFrom, | ||||||
| 			"radio_to":     i.RadioTo, | 			"radio_to":     i.RadioTo, | ||||||
|  |  | ||||||
|  | @ -24,7 +24,7 @@ func (r *Report) Alarm(event *unifi.Alarm, logs *Logs) { | ||||||
| 			"source":       event.SourceName, | 			"source":       event.SourceName, | ||||||
| 			"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, | ||||||
|  |  | ||||||
|  | @ -34,7 +34,7 @@ func (r *Report) Event(event *unifi.Event, logs *Logs) { | ||||||
| 			"gw_name":      event.GwName, | 			"gw_name":      event.GwName, | ||||||
| 			"sw":           event.Sw, | 			"sw":           event.Sw, | ||||||
| 			"sw_name":      event.SwName, | 			"sw_name":      event.SwName, | ||||||
| 			"category":     event.Catname, | 			"category":     event.Catname.String(), | ||||||
| 			"radio":        event.Radio, | 			"radio":        event.Radio, | ||||||
| 			"radio_from":   event.RadioFrom, | 			"radio_from":   event.RadioFrom, | ||||||
| 			"radio_to":     event.RadioTo, | 			"radio_to":     event.RadioTo, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue