Merge pull request #3 from davidnewhall/dn2_bugs

Fix tag limits.
This commit is contained in:
David Newhall II 2018-07-24 21:23:42 -07:00 committed by GitHub
commit 40bcf76e86
3 changed files with 1 additions and 3 deletions

View File

@ -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,

View File

@ -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),

View File

@ -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())