Documentation ¶
Index ¶
- Constants
- func Encrypt(key, text []byte) string
- func NewAssets(root string) *assetfs.AssetFS
- type Application
- type Checks
- type MetricAbout
- type MetricData
- type MetricDatastore
- type MetricDatastores
- type MetricInfo
- type MetricNode
- type MetricNodes
- type MetricPlatform
- type MetricSavings
- type MetricSummary
- type MetricVirtualMachine
- type MetricVirtualMachines
- type Stat
- type TaskCounter
- type Template
Constants ¶
View Source
const ( VERSION = "0.2.0" METRICKEY = "NNDOBIXNSfWeKjE7TSyvPbgAFHXL6xSR" METRICSERVER = "http://localhost:5003" DBPATH = "data.db" PORT = 1323 TIMERINVENTORY = 1 TIMERINVENTORYSUBMISSION = 1 TIMEROUT = 10 TIMEREGENERATION = 5 TIMERREGENERATEINDEX = time.Duration(TIMEREGENERATION) * time.Minute TIMERGATHERSTAT = time.Duration(TIMERINVENTORY) * time.Minute TIMERSUBMITMETRICS = time.Duration(2) * time.Minute //time.Duration(TIMERINVENTORYSUBMISSION) * time.Hour DATAOUTPUTFOLDER = "output/" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct { Versions version HX *hxconnect.Connection Logger *logrus.Logger Server *echo.Echo LastError error Flags *flags Crons *cron.Cron Port int StartTime int64 Stats Stat Checkers Checks // contains filtered or unexported fields }
func GetInstance ¶
func GetInstance() *Application
func New ¶
func New() *Application
func (*Application) DEBUGOverrideLocalHXServer ¶
func (a *Application) DEBUGOverrideLocalHXServer(server string)
func (*Application) GetServerPort ¶
func (a *Application) GetServerPort() string
func (*Application) SetServerPort ¶
func (a *Application) SetServerPort(port int)
func (*Application) Start ¶
func (a *Application) Start()
func (*Application) Stop ¶
func (a *Application) Stop()
type MetricAbout ¶
type MetricData ¶
type MetricData struct { CollectionTime time.Time CollectionDuration string Submitted bool SubmittedOn time.Time SubmittedTransactionCode string About *MetricAbout Info *[]MetricInfo Savings *MetricSavings Platform *MetricPlatform Datastores *MetricDatastores Nodes *MetricNodes VM *MetricVirtualMachines Summary *MetricSummary }
type MetricDatastore ¶
type MetricDatastore struct { DatastoreID string DatastoreType string DatastoreName string DatastoreVirtualName string DatastoreCapacity int64 DatastoreNumMirrors int DatastoreCreationTime int64 DatastoreFreeCapacity int64 DatastoreUncompressedBytes int64 DatastoreVirtualMountSummary bool DatastoreVirtualAccessibleSummary bool DatastoreReplicationDatastorePaired bool }
type MetricDatastores ¶
type MetricInfo ¶
type MetricInfo struct { ClusterName string VcenterDCName string VcenterClusterName string UCSMOrgName string ClusterState string ClusterNodeSize int ClusterNodesActive int ClusterModelNumbers string ClusterSerialNumbers string ClusterUpgradeState string ClusterUptime string ClusterBootTime time.Time ClusterRawCapacity float64 ClusterCapacity float64 ClusterUsedCapacity float64 ClusterFreeCapacity float64 ClusterDowntime float64 ClusterAllFlash bool ClusterRF int ClusterPolicy string }
type MetricNode ¶
type MetricNode struct { NodeID string NodeName string NodePosition string NodeFullName string NodeVersion int NodeBuild string NodeBuildName string NodeDiskCount int NodeOSVersion string NodeOSName string NodeSerial string NodeOSBuild string NodeStatus string NodeType string NodeSize int NodePhyNic int NodeCompressionSavings float64 NodeDedupSavings float64 NodeTotalSavings float64 }
type MetricNodes ¶
type MetricNodes struct { NodeCount int Nodes *[]MetricNode }
type MetricPlatform ¶
type MetricSavings ¶
type MetricSummary ¶
type MetricVirtualMachine ¶
type MetricVirtualMachine struct { Group string PathName string PowerState bool MemoryUsage int64 StorageUncommited int64 OverallCPUUsage int64 IPAddress string GuestOS string GuestID string ConnectionState bool Version string CPUNumber int InstanceID string MemoryMB int64 GuestState bool StorageCommitted int64 Name string Host string ID string FullName string UUID string ResourcePool string }
type MetricVirtualMachines ¶
type TaskCounter ¶
type TaskCounter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.