fix
This commit is contained in:
parent
64ea35112d
commit
48b9fb701e
|
|
@ -84,7 +84,6 @@ func (u *USW) PointsAt(now time.Time) ([]*influx.Point, error) {
|
||||||
"stat_tx_packets": u.Stat.TxPackets.Val,
|
"stat_tx_packets": u.Stat.TxPackets.Val,
|
||||||
"stat_tx_retries": u.Stat.TxRetries.Val,
|
"stat_tx_retries": u.Stat.TxRetries.Val,
|
||||||
"uplink_depth": u.UplinkDepth.Txt,
|
"uplink_depth": u.UplinkDepth.Txt,
|
||||||
// Add the port stats too.
|
|
||||||
}
|
}
|
||||||
pt, err := influx.NewPoint("usw", tags, fields, now)
|
pt, err := influx.NewPoint("usw", tags, fields, now)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
|
|
@ -62,9 +62,9 @@ type USW struct {
|
||||||
DeviceID string `json:"device_id"`
|
DeviceID string `json:"device_id"`
|
||||||
State FlexInt `json:"state"`
|
State FlexInt `json:"state"`
|
||||||
LastSeen FlexInt `json:"last_seen"`
|
LastSeen FlexInt `json:"last_seen"`
|
||||||
Upgradable FlexBool `json:"upgradable"`
|
Upgradable FlexBool `json:"upgradable,omitempty"`
|
||||||
AdoptableWhenUpgraded FlexBool `json:"adoptable_when_upgraded"`
|
AdoptableWhenUpgraded FlexBool `json:"adoptable_when_upgraded,omitempty"`
|
||||||
Rollupgrade FlexBool `json:"rollupgrade"`
|
Rollupgrade FlexBool `json:"rollupgrade,omitempty"`
|
||||||
KnownCfgversion string `json:"known_cfgversion"`
|
KnownCfgversion string `json:"known_cfgversion"`
|
||||||
Uptime FlexInt `json:"uptime"`
|
Uptime FlexInt `json:"uptime"`
|
||||||
Locating FlexBool `json:"locating"`
|
Locating FlexBool `json:"locating"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue