make temperaturesd a pointer
This commit is contained in:
parent
8fa5c73c51
commit
9f84cbc4b2
|
|
@ -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"`
|
Temperatures *Temperatures `json:"temperatures,omitempty"`
|
||||||
RulesetInterfaces interface{} `json:"ruleset_interfaces"`
|
RulesetInterfaces interface{} `json:"ruleset_interfaces"`
|
||||||
/* struct {
|
/* struct {
|
||||||
Br0 string `json:"br0"`
|
Br0 string `json:"br0"`
|
||||||
|
|
@ -131,12 +131,6 @@ type UDM struct {
|
||||||
NumHandheld FlexInt `json:"num_handheld"` // USG
|
NumHandheld FlexInt `json:"num_handheld"` // USG
|
||||||
}
|
}
|
||||||
|
|
||||||
type Temperatures []struct {
|
|
||||||
Name string `json:"name"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
Value float64 `json:"value"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// NetworkTable is the list of networks on a gateway.
|
// NetworkTable is the list of networks on a gateway.
|
||||||
type NetworkTable []struct {
|
type NetworkTable []struct {
|
||||||
ID string `json:"_id"`
|
ID string `json:"_id"`
|
||||||
|
|
@ -180,6 +174,12 @@ type NetworkTable []struct {
|
||||||
TxPackets FlexInt `json:"tx_packets"`
|
TxPackets FlexInt `json:"tx_packets"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Temperatures []struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
Value float64 `json:"value"`
|
||||||
|
}
|
||||||
|
|
||||||
// UDMStat holds the "stat" data for a dream machine.
|
// UDMStat holds the "stat" data for a dream machine.
|
||||||
// A dream machine is a USG + USW + Controller.
|
// A dream machine is a USG + USW + Controller.
|
||||||
type UDMStat struct {
|
type UDMStat struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue