mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Add socket type and construct correct xname
This commit is contained in:
parent
dc09b7051d
commit
940e7fee2a
3 changed files with 8 additions and 5 deletions
|
|
@ -25,6 +25,7 @@ type JawsOutlet struct {
|
|||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
State string `json:"state"`
|
||||
SocketType string `json:"socket_type"`
|
||||
Current float32 `json:"current"`
|
||||
Voltage float32 `json:"voltage"`
|
||||
ActivePower int `json:"active_power"`
|
||||
|
|
@ -85,6 +86,7 @@ func CrawlPDU(config CrawlerConfig) (*pdu.PDUInventory, error) {
|
|||
ID: rawOutlet.ID,
|
||||
Name: rawOutlet.Name,
|
||||
PowerState: rawOutlet.State,
|
||||
SocketType: rawOutlet.SocketType,
|
||||
}
|
||||
inventory.Outlets = append(inventory.Outlets, outlet)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue