Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Init host is in the initial state when enabled Init = iota // MonitoringMonitored host is being monitored (from monitored state) MonitoringMonitored // Monitored host has been successfully monitored Monitored // Error host has encountered an error ocurred while monitoring Error // Disabled host is disabled Disabled // MonitoringError host is being monitored (from error state) MonitoringError // MonitoringInit host is being monitored (from init state) MonitoringInit // MonitoringDisabled host is being monitored (from disabled state) MonitoringDisabled // Offline host is totally offline Offline )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastores ¶
type Host ¶
type Host struct { XMLName xml.Name `xml:"HOST"` ID int `xml:"ID,omitempty"` Name string `xml:"NAME"` StateRaw int `xml:"STATE,omitempty"` IMMAD string `xml:"IM_MAD,omitempty"` VMMAD string `xml:"VM_MAD,omitempty"` ClusterID int `xml:"CLUSTER_ID,omitempty"` Cluster string `xml:"CLUSTER,omitempty"` VMs shared.EntitiesID `xml:"VMS,omitempty"` MonitoringInfos dyn.Template `xml:"MONITORING,omitempty"` Template Template `xml:"TEMPLATE,omitempty"` }
Host represents an OpenNebula Host
func (*Host) StateString ¶
StateString returns the state in string format
type Monitoring ¶
type Monitoring struct { XMLName xml.Name `xml:"MONITORING_DATA"` Records []dyn.Template `xml:"MONITORING"` }
Monitoring contains the monitoring records of a host
type PCIDevices ¶
type PCIDevices struct { Address string `xml:"ADDRESS,omitempty"` Bus string `xml:"BUS,omitempty"` Class string `xml:"CLASS,omitempty"` ClassName string `xml:"CLASS_NAME,omitempty"` Device string `xml:"DEVICE,omitempty"` DeviceName string `xml:"DEVICE_NAME,omitempty"` Domain string `xml:"DOMAIN,omitempty"` Function string `xml:"FUNCTION,omitempty"` NumaNodes []NumaNode `xml:"NUMA_NODE,omitempty"` ShortAddress string `xml:"SHORT_ADDRESS,omitempty"` Slot string `xml:"SLOT,omitempty"` Type string `xml:"TYPE,omitempty"` Vendor string `xml:"VENDOR,omitempty"` VendorName string `xml:"VENDOR_NAME,omitempty"` VMID int `xml:"VMID,omitempty"` }
type PoolMonitoring ¶
type PoolMonitoring struct { XMLName xml.Name `xml:"MONITORING_DATA"` Records []dyn.Template `xml:"MONITORING"` }
PoolMonitoring contains the monitoring records of the hosts
Click to show internal directories.
Click to hide internal directories.