mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-22 05:09:10 +02:00
make temperaturesd a pointer
This commit is contained in:
+9
-9
@@ -69,9 +69,9 @@ type UDM struct {
|
||||
MaxMirrorSessions FlexInt `json:"max_mirror_sessions"`
|
||||
MaxAggregateSessions FlexInt `json:"max_aggregate_sessions"`
|
||||
} `json:"switch_caps"`
|
||||
HasFan FlexBool `json:"has_fan"`
|
||||
Temperatures Temperatures `json:"temperatures"`
|
||||
RulesetInterfaces interface{} `json:"ruleset_interfaces"`
|
||||
HasFan FlexBool `json:"has_fan"`
|
||||
Temperatures *Temperatures `json:"temperatures,omitempty"`
|
||||
RulesetInterfaces interface{} `json:"ruleset_interfaces"`
|
||||
/* struct {
|
||||
Br0 string `json:"br0"`
|
||||
Eth0 string `json:"eth0"`
|
||||
@@ -131,12 +131,6 @@ type UDM struct {
|
||||
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.
|
||||
type NetworkTable []struct {
|
||||
ID string `json:"_id"`
|
||||
@@ -180,6 +174,12 @@ type NetworkTable []struct {
|
||||
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.
|
||||
// A dream machine is a USG + USW + Controller.
|
||||
type UDMStat struct {
|
||||
|
||||
Reference in New Issue
Block a user