Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type ManagedObject
- type Metric
- type MetricDef
- type PmSupportedEntities
- type Rollup
- type RollupMetrics
- type RollupTypes
- type Vcenter
- type VspherePerfManager
- func (v *VspherePerfManager) Disconnect() error
- func (v *VspherePerfManager) Get(entityType PmSupportedEntities) []ManagedObject
- func (v *VspherePerfManager) GetObject(entityType string, objectId string) ManagedObject
- func (v *VspherePerfManager) GetProperty(o ManagedObject, property string) types.AnyType
- func (v *VspherePerfManager) Init() error
- func (v *VspherePerfManager) ProviderSummary(entity types.ManagedObjectReference) (*types.PerfProviderSummary, error)
Constants ¶
View Source
const ( VMs PmSupportedEntities = "VirtualMachine" Hosts PmSupportedEntities = "HostSystem" ResourcePools PmSupportedEntities = "ResourcePool" Datastores PmSupportedEntities = "Datastore" Clusters PmSupportedEntities = "ClusterComputeResource" Vapps PmSupportedEntities = "VirtualApp" Datacenters PmSupportedEntities = "Datacenter" Folders PmSupportedEntities = "Folder" DatastoreClusters PmSupportedEntities = "StoragePod" ComputeResources PmSupportedEntities = "ComputeResource" VirtualSwitches PmSupportedEntities = "VmwareDistributedVirtualSwitch" Average RollupTypes = "average" Maximum RollupTypes = "maximum" Minimum RollupTypes = "minimum" Summation RollupTypes = "summation" Latest RollupTypes = "latest" )
Variables ¶
View Source
var ALL = []string{"*"}
Functions ¶
This section is empty.
Types ¶
type ManagedObject ¶
type ManagedObject struct { Entity types.ManagedObjectReference Properties []types.DynamicProperty Metrics []Metric Error error }
type PmSupportedEntities ¶
type PmSupportedEntities string
type Rollup ¶
type Rollup struct { RollupType []RollupTypes Interval time.Duration Metrics map[PmSupportedEntities][]RollupMetrics }
type RollupMetrics ¶
type RollupTypes ¶
type RollupTypes string
type VspherePerfManager ¶
type VspherePerfManager struct { Config Config // contains filtered or unexported fields }
func (*VspherePerfManager) Disconnect ¶
func (v *VspherePerfManager) Disconnect() error
func (*VspherePerfManager) Get ¶
func (v *VspherePerfManager) Get(entityType PmSupportedEntities) []ManagedObject
func (*VspherePerfManager) GetObject ¶
func (v *VspherePerfManager) GetObject(entityType string, objectId string) ManagedObject
func (*VspherePerfManager) GetProperty ¶
func (v *VspherePerfManager) GetProperty(o ManagedObject, property string) types.AnyType
func (*VspherePerfManager) Init ¶
func (v *VspherePerfManager) Init() error
func (*VspherePerfManager) ProviderSummary ¶
func (v *VspherePerfManager) ProviderSummary(entity types.ManagedObjectReference) (*types.PerfProviderSummary, error)
ProviderSummary wraps the QueryPerfProviderSummary method, caching the value based on entity.Type.
Click to show internal directories.
Click to hide internal directories.