This commit is contained in:
davidnewhall2 2020-06-13 20:46:23 -07:00
parent 9f84cbc4b2
commit b83d1251ed
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ type UDM struct {
MaxAggregateSessions FlexInt `json:"max_aggregate_sessions"` MaxAggregateSessions FlexInt `json:"max_aggregate_sessions"`
} `json:"switch_caps"` } `json:"switch_caps"`
HasFan FlexBool `json:"has_fan"` HasFan FlexBool `json:"has_fan"`
Temperatures *Temperatures `json:"temperatures,omitempty"` Temperatures []Temperature `json:"temperatures,omitempty"`
RulesetInterfaces interface{} `json:"ruleset_interfaces"` RulesetInterfaces interface{} `json:"ruleset_interfaces"`
/* struct { /* struct {
Br0 string `json:"br0"` Br0 string `json:"br0"`
@ -174,7 +174,7 @@ type NetworkTable []struct {
TxPackets FlexInt `json:"tx_packets"` TxPackets FlexInt `json:"tx_packets"`
} }
type Temperatures []struct { type Temperature struct {
Name string `json:"name"` Name string `json:"name"`
Type string `json:"type"` Type string `json:"type"`
Value float64 `json:"value"` Value float64 `json:"value"`