vspherePerfManager

package
v0.0.0-...-ceb9197 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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 Config

type Config struct {
	Vcenter
	Interval   time.Duration
	Metrics    map[PmSupportedEntities][]MetricDef
	Data       map[string][]string
	MaxMetrics int
	Rollup
}

type ManagedObject

type ManagedObject struct {
	Entity     types.ManagedObjectReference
	Properties []types.DynamicProperty
	Metrics    []Metric
	Error      error
}

type Metric

type Metric struct {
	Info  metricInfo
	Value metricValue
}

type MetricDef

type MetricDef struct {
	Metrics   []string
	Instances []string
	Entities  []string
}

type PmSupportedEntities

type PmSupportedEntities string

type Rollup

type Rollup struct {
	RollupType []RollupTypes
	Interval   time.Duration
	Metrics    map[PmSupportedEntities][]RollupMetrics
}

type RollupMetrics

type RollupMetrics struct {
	Metrics    []string
	Instances  []string
	Entities   []string
	RollupType []RollupTypes
	Interval   time.Duration
}

type RollupTypes

type RollupTypes string

type Vcenter

type Vcenter struct {
	Username string
	Password string
	Host     string
	Insecure bool
}

type VspherePerfManager

type VspherePerfManager struct {
	Config Config
	// contains filtered or unexported fields
}

func (*VspherePerfManager) Disconnect

func (v *VspherePerfManager) Disconnect() error

func (*VspherePerfManager) Get

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

ProviderSummary wraps the QueryPerfProviderSummary method, caching the value based on entity.Type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL