Fix unmarshal error.
This commit is contained in:
parent
e565331665
commit
2499930efe
|
|
@ -158,6 +158,7 @@ func (u USG) Points() ([]*influx.Point, error) {
|
||||||
"device_mac": u.Mac,
|
"device_mac": u.Mac,
|
||||||
"site_name": u.SiteName,
|
"site_name": u.SiteName,
|
||||||
"name": p.Name,
|
"name": p.Name,
|
||||||
|
"up": p.Up.Txt,
|
||||||
"dhcpd_dns_enabled": p.DhcpdDNSEnabled.Txt,
|
"dhcpd_dns_enabled": p.DhcpdDNSEnabled.Txt,
|
||||||
"dhcpd_enabled": p.DhcpdEnabled.Txt,
|
"dhcpd_enabled": p.DhcpdEnabled.Txt,
|
||||||
"dhcpd_ntp_enabled": p.DhcpdNtpEnabled.Txt,
|
"dhcpd_ntp_enabled": p.DhcpdNtpEnabled.Txt,
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ type USG struct {
|
||||||
Mac string `json:"mac"`
|
Mac string `json:"mac"`
|
||||||
IsGuest FlexBool `json:"is_guest"`
|
IsGuest FlexBool `json:"is_guest"`
|
||||||
IP string `json:"ip"`
|
IP string `json:"ip"`
|
||||||
Up string `json:"up"`
|
Up FlexBool `json:"up"`
|
||||||
NumSta FlexInt `json:"num_sta"`
|
NumSta FlexInt `json:"num_sta"`
|
||||||
RxBytes FlexInt `json:"rx_bytes"`
|
RxBytes FlexInt `json:"rx_bytes"`
|
||||||
RxPackets FlexInt `json:"rx_packets"`
|
RxPackets FlexInt `json:"rx_packets"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue