63 lines
3.2 KiB
Go
63 lines
3.2 KiB
Go
package main
|
|
|
|
type hwServer struct {
|
|
Id int `json:"id"`
|
|
Status string `json:"status"`
|
|
// StatusInfo string `json:"status"` везде NULL надо по возможности посмотреть на боевых платформах
|
|
Warehouse int `json:"warehouse"`
|
|
Uuid string `json:"uuid"`
|
|
Barcode string `json:"barcode"`
|
|
SerialNumber string `json:"serial_number"`
|
|
Note string `json:"note"`
|
|
CustomField string `json:"custom_field"`
|
|
CreatedAt string `json:"created_at"`
|
|
WarehouseStatus string `json:"warehouse_status"`
|
|
Name string `json:"name"`
|
|
Rack int `json:"rack"`
|
|
Unit float64 `json:"unit"`
|
|
Mac string `json:"mac"`
|
|
MainIpv4 int `json:"main_ipv4"` // по возможности получить из таблицы ip
|
|
MainIpv6 int `json:"main_ipv6"` // по возможности получить из таблицы ip
|
|
UserNote string `json:"user_note"`
|
|
OsTemplate string `json:"os_template"`
|
|
HardwareInfo string `json:"hardware_info"`
|
|
PerformInfo string `json:"perform_info"`
|
|
Settings string `json:"settings"`
|
|
Model string `json:"model"`
|
|
Configuration string `json:"configuration"`
|
|
CustomConfiguration string `json:"custom_configuration"`
|
|
IsCustomConfiguration int `json:"is_custom_configuration"`
|
|
Platform int `json:"platform"` //получить платформу из таблицы
|
|
// Owner
|
|
}
|
|
|
|
type hwSwitch struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
Hostname string `json:"hostname"`
|
|
Note string `json:"note"`
|
|
Rack int `json:"rack"`
|
|
Location int `json:"location"`
|
|
Status string `json:"status"`
|
|
StatusInfo string `json:"status_info"`
|
|
Warehouse string `json:"warehouse"`
|
|
WarehouseStatus string `json:"warehouse_status"`
|
|
WarehouseStatusInfo string `json:"warehouse_status_info"`
|
|
Device string `json:"device"`
|
|
AdditionalInfo string `json:"additional_info"`
|
|
Unit float64 `json:"unit"`
|
|
Size float64 `json:"size"`
|
|
LastUpdate string `json:"last_update"`
|
|
LastSuccessUpdate string `json:"last_success_update"`
|
|
AggregationAllowed int `json:"aggregation_allowed"`
|
|
Model string `json:"model"`
|
|
WarehousePortCount int `json:"warehouse_port_count"`
|
|
ExploitationStatus string `json:"exploitation_status"`
|
|
CustomParams string `json:"custom_params"`
|
|
CustomField string `json:"custom_field"`
|
|
Weight float64 `json:"weight"`
|
|
ConnectedPduId int `json:"connected_pdu_id"`
|
|
ConnectedUpsId int `json:"connected_ups_id"`
|
|
TaskmgrTask []taskManagerTask `json:"taskmgr_tasks"`
|
|
}
|