commit
edddaba319
|
|
@ -39,7 +39,6 @@ func (u UAP) Points() ([]*influx.Point, error) {
|
|||
"has_speaker": strconv.FormatBool(u.HasSpeaker),
|
||||
"inform_ip": u.InformIP,
|
||||
"isolated": strconv.FormatBool(u.Isolated),
|
||||
"last_seen": strconv.FormatFloat(u.LastSeen, 'f', 6, 64),
|
||||
"last_uplink_mac": u.LastUplink.UplinkMac,
|
||||
"last_uplink_remote_port": strconv.Itoa(u.LastUplink.UplinkRemotePort),
|
||||
"known_cfgversion": u.KnownCfgversion,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ func (u USG) Points() ([]*influx.Point, error) {
|
|||
"discovered_via": u.DiscoveredVia,
|
||||
"guest_token": u.GuestToken,
|
||||
"inform_ip": u.InformIP,
|
||||
"last_seen": strconv.FormatFloat(u.LastSeen, 'f', 6, 64),
|
||||
"known_cfgversion": u.KnownCfgversion,
|
||||
"led_override": u.LedOverride,
|
||||
"locating": strconv.FormatBool(u.Locating),
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ func (u USW) Points() ([]*influx.Point, error) {
|
|||
"jumboframe_enabled": strconv.FormatBool(u.JumboframeEnabled),
|
||||
"stp_priority": u.StpPriority,
|
||||
"stp_version": u.StpVersion,
|
||||
"uplink_depth": strconv.FormatFloat(u.UplinkDepth, 'f', 6, 64),
|
||||
}
|
||||
fields := map[string]interface{}{
|
||||
"fw_caps": u.FwCaps,
|
||||
|
|
@ -108,6 +107,7 @@ func (u USW) Points() ([]*influx.Point, error) {
|
|||
"stat_tx_errors": u.Stat.TxErrors,
|
||||
"stat_tx_packets": u.Stat.TxPackets,
|
||||
"stat_tx_retries": u.Stat.TxRetries,
|
||||
"uplink_depth": strconv.FormatFloat(u.UplinkDepth, 'f', 6, 64),
|
||||
// Add the port stats too.
|
||||
}
|
||||
pt, err := influx.NewPoint("usw", tags, fields, time.Now())
|
||||
|
|
|
|||
Loading…
Reference in New Issue