Documentation ¶
Index ¶
- func CounterIDByName(CounterNameID map[string]int32, Name []string) []int32
- func CounterWithID(ctx context.Context, c *govmomi.Client) (map[string]int32, error)
- func DatastoreMetrics(ctx context.Context, c *govmomi.Client) (L []*core.MetricValue, err error)
- func EsxiCPU(esxi mo.HostSystem) []*core.MetricValue
- func EsxiDisk(ctx context.Context, c *govmomi.Client, esxi mo.HostSystem) ([]*core.MetricValue, error)
- func EsxiExtend(ctx context.Context, c *govmomi.Client, esxi mo.HostSystem, extend []string) ([]*core.MetricValue, error)
- func EsxiList(ctx context.Context, c *govmomi.Client) (esxiList []mo.HostSystem, err error)
- func EsxiMem(esxi mo.HostSystem) []*core.MetricValue
- func EsxiNet(ctx context.Context, c *govmomi.Client, esxi mo.HostSystem) ([]*core.MetricValue, error)
- func EsxiPower(esxi mo.HostSystem) []*core.MetricValue
- func EsxiStatus(esxi mo.HostSystem) []*core.MetricValue
- func EsxiUptime(esxi mo.HostSystem) []*core.MetricValue
- func GenVirtualMachinesByName(vms []mo.VirtualMachine, names []string) (resVms []mo.VirtualMachine)
- func VcenterAlive(alive bool, vcAddr string) []*core.MetricValue
- func VmCPU(vm mo.VirtualMachine) []*core.MetricValue
- func VmExtend(ctx context.Context, c *govmomi.Client, vm mo.VirtualMachine, extend []string) ([]*core.MetricValue, error)
- func VmMem(vm mo.VirtualMachine) []*core.MetricValue
- func VmPower(vm mo.VirtualMachine) []*core.MetricValue
- func VmStatus(vm mo.VirtualMachine) []*core.MetricValue
- func VmUptime(vm mo.VirtualMachine) []*core.MetricValue
- func VsphereDatastores(ctx context.Context, c *govmomi.Client) ([]mo.Datastore, error)
- func VsphereVirtualMachines(ctx context.Context, c *govmomi.Client) ([]mo.VirtualMachine, error)
- type DatastoreWithURL
- type MetricPerf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CounterIDByName ¶
CounterIDByName get counter key by counter name
func CounterWithID ¶
CounterWithID get all counter list(Key:counter name,Value:counter id)
func DatastoreMetrics ¶
DatastoreMetrics datastore metrics
func EsxiDisk ¶
func EsxiDisk(ctx context.Context, c *govmomi.Client, esxi mo.HostSystem) ([]*core.MetricValue, error)
EsxiDisk disk metrics
func EsxiExtend ¶
func EsxiExtend(ctx context.Context, c *govmomi.Client, esxi mo.HostSystem, extend []string) ([]*core.MetricValue, error)
func EsxiNet ¶
func EsxiNet(ctx context.Context, c *govmomi.Client, esxi mo.HostSystem) ([]*core.MetricValue, error)
EsxiNet net metrics
func EsxiStatus ¶
func EsxiStatus(esxi mo.HostSystem) []*core.MetricValue
EsxiStatus The Status enumeration defines a general "health" value for a managed entity.
func GenVirtualMachinesByName ¶
func GenVirtualMachinesByName(vms []mo.VirtualMachine, names []string) (resVms []mo.VirtualMachine)
func VcenterAlive ¶
func VcenterAlive(alive bool, vcAddr string) []*core.MetricValue
func VmExtend ¶
func VmExtend(ctx context.Context, c *govmomi.Client, vm mo.VirtualMachine, extend []string) ([]*core.MetricValue, error)
func VmStatus ¶
func VmStatus(vm mo.VirtualMachine) []*core.MetricValue
VmStatus The Status enumeration defines a general "health" value for a managed entity.
func VsphereDatastores ¶
func VsphereVirtualMachines ¶
Types ¶
type DatastoreWithURL ¶
DatastoreWithURL datastore with url
type MetricPerf ¶
type MetricPerf struct { Metric string `json:"metric"` Value int64 `json:"value"` Instance string `json:"instance"` }
MetricPerf vsphere performance
func Performance ¶
func Performance(ctx context.Context, c *govmomi.Client, MOR types.ManagedObjectReference, counterID int32) ([]*MetricPerf, error)
Performance get counter value by counter key
Click to show internal directories.
Click to hide internal directories.